/* ============================================
   GRAFIK GROUP – 2026
   Design System & Main Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Palette */
  --white: #FFFFFF;
  --grey-light: #F7F7F8;
  --grey-mid: #E8E8EA;
  --grey-dark: #6B6B76;
  --black: #0A0A0A;
  --yellow: #FFD000;
  --yellow-hover: #FFC107;
  --yellow-soft: rgba(255, 208, 0, 0.08);
  --blue-dark: #1A1A2E;
  --blue-accent: #16213E;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Sizes */
  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(4rem, 10vh, 8rem);
  --radius: 12px;
  --radius-sm: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
  --duration-slow: 0.8s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

p {
  max-width: 65ch;
}

.text-grey {
  color: var(--grey-dark);
}

.text-yellow {
  color: var(--yellow);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-alt {
  background: var(--grey-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 208, 0, 0.3);
}

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

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--blue-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--duration) var(--ease);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 50%;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.logo-text span {
  color: var(--yellow);
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--duration) var(--ease-out);
}

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

.nav-cta {
  padding: 0.6rem 1.5rem !important;
  background: var(--yellow);
  color: var(--black) !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  color: inherit;
}

.lang-switch:hover {
  opacity: 1;
  border-color: var(--grey-mid);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease);
  z-index: 100;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--black);
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}

.lang-menu a:hover {
  background: var(--yellow-soft);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 208, 0, 0.2);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--blue-dark);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  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 {
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--grey-dark);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero background grid */
.hero-grid {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  opacity: 0.04;
  z-index: 1;
  background-image:
    linear-gradient(var(--black) 1px, transparent 1px),
    linear-gradient(90deg, var(--black) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* GG Canvas Animation */
.hero-canvas-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  border-color: var(--yellow);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-dark);
  transition: gap var(--duration) var(--ease);
}

.service-link:hover {
  gap: 0.8rem;
  color: var(--yellow-hover);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: var(--yellow);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--grey-dark);
  font-size: 1.05rem;
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--grey-light);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

/* Center last row if not full */
.portfolio-grid .portfolio-item:nth-child(4) {
  grid-column: 1 / 2;
}

/* Placeholder style */
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-item:hover .portfolio-placeholder {
  transform: scale(1.05);
}

.portfolio-placeholder-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
  line-height: 1;
}

.portfolio-placeholder-url {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-item:hover .portfolio-thumb {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.portfolio-overlay span {
  color: var(--yellow);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- ABOUT / STATS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--grey-dark);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

/* --- Anello circolare attorno ai numeri --- */
.stat-ring-wrap {
  position: relative;
  width: clamp(100px, 14vw, 140px);
  height: clamp(100px, 14vw, 140px);
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring-bg {
  fill: none;
  stroke: rgba(255, 204, 0, 0.1);
  stroke-width: 3;
}

.stat-ring-fill {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.4));
}

.stat-ring-fill.animate {
  stroke-dashoffset: var(--target-offset);
}

.stat-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

/* Glow pulse quando il numero finisce di contare */
.stat-number.counted {
  animation: statGlow 2s ease-in-out infinite;
}

@keyframes statGlow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5), 0 0 40px rgba(255, 204, 0, 0.15);
  }
}

/* Dot accent sotto il label */
.stat-label {
  font-size: 0.85rem;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-label::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  margin: 0.6rem auto 0;
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease 2s;
}

.stat.visible .stat-label::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 2rem;
  max-width: 550px;
}

/* ---------- CONTACT ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
}

/* Dot grid decorativo */
.contact-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--grey-mid) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}

/* Cerchio giallo decorativo */
.contact-deco-circle {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.06;
  pointer-events: none;
  animation: contactCirclePulse 6s ease-in-out infinite;
}

@keyframes contactCirclePulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.15); opacity: 0.1; }
}

/* Sottotitolo sezione */
.section-subtitle {
  color: var(--grey-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 500px;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

/* Badge risposta rapida */
.contact-response-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: #16a34a;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.contact-info-item:hover {
  background: var(--grey-light);
  transform: translateX(6px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.contact-info-item:hover .contact-icon {
  background: var(--yellow);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--yellow);
  transition: stroke var(--duration) var(--ease);
}

.contact-info-item:hover .contact-icon svg {
  stroke: var(--white);
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--grey-dark);
  font-size: 0.95rem;
}

.contact-info-item p a {
  color: var(--grey-dark);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.contact-info-item p a:hover {
  color: var(--yellow);
}

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
}

.whatsapp-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* Orari */
.contact-hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-mid);
  font-size: 0.85rem;
  color: var(--grey-dark);
}

