/* ============================================================
   DIGITAL POINT — Corporate moderno chiaro
   ============================================================ */

:root {
  --navy:        #0a2540;
  --navy-2:      #133b6b;
  --navy-3:      #1d4f8e;
  --navy-dark:   #051528;
  --blue:        #1e60d8;
  --blue-soft:   #eef4ff;
  --orange:      #ff7a1a;
  --orange-2:    #ff9a4a;
  --orange-soft: #fff3e8;
  --green:       #10b981;
  --red:         #ef4444;
  --purple:      #8b5cf6;
  --cyan:        #06b6d4;
  --pink:        #ec4899;
  --yellow:      #f59e0b;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --text: #0f172a;
  --bg: #ffffff;

  --shadow-xs: 0 1px 2px rgba(10,37,64,.05);
  --shadow-sm: 0 2px 8px rgba(10,37,64,.06);
  --shadow-md: 0 8px 24px rgba(10,37,64,.08);
  --shadow-lg: 0 20px 60px rgba(10,37,64,.14);
  --shadow-xl: 0 30px 80px rgba(10,37,64,.20);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1240px;
  --container-narrow: 880px;

  --t-fast: .2s ease;
  --t:      .3s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--gray-600); }
::selection { background: var(--orange); color: #fff; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  position: relative;
  z-index: 101;
}
.announce a { color: var(--orange-2); font-weight: 600; }
.announce strong { color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--t);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--container); margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray-800); font-weight: 500; font-size: 15px;
  padding: 10px 16px; border-radius: 8px;
  transition: all var(--t-fast);
  position: relative;
}
.nav-links a:hover { color: var(--navy); background: var(--gray-100); }
.nav-links a.active { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 10px 22px !important; border-radius: 999px !important;
  font-weight: 600 !important; margin-left: 8px;
  box-shadow: 0 6px 16px rgba(255,122,26,.30);
}
.nav-cta:hover {
  background: #e8650a !important; transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255,122,26,.40);
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* dropdown mega-menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  opacity: 0; pointer-events: none;
  transition: all var(--t);
  z-index: 110;
}
.has-mega:hover .mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-item {
  display: flex; gap: 14px; padding: 12px;
  border-radius: 12px; transition: background var(--t-fast);
  align-items: flex-start;
}
.mega-item:hover { background: var(--gray-50); }
.mega-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 20px;
}
.mega-icon.blue { background: var(--blue-soft); color: var(--blue); }
.mega-icon.orange { background: var(--orange-soft); color: var(--orange); }
.mega-icon.green { background: #d1fae5; color: var(--green); }
.mega-icon.purple { background: #ede9fe; color: var(--purple); }
.mega-icon.cyan { background: #cffafe; color: var(--cyan); }
.mega-icon.red { background: #fee2e2; color: var(--red); }
.mega-item strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.mega-item span { color: var(--gray-600); font-size: 13px; line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: all var(--t-fast);
  cursor: pointer; border: 0;
  text-align: center; line-height: 1;
  white-space: nowrap;
}
.btn.full { width: 100%; justify-content: center; }
.btn.large { padding: 18px 36px; font-size: 17px; }
.btn-primary {
  background: var(--orange); color: #fff !important;
  box-shadow: 0 8px 24px rgba(255,122,26,.32);
}
.btn-primary:hover {
  background: #e8650a; transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,122,26,.45);
  text-decoration: none; color: #fff !important;
}
.btn-secondary {
  background: var(--navy); color: #fff !important;
}
.btn-secondary:hover { background: var(--navy-2); transform: translateY(-2px); color: #fff !important; text-decoration: none; }
.btn-ghost {
  background: rgba(10,37,64,.06); color: var(--navy) !important;
}
.btn-ghost:hover { background: rgba(10,37,64,.12); color: var(--navy) !important; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--navy) !important;
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange) !important; text-decoration: none; }
.btn-white {
  background: #fff; color: var(--navy) !important;
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); color: var(--navy) !important; text-decoration: none; }

/* arrow on hover */
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HERO with photo
   ============================================================ */
.hero {
  position: relative;
  padding: 60px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
}
.hero-shape {
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,122,26,.10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px;
  align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--gray-200);
  color: var(--gray-700); font-size: 13px; font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); }
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800; line-height: 1.05;
  color: var(--navy);
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--orange), #ffb700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 20px; color: var(--gray-600);
  max-width: 560px; margin-bottom: 36px;
  line-height: 1.6;
}
.hero-sub strong { color: var(--navy); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 30px;
  margin-top: 50px; padding-top: 30px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong {
  font-size: 28px; color: var(--navy); font-weight: 800; line-height: 1;
}
.hero-trust span { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* Hero photo with floating cards */
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5; object-fit: cover;
}
.float-card {
  position: absolute;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  min-width: 220px;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; color: var(--navy); }
.float-card small { font-size: 12px; color: var(--gray-600); }
.float-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.float-card .ico.green { background: #d1fae5; color: var(--green); }
.float-card .ico.blue { background: var(--blue-soft); color: var(--blue); }
.float-card .ico.orange { background: var(--orange-soft); color: var(--orange); }
.fc-1 { top: 30px; left: -40px; animation-delay: 0s; }
.fc-2 { bottom: 80px; right: -30px; animation-delay: 2s; }
.fc-3 { bottom: -20px; left: 20px; animation-delay: 4s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   CLIENT LOGOS / TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 50px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.trust-bar h3 {
  text-align: center; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gray-500); font-weight: 600;
  margin-bottom: 30px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 60px; width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; min-width: 80px;
  padding: 8px 4px;
  font-size: 19px; font-weight: 700;
  color: var(--gray-400);
  letter-spacing: -.4px; white-space: nowrap;
  transition: all var(--t-fast);
}
.brand img {
  height: 28px; width: auto; max-width: 110px;
  filter: grayscale(100%) brightness(.6) opacity(.65);
  transition: filter .3s;
}
.brand:hover img { filter: grayscale(0) brightness(1) opacity(1); }
.brand:hover { color: var(--navy); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.85); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.kicker.light { background: rgba(255,255,255,.15); color: #fff; }
.kicker.blue { background: var(--blue-soft); color: var(--blue); }
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: var(--navy);
  letter-spacing: -1px; line-height: 1.1;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p {
  color: var(--gray-600); font-size: 18px;
  margin-top: 20px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.section-head.left p { margin-left: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.8); }

/* ============================================================
   SERVICES GRID with PHOTOS
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-200);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.service-photo {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.service-card:hover .service-photo img { transform: scale(1.08); }
.service-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,37,64,.2));
}
.service-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 12px;
}
.service-tag.blue { color: var(--blue); }
.service-tag.orange { color: var(--orange); }
.service-tag.green { color: var(--green); }
.service-tag.purple { color: var(--purple); }
.service-tag.cyan { color: var(--cyan); }
.service-tag.red { color: var(--red); }
.service-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 12px; line-height: 1.25; }
.service-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 18px; flex: 1; }
.service-link {
  color: var(--orange); font-weight: 600; font-size: 14px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto;
}
.service-link:hover { color: var(--navy); }
.service-link .arrow { transition: transform var(--t-fast); }
.service-link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   STATS / KPI BAR
   ============================================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
  color: #fff;
  padding: 70px 0;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,122,26,.15), transparent 70%);
  pointer-events: none;
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
  text-align: center; position: relative; z-index: 2;
}
.stat-num {
  font-size: clamp(36px, 5vw, 52px); font-weight: 900; line-height: 1;
  background: linear-gradient(90deg, var(--orange), #ffb700);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 14px; color: rgba(255,255,255,.75);
  margin-top: 10px; font-weight: 500;
}

/* ============================================================
   FEATURE LIST (alternating: image left/right)
   ============================================================ */
.feature {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.feature:last-child { border-bottom: 0; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
.feature-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3; object-fit: cover;
}
.feature-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--navy); margin-bottom: 20px;
  line-height: 1.15; letter-spacing: -.5px;
}
.feature-text > p {
  color: var(--gray-600); font-size: 17px; margin-bottom: 28px;
}
.feature-list { list-style: none; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--gray-200);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700;
}
.feature-list strong {
  display: block; color: var(--navy); font-size: 15px;
  margin-bottom: 3px;
}
.feature-list span { color: var(--gray-600); font-size: 14px; line-height: 1.55; }

/* ============================================================
   WHY US (6 motivi grid)
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--t);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.why-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.why-card p { color: var(--gray-600); font-size: 14px; line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
}
.testimonial-stars {
  color: var(--yellow); font-size: 18px; letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  color: var(--gray-700); font-size: 16px; line-height: 1.65;
  flex: 1; margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex; gap: 14px; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong { display: block; color: var(--navy); font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--gray-500); }

/* ============================================================
   COMUNI SERVITI
   ============================================================ */
.area-section { padding: 100px 0; background: var(--gray-50); }
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.area-text h2 { font-size: clamp(28px, 3.5vw, 42px); color: var(--navy); margin-bottom: 20px; }
.area-text > p { color: var(--gray-600); font-size: 17px; margin-bottom: 18px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.area-tag {
  background: #fff; color: var(--navy);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: all var(--t-fast);
}
.area-tag:hover { border-color: var(--orange); color: var(--orange); }
.area-map {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg); padding: 40px; color: #fff;
  position: relative; overflow: hidden;
}
.area-map::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,122,26,.25), transparent 70%);
}
.area-map h3 { font-size: 22px; margin-bottom: 24px; position: relative; }
.area-map ul {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: relative;
}
.area-map li {
  padding-left: 24px; position: relative; font-size: 14px;
  color: rgba(255,255,255,.9);
}
.area-map li::before { content: '📍'; position: absolute; left: 0; }
.area-map .note {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13px; color: rgba(255,255,255,.7);
  position: relative;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--orange) 0%, #ff5e00 100%);
  color: #fff;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::before { top: -200px; left: -100px; }
