/* ==========================================
   Gubernati Elettronica — Design System
   Premium Tech · Modern · Clean
   ========================================== */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
  /* Colors */
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #F0F1F3;
  --medium-gray: #D1D5DB;
  --dark-gray: #6B7280;
  --anthracite: #1F2937;
  --near-black: #111827;
  --black: #0A0A0A;

  /* Accent — Electric Blue */
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-dark: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-subtle: rgba(37, 99, 235, 0.06);

  /* Gold (premium detail) */
  --gold: #C9A96E;
  --gold-light: #D4B87A;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;
  --fs-6xl:  3.75rem;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);
  --fs-hero-sub: clamp(1rem, 2vw, 1.35rem);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Border Radius */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 35px rgba(0,0,0,0.08);
  --shadow-xl: 0 25px 65px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 25px rgba(37,99,235,0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-fast: 150ms var(--ease-out);
  --t-base: 350ms var(--ease-out);
  --t-slow: 600ms var(--ease-out);

  /* Layout */
  --container: 1200px;
  --header-h: 80px;
}


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

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

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--anthracite);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }


/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--near-black);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
  color: var(--dark-gray);
  max-width: 650px;
}

.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }


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

.section {
  padding: var(--sp-5xl) 0;
}

.section-sm {
  padding: var(--sp-4xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-lg);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}

.section-title {
  margin-bottom: var(--sp-lg);
}

.section-desc {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3xl);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.bg-light {
  background-color: var(--off-white);
}


/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--near-black);
  letter-spacing: -0.03em;
  z-index: 1001;
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--fs-lg);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
  padding: var(--sp-xs) 0;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
  transition: width var(--t-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--near-black);
}

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

/* Header on hero (transparent) */
.header-transparent {
  background: transparent;
}

.header-transparent .logo,
.header-transparent .nav-link {
  color: var(--white);
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link.active {
  color: var(--white);
}

.header-transparent.scrolled .logo,
.header-transparent.scrolled .nav-link {
  color: var(--near-black);
}

.header-transparent.scrolled .nav-link:hover,
.header-transparent.scrolled .nav-link.active {
  color: var(--near-black);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--near-black);
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--t-fast);
}

.header-transparent .menu-toggle span {
  background: var(--white);
}

.header-transparent.scrolled .menu-toggle span {
  background: var(--near-black);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.55) 50%,
    rgba(10, 10, 10, 0.40) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
  padding-top: var(--header-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--sp-xl);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-lg);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: var(--fs-hero-sub);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--sp-2xl);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-line 2s ease infinite;
}


/* ==========================================
   INTRO SECTION (Home landing)
   ========================================== */
.intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--near-black);
  overflow: hidden;
}

.intro::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: intro-glow 4s ease-in-out infinite alternate;
}

.intro::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes intro-glow {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  to   { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--sp-xl);
}

.intro-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.intro-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(40deg);
  animation: char-reveal 0.7s var(--ease-out) forwards;
}

.intro-title .space {
  display: inline-block;
  width: 0.3em;
}

@keyframes char-reveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.intro-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: var(--r-full);
  margin: var(--sp-xl) auto;
  opacity: 0;
  animation: fade-in 0.8s var(--ease-out) 1.2s forwards;
}

.intro-subtitle {
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  word-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 1.5s forwards;
}

/* Hero Content Section (below intro, on scroll) */
.hero-section {
  padding: var(--sp-5xl) 0;
  position: relative;
  background: var(--white);
}

.hero-section h2 {
  font-size: var(--fs-hero);
  margin-bottom: var(--sp-lg);
}

.hero-section .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .hero-badge {
  background: var(--accent-subtle);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.hero-section .hero-badge .dot {
  background: var(--accent);
}

.hero-section .hero-text {
  color: var(--dark-gray);
  font-size: var(--fs-lg);
  max-width: 620px;
  margin: 0 auto var(--sp-2xl);
}

.hero-section .hero-actions {
  justify-content: center;
}

/* Page Hero (for sub-pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-4xl)) 0 var(--sp-4xl);
  background: var(--near-black);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-lg);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--sp-xl);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t-fast);
}

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

.breadcrumb .sep {
  font-size: var(--fs-xs);
}


/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.85rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-md);
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

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

.btn-white {
  background: var(--white);
  color: var(--near-black);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-base);
  border-radius: var(--r-lg);
}


/* ==========================================
   CARDS
   ========================================== */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--light-gray);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  transition: background var(--t-base);
}

