/*
Theme Name: GeneratePress Child
Template: generatepress
*/

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

:root {
  --lime: #C6F432;
  --black: #0A0A0A;
  --off-white: #FAFAF7;
  --font: 'Geist', -apple-system, sans-serif;
}

/* ── PARTICLE CANVAS ── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ── ATTO 1: HERO ── */
.gp-hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font);
}

.gp-hero-wrap nav.hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.gp-hero-wrap .nav-logo {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--off-white);
  text-decoration: none;
}

.gp-hero-wrap .nav-logo span { color: var(--lime); }

.gp-hero-wrap .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.gp-hero-wrap .nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(250,250,247,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.gp-hero-wrap .nav-links a:hover { color: var(--off-white); }

.gp-hero-wrap .nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--black) !important;
  background: var(--lime);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
}

/* Mobile menu toggle (hamburger) */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-mobile-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--off-white);
  transition: all 0.3s ease;
}
.nav-mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 99;
  padding: 90px 24px 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  color: var(--off-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.mobile-menu .nav-cta {
  display: inline-block;
  margin-top: 12px;
  background: var(--lime);
  color: var(--black) !important;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
}

.gp-hero-wrap .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 30%,
    rgba(10,10,10,0.30) 55%,
    rgba(10,10,10,0.0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

.gp-hero-wrap .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 64px;
}

.gp-hero-wrap .hero-wordmark {
  font-size: clamp(80px, 12vw, 168px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: #ffffff;
  margin-bottom: 36px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.gp-hero-wrap .hero-wordmark .dot { color: var(--lime); }

.gp-hero-wrap .hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.gp-hero-wrap .hero-copy { max-width: 380px; }

.gp-hero-wrap .hero-desc {
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
  color: rgba(250,250,247,0.72);
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.gp-hero-wrap .hero-desc strong { color: var(--off-white); font-weight: 500; }

.gp-hero-wrap .hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.gp-hero-wrap .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  background: var(--lime);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.gp-hero-wrap .hero-cta:hover { opacity: 0.88; transform: translateY(-1px); }

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── ATTO 2: MANIFESTO ── */
.gp-manifesto {
  position: relative;
  width: 100%;
  background: rgba(10, 10, 10, 0.92);
  color: var(--off-white);
  font-family: var(--font);
  padding: 100px 48px 90px;
  overflow: hidden;
  z-index: 1;
}

.gp-manifesto-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-line {
  font-size: clamp(26px, 3.1vw, 46px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--off-white);
}

.manifesto-line.dim { color: rgba(250,250,247,0.32); }

.manifesto-line.accent {
  color: var(--lime);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 34px);
  letter-spacing: -0.015em;
  margin-top: 28px;
}

/* ── ATTO 3: SERVIZI ── */
.gp-services {
  position: relative;
  width: 100%;
  background: transparent;
  color: var(--off-white);
  font-family: var(--font);
  z-index: 1;
}

.services-intro {
  background: rgba(10, 10, 10, 0.92);
  padding: 80px 80px 70px;
  border-top: 1px solid rgba(250,250,247,0.08);
  position: relative;
}

.services-intro-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 24px;
}

.services-intro-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 900px;
}

.services-intro-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(250,250,247,0.5);
}

/* Stacked cards: pinned by GSAP, cards translate up via ScrollTrigger */
.stack-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* No background here — particles must be visible morphing grid → flow → network behind/around the cards */
}

.stack-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  will-change: transform;
}

/* z-index only — initial translateY is set by GSAP in scroll.js */
.stack-card[data-card="0"] { z-index: 1; }
.stack-card[data-card="1"] { z-index: 2; }
.stack-card[data-card="2"] { z-index: 3; }

.stack-card-inner {
  width: 100%;
  max-width: 1200px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 250, 247, 0.08);
  border-radius: 4px;
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 60px;
  align-items: center;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.stack-card-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-card-num {
  font-size: clamp(56px, 6.5vw, 110px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--lime);
}

.stack-card-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.55);
  font-weight: 500;
}

.stack-card-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 680px;
}