.cta-banner::after { bottom: -200px; right: -100px; }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; line-height: 1.1; color: #fff;
  margin-bottom: 16px; letter-spacing: -.5px;
}
.cta-banner p {
  font-size: 20px; color: rgba(255,255,255,.95);
  max-width: 600px; margin: 0 auto 36px;
}
.cta-banner .btn-white { color: var(--orange) !important; font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--t-fast);
}
.faq-item:hover { border-color: var(--orange); }
.faq-item summary {
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px; color: var(--orange);
  font-weight: 300;
  transition: transform var(--t);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer {
  padding: 0 24px 24px;
  color: var(--gray-600);
  font-size: 15px; line-height: 1.7;
}

/* ============================================================
   FORM
   ============================================================ */
.form-wrap {
  background: #fff;
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-wrap h3 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.form-wrap .form-sub { color: var(--gray-600); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-wrap label { display: block; margin-bottom: 16px; }
.form-wrap label.full { grid-column: 1 / -1; }
.form-wrap label > span {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-800); margin-bottom: 8px;
}
.form-wrap input,
.form-wrap select,
.form-wrap textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--gray-200); border-radius: 12px;
  font: inherit; font-size: 15px; background: #fff;
  transition: all var(--t-fast);
  font-family: inherit;
}
.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus {
  outline: 0; border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,122,26,.10);
}
.form-wrap textarea { resize: vertical; min-height: 120px; }
.form-wrap .checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--gray-600); margin-bottom: 20px;
}
.form-wrap .checkbox input { width: auto; margin-top: 3px; }
.form-wrap .form-note { font-size: 12px; color: var(--gray-400); margin-top: 14px; text-align: center; }