.card:hover .card-icon {
  background: var(--accent);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  transition: color var(--t-base);
}

.card:hover .card-icon svg {
  color: var(--white);
}

.card h3 {
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-xl);
}

.card p {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t-base);
}

.card:hover .card-link {
  gap: var(--sp-sm);
}


/* ==========================================
   SERVICE DETAIL (servizi.html)
   ========================================== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse > * {
  direction: ltr;
}

.service-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.service-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.service-block:hover .service-img img {
  transform: scale(1.03);
}

.service-info h3 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-md);
}

.service-info p {
  margin-bottom: var(--sp-lg);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--anthracite);
}

.service-features .check {
  width: 20px;
  height: 20px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-features .check svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}


/* ==========================================
   STATS / NUMBERS
   ========================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.stat {
  text-align: center;
  padding: var(--sp-xl);
}

.stat-number {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--dark-gray);
  font-weight: 500;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-img .experience-badge {
  position: absolute;
  bottom: var(--sp-xl);
  left: var(--sp-xl);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  padding: var(--sp-lg) var(--sp-xl);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.experience-badge .big-number {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.experience-badge span {
  font-size: var(--fs-sm);
  color: var(--dark-gray);
  font-weight: 500;
}

.about-text h2 {
  margin-bottom: var(--sp-lg);
}

.about-text p {
  margin-bottom: var(--sp-lg);
}

.about-text .values-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.about-text .values-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-weight: 500;
  color: var(--anthracite);
}

.about-text .values-list li .icon-circle {
  width: 40px;
  height: 40px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-text .values-list li .icon-circle svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}


/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  position: relative;
  padding: var(--sp-4xl) 0;
  background: var(--near-black);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-lg);
  margin: 0 auto var(--sp-2xl);
}

.cta-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}


/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-3xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
}

.contact-item .icon-box {
  width: 52px;
  height: 52px;
  background: var(--accent-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item .icon-box svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-item h4 {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-xs);
}

.contact-item p,
.contact-item a {
  font-size: var(--fs-sm);
  color: var(--dark-gray);
}

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

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--anthracite);
  margin-bottom: var(--sp-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem var(--sp-lg);
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

/* Map */
.map-container {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}


/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--near-black);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-4xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--sp-lg);
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover svg {
  color: var(--white);
}


/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform var(--t-base), box-shadow var(--t-base);
  animation: whatsapp-bounce 3s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}


/* ==========================================
   PARTICLE CANVAS
   ========================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}


/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }


/* ==========================================
   RESPONSIVE — Tablet
   ========================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block { gap: var(--sp-2xl); }
  .about-content { gap: var(--sp-2xl); }
}

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

  .nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: var(--sp-xl);
  }

  .nav-link {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--near-black) !important;
  }

  .nav .btn {
    font-size: var(--fs-lg);
    padding: 1rem 2.5rem;
  }

  .hero-content { max-width: 100%; }

  .grid-2,
  .about-content,
  .service-block,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-block.reverse { direction: ltr; }

  .about-img { order: -1; }
  .about-img img { height: 320px; }
  .service-img img { height: 280px; }

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


/* ==========================================
   RESPONSIVE — Mobile
   ========================================== */
@media (max-width: 640px) {
  :root {
    --sp-xl: 1.25rem;
    --sp-2xl: 2rem;
    --sp-3xl: 2.5rem;
    --sp-4xl: 3.5rem;
    --sp-5xl: 5rem;
  }

  .section { padding: var(--sp-4xl) 0; }

  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-xl); }

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

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: var(--sp-md);
    right: var(--sp-md);
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}


/* ==========================================
   ACCESSIBILITY — Reduced Motion
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float { animation: none; }

  #particle-canvas { display: none; }
}


/* ==========================================
   UTILITIES
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mb-xl { margin-bottom: var(--sp-xl); }
