/* ============================================
   Guci.it — Main Stylesheet
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #07070d;
  color: #c8c8d4;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  border-radius: 4px;
}

/* ============================================
   Selection
   ============================================ */

::selection {
  background: #6366f1;
  color: #fff;
}

/* ============================================
   Gradient Text
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo-dot {
  color: #6366f1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8888a0;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff !important;
  font-weight: 600 !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c8c8d4;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a5b4fc;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #8888a0;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.btn-outline {
  background: transparent;
  color: #c8c8d4;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  border-color: #6366f1;
  color: #fff;
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, #6366f1, transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ============================================
   Sections common
   ============================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  color: #8888a0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   Servizi / Cards
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 40px 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #06b6d4, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(99,102,241,0.1);
  background: linear-gradient(145deg, rgba(99,102,241,0.06), rgba(6,182,212,0.03));
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  transition: all 0.4s;
}

.service-card:hover .card-icon {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
  transform: scale(1.05);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: #8888a0;
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #aaa;
  transition: all 0.3s;
}

.service-card:hover .card-tags span {
  border-color: rgba(99, 102, 241, 0.15);
  color: #c8c8d4;
}

/* ============================================
   Chi Siamo / Team
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.team-member {
  text-align: center;
  padding: 40px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--avatar-color);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
}

.team-member:hover .member-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 12px 32px rgba(99, 102, 241, 0.2);
}

.team-member h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.member-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6366f1;
  margin-bottom: 14px;
}

.team-member p {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.6;
}

/* ============================================
   Progetti
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.project-image {
  position: relative;
  height: 380px;
  background: var(--project-img);
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7,7,13,0.95) 100%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.4s;
}

.project-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  margin-bottom: 12px;
  align-self: flex-start;
}

.project-overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.project-overlay p {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s 0.1s;
}

.project-card:hover .project-overlay p {
  opacity: 1;
  transform: translateY(0);
}

.project-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6366f1;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s 0.15s;
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Innovazione / Stats
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 32px 16px;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-plus,
.stat-pct {
  font-size: 2rem;
  font-weight: 700;
  color: #6366f1;
  vertical-align: super;
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: #8888a0;
  font-weight: 500;
}

/* ============================================
   Approccio / Steps
   ============================================ */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  background: linear-gradient(145deg, rgba(99,102,241,0.04), rgba(6,182,212,0.02));
  border-color: rgba(99, 102, 241, 0.12);
  transform: translateX(8px);
}

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: #8888a0;
  line-height: 1.65;
  grid-column: 1 / 3;
  padding: 30px;
  width: 400px;
  
}

.step-connector {
  width: 1px;
  height: 24px;
  background: linear-gradient(180deg, #6366f1, transparent);
  margin-left: 63px;
}

/* ============================================
   Contatti
   ============================================ */

.contatti {
  background: linear-gradient(180deg, #07070d, #0a0a18);
  position: relative;
}

.contatti::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), rgba(6,182,212,0.3), transparent);
}

.contatti-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contatti-text .section-title.light {
  color: #fff;
}

.contatti-text .section-label.light {
  color: #06b6d4;
}

.contatti-text > p {
  font-size: 1.05rem;
  color: #8888a0;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: #aaa;
  transition: color 0.3s;
}

.info-item:hover {
  color: #fff;
}

.info-item svg {
  color: #6366f1;
  flex-shrink: 0;
}

/* Form */
.contatti-form {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contatti-form input,
.contatti-form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #e8e8f0;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 16px;
}

.contatti-form input:focus,
.contatti-form textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contatti-form input::placeholder,
.contatti-form textarea::placeholder {
  color: #555;
}

.contatti-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.5rem;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #666;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #a5b4fc;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #444;
  text-align: center;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 20, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .contatti-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-num {
    font-size: 2rem;
  }

  .step-connector {
    margin-left: 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .contatti-form {
    padding: 24px;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}