/* form contattaci section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-text h2 {
  font-size: clamp(32px, 4vw, 44px); color: #fff;
  letter-spacing: -.5px; line-height: 1.1; margin-bottom: 20px;
}
.contact-text > p { color: rgba(255,255,255,.85); margin-bottom: 36px; font-size: 17px; }
.contact-info { display: grid; gap: 18px; }
.ci-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--t-fast);
}
.ci-item:hover { background: rgba(255,255,255,.1); }
.ci-item > .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ci-item strong { display: block; color: var(--orange); font-size: 12px; margin-bottom: 4px; letter-spacing: 1px; text-transform: uppercase; }
.ci-item a, .ci-item .ci-val {
  color: #fff !important; text-decoration: none; font-size: 15px;
}
.ci-item a:hover { text-decoration: underline; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 80px 0 90px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,122,26,.15), transparent 70%);
}
.page-hero .breadcrumb {
  font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px;
  position: relative;
}
.page-hero .breadcrumb a { color: var(--orange-2); }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -1px;
  color: #fff; max-width: 800px; position: relative;
  font-weight: 800;
}
.page-hero p.lead {
  font-size: 20px; color: rgba(255,255,255,.85);
  max-width: 760px; margin-top: 22px;
  position: relative;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--t);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.blog-card a { text-decoration: none; color: inherit; display: contents; }
.blog-img {
  height: 200px; overflow: hidden; background: var(--gray-100);
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 12px; align-self: flex-start;
}
.blog-body h3 {
  color: var(--navy); font-size: 19px; line-height: 1.3;
  margin-bottom: 10px;
}
.blog-body p { color: var(--gray-600); font-size: 14px; margin-bottom: 16px; flex: 1; }
.blog-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-400);
  padding-top: 14px; border-top: 1px solid var(--gray-200);
}
.blog-meta .read-more { color: var(--orange); font-weight: 600; }

/* blog post body */
.post-body { padding: 60px 0 80px; max-width: 800px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.post-body > p, .post-body > ul, .post-body > ol {
  margin-bottom: 18px; color: var(--gray-800); font-size: 17px; line-height: 1.75;
}
.post-body h2 { font-size: 30px; color: var(--navy); margin: 50px 0 18px; letter-spacing: -.3px; }
.post-body h3 { font-size: 22px; color: var(--navy); margin: 30px 0 12px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 14px 24px; background: var(--orange-soft);
  margin: 28px 0; font-style: italic; color: var(--gray-700);
  border-radius: 0 14px 14px 0;
}
.post-body strong { color: var(--navy); }
.post-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff; padding: 40px; border-radius: var(--radius-lg);
  text-align: center; margin: 50px 0;
}
.post-cta h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.post-cta p { color: rgba(255,255,255,.95); margin-bottom: 24px; font-size: 16px; }
.post-cta .btn { background: #fff; color: var(--orange) !important; }
.post-cta .btn:hover { background: var(--navy); color: #fff !important; }

/* ============================================================
   TIMELINE (storia chi siamo)
   ============================================================ */
.timeline {
  position: relative;
  padding: 40px 0;
  max-width: 900px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
  transform: translateX(-50%);
}
.tl-item {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 20px; align-items: center;
  margin-bottom: 30px;
}
.tl-year {
  background: var(--orange);
  color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-align: center;
  position: relative; z-index: 2;
  font-size: 14px;
}
.tl-content {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.tl-content h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.tl-content p { color: var(--gray-600); font-size: 14px; }
.tl-item:nth-child(even) > :first-child { visibility: hidden; }
.tl-item:nth-child(odd)  > :last-child  { visibility: hidden; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--t);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo {
  height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 72px; font-weight: 800;
  letter-spacing: -2px;
}
.team-photo.alberto { background: linear-gradient(135deg, var(--blue), var(--navy-3)); }
.team-photo.marco { background: linear-gradient(135deg, var(--orange), var(--orange-2)); }
.team-photo.andrea { background: linear-gradient(135deg, var(--green), #34d399); }
.team-photo.gabriele { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.team-photo.giovanni { background: linear-gradient(135deg, var(--red), #f87171); }
.team-photo.mattia { background: linear-gradient(135deg, var(--cyan), #22d3ee); }
.team-photo.emanuela { background: linear-gradient(135deg, var(--pink), #f9a8d4); }
.team-info { padding: 20px; }
.team-info strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.team-info span { font-size: 13px; color: var(--gray-500); }

/* ============================================================
   PRICING / PACKAGE
   ============================================================ */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.price-card {
  background: #fff; padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  transition: all var(--t);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 20px 50px rgba(255,122,26,.18);
  transform: scale(1.02);
}
.price-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.price-card .price-sub { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.price-card .price {
  font-size: 42px; font-weight: 800; color: var(--navy);
  margin-bottom: 4px; letter-spacing: -1.5px;
}
.price-card .price small { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.price-card ul { list-style: none; margin: 24px 0; flex: 1; }
.price-card ul li {
  padding: 8px 0 8px 24px; position: relative; font-size: 14px;
  color: var(--gray-700);
}
.price-card ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}
.price-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--orange); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ============================================================
   PARTNER LOGOS BAR (per categoria)
   ============================================================ */
.partner-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 42px;
  padding: 22px 0;
  margin-top: 14px;
}
.partner-strip .pname {
  font-size: 17px; font-weight: 700; color: var(--gray-500);
  letter-spacing: -.3px; transition: color var(--t-fast);
  text-transform: uppercase;
}
.partner-strip .pname:hover { color: var(--navy); }

.partner-group {
  background: var(--gray-50);
  padding: 28px 32px;
  border-radius: 14px;
  margin-top: 30px;
}
.partner-group h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gray-500); margin-bottom: 14px; font-weight: 700;
  text-align: center;
}

/* ============================================================
   SEDE CARD
   ============================================================ */
.sedi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sede-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--t);
}
.sede-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.sede-photo { height: 220px; overflow: hidden; }
.sede-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sede-card:hover .sede-photo img { transform: scale(1.05); }
.sede-body { padding: 28px; }
.sede-tag { display: inline-block; padding: 4px 12px; background: var(--orange-soft); color: var(--orange);
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; }
.sede-body h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; }
.sede-body p { color: var(--gray-600); font-size: 15px; margin-bottom: 8px; }
.sede-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   SERVICE FULL CARD (con foto grande, descrizione lunga, lista servizi)
   ============================================================ */
.service-full {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-full.reverse > :first-child { order: 2; }
.service-full:last-child { border-bottom: 0; }
.service-full-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.service-full-img img { width: 100%; height: 100%; object-fit: cover; }
.service-full-body h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--navy); margin-bottom: 18px;
  line-height: 1.15; letter-spacing: -.5px;
}
.service-full-body > p {
  color: var(--gray-600); font-size: 17px; margin-bottom: 24px;
}
.service-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 24px; }
.service-col h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px; }
.service-col ul { list-style: none; }
.service-col ul li {
  padding: 6px 0 6px 22px; position: relative;
  font-size: 14px; color: var(--gray-800);
}
.service-col ul li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}

/* mini photo gallery in service-full */
.svc-mini-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 20px;
}
.svc-mini-gallery img {
  border-radius: 10px; aspect-ratio: 4/3; object-fit: cover;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 50px;
}
.footer-logo { height: 56px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer ul { list-style: none; }
.footer ul li { padding: 5px 0; font-size: 14px; }
.footer ul a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--t-fast); }
.footer ul a:hover { color: var(--orange); }
.footer p { font-size: 14px; line-height: 1.7; }
.footer .social {
  display: flex; gap: 10px; margin-top: 18px;
}
.footer .social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; text-decoration: none;
  transition: all var(--t-fast);
}
.footer .social a:hover { background: var(--orange); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0; font-size: 13px;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  align-items: center;
}
.footer-bottom a { color: rgba(255,255,255,.6); margin-right: 14px; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   MEPA MOCKUP (portale acquistinretepa visivo)
   ============================================================ */
.mepa-mockup {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  perspective: 1200px;
}
.mepa-window {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform var(--t);
}
.mepa-window:hover { transform: rotate(0); }

.mepa-bar {
  background: linear-gradient(180deg, #ececec, #d8d8d8);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mepa-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.mepa-dot.r { background: #ff5f57; }
.mepa-dot.y { background: #ffbd2e; }
.mepa-dot.g { background: #28c940; }
.mepa-url {
  flex: 1; background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px; color: var(--gray-600);
  text-align: center;
  margin-left: 8px;
  border: 1px solid rgba(0,0,0,.08);
  font-family: 'SF Mono', Menlo, monospace;
}
.mepa-screen {
  padding: 28px 24px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.mepa-title {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange);
  margin-bottom: 18px;
}
.mepa-title strong {
  display: block;
  font-size: 26px;
  color: #c8102e;
  letter-spacing: -.5px;
  font-weight: 700;
}
.mepa-title strong span { color: #008556; }
.mepa-title small {
  display: block;
  color: var(--gray-600);
  font-size: 13px;
  margin-top: 4px;
}

.mepa-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 22px;
}
.mepa-stats > div {
  background: var(--gray-50);
  padding: 14px 8px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--gray-200);
}
.mepa-stats strong {
  display: block;
  font-size: 22px;
  color: var(--orange);
  font-weight: 800;
  line-height: 1;
}
.mepa-stats span {
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 6px;
  display: block;
}

.mepa-rows {
  display: flex; flex-direction: column; gap: 8px;
}
.mepa-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 3px solid var(--green);
  font-size: 13px;
  color: var(--gray-800);
}
.mepa-row .ico-cart { font-size: 16px; }
.mepa-row .cat { flex: 1; font-weight: 500; }
.mepa-row .ok {
  color: var(--green);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .5px;
}

.mepa-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 12px;
  min-width: 260px;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.mepa-card strong { display: block; font-size: 14px; color: var(--navy); }
.mepa-card small { font-size: 11px; color: var(--gray-600); }
.mepa-card-head {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.mepa-card-cta {
  color: var(--orange);
  font-size: 22px;
  font-weight: 700;
}
.mepa-card-1 {
  top: 25%;
  right: -30px;
  animation-delay: 0s;
}
.mepa-card-2 {
  bottom: 8%;
  left: -40px;
  animation-delay: 3s;
}

@media (max-width: 768px) {
  .mepa-mockup { max-width: 100%; }
  .mepa-window { transform: rotate(0); }
  .mepa-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mepa-stats strong { font-size: 18px; }
  .mepa-card { position: relative; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; margin-top: 16px; }
  .mepa-card-1, .mepa-card-2 { animation: none; }
}

/* ============================================================
   WHATSAPP FLOATING WIDGET
   ============================================================ */
.wa-fab {
  position: fixed; bottom: 30px; left: 30px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  z-index: 99;
  cursor: pointer; border: 0;
  transition: all var(--t);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(37,211,102,.6); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.6); }
  50%     { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 18px rgba(37,211,102,0); }
}
.wa-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  border: 2px solid #fff;
}

.wa-popup {
  position: fixed; bottom: 100px; left: 30px;
  width: 340px; max-width: calc(100vw - 60px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transform: translateY(20px) scale(.95);
  transform-origin: bottom left;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.wa-popup.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.wa-head {
  background: #075E54;
  color: #fff;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.wa-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.wa-title strong { display: block; font-size: 15px; color: #fff; }
.wa-title span { font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 6px; }
.wa-title span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #4fd964;
  display: inline-block;
}
.wa-close {
  position: absolute; top: 12px; right: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}
.wa-close:hover { background: rgba(255,255,255,.3); }

.wa-body {
  background: #ECE5DD;
  padding: 24px 20px;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 20px 20px;
}
.wa-msg {
  background: #fff;
  padding: 12px 14px;
  border-radius: 8px 8px 8px 0;
  font-size: 14px; color: var(--gray-800);
  line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  max-width: 260px;
  position: relative;
  margin-bottom: 8px;
}
.wa-msg::before {
  content: ''; position: absolute;
  bottom: 0; left: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-msg-time {
  font-size: 10px; color: var(--gray-400);
  display: block; text-align: right;
  margin-top: 4px;
}

.wa-foot {
  background: #fff;
  padding: 14px 20px 18px;
}
.wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #25D366; color: #fff !important;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: all var(--t-fast);
}
.wa-btn:hover { background: #20bd5a; color: #fff !important; text-decoration: none !important; transform: translateY(-1px); }
.wa-btn svg { width: 20px; height: 20px; fill: #fff; }
.wa-foot p { font-size: 11px; color: var(--gray-500); text-align: center; margin-top: 10px; }

@media (max-width: 640px) {
  .wa-fab { bottom: 20px; left: 20px; width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
  .wa-popup { bottom: 90px; left: 20px; right: 20px; width: auto; }
  .back-top { bottom: 20px; right: 20px; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 22px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(255,122,26,.4);
  opacity: 0; pointer-events: none;
  transition: all var(--t); z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: #e8650a; transform: translateY(-2px); }

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-40 { margin-top: 40px; }
.center-cta { text-align: center; margin-top: 40px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-photo { max-width: 500px; margin: 0 auto; }
  .services-grid, .blog-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .mega { width: 580px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 16px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--gray-200); }
  .nav-links a.nav-cta { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .has-mega .mega { display: none; }

  .section { padding: 60px 0; }
  .area-section, .contact-section, .stats-bar { padding: 60px 0; }
  .feature { padding: 50px 0; }

  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse > :first-child { order: 0; }

  .services-grid, .blog-grid, .why-grid, .testimonials,
  .price-grid, .team-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-num { font-size: 36px; }
  .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .area-map ul { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }

  .float-card { display: none; }
  .hero-trust { gap: 20px; }
  .hero-trust strong { font-size: 24px; }

  .timeline::before { left: 30px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .tl-year { width: 60px; }
  .tl-item:nth-child(even) > :first-child,
  .tl-item:nth-child(odd) > :first-child { visibility: visible; order: 1; }
  .tl-item:nth-child(odd) > :last-child { visibility: visible; order: 2; }

  .post-body h2 { font-size: 24px; }
  .post-body > p { font-size: 16px; }
}
