@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* ============================================
   DESIGN TOKENS - color-mix() palette system
   ============================================ */
:root {
  --base-primary: #2D6A4F;
  --base-accent: #F4A261;
  --base-dark: #1A2332;

  --primary: var(--base-primary);
  --primary-light: color-mix(in oklch, var(--base-primary), white 45%);
  --primary-lighter: color-mix(in oklch, var(--base-primary), white 75%);
  --primary-dark: color-mix(in oklch, var(--base-primary), black 25%);
  --primary-xlight: color-mix(in oklch, var(--base-primary), white 90%);

  --accent: var(--base-accent);
  --accent-light: color-mix(in oklch, var(--base-accent), white 40%);
  --accent-dark: color-mix(in oklch, var(--base-accent), black 20%);
  --accent-xlight: color-mix(in oklch, var(--base-accent), white 85%);

  --dark: var(--base-dark);
  --dark-mid: color-mix(in oklch, var(--base-dark), white 30%);
  --dark-light: color-mix(in oklch, var(--base-dark), white 55%);
  --dark-xlight: color-mix(in oklch, var(--base-dark), white 80%);

  --surface: color-mix(in oklch, var(--base-dark), white 97%);
  --surface-2: color-mix(in oklch, var(--base-primary), white 94%);
  --surface-3: color-mix(in oklch, var(--base-accent), white 92%);

  --text-main: color-mix(in oklch, var(--base-dark), white 8%);
  --text-secondary: color-mix(in oklch, var(--base-dark), white 42%);
  --text-muted: color-mix(in oklch, var(--base-dark), white 60%);

  --border: color-mix(in oklch, var(--base-dark), white 84%);
  --border-light: color-mix(in oklch, var(--base-dark), white 91%);

  --shadow-sm: 0 1px 3px color-mix(in oklch, var(--base-dark), transparent 88%),
               0 1px 2px color-mix(in oklch, var(--base-dark), transparent 93%);
  --shadow-md: 0 4px 6px color-mix(in oklch, var(--base-dark), transparent 88%),
               0 2px 4px color-mix(in oklch, var(--base-dark), transparent 92%);
  --shadow-lg: 0 10px 25px color-mix(in oklch, var(--base-dark), transparent 84%),
               0 4px 10px color-mix(in oklch, var(--base-dark), transparent 90%);
  --shadow-xl: 0 20px 40px color-mix(in oklch, var(--base-dark), transparent 80%),
               0 8px 16px color-mix(in oklch, var(--base-dark), transparent 88%);
  --shadow-primary: 0 8px 24px color-mix(in oklch, var(--base-primary), transparent 70%);
  --shadow-accent: 0 8px 24px color-mix(in oklch, var(--base-accent), transparent 65%);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --header-h: 80px;
  --header-h-scrolled: 60px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body.canvas {
  font-family: 'Rubik', system-ui, sans-serif;
  background-color: var(--surface);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Rubik', sans-serif;
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 600;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.page-title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.2rem);
  font-weight: 700;
}

.section-heading {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

p { margin-bottom: 1rem; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

.eyebrow-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

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

.canvas-section {
  padding: var(--space-2xl) 0;
}

.canvas-section.bg-tinted {
  background-color: var(--surface-2);
}

.canvas-section.bg-accent-light {
  background-color: var(--accent-xlight);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .eyebrow-label { display: block; }

.gallery {
  display: grid;
  gap: var(--space-md);
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.two-col-grid.reverse { direction: rtl; }
.two-col-grid.reverse > * { direction: ltr; }

/* ============================================
   HEADER / MASTHEAD
   ============================================ */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: color-mix(in oklch, var(--surface), transparent 8%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: padding var(--transition), box-shadow var(--transition), background var(--transition);
}

.masthead-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--transition);
}

.masthead.scrolled .masthead-inner { height: var(--header-h-scrolled); }
.masthead.scrolled {
  background: color-mix(in oklch, var(--surface), transparent 2%);
  box-shadow: var(--shadow-md);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  transition: width var(--transition), height var(--transition);
}

.masthead.scrolled .brand-logo { width: 28px; height: 28px; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  transition: font-size var(--transition);
}

.masthead.scrolled .brand-name { font-size: 1rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--surface-2); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   MOBILE DRAWER (Bottom Tab Bar)
   ============================================ */
.drawer {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: color-mix(in oklch, var(--surface), transparent 3%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px color-mix(in oklch, var(--base-dark), transparent 88%);
  flex-direction: row;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.drawer.open { transform: translateY(0); }

.drawer-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 10px 4px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  min-height: 60px;
  border-top: 2px solid transparent;
}

.drawer-tab i { font-size: 1.1rem; }
.drawer-tab span { line-height: 1; }

.drawer-tab.active {
  color: var(--primary);
  border-top-color: var(--primary);
  background: var(--primary-xlight);
}

.drawer-tab:hover { color: var(--primary); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
}

.btn-full { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.text-link:hover { gap: 0.7rem; color: var(--primary-dark); }

/* ============================================
   HERO / STAGE
   ============================================ */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stage-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stage-curtain {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--base-dark), transparent 15%) 0%,
    color-mix(in oklch, var(--base-primary), transparent 35%) 60%,
    color-mix(in oklch, var(--base-dark), transparent 25%) 100%
  );
}

.stage-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  justify-content: center;
}