.stack-card-title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--off-white);
}

.stack-card-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--lime);
  letter-spacing: -0.01em;
}

.stack-card-body {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(250,250,247,0.72);
}

/* ── ATTO 4: BOOKING ── */
.gp-booking {
  position: relative;
  background: rgba(10, 10, 10, 0.92);
  padding: 80px 48px 100px;
  border-top: 1px solid rgba(250,250,247,0.04);
  z-index: 1;
}

.gp-booking-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.booking-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 20px;
}

.booking-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--off-white);
}

.booking-headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(250,250,247,0.55);
}

.booking-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: rgba(250,250,247,0.6);
  max-width: 640px;
  margin: 0 auto 56px;
}

.booking-embed {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(250,250,247,0.06);
  border-radius: 6px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.booking-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.placeholder-line {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,247,0.4);
}

.placeholder-cta {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--lime);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(198, 244, 50, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}

.placeholder-cta:hover { border-color: var(--lime); }

/* ── ATTO 4.5: TEAM ── */
.gp-team {
  position: relative;
  background: rgba(10, 10, 10, 0.92);
  padding: 100px 48px 90px;
  border-top: 1px solid rgba(250,250,247,0.08);
  z-index: 1;
}

.gp-team-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.team-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
}

.team-headline {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 70px;
  color: var(--off-white);
}

.team-headline .dot { color: var(--lime); }

.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.team-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(250,250,247,0.06);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 244, 50, 0.3);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}

.team-card:hover .team-photo img { filter: grayscale(0%); }

.team-initials {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  color: rgba(198, 244, 50, 0.25);
  letter-spacing: -0.04em;
  font-family: var(--font);
}

.team-info {
  padding: 24px 26px 26px;
}

.team-name {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lime);
  margin-bottom: 6px;
  line-height: 1.2;
}

.team-role {
  font-size: 14px;
  color: rgba(250,250,247,0.6);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .gp-hero-wrap nav.hero-nav { padding: 20px 24px; }
  .gp-hero-wrap .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .gp-hero-wrap { height: 88svh; min-height: unset; }
  .gp-hero-wrap .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10,10,10,0.15) 0%,
      rgba(10,10,10,0.60) 45%,
      rgba(10,10,10,0.97) 68%,
      rgba(10,10,10,1.0) 100%
    );
  }
  .gp-hero-wrap .hero-content { padding: 0 24px 40px; }
  .gp-hero-wrap .hero-wordmark {
    font-size: clamp(56px, 14vw, 84px);
    margin-bottom: 20px;
    white-space: nowrap;
  }
  .gp-hero-wrap .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .gp-hero-wrap .hero-copy { max-width: 100%; }
  .gp-hero-wrap .hero-cta-wrap { align-items: flex-start; width: 100%; }

  .gp-manifesto { padding: 70px 24px 50px; }
  .manifesto-line { font-size: clamp(22px, 6vw, 32px); line-height: 1.18; }
  .manifesto-line.accent { font-size: clamp(17px, 4.6vw, 24px); margin-top: 22px; }

  .services-intro { padding: 40px 24px 50px; }
  .services-intro-title { font-size: clamp(28px, 7vw, 40px); }
  .services-intro-label { font-size: 12px; margin-bottom: 16px; }

  .stack-card { padding: 24px; }
  .stack-card-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  .stack-card-num { font-size: clamp(48px, 14vw, 72px); }
  .stack-card-title { font-size: clamp(36px, 10vw, 52px); }
  .stack-card-lead { font-size: 17px; }
  .stack-card-body { font-size: 14.5px; }

  .gp-booking { padding: 60px 24px 80px; }
  .booking-headline { font-size: clamp(36px, 9vw, 48px); }
  .booking-embed { min-height: 380px; }
  .gp-team { padding: 60px 24px 60px; }
  .team-headline { font-size: clamp(26px, 6.5vw, 34px); margin-bottom: 36px; }
  .team-cards { grid-template-columns: 1fr; gap: 18px; max-width: 360px; }
  .team-info { padding: 20px 22px 22px; }
}