/* ═══════════════════════════════════════════════════════════
   Officina Prima Cinematic — Main CSS
   Dark cyberpunk/steampunk — stile C Cinematic Scroll
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Cyber Neon (default) */
  --bg0:   #0a0a14;
  --bg1:   #12121f;
  --bg2:   #1a1a2e;
  --c1:    #00c8ff;
  --c2:    #ff6a00;
  --c3:    #39ff14;
  --c1-rgb: 0,200,255;
  --c2-rgb: 255,106,0;
  --c3-rgb: 57,255,20;
  --text:  #e8e8f0;
  --text-dim: rgba(232,232,240,0.5);
  --text-muted: rgba(232,232,240,0.3);
  --nav-border: rgba(0,200,255,0.2);
  --grid-dot: rgba(0,200,255,0.05);
  --glow1: 0 0 20px rgba(0,200,255,0.3);
  --glow2: 0 0 20px rgba(255,106,0,0.3);
  --line:  rgba(255,255,255,0.07);
  --radius: 4px;
  --font-head: 'Orbitron', 'Space Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --max-w: 1280px;
  --nav-h: 70px;
  --transition: 0.2s ease;
}

/* Steampunk Rust */
[data-theme="rust"] {
  --bg0:   #120c06;
  --bg1:   #1c1008;
  --bg2:   #241408;
  --c1:    #c4622d;
  --c2:    #c9941a;
  --c3:    #4a9e8e;
  --c1-rgb: 196,98,45;
  --c2-rgb: 201,148,26;
  --c3-rgb: 74,158,142;
  --text:  #e8d5b4;
  --text-dim: rgba(232,213,176,0.5);
  --text-muted: rgba(232,213,176,0.3);
  --nav-border: rgba(196,98,45,0.25);
  --grid-dot: rgba(196,98,45,0.06);
  --glow1: 0 0 20px rgba(196,98,45,0.3);
  --glow2: 0 0 20px rgba(201,148,26,0.3);
  --line: rgba(196,98,45,0.1);
}

/* Cyberpunk Magenta */
[data-theme="magenta"] {
  --bg0:   #05050f;
  --bg1:   #0a0a18;
  --bg2:   #10101f;
  --c1:    #00ffee;
  --c2:    #ff006e;
  --c3:    #aa00ff;
  --c1-rgb: 0,255,238;
  --c2-rgb: 255,0,110;
  --c3-rgb: 170,0,255;
  --text:  #dcdcf0;
  --text-dim: rgba(220,220,240,0.5);
  --text-muted: rgba(220,220,240,0.3);
  --nav-border: rgba(0,255,238,0.2);
  --grid-dot: rgba(0,255,238,0.04);
  --glow1: 0 0 20px rgba(0,255,238,0.3);
  --glow2: 0 0 20px rgba(255,0,110,0.3);
  --line: rgba(0,255,238,0.06);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c2); }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 20px;
  background: var(--c1);
  color: var(--bg0);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { top: 20px; }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10,10,20,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background: rgba(10,10,20,0.92);
  border-bottom-color: var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img { height: 44px; width: auto; }

.site-logo__text {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c1);
  text-shadow: var(--glow1);
  line-height: 1.2;
}

.site-logo__text span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--font-mono);
}

/* Primary nav */
.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--c1);
  border-color: rgba(var(--c1-rgb), 0.35);
  background: rgba(var(--c1-rgb), 0.06);
}

.nav-cta {
  margin-left: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
}

.btn-primary {
  border-color: var(--c2);
  color: var(--c2);
  background: rgba(var(--c2-rgb), 0.1);
}
.btn-primary:hover {
  background: rgba(var(--c2-rgb), 0.22);
  box-shadow: var(--glow2);
  color: var(--c2);
}

.btn-secondary {
  border-color: var(--c1);
  color: var(--c1);
  background: rgba(var(--c1-rgb), 0.08);
}
.btn-secondary:hover {
  background: rgba(var(--c1-rgb), 0.18);
  box-shadow: var(--glow1);
  color: var(--c1);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-dim);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--c1);
  color: var(--c1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(10,10,20,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  text-transform: uppercase;
  display: block;
}
.mobile-nav a:hover { color: var(--c1); border-color: rgba(var(--c1-rgb),0.3); background: rgba(var(--c1-rgb),0.06); }
.mobile-nav .btn { margin-top: 12px; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   HERO — CINEMA
   ═══════════════════════════════════════════════════════════ */
.hero-cinema {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-cinema__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cinema__bg video,
.hero-cinema__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CSS circuit animation fallback */
.hero-cinema__anim {
  position: absolute;
  inset: 0;
  background: var(--bg0);
  overflow: hidden;
}

.hero-cinema__anim::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(var(--c1-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--c1-rgb), 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
}

.hero-cinema__anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(var(--c1-rgb), 0.08) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
@keyframes pulse {
  0%   { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat var(--dur, 8s) ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: rgba(var(--c1-rgb),0.06); top: 10%; left: 15%; --dur: 9s; }
.orb-2 { width: 300px; height: 300px; background: rgba(var(--c2-rgb),0.08); top: 40%; right: 10%; --dur: 11s; }
.orb-3 { width: 250px; height: 250px; background: rgba(var(--c3-rgb),0.05); bottom: 20%; left: 30%; --dur: 7s; }

@keyframes orbFloat {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

.hero-cinema__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,20,0.1) 0%, rgba(10,10,20,0.5) 50%, rgba(10,10,20,0.92) 100%);
  z-index: 1;
}

.hero-cinema__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
  max-width: 900px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--c1);
  text-transform: uppercase;
  border: 1px solid rgba(var(--c1-rgb), 0.35);
  background: rgba(var(--c1-rgb), 0.08);
  padding: 6px 18px;
  border-radius: 20px;
}

.hero-cinema__title {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(var(--c1-rgb), 0.2);
}

.hero-cinema__title em {
  font-style: normal;
  color: var(--c1);
}

.hero-cinema__sub {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.5vw, 16px);
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.hero-cinema__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  #home .elementor-element-opcHeroText,
  .hero-cinema__content {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .hero-tag {
    display: inline-block;
    max-width: min(100%, 280px);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    letter-spacing: 0.1em;
    line-height: 1.45;
    padding: 6px 12px;
  }

  .hero-cinema__title {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(21px, 6.4vw, 25px);
    line-height: 1.16;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  #home .elementor-widget-text-editor h2,
  #home .elementor-widget-text-editor h2 span {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(21px, 6.6vw, 25px);
    line-height: 1.25;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  .hero-cinema__sub {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    letter-spacing: 0;
    line-height: 1.55;
    text-align: center;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c1), transparent);
}
@keyframes scrollBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════════════ */
.hero-inner {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 24px) 0 32px;
}

.hero-inner__bg {
  position: absolute;
  inset: 0;
  background: var(--bg0);
}
.hero-inner__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--c1-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--c1-rgb), 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10,10,20,0.85) 100%);
}

.hero-inner__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-inner__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--c1);
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: var(--glow1);
}

.hero-inner__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   TICKER
   ═══════════════════════════════════════════════════════════ */
.ticker {
  height: 36px;
  background: rgba(var(--c1-rgb), 0.04);
  border-top: 1px solid rgba(var(--c1-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--c1-rgb), 0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 72s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(var(--c1-rgb), 0.6);
  padding: 0 28px;
  text-transform: uppercase;
  position: relative;
}
.ticker__item::before {
  content: '◆';
  font-size: 6px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--c1-rgb), 0.35);
}

.opc-builder-page,
.opc-builder-page .elementor-widget,
.opc-builder-page .elementor-widget-container,
.opc-builder-page .elementor-widget-text-editor,
.opc-builder-page .elementor-heading-title,
.opc-builder-page p,
.opc-builder-page li,
.opc-builder-page h1,
.opc-builder-page h2,
.opc-builder-page h3,
.opc-builder-page h4,
.opc-builder-page h5,
.opc-builder-page h6,
.opc-builder-page pre,
.opc-builder-page code,
.opc-builder-page .elementor-widget-text-editor pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.opc-builder-page pre,
.opc-builder-page .elementor-widget-text-editor pre {
  white-space: pre-wrap;
}

.opc-builder-page img,
.opc-builder-page video,
.opc-builder-page iframe,
.opc-builder-page embed,
.opc-builder-page object,
.opc-builder-page table {
  max-width: 100%;
}

.opc-builder-page img,
.opc-builder-page video {
  height: auto;
}

.opc-builder-page table {
  display: block;
  overflow-x: auto;
}

.opc-builder-page .btn,
.opc-builder-page .elementor-button,
.opc-builder-page .elementor-button-text {
  min-width: 0;
}

@media (max-width: 640px) {
  .opc-builder-page .btn,
  .opc-builder-page .elementor-button,
  .opc-builder-page .elementor-button-text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 80px 0;
  position: relative;
}

.section--dark  { background: var(--bg0); }
.section--darker { background: rgba(0,0,0,0.35); }
.section--accent { background: rgba(var(--c1-rgb), 0.03); border-top: 1px solid rgba(var(--c1-rgb), 0.1); border-bottom: 1px solid rgba(var(--c1-rgb), 0.1); }
.section--accent2 { background: rgba(var(--c2-rgb), 0.03); border-top: 1px solid rgba(var(--c2-rgb), 0.12); border-bottom: 1px solid rgba(var(--c2-rgb), 0.12); }
.section--green { background: rgba(var(--c3-rgb), 0.02); border-top: 1px solid rgba(var(--c3-rgb), 0.1); border-bottom: 1px solid rgba(var(--c3-rgb), 0.1); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 12px;
}

.section-head__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.section-head__title--orange { color: var(--c2); text-shadow: var(--glow2); }
.section-head__title--cyan   { color: var(--c1); text-shadow: var(--glow1); }
.section-head__title--green  { color: var(--c3); }

.section-head__sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Decorative divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   GRID SYSTEM
   ═══════════════════════════════════════════════════════════ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
}
.card:hover { border-color: rgba(var(--c1-rgb), 0.4); transform: translateY(-2px); }

.card--cyan   { border-color: rgba(var(--c1-rgb), 0.25); }
.card--orange { border-color: rgba(var(--c2-rgb), 0.25); }
.card--green  { border-color: rgba(var(--c3-rgb), 0.2); }

.card__img {
  position: relative;
  overflow: hidden;
  background: var(--bg0);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__img img { transform: scale(1.04); }

.card__img--placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 4px,
    transparent 4px,
    transparent 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__body {
  padding: 24px;
}

.card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c1);
  margin-bottom: 10px;
}
.card__label--orange { color: var(--c2); }
.card__label--green  { color: var(--c3); }

.card__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   HOME — CHI SIAMO STRIP
   ═══════════════════════════════════════════════════════════ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-strip__img {
  position: relative;
  min-height: 380px;
  background: var(--bg0);
  overflow: hidden;
}
.about-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about-strip__img--placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 4px,
    transparent 4px,
    transparent 12px
  );
}

.about-strip__content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid var(--line);
}

.about-strip__content h2 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--c2);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-strip__content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   SERVIZI CARDS
   ═══════════════════════════════════════════════════════════ */
.service-card {
  background: var(--bg2);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color, var(--c1));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { border-color: rgba(var(--c1-rgb), 0.4); }

.service-card--cyan   { border: 1px solid rgba(var(--c1-rgb), 0.2); --accent-color: var(--c1); }
.service-card--orange { border: 1px solid rgba(var(--c2-rgb), 0.2); --accent-color: var(--c2); }
.service-card--green  { border: 1px solid rgba(var(--c3-rgb), 0.15); --accent-color: var(--c3); }

.service-card__icon {
  font-size: 32px;
  line-height: 1;
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.service-card--cyan   .service-card__title { color: var(--c1); }
.service-card--orange .service-card__title { color: var(--c2); }
.service-card--green  .service-card__title { color: var(--c3); }

.service-card__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   NEWS STRIP
   ═══════════════════════════════════════════════════════════ */
.news-strip {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-strip__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.news-strip__item:last-child { border-bottom: none; }

.news-strip__thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg0);
}
.news-strip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-strip__title {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--c1);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-strip__excerpt {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════ */
.cta-banner {
  background: rgba(var(--c2-rgb), 0.04);
  border-top: 1px solid rgba(var(--c2-rgb), 0.18);
  padding: 32px 0;
}

.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner__text {
  font-family: var(--font-head);
  font-size: clamp(15px, 2vw, 22px);
  color: var(--c2);
  letter-spacing: 0.04em;
}

.cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE SPECIFICS
   ═══════════════════════════════════════════════════════════ */
.mission-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.mission-split__content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.mission-split__img {
  position: relative;
  overflow: hidden;
  background: var(--bg0);
  border-left: 1px solid var(--line);
}
.mission-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

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

.value-card {
  padding: 32px 28px;
  background: var(--bg2);
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.value-card--cyan   { border: 1px solid rgba(var(--c1-rgb), 0.25); }
.value-card--orange { border: 1px solid rgba(var(--c2-rgb), 0.25); }
.value-card--green  { border: 1px solid rgba(var(--c3-rgb), 0.2); }

.value-card__icon { font-size: 36px; }
.value-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.value-card--cyan   .value-card__title { color: var(--c1); }
.value-card--orange .value-card__title { color: var(--c2); }
.value-card--green  .value-card__title { color: var(--c3); }
.value-card__text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card__avatar {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg0);
  border: 1px solid var(--line);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
}
.team-card__role {
  font-size: 12px;
  color: var(--c1);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--c1), transparent);
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: 0 0 10px rgba(var(--c1-rgb), 0.6);
}

.timeline-item__year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c1);
  letter-spacing: 0.1em;
  min-width: 60px;
  font-weight: 700;
}
.timeline-item:nth-child(even) .timeline-item__year { color: var(--c2); }
.timeline-item:nth-child(even)::before { background: var(--c2); box-shadow: 0 0 10px rgba(var(--c2-rgb), 0.6); }

.timeline-item__text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   SERVIZI PAGE
   ═══════════════════════════════════════════════════════════ */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.service-split__img {
  position: relative;
  overflow: hidden;
  background: var(--bg0);
}
.service-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.service-split__img--placeholder {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 4px, transparent 4px, transparent 12px);
}

.service-split__content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}
.service-badge--cyan   { color: var(--c1); border: 1px solid rgba(var(--c1-rgb),0.4); background: rgba(var(--c1-rgb),0.08); }
.service-badge--orange { color: var(--c2); border: 1px solid rgba(var(--c2-rgb),0.4); background: rgba(var(--c2-rgb),0.08); }
.service-badge--green  { color: var(--c3); border: 1px solid rgba(var(--c3-rgb),0.3); background: rgba(var(--c3-rgb),0.05); }

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.tag--cyan   { color: var(--c1); border: 1px solid rgba(var(--c1-rgb),0.35); background: rgba(var(--c1-rgb),0.06); }
.tag--orange { color: var(--c2); border: 1px solid rgba(var(--c2-rgb),0.35); background: rgba(var(--c2-rgb),0.06); }

/* How it works steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step-counter;
}

.step-card {
  background: var(--bg2);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card__num {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  color: rgba(var(--c2-rgb), 0.15);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}

.step-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--c2);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.step-card:nth-child(2) .step-card__title { color: var(--text); }
.step-card:nth-child(3) .step-card__title { color: var(--c1); }

.step-card__text { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--c1);
  color: var(--c1);
  background: rgba(var(--c1-rgb), 0.08);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg0);
  cursor: pointer;
}
.gallery-item:nth-child(3n+1) { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
  transition: transform 0.4s ease, filter 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(0.7); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--c1-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__icon {
  color: var(--c1);
  font-size: 32px;
  text-shadow: var(--glow1);
}

.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { color: var(--c1); }

/* ═══════════════════════════════════════════════════════════
   BLOG / NEWS
   ═══════════════════════════════════════════════════════════ */
.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.post-featured__img {
  position: relative;
  overflow: hidden;
  background: var(--bg0);
  border-right: 1px solid var(--line);
}
.post-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.post-featured__content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.post-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c2);
  border: 1px solid rgba(var(--c2-rgb), 0.35);
  background: rgba(var(--c2-rgb), 0.06);
  padding: 4px 12px;
  border-radius: var(--radius);
}
.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.post-title {
  font-family: var(--font-head);
  font-size: clamp(16px, 2vw, 26px);
  color: var(--c1);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.post-excerpt {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: rgba(var(--c1-rgb), 0.35); transform: translateY(-3px); }

.blog-card__img {
  height: 180px;
  overflow: hidden;
  background: var(--bg0);
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__img img { transform: scale(1.05); }

.blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.blog-card__excerpt {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}
.blog-card__link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}
.blog-card__link:hover { color: var(--c2); }

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 48px;
}
.page-numbers {
  font-family: var(--font-mono);
  font-size: 13px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  transition: all var(--transition);
}
.page-numbers:hover,
.page-numbers.current {
  border-color: var(--c1);
  color: var(--c1);
  background: rgba(var(--c1-rgb), 0.1);
}

/* Newsletter */
.newsletter-bar {
  background: rgba(var(--c2-rgb), 0.04);
  border-top: 1px solid rgba(var(--c2-rgb), 0.15);
  padding: 28px 0;
}
.newsletter-bar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.newsletter-bar__label {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--c2);
  letter-spacing: 0.05em;
  flex: 1;
  min-width: 200px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c1);
  background: rgba(var(--c1-rgb), 0.04);
  box-shadow: 0 0 0 3px rgba(var(--c1-rgb), 0.08);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { min-height: 120px; resize: vertical; }

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
}

.form-privacy input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--c1);
  flex: 0 0 auto;
}

.form-privacy a {
  color: var(--c1);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--c1-rgb), 0.35);
}

.form-privacy a:hover,
.form-privacy a:focus-visible {
  border-bottom-color: var(--c1);
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-mono);
  display: none;
}
.form-alert.success { background: rgba(57,255,20,0.08); border: 1px solid rgba(57,255,20,0.3); color: var(--c3); }
.form-alert.error   { background: rgba(255,0,80,0.08); border: 1px solid rgba(255,0,80,0.3); color: #ff3060; }
.form-alert.show { display: block; }

/* ═══════════════════════════════════════════════════════════
   CONTATTI PAGE
   ═══════════════════════════════════════════════════════════ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}

.contact-split__form {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--line);
}

.contact-split__info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-map {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg0);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(0.7);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
}
.contact-info-item__icon { color: var(--c1); font-size: 16px; flex-shrink: 0; }

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--c1-rgb), 0.3);
  color: var(--c1);
  background: rgba(var(--c1-rgb), 0.05);
  transition: all var(--transition);
}
.social-link:hover { background: rgba(var(--c1-rgb), 0.15); box-shadow: var(--glow1); color: var(--c1); }

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.hour-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.hour-card__day { font-family: var(--font-head); font-size: 11px; color: var(--c1); letter-spacing: 0.1em; margin-bottom: 6px; }
.hour-card__time { font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════
   PRENOTAZIONI
   ═══════════════════════════════════════════════════════════ */
.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin-bottom: 48px;
}
.booking-step {
  background: var(--bg1);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.booking-step.active { opacity: 1; }
.booking-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all var(--transition);
}
.booking-step.active .booking-step__num {
  border-color: var(--c1);
  color: var(--c1);
  box-shadow: 0 0 8px rgba(var(--c1-rgb), 0.4);
}
.booking-step__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.booking-step.active .booking-step__label { color: var(--c1); }

.service-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.service-option {
  border-radius: 6px;
  padding: 28px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.service-option--cyan   { background: rgba(var(--c1-rgb),0.05); border: 1.5px solid rgba(var(--c1-rgb),0.2); }
.service-option--orange { background: rgba(var(--c2-rgb),0.05); border: 1.5px solid rgba(var(--c2-rgb),0.2); }
.service-option--green  { background: rgba(var(--c3-rgb),0.03); border: 1.5px solid rgba(var(--c3-rgb),0.15); }

.service-option:hover { transform: translateY(-2px); }
.service-option--cyan:hover { border-color: var(--c1); box-shadow: var(--glow1); }
.service-option--orange:hover { border-color: var(--c2); box-shadow: var(--glow2); }
.service-option.selected { border-width: 2px; }
.service-option--cyan.selected   { border-color: var(--c1); background: rgba(var(--c1-rgb),0.1); }
.service-option--orange.selected { border-color: var(--c2); background: rgba(var(--c2-rgb),0.1); }
.service-option--green.selected  { border-color: var(--c3); background: rgba(var(--c3-rgb),0.07); }

.service-option__icon { font-size: 32px; }
.service-option__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.service-option--cyan .service-option__title   { color: var(--c1); }
.service-option--orange .service-option__title { color: var(--c2); }
.service-option--green .service-option__title  { color: var(--c3); }
.service-option__sub { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.calendar-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calendar-widget {
  background: var(--bg2);
  border: 1px solid rgba(var(--c1-rgb), 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.calendar-widget__head {
  background: rgba(var(--c1-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--c1-rgb), 0.15);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-widget__month {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--c1);
  letter-spacing: 0.1em;
}
.calendar-widget__nav {
  display: flex;
  gap: 8px;
}
.calendar-nav-btn {
  background: transparent;
  border: 1px solid rgba(var(--c1-rgb), 0.3);
  color: var(--c1);
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.calendar-nav-btn:hover { background: rgba(var(--c1-rgb), 0.1); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 16px;
}
.calendar-day-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
  letter-spacing: 0.1em;
}
.calendar-day {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.calendar-day:hover:not(.disabled) { border-color: var(--c1); color: var(--c1); background: rgba(var(--c1-rgb), 0.08); }
.calendar-day.available { color: var(--c1); }
.calendar-day.selected { background: var(--c1); color: var(--bg0); font-weight: 700; }
.calendar-day.disabled { opacity: 0.2; cursor: default; }
.calendar-day.today { border-color: rgba(var(--c2-rgb), 0.5); color: var(--c2); }

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-slots__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.slot-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--c1-rgb), 0.2);
  color: var(--c1);
  background: rgba(var(--c1-rgb), 0.04);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.slot-btn:hover { background: rgba(var(--c1-rgb), 0.12); }
.slot-btn.selected { background: var(--c1); color: var(--bg0); font-weight: 700; border-color: var(--c1); }
.slot-btn.unavailable { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}
.faq-item__q {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--c2);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.faq-item__a { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════ */
.post-content {
  max-width: 780px;
  margin: 0 auto;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-head);
  color: var(--c1);
  letter-spacing: 0.04em;
  margin: 32px 0 16px;
}
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 18px; }
.post-content p { margin-bottom: 20px; line-height: 1.75; color: var(--text-dim); }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; color: var(--text-dim); line-height: 1.75; }
.post-content blockquote {
  border-left: 3px solid var(--c1);
  padding: 16px 24px;
  background: rgba(var(--c1-rgb), 0.04);
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
}
.post-content code {
  background: rgba(var(--c1-rgb), 0.08);
  border: 1px solid rgba(var(--c1-rgb), 0.2);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--c1);
}
.post-content pre {
  background: var(--bg0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg0);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
}

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

.footer-brand__logo {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--c1);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.footer-brand__tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-family: var(--font-mono);
}

.footer-nav__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--c1); }

.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact__item {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact__item span { color: var(--c1); }

.footer-social { display: flex; flex-direction: column; gap: 14px; }
.footer-social__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-social__links { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-bottom__credits {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   PAGE CONTENT FALLBACK
   ═══════════════════════════════════════════════════════════ */
.page-content {
  padding-top: var(--nav-h);
}

.page-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px;
}

/* ═══════════════════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════════════════ */
.error-404-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.error-404__code {
  font-family: var(--font-head);
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900;
  color: rgba(var(--c1-rgb), 0.1);
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: -20px;
}
.error-404__title {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--c1);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.error-404__sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.text-cyan    { color: var(--c1); }
.text-orange  { color: var(--c2); }
.text-green   { color: var(--c3); }
.text-dim     { color: var(--text-dim); }
.text-muted   { color: var(--text-muted); }
.font-mono    { font-family: var(--font-mono); }
.font-head    { font-family: var(--font-head); }
.uppercase    { text-transform: uppercase; letter-spacing: 0.1em; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --nav-h: 60px; }

  .primary-nav,
  .nav-cta {
    display: none;
  }

  .nav-inner {
    padding: 0 clamp(16px, 5vw, 32px);
  }

  .site-header {
    background: rgba(10,10,20,0.86);
    border-bottom-color: var(--nav-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
  }

  .mobile-nav {
    z-index: 1001;
  }

  .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .values-grid, .service-selector, .booking-steps,
  .blog-grid, .gallery-grid, .steps, .hours-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-cinema__ctas { flex-direction: column; }
  .hero-inner { height: 220px; }

  .about-strip,
  .mission-split,
  .service-split,
  .post-featured,
  .contact-split,
  .grid-2,
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .about-strip__img,
  .mission-split__img,
  .service-split__img { min-height: 240px; }

  .about-strip__content,
  .mission-split__content,
  .service-split__content,
  .contact-split__form,
  .contact-split__info { padding: 32px 24px; }

  .section { padding: 48px 0; }

  .grid-3, .values-grid, .service-selector, .steps,
  .gallery-grid, .blog-grid, .faq-grid { grid-template-columns: 1fr; }

  .gallery-item:nth-child(3n+1) { grid-row: auto; }

  .booking-steps { grid-template-columns: 1fr; }
  .calendar-slots { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }

  .container { padding: 0 20px; }
  .hero-cinema__content { padding: 0 20px; }
  .hero-inner__content { padding: 0 20px; }

  .post-featured { grid-template-columns: 1fr; }
  .newsletter-bar .container { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form .form-input { width: 100%; }
}

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

/* ── HERO: circuiti, ingranaggio, logo fluttuante ─────────────── */

.hero-circuit {
  position: absolute;
  right: 0; top: 0;
  width: 55%; height: 100%;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.circuit-line {
  stroke: var(--c1);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: circuit-draw 3s ease forwards;
}
.circuit-line--orange { stroke: var(--c2); }
.circuit-line--green  { stroke: var(--c3); }
.circuit-line:nth-child(1) { animation-delay: .2s; }
.circuit-line:nth-child(2) { animation-delay: .5s; }
.circuit-line:nth-child(3) { animation-delay: .8s; }
.circuit-line:nth-child(4) { animation-delay: 1.1s; }
.circuit-line:nth-child(5) { animation-delay: 1.4s; }
.circuit-line:nth-child(6) { animation-delay: .6s; }
.circuit-line:nth-child(7) { animation-delay: .9s; }
.circuit-line:nth-child(8) { animation-delay: 1.2s; }

@keyframes circuit-draw { to { stroke-dashoffset: 0; } }

.circuit-dot {
  fill: var(--c1);
  animation: circuit-pulse 2s ease-in-out infinite;
}
.circuit-dot--orange { fill: var(--c2); }
.circuit-dot--green  { fill: var(--c3); }
.circuit-dot:nth-child(odd) { animation-delay: 1s; }

@keyframes circuit-pulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}

.hero-gear {
  position: absolute;
  right: 6%; top: 50%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  opacity: .10;
  animation: gear-spin 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gear-spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-logo-glow {
  position: absolute;
  right: 7%; top: 50%;
  transform: translateY(-50%);
  width: 260px; height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.hero-logo-glow::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c1-rgb),.14) 0%, rgba(var(--c2-rgb),.07) 40%, transparent 70%);
  animation: logo-glow-pulse 3s ease-in-out infinite;
}
@keyframes logo-glow-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.06); }
}
.hero-logo-glow img {
  width: 220px; height: 220px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 0 28px rgba(0,200,255,.45)) drop-shadow(0 0 56px rgba(255,106,0,.2));
  animation: logo-float 4s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* hero-cinema: il contenuto testo occupa solo metà sinistra quando c'è il logo */
.hero-cinema .hero-cinema__content {
  max-width: 52%;
}

/* mobile: riposiziona elementi hero sotto 900px */
@media (max-width: 900px) {
  .hero-cinema .hero-cinema__content { max-width: 100%; }

  /* circuiti: coprono tutto lo schermo, più trasparenti */
  .hero-circuit {
    width: 100%;
    opacity: 0.25;
  }

  /* ingranaggio: centrato in basso, molto trasparente */
  .hero-gear {
    right: 50%;
    transform: translate(50%, -50%);
    width: 180px;
    height: 180px;
    opacity: 0.06;
  }

  /* logo: assoluto, centrato in alto nell'hero */
  .hero-logo-glow {
    right: auto;
    left: 50%;
    top: 11%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 3;
  }
  .hero-logo-glow img {
    width: 124px;
    height: 124px;
  }
  .hero-logo-glow::before {
    inset: -26px;
  }

  /* spinge il contenuto testo verso il basso per non sovrapporsi al logo */
  .hero-cinema__content {
    margin-top: 112px;
  }
}
