/* ============================================
   CO-MUNICA — Design System
   Dark editorial, accent #85ea3d
   ============================================ */

:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --bg-4: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(133,234,61,0.3);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #85ea3d;
  --accent-dark: #6bc42f;
  --accent-glow: rgba(133,234,61,0.15);
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-pad {
  padding: 120px 0;
}

.section-pad--lg {
  padding: 160px 0;
}

.section-pad--sm {
  padding: 80px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 14px 0;
  gap: 6px;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn svg { flex-shrink: 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  background: #fff;
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0,0,0,0.1);
}

.nav.scrolled .nav__links a { color: #0a0a0a; }
.nav.scrolled .nav__links a:hover,
.nav.scrolled .nav__links a.active { color: var(--accent); }
.nav.scrolled .nav__hamburger span { background: #0a0a0a; }

.nav__logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin-left: auto;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover, .nav__links a.active {
  color: var(--white);
}

/* Dropdown */
.nav__item { position: relative; }

/* ── Megamenu ── */
.nav__item-toggle { display: flex; align-items: center; gap: 5px; }
.nav__caret { font-size: 12px; transition: transform 0.2s ease; }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

.nav__megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.3s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 460px;
  z-index: 200;
}

.nav__item:hover .nav__megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.megamenu__col {
  flex: 1;
  min-width: 200px;
}

.megamenu__col + .megamenu__col {
  border-left: 1px solid rgba(0,0,0,0.07);
  padding-left: 16px;
  margin-left: 8px;
}

.megamenu__group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  padding: 4px 10px 10px;
}

.megamenu__link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0a0a0a !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.megamenu__link i { display: none; }

.megamenu__link:hover {
  background: rgba(133,234,61,0.1);
  color: #0a0a0a;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 40px;
}

.nav .btn--primary:hover {
  background: #fff;
  color: #000;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 32px;
  z-index: 99;
  overflow-y: auto;
}

.nav__mobile.open { display: block; }

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

.nav__mobile-links a {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__mobile-links a:hover { color: var(--accent); }

/* ── Hero Split (2 colonne, sfondo bianco) ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background: #fff;
  overflow: hidden;
}

.hero-split__left {
  display: flex;
  align-items: center;
  padding: 80px 64px 80px 80px;
}

.hero-split__content {
  max-width: 560px;
}

.hero-split__title {
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #0a0a0a;
  margin: 20px 0 28px;
}

.hero-split__title em {
  font-style: normal;
  color: var(--accent);
}

.hero-split__sub {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 460px;
}

.hero-split__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Override btn--ghost colore su sfondo bianco */
.hero-split .btn--ghost {
  color: #333;
}
.hero-split .btn--ghost:hover {
  color: var(--accent);
}

.hero-split__right {
  position: relative;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-split__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  max-height: 100vh;
}

/* kicker su sfondo bianco */
.hero-split .hero__kicker-dot {
  background: var(--accent);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-split__left {
    padding: 100px 32px 48px;
    order: 2;
  }
  .hero-split__right {
    order: 1;
    height: 60vw;
    min-height: 320px;
  }
  .hero-split__img {
    object-fit: cover;
    object-position: top center;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(133,234,61,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(133,234,61,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(72px, 11vw, 160px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Big number decoration */
.hero__number {
  position: absolute;
  right: -20px;
  bottom: 80px;
  font-size: clamp(200px, 25vw, 360px);
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.06em;
  user-select: none;
}

/* ── Section header ── */
.section-header {
  margin-bottom: 64px;
}

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

.section-header h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.section-header--center p {
  margin: 0 auto;
}

/* ── Servizi Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg-2);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-3);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--accent-glow);
  border-color: var(--border-hover);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.service-card__list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.service-card__link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.service-card:hover .service-card__link { gap: 10px; }

.service-card--light { background: #fff; }
.service-card--light:hover { background: #f9f9f9; }
.service-card--light .service-card__icon { background: #f0f0f0; border-color: #e0e0e0; }
.service-card--light .service-card__icon i { color: var(--accent); }
.service-card--light h3 { color: #0a0a0a; }
.service-card--light p { color: #555; }
.service-card--light .service-card__list li { color: #555; }

/* ── Perché sceglierci ── */
.perche {
  background: var(--bg-2);
}

.perche__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.perche__left h2 {
  font-size: clamp(36px, 4vw, 58px);
  margin-bottom: 24px;
}

.perche__left p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.perche__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-lg);
}

.stat__number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 13px;
  color: #555;
}

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

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: rgba(0,0,0,0.15);
  background: #e8e8e8;
}

.feature-item__icon { display: none; }

.feature-item__body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 4px;
}

.feature-item__body p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ── Servizi Slider Section ── */
.servizi-slider-section { background: var(--bg); }

.srvrow {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.srvrow--reverse { grid-template-columns: 1fr 280px; }
.srvrow--reverse .srvrow__info { order: 2; }
.srvrow--reverse .srvrow__slider { order: 1; }

.srvrow__info .label { margin-bottom: 12px; }
.srvrow__info h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.05; margin-bottom: 16px; }
.srvrow__info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; max-width: 240px; }

.srvrow__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  transition: color var(--transition);
}
.srvrow__cta:hover { color: var(--accent); }
.srvrow__cta i { font-size: 16px; transition: transform var(--transition); }
.srvrow__cta:hover i { transform: translateX(4px); }

.srvrow__slider { overflow: hidden; position: relative; }

.srvrow__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.srv-card {
  flex: 0 0 calc((100% - 32px) / 3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.srv-card__visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.srv-card__visual i { opacity: 0.9; }

.srv-card__visual--web1 { background: linear-gradient(135deg, #0f1923 0%, #1a2e3d 100%); color: var(--accent); }
.srv-card__visual--web2 { background: linear-gradient(135deg, #111827 0%, #1f2d3d 100%); color: #a78bfa; }
.srv-card__visual--web3 { background: linear-gradient(135deg, #0d1f12 0%, #1a3326 100%); color: var(--accent); }
.srv-card__visual--web4 { background: linear-gradient(135deg, #1a1a0d 0%, #2e2e0f 100%); color: #fbbf24; }
.srv-card__visual--web5 { background: linear-gradient(135deg, #1a0d1a 0%, #2e1030 100%); color: #f472b6; }

.srv-card__visual--g1 { background: linear-gradient(135deg, #1a0d00 0%, #3d2000 100%); color: #fb923c; }
.srv-card__visual--g2 { background: linear-gradient(135deg, #001a1a 0%, #003333 100%); color: var(--accent); }
.srv-card__visual--g3 { background: linear-gradient(135deg, #0d0d1a 0%, #1a1a3d 100%); color: #818cf8; }
.srv-card__visual--g4 { background: linear-gradient(135deg, #1a000d 0%, #3d001a 100%); color: #f43f5e; }
.srv-card__visual--g5 { background: linear-gradient(135deg, #001a0d 0%, #003320 100%); color: var(--accent); }

.srv-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--accent);
  gap: 8px;
}
.srv-card__caption span {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}
.srv-card__btn {
  color: #000;
  font-size: 22px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.srv-card__btn:hover { transform: scale(1.15); }

.srvrow__dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-left: 2px;
}
.srvdot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  padding: 0;
}
.srvdot.active { background: var(--accent); width: 48px; }

.srvrow-divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}

/* ── Processo ── */
.processo__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  counter-reset: step;
}

.step {
  background: var(--bg-2);
  padding: 48px 36px;
  position: relative;
  transition: var(--transition);
}

.step:hover { background: var(--bg-3); }

.step__number {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(133,234,61,0.1);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--transition);
}

.step:hover .step__number { color: rgba(133,234,61,0.2); }

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ── Case Study ── */
/* ── Mosaic Grid (Case Study) ── */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.mosaic-item--wide  { grid-column: span 2; }
.mosaic-item--sm    { grid-column: span 1; }
.mosaic-item--spotlight { grid-column: span 1; }

.mosaic-item__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
}

.mosaic-item:hover .mosaic-item__bg { transform: scale(1.04); }

/* hover overlay */
.mosaic-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.mosaic-item:hover .mosaic-item__overlay { background: rgba(0,0,0,0.55); }

.mosaic-item__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.mosaic-item__name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.mosaic-item:hover .mosaic-item__cat,
.mosaic-item:hover .mosaic-item__name {
  opacity: 1;
  transform: translateY(0);
}

/* spotlight items (always visible content) */
.mosaic-item__spotlight-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  gap: 10px;
}

.mosaic-item__spotlight-name {
  font-size: 28px;
  font-weight: 900;
  color: #000;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mosaic-item__spotlight-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  margin-top: 4px;
}

/* ── Old case studies ── */
.case-studies { background: var(--bg-2); }

.case-studies__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  transition: var(--transition);
  group: '';
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-card__image {
  height: 260px;
  background: var(--bg-4);
  overflow: hidden;
  position: relative;
}

.case-card__image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

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

.case-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.05);
}

.case-card__body { padding: 32px; }

.case-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag--accent {
  background: var(--accent-glow);
  border-color: var(--border-hover);
  color: var(--accent);
}

.case-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.case-card:hover .case-card__link { gap: 10px; }

/* ── Testimonials ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: #ccc;
  background: #eeeeee;
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #85ea3d;
  flex-shrink: 0;
}

.testimonial-card__info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}

.testimonial-card__info span {
  font-size: 12px;
  color: #777;
}

/* ── CTA Band ── */
.cta-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  max-width: 600px;
}

.cta-band h2 em {
  font-style: normal;
  color: var(--accent);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.cta-band__note {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Footer ── */
footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 80px 0 40px;
  color: #0a0a0a;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand {
  padding-right: 48px;
}

.footer__brand p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 260px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0a0a0a;
}

.footer__logo span { color: var(--accent); }

.footer__col {
  padding-left: 48px;
  border-left: 1px solid rgba(0,0,0,0.1);
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 14px;
  color: #555;
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--accent); }
.footer__col ul a[href^="mailto"] { white-space: nowrap; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
  gap: 24px;
}

.footer__bottom p {
  font-size: 13px;
  color: #555;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: var(--transition);
}

.footer__social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__seo {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(133,234,61,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .label { margin-bottom: 20px; }

.page-hero h1 {
  font-size: clamp(36px, 4vw, 62px);
  max-width: 1000px;
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── About specific ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
}

.value-card__num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(133,234,61,0.15);
  margin-bottom: 16px;
  line-height: 1;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-card__photo {
  height: 200px;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(133,234,61,0.2);
}

.team-card__info {
  padding: 24px;
}

.team-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: var(--accent);
}

/* ── Portfolio ── */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

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

/* Portfolio page — light card theme */
.portfolio-grid .case-card {
  background: #f0f0f0;
  border-color: #e0e0e0;
}
.portfolio-grid .case-card:hover {
  border-color: #ccc;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.portfolio-grid .case-card__image {
  background: #f5f5f5;
}
.portfolio-grid .case-card__body {
  background: #f2f2f2;
}
.portfolio-grid .case-card h3 {
  color: #0a0a0a;
}
.portfolio-grid .case-card p {
  color: #555;
}
.portfolio-grid .tag {
  background: #f0f0f0;
  border-color: #e0e0e0;
  color: #444;
}
.portfolio-grid .tag--accent {
  background: rgba(133,234,61,0.12);
  border-color: rgba(133,234,61,0.4);
  color: #3a7a00;
}
.portfolio-filters .filter-btn {
  border-color: #e0e0e0;
  color: #555;
}

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

.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.blog-card__img {
  height: 200px;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card__body { padding: 28px; }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { height: 140px; resize: vertical; }

.form-group select option { background: var(--bg-3); }

.contact-info { padding-top: 20px; }

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-detail:hover {
  border-color: var(--border-hover);
}

.contact-detail__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Contact light theme ── */
.contact-section--light .contact-form {
  background: #f7f7f7;
  border-color: rgba(0,0,0,0.1);
}
.contact-section--light .contact-form h3,
.contact-section--light .contact-info h3 { color: #0a0a0a; }
.contact-section--light .contact-form p,
.contact-section--light .contact-info p { color: #555; }
.contact-section--light .form-group label { color: #444; }
.contact-section--light .form-group input,
.contact-section--light .form-group textarea,
.contact-section--light .form-group select {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
  color: #0a0a0a;
}
.contact-section--light .contact-detail {
  background: #f7f7f7;
  border-color: rgba(0,0,0,0.1);
}
.contact-section--light .contact-detail:hover { border-color: var(--accent); }
.contact-section--light .contact-detail strong { color: #0a0a0a; }
.contact-section--light .contact-detail span { color: #555; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg-2);
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border: none;
  transition: var(--transition);
}

.faq-question:hover { background: var(--bg-3); }
.faq-item.open .faq-question { background: var(--bg-3); color: var(--accent); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon svg { stroke: #000; transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}

.faq-answer__inner {
  padding: 0 28px 28px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--bg-3);
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ── FAQ light theme ── */
.faq-section--light h2,
.faq-section--light .section-header h2 { color: #0a0a0a; }
.faq-section--light .label { color: #444; }
.faq-section--light .faq-item { border-color: rgba(0,0,0,0.15); }
.faq-section--light .faq-item.open { border-color: var(--accent); }
.faq-section--light .faq-question {
  background: #ffffff8c;
  color: #0a0a0a;
}
.faq-section--light .faq-question:hover { background: #f5f5f5; }
.faq-section--light .faq-item.open .faq-question { background: #f5f5f5; color: var(--accent); }
.faq-section--light .faq-icon { border-color: rgba(0,0,0,0.2); }
.faq-section--light .faq-answer__inner {
  background: #f5f5f5;
  color: #333;
}

/* ── Marquee ── */
.marquee-section {
  padding: 40px 0;
  background: #ececec;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 600;
  color: #0a0a0a;
}

.marquee-item span { color: var(--accent); }

/* ── Phosphor Icons ── */
.service-card__icon i,
.feature-item__icon i,
.contact-detail__icon i {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.testimonial-card__stars i {
  font-size: 15px;
  color: var(--accent);
}

.btn i {
  font-size: 16px;
  vertical-align: middle;
  flex-shrink: 0;
}

.faq-icon i {
  font-size: 13px;
  line-height: 1;
  color: currentColor;
}

.faq-item.open .faq-icon i { color: #000; }

.footer__social i { font-size: 16px; }

.nav__dropdown a i {
  font-size: 14px;
  color: var(--accent);
  margin-right: 4px;
  vertical-align: middle;
}

/* ── Utility ── */
.divider {
  height: 1px;
  background: var(--border);
}

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

.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }

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

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb__sep { color: var(--text-dim); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .srvrow { grid-template-columns: 220px 1fr; gap: 32px; }
  .srvrow--reverse { grid-template-columns: 1fr 220px; }
  .srv-card { flex: 0 0 calc((100% - 16px) / 2); }
  .processo__steps { grid-template-columns: repeat(2, 1fr); }
  .perche__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Service page case study cards */
.srv-casestudy { background: #fff; }
.srv-casestudy h2 { margin-bottom: 40px; color: #0a0a0a; }
.srv-casestudy .label { color: var(--accent); }
.srv-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.srv-cs-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f2;
  border: 1px solid #e8e8e8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.srv-cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}
.srv-cs-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #ddd center/cover no-repeat;
}
.srv-cs-card__body {
  padding: 20px 22px 22px;
}
.srv-cs-card__cat {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.srv-cs-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.srv-cs-card__link {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

@media (max-width: 768px) {
  .srvrow, .srvrow--reverse { grid-template-columns: 1fr; gap: 28px; }
  .srvrow--reverse .srvrow__info { order: 0; }
  .srvrow--reverse .srvrow__slider { order: 0; }
  .srvrow__info p { max-width: 100%; }
  .srv-card { flex: 0 0 80%; }
  .srvrow-divider { margin: 40px 0; }
  .container, .container--wide { padding: 0 20px; }
  .section-pad { padding: 80px 0; }
  .section-pad--lg { padding: 100px 0; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .processo__steps { grid-template-columns: 1fr; }
  .case-studies__grid { grid-template-columns: 1fr; }
  .srv-cs-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .hero__number { display: none; }
  .hero__scroll { display: none; }
  .perche__stats { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 0 60px; }
  .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .perche__stats { grid-template-columns: 1fr; }
}