.contact-hours svg {
  flex-shrink: 0;
  stroke: var(--grey-dark);
}

/* Form wrapper con sfondo card */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--duration-slow) var(--ease);
}

.contact-form-wrap:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-sm);
  background: var(--grey-light);
  color: var(--black);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
  background: var(--white);
}

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

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

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- SERVICE PAGES ---------- */
.page-hero {
  padding: clamp(8rem, 15vh, 12rem) 0 clamp(4rem, 8vh, 6rem);
  background: var(--grey-light);
  position: relative;
  overflow: hidden;
}

.page-hero .section-label {
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin-bottom: 1.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--grey-dark);
  max-width: 600px;
  line-height: 1.8;
}

.page-hero-icon {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  opacity: 0.04;
}

/* ---------- PROCESS STEPS ---------- */
.process-section {
  position: relative;
  overflow: hidden;
}

.process-section .process-deco {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.04;
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius);
  counter-increment: step;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

/* Barra gialla animata in alto */
.process-step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--yellow);
  transition: width 0.5s var(--ease);
}

.process-step:hover::after {
  width: 100%;
}

.process-step:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(255, 208, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yellow);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.process-step:hover::before {
  opacity: 0.6;
  transform: scale(1.1);
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.process-step p {
  color: var(--grey-dark);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Staggered reveal per i process step */
.process-step.reveal:nth-child(1) { transition-delay: 0s; }
.process-step.reveal:nth-child(2) { transition-delay: 0.1s; }
.process-step.reveal:nth-child(3) { transition-delay: 0.15s; }
.process-step.reveal:nth-child(4) { transition-delay: 0.2s; }
.process-step.reveal:nth-child(5) { transition-delay: 0.25s; }

/* ---------- FEATURE GRID ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.feature-item:hover {
  background: var(--yellow-soft);
  transform: translateX(4px);
}

.feature-check {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: all 0.3s var(--ease);
}

.feature-item:hover .feature-check {
  background: var(--yellow);
  transform: scale(1.1);
}

.feature-check svg {
  width: 16px;
  height: 16px;
  stroke: var(--yellow);
  transition: stroke 0.3s var(--ease);
}

.feature-item:hover .feature-check svg {
  stroke: var(--white);
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--grey-dark);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Staggered reveal feature items */
.feature-item.reveal:nth-child(1) { transition-delay: 0s; }
.feature-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-item.reveal:nth-child(4) { transition-delay: 0.24s; }
.feature-item.reveal:nth-child(5) { transition-delay: 0.32s; }
.feature-item.reveal:nth-child(6) { transition-delay: 0.4s; }

/* ---------- TECH TAGS ---------- */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tech-tag {
  padding: 0.4rem 1rem;
  background: var(--grey-light);
  border: 1px solid var(--grey-mid);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-dark);
  transition: all 0.3s var(--ease);
  cursor: default;
}

.tech-tag:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 208, 0, 0.25);
}

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 1.5rem;
}

.two-col-text p {
  color: var(--grey-dark);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Progetti realizzati lista */
.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--grey-mid);
  transition: all 0.3s var(--ease);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list li:hover {
  padding-left: 0.5rem;
  border-bottom-color: var(--yellow);
}

.project-list li strong {
  color: var(--blue-dark);
}

/* Service page CTA migliorato */
.service-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-hero-icon {
    display: none;
  }

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

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.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) {
  .hero-canvas-wrap {
    width: 45%;
    opacity: 0.6;
  }

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

  .portfolio-grid .portfolio-item:nth-child(4) {
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.5s var(--ease-out);
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .hero-canvas-wrap {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

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

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

  .portfolio-grid .portfolio-item:nth-child(4) {
    grid-column: auto;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .contact-deco-circle {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

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

/* ---------- Smooth page load ---------- */
.page-loaded .reveal {
  /* Handled by JS */
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--grey-light);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--black);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--yellow);
  color: var(--black);
}