.glass-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.15);
}

.glass-card .eyebrow-label { color: var(--accent-light); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: var(--space-md) 0 var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.typed-accent {
  color: var(--accent-light);
  display: inline-block;
  min-height: 1.2em;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  background: linear-gradient(
    160deg,
    var(--surface-2) 0%,
    var(--surface) 100%
  );
  border-bottom: 1px solid var(--border);
}

.page-hero-content { max-width: 680px; }

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  line-height: 1.7;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.intro-text { padding-right: var(--space-md); }

.intro-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.intro-img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 30px 60px color-mix(in oklch, var(--base-dark), transparent 76%);
}

/* ============================================
   HORIZONTAL SCROLL SECTION
   ============================================ */
.services-section { overflow: hidden; }

.horizontal-scroll-wrapper {
  position: relative;
  padding: 0 0 var(--space-md);
}

.shelf {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.shelf:active { cursor: grabbing; }

.shelf::-webkit-scrollbar { height: 4px; }
.shelf::-webkit-scrollbar-track { background: transparent; }
.shelf::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-full); }

.shelf-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.shelf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.shelf-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.shelf-card:hover::before { transform: scaleX(1); }

.shelf-card-icon {
  width: 52px; height: 52px;
  background: var(--primary-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  transition: background var(--transition), color var(--transition);
}

.shelf-card:hover .shelf-card-icon {
  background: var(--primary);
  color: #fff;
}

.shelf-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  color: var(--text-main);
}

.shelf-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-xlight);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
}

.scroll-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-lighter);
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

.process-step:hover .step-number { color: var(--primary-light); }

.step-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.step-content p { font-size: 0.9rem; }

/* ============================================
   TEAM SECTION
   ============================================ */
.team-gallery {
  grid-template-columns: repeat(4, 1fr);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-photo-wrap {
  overflow: hidden;
  aspect-ratio: 1;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo { transform: scale(1.06); }

.team-info {
  padding: var(--space-md);
}

.team-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.team-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-xs);
}

.team-info p { font-size: 0.88rem; line-height: 1.55; }

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-gallery {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.contact-card-icon {
  width: 60px; height: 60px;
  background: var(--primary-xlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 auto var(--space-md);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.contact-card p { font-size: 0.9rem; margin-bottom: var(--space-sm); }

.contact-card-link {
  display: block;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-card-link:hover { color: var(--primary-dark); }

/* ============================================
   PRINCIPLES GRID
   ============================================ */
.principles-gallery {
  grid-template-columns: repeat(4, 1fr);
}

.principle-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.principle-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: transform var(--transition);
}

.principle-card:hover .principle-icon { transform: scale(1.15) rotate(-5deg); }

.principle-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.principle-card p { font-size: 0.9rem; }

/* ============================================
   COMPARISON GRID
   ============================================ */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.comparison-col {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
}

.comparison-no {
  background: color-mix(in oklch, #e74c3c, white 90%);
  border-color: color-mix(in oklch, #e74c3c, white 75%);
}

.comparison-yes {
  background: var(--primary-xlight);
  border-color: var(--primary-lighter);
}

.comparison-no h3 { color: color-mix(in oklch, #c0392b, black 10%); }
.comparison-yes h3 { color: var(--primary-dark); }

.comparison-col h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.comparison-col ul { padding-left: 1.2rem; }
.comparison-col li { font-size: 0.92rem; margin-bottom: 0.5rem; }

/* ============================================
   SERVICES GRID (Per aziende)
   ============================================ */
.services-gallery-4 {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card-num {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  transition: background var(--transition), border-radius var(--transition);
}

.service-card:hover .service-card-num {
  background: var(--accent);
  border-radius: var(--radius-full);
}

.service-card h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.service-card p { font-size: 0.9rem; }

/* ============================================
   TIMELINE (Per aziende & Contact)
   ============================================ */
.timeline-steps {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.timeline-dot {
  width: 42px; height: 42px;
  min-width: 42px;
  background: var(--primary);
  border-radius: var(--radius-full);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
  transition: background var(--transition), transform var(--transition);
}

.timeline-step:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  transform: scale(1.1);
}

.timeline-content {
  padding-top: 0.5rem;
  flex: 1;
}

.timeline-content h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-content p { font-size: 0.9rem; }

/* ============================================
   CASE STUDIES
   ============================================ */
.case-study-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 380px 1fr;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.case-card-visual {
  position: relative;
  overflow: hidden;
}

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

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

.case-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.case-card-body {
  padding: var(--space-xl);
}

.case-card-body h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.case-situation, .case-process, .case-outcome {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.case-outcome { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.case-situation h3, .case-process h3, .case-outcome h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}

.case-situation p, .case-process p, .case-outcome p { font-size: 0.92rem; }

/* ============================================
   MINI CASES
   ============================================ */
.mini-cases-gallery {
  grid-template-columns: repeat(4, 1fr);
}

.mini-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.mini-case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.mini-case i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  display: block;
  transition: transform var(--transition);
}

.mini-case:hover i { transform: scale(1.2) rotate(5deg); }
.mini-case h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.mini-case p { font-size: 0.9rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.form-card h2 { margin-bottom: var(--space-xs); }
.form-card > p { margin-bottom: var(--space-lg); }

.form-group {
  margin-bottom: var(--space-md);
}


.floating-label-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1.1rem 1rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-xlight);
}

.floating-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top var(--transition), font-size var(--transition),
              color var(--transition), transform var(--transition);
  background: transparent;
}

.form-textarea ~ .floating-label {
  top: 1.1rem;
  transform: none;
}

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
  top: 0.45rem;
  font-size: 0.72rem;
  color: var(--primary);
  transform: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-textarea { min-height: 130px; padding-top: 1.5rem; }

.form-textarea:focus ~ .floating-label,
.form-textarea:not(:placeholder-shown) ~ .floating-label {
  top: 0.45rem;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.select-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: 'Rubik', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-xlight);
}

.privacy-group { margin-top: var(--space-sm); }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

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

.privacy-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-text a { color: var(--primary); font-weight: 500; }


.contact-detail-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-detail-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.contact-detail-icon {
  width: 46px; height: 46px;
  min-width: 46px;
  background: var(--primary-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
}

.contact-detail-card:hover .contact-detail-icon {
  background: var(--primary);
  color: #fff;
}

.contact-detail-card h3 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-detail-card a,
.contact-detail-card span { font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.contact-detail-card p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; margin-bottom: 0; }


.inquiry-timeline {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}

.inquiry-timeline h3 {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.inq-step {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  align-items: flex-start;
}

.inq-dot {
  width: 10px; height: 10px;
  min-width: 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin-top: 6px;
}

.inq-text strong { display: block; font-size: 0.9rem; color: var(--text-main); }
.inq-text span { font-size: 0.82rem; color: var(--text-muted); }


.map-section { padding-top: 0; }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.map-wrapper iframe { display: block; }

/* ============================================
   CTA BLOCK
   ============================================ */
.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-block h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: var(--space-sm); }
.cta-block p { margin-bottom: var(--space-lg); }

/* ============================================
   IMAGES (general)
   ============================================ */
.content-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.content-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.rounded-lg { border-radius: var(--radius-lg); }

/* ============================================
   THANKS PAGE
   ============================================ */
.thanks-main {
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-2xl);
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.thanks-center {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.quote-card {
  background: linear-gradient(135deg, var(--primary-xlight), var(--accent-xlight));
  border: 1px solid var(--primary-lighter);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-size: 5rem;
  line-height: 0.8;
  color: var(--primary-light);
  font-family: Georgia, serif;
  margin-bottom: var(--space-sm);
}

blockquote {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

.thanks-message { padding: var(--space-md); }

.thanks-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.thanks-message h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-sm);
}

.thanks-message p {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-main {
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-2xl);
}

.legal-container { max-width: 860px; }

.legal-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--primary-lighter);
}

.legal-header h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: var(--space-xs); }

.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.legal-section {
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary-dark);
}

.legal-section h3 {
  font-size: 1rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal-section p { font-size: 0.95rem; }
.legal-section ul { margin-bottom: var(--space-sm); }
.legal-section li { font-size: 0.95rem; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.legal-table th {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.legal-table td, .legal-table tbody th {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  color: var(--text-secondary);
}

.legal-table tbody th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.legal-table tbody tr:hover td { background: var(--surface-2); }

.cookie-table th, .cookie-table td { font-size: 0.82rem; }

code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  font-size: 0.88em;
  color: var(--primary-dark);
  font-family: 'Courier New', monospace;
}

.legal-dl dt {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-top: var(--space-sm);
}

.legal-dl dd {
  margin-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: var(--space-xs);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: var(--dark-xlight);
  margin-top: auto;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.footer-logo { width: 28px; height: 28px; }

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--dark-xlight);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent-light); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}

.footer-contact span {
  font-size: 0.82rem;
  color: var(--dark-xlight);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

.footer-contact i { color: var(--accent-light); font-size: 0.8rem; }

.footer-bar {
  border-top: 1px solid color-mix(in oklch, var(--dark), white 15%);
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.footer-bar span { font-size: 0.78rem; color: var(--dark-light); }

/* ============================================
   COOKIE CONSENT - Notification Bell Pattern
   ============================================ */
#cookie-bell-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg), var(--shadow-primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

#cookie-bell-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.08);
  box-shadow: var(--shadow-xl), var(--shadow-primary);
}

#cookie-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: var(--radius-full);
  border: 2px solid var(--surface);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

#cookie-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 8999;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

#cookie-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

#cookie-panel h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#cookie-panel h3 i { color: var(--primary); }

#cookie-panel p {
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-toggle-row:last-of-type { border-bottom: none; }

.cookie-toggle-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.cookie-toggle-label small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.6; cursor: not-allowed; }

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-family: 'Rubik', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cookie-btn-accept:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.cookie-btn-save {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.cookie-btn-save:hover { background: var(--primary-xlight); }

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  flex: 0 0 auto;
  padding: 0.6rem 0.8rem;
}

.cookie-btn-reject:hover { color: var(--text-main); border-color: var(--dark-light); }

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media (max-width: 1024px) {
  .team-gallery { grid-template-columns: repeat(2, 1fr); }
  .principles-gallery { grid-template-columns: repeat(2, 1fr); }
  .services-gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .mini-cases-gallery { grid-template-columns: repeat(2, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .case-card-visual { aspect-ratio: 16/7; }
}

@media (max-width: 900px) {
  .two-col-grid { grid-template-columns: 1fr; }
  .two-col-grid.reverse { direction: ltr; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-text { padding-right: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
  .footer-contact span { justify-content: center; }
  .footer-bar { flex-direction: column; text-align: center; }
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .hamburger { display: flex; }
  .primary-nav { display: none; }
  .drawer { display: flex; }

  body { padding-bottom: 70px; }

  .stage { min-height: 100svh; }

  .glass-card {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
  }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .canvas-section { padding: var(--space-xl) 0; }

  .process-steps { grid-template-columns: 1fr; }
  .team-gallery { grid-template-columns: 1fr 1fr; }
  .contact-gallery { grid-template-columns: 1fr; }
  .principles-gallery { grid-template-columns: 1fr; }
  .services-gallery-4 { grid-template-columns: 1fr; }
  .mini-cases-gallery { grid-template-columns: 1fr 1fr; }

  .shelf-card { flex: 0 0 260px; }

  .case-card { grid-template-columns: 1fr; }
  .case-card-visual { aspect-ratio: 16/7; }

  .page-hero {
    padding: calc(var(--header-h) + var(--space-lg)) 0 var(--space-lg);
  }

  #cookie-bell-btn { bottom: 82px; right: 16px; }
  #cookie-panel { bottom: 150px; right: 16px; }

  .legal-table { font-size: 0.8rem; }
  .legal-table th, .legal-table td { padding: 0.5rem 0.7rem; }

  .footer-inner { gap: var(--space-md); }
}

@media (max-width: 480px) {
  .team-gallery { grid-template-columns: 1fr; }
  .mini-cases-gallery { grid-template-columns: 1fr; }
  .shelf-card { flex: 0 0 240px; }
  .glass-card { padding: var(--space-md); }
  .comparison-grid { grid-template-columns: 1fr; }
}