/* Digital Planet Servizi — Hazel-inspired minimal UI */
:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-dark: #0f172a;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #71717a;
  --accent-1: #db2777;
  --accent-4: #0891b2;
  --link: #0e7490;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 20px 50px rgba(24, 24, 27, 0.06);
  --shadow-sm: 0 1px 3px rgba(24, 24, 27, 0.06);
  --hover-surface: rgba(24, 24, 27, 0.04);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --container: min(1200px, 90vw);
  --topbar-h: 42px;
  --header-h: 120px;
  --sticky-top: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-1); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin: 0 0 1rem; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); margin: 0 0 1rem; letter-spacing: -0.015em; }
.section-label {
  display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-4); margin-bottom: 0.75rem;
}
.text-accent-line {
  display: inline-block; padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-1);
}
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.h3 { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  padding: 0.75rem 1rem; background: var(--accent-4); color: #000; font-weight: 600;
}
.skip-link:focus { left: 0; }
.container { width: var(--container); margin-inline: auto; }

/* Top bar + header */
.site-topbar {
  background: var(--bg-dark); color: #e4e4e7; font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--topbar-h); gap: 1rem;
}
.topbar-list { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.topbar-list a { color: #e4e4e7; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.topbar-list a:hover { color: #fff; }
.topbar-hours { margin: 0; color: #a1a1aa; }
.site-header {
  position: sticky; top: var(--sticky-top); z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; z-index: 2; }
.logo img {
  height: clamp(88px, 16vw, 118px);
  width: auto;
  max-width: min(520px, 88vw);
  object-fit: contain;
}
.site-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; flex: 1;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 0.15rem; flex-wrap: wrap; flex: 1; }
.nav-list a, .nav-dropdown-trigger {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  padding: 0.5rem 0.85rem; border-radius: var(--radius); border: none; background: none; cursor: pointer;
  font-family: inherit;
}
.nav-list a:hover, .nav-dropdown-trigger:hover,
.nav-list a[aria-current="page"] { color: var(--text); background: var(--hover-surface); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: 0.2s ease;
}
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; color: var(--text-muted); text-decoration: none; }
.dropdown a:hover { background: var(--hover-surface); color: var(--text); }
.dropdown-mega {
  min-width: 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.25rem;
}
.dropdown-mega li:first-child { grid-column: 1 / -1; font-weight: 600; }
/* Menu Servizi — elenco verticale ordinato */
.dropdown-services {
  min-width: 272px; padding: 0.5rem; list-style: none; margin: 0;
}
.dropdown-services > li { margin: 0; }
.dropdown-services__overview {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.35rem; padding-bottom: 0.35rem;
}
.dropdown-services__overview a {
  font-weight: 600; color: var(--text) !important;
}
.dropdown-services a {
  padding: 0.55rem 0.75rem; font-size: 0.9375rem; line-height: 1.35;
}
.header-cta { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.65rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: 0.2s ease;
  font-family: inherit;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-primary {
  background: #1e293b; color: #fff; border-color: #1e293b;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #334155; border-color: #334155; color: #fff; }
.btn-outline {
  background: var(--bg-elevated); color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent-4); color: var(--accent-4); }
.btn-ghost { background: var(--bg-subtle); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: #e2e8f0; color: var(--text); }

/* Hero full-bleed (Hazel) */
.hero-fullbleed {
  position: relative; min-height: clamp(420px, 72vh, 620px);
  display: flex; align-items: center; color: #fff;
}
.hero-fullbleed__media { position: absolute; inset: 0; z-index: 0; }
.hero-fullbleed__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-fullbleed__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.35) 100%);
}
.hero-fullbleed__content {
  position: relative; z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) 0;
  max-width: 640px;
}
.hero-fullbleed__content .section-label { color: rgba(255, 255, 255, 0.85); }
.hero-fullbleed__content h1 { color: #fff; }
.hero-lead { font-size: 1.125rem; color: rgba(255, 255, 255, 0.88); max-width: 42ch; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-fullbleed .btn-outline {
  border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent;
}
.hero-fullbleed .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Trust strip */
.trust-strip {
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.trust-item strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600; color: var(--text); line-height: 1.1;
}
.trust-item span { font-size: 0.875rem; color: var(--text-muted); }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.page-shell { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 7vw, 5rem); }
.page-shell__header {
  margin-bottom: 2.5rem; text-align: left; width: 100%;
}
.page-shell__header--center { text-align: center; max-width: 680px; margin-inline: auto; }
.page-shell__header p { color: var(--text-muted); max-width: 72ch; margin-bottom: 0; }

/* Cards grid */
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.card-media {
  margin: -1.75rem -1.75rem 1.25rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 160px; object-fit: cover; }
.seo-photo, .hero-photo {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.page-figure { margin: 1.5rem 0 0; max-width: 720px; }
.page-figure figcaption { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.split-media.reverse { direction: rtl; }
.split-media.reverse > * { direction: ltr; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: #d4d4d8; }
.card--minimal { border: none; border-top: 1px solid var(--border); border-radius: 0; padding: 2rem 0; background: transparent; }
.card--minimal:hover { transform: none; box-shadow: none; }
.card--minimal .card-icon {
  width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg-subtle);
  color: var(--accent-4); margin-bottom: 1.25rem;
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--accent-4); margin-bottom: 1rem;
}
.card-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.5rem; color: var(--link); }
.card-link:hover { color: var(--accent-1); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--border); }
.step {
  padding: 2rem 1.5rem 0 0; border-right: 1px solid var(--border); background: transparent;
}
.step:last-child { border-right: none; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.1em;
  color: var(--accent-4); font-weight: 600; margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.9375rem; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item button {
  width: 100%; text-align: left; padding: 1.1rem 0; background: none; border: none;
  color: var(--text); font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-panel { padding: 0 0 1.1rem; color: var(--text-muted); display: none; }
.faq-item.is-open .faq-panel { display: block; }

.cta-band {
  text-align: center; padding: 3rem 2rem; border: 1px solid var(--border); background: var(--bg-elevated);
}
.cta-band .btn { margin: 0 0.35rem 0.5rem; }
.cta-dark {
  background: var(--bg-dark); color: #e4e4e7; padding: clamp(3.5rem, 7vw, 5rem) 0; text-align: center;
}
.cta-dark h2 { color: #fff; }
.cta-dark p { color: #a1a1aa; max-width: 520px; margin-inline: auto 1rem; }
.cta-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent;
}
.cta-dark .btn-outline:hover {
  border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12);
}
.cta-dark .btn-primary { color: #fff; }

.page-hero { padding: 0; border: none; }
.page-hero p { color: var(--text-muted); max-width: 65ch; }

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.875rem; color: var(--text-muted);
  padding: 0; margin: 0 0 1.25rem; list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: 0.45; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-4); }

/* Service pages */
.service-page { padding-bottom: 0; }
.service-page--assistenza-remota { --service-accent: #0891b2; --service-accent-soft: #ecfeff; }
.service-page--assistenza-hardware { --service-accent: #7c3aed; --service-accent-soft: #f5f3ff; }
.service-page--assistenza-software { --service-accent: #db2777; --service-accent-soft: #fdf2f8; }
.service-page--sviluppo-web { --service-accent: #ea580c; --service-accent-soft: #fff7ed; }
.service-page--assistenza-sistemistica { --service-accent: #0f766e; --service-accent-soft: #f0fdfa; }
.service-page--consulenza { --service-accent: #4f46e5; --service-accent-soft: #eef2ff; }

.service-hero {
  background: linear-gradient(180deg, var(--service-accent-soft, #f4f4f5) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.service-hero .section-label { color: var(--service-accent, var(--accent-4)); }
.service-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.service-hero__badge { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; }
.service-hero__icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--service-accent, var(--accent-4)); box-shadow: var(--shadow-sm);
}
.service-hero__tagline { font-size: 1.125rem; color: var(--text-muted); max-width: 48ch; margin-bottom: 1.5rem; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.service-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0; padding: 0; list-style: none;
}
.service-highlights li {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0.85rem 1rem; box-shadow: var(--shadow-sm);
}
.service-highlights strong {
  display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--text); margin-bottom: 0.2rem;
}
.service-highlights span { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.service-hero__media { margin: 0; }
.service-hero__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow);
}

.service-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.service-body__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(2rem, 4vw, 3rem); align-items: start;
}
.service-main { min-width: 0; }
.service-lead {
  font-size: 1.125rem; line-height: 1.75; color: var(--text-muted);
  max-width: 72ch; margin: 0 0 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.service-panel { margin-bottom: 2.75rem; }
.service-panel h2 { margin-bottom: 1.25rem; }
.service-check-columns { columns: 2; column-gap: 2rem; }
.service-check-columns li { break-inside: avoid; }

.service-split {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center;
  margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border);
}
.service-split--reverse { direction: rtl; }
.service-split--reverse > * { direction: ltr; }
.service-split__visual {
  min-height: 200px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--service-accent-soft, #f4f4f5), var(--bg-elevated));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.service-split__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg-elevated); color: var(--service-accent, var(--accent-4));
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.service-split__text h2 { margin-top: 0; }

.service-tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; list-style: none; padding: 0; margin: 0;
}
.service-tile {
  padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--bg-elevated);
  border: 1px solid var(--border); font-size: 0.9375rem; color: var(--text-muted);
}
.service-tile-grid .service-tile:hover { border-color: var(--service-accent, var(--accent-4)); color: var(--text); }

.service-numbered-block {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--border);
}
.service-numbered-block:last-child { border-bottom: none; }
.service-numbered-block__n {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600;
  color: var(--service-accent, var(--accent-4)); line-height: 1;
}
.service-deliverables { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.service-deliverable {
  font-size: 0.875rem; font-weight: 500; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text);
}
.service-infra-band {
  background: var(--bg-dark); color: #e4e4e7; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2.5rem;
}
.service-infra-band h2 { color: #fff; margin-bottom: 1.25rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.service-infra-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }
.service-infra-list li {
  padding-left: 1.25rem; position: relative; color: #cbd5e1; font-size: 0.95rem;
}
.service-infra-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 6px; height: 6px;
  border-radius: 50%; background: var(--service-accent, #2dd4bf);
}

.service-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.service-timeline__item {
  position: relative; padding: 0 0 1.75rem 1.5rem; margin-left: 0.35rem;
}
.service-timeline__item::before {
  content: ""; position: absolute; left: -0.45rem; top: 0.35rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--service-accent, var(--accent-4));
  box-shadow: 0 0 0 4px var(--service-accent-soft, #f4f4f5);
}
.service-timeline__item h3 { margin-top: 0; font-size: 1.05rem; }
.service-timeline__item p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

.service-steps--inline { margin-top: 0.5rem; }
.service-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.service-faq-grid .faq-item { grid-column: span 1; }

.service-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.service-aside__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.service-aside__card--muted { background: var(--bg-subtle); }
.service-aside__lead { font-size: 0.9375rem; color: var(--text-muted); }
.service-related { list-style: none; margin: 0 0 1rem; padding: 0; }
.service-related li { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.service-related li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.service-related a { font-weight: 600; text-decoration: none; color: var(--text); display: block; margin-bottom: 0.25rem; }
.service-related a:hover { color: var(--service-accent, var(--accent-4)); }
.service-related span { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.45; display: block; }
.btn-block { display: block; text-align: center; width: 100%; }
.service-page-cta { margin-top: 0; }

/* Inner pages (Chi siamo, hub servizi) — stesso linguaggio delle pagine servizio */
.page-inner { padding-bottom: 0; }
.page-inner--about { --page-accent: #0891b2; --page-accent-soft: #ecfeff; }
.page-inner--services-hub { --page-accent: #0f766e; --page-accent-soft: #f0fdfa; }
.page-inner--contact { --page-accent: #0891b2; --page-accent-soft: #ecfeff; }

.inner-hero {
  background: linear-gradient(180deg, var(--page-accent-soft, #f4f4f5) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.inner-hero .section-label { color: var(--page-accent, var(--accent-4)); }
.inner-hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.inner-hero__badge { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; }
.inner-hero__icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--page-accent, var(--accent-4)); box-shadow: var(--shadow-sm);
}
.inner-hero__lead { font-size: 1.125rem; color: var(--text-muted); max-width: 48ch; margin-bottom: 1.25rem; }
.inner-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.inner-hero__media { margin: 0; }
.inner-hero__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow);
}

.page-inner__body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-inner__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(2rem, 4vw, 3rem); align-items: start;
}
.page-inner__grid--wide-main .page-inner__main { min-width: 0; }
.page-inner-cta { margin-top: 0; }

.inner-aside { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.inner-aside__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.inner-aside__card--muted { background: var(--bg-subtle); }
.inner-aside__lead { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 1rem; }

.about-values {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.about-value {
  padding: 1.35rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.about-value__n {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--page-accent, var(--accent-4)); display: block; margin-bottom: 0.5rem;
}
.about-value h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.about-value p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }

/* Hub cards (home + elenco servizi) */
.hub-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem;
}
.hub-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.hub-card .card-media { margin: 0; border-bottom: 1px solid var(--border); }
.hub-card .card-media img { height: 168px; object-fit: cover; }
.hub-card .card-icon,
.hub-card h2,
.hub-card h3,
.hub-card p,
.hub-card .card-link { margin-left: 1.5rem; margin-right: 1.5rem; }
.hub-card .card-icon { margin-top: 1.25rem; }
.hub-card p { flex: 1; font-size: 0.9375rem; color: var(--text-muted); }
.hub-card .card-link { margin-bottom: 1.5rem; }
.hub-card { border-top: 3px solid var(--hub-accent, var(--accent-4)); transition: transform 0.2s, box-shadow 0.2s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hub-card--assistenza-remota { --hub-accent: #0891b2; }
.hub-card--assistenza-hardware { --hub-accent: #7c3aed; }
.hub-card--assistenza-software { --hub-accent: #db2777; }
.hub-card--sviluppo-web { --hub-accent: #ea580c; }
.hub-card--assistenza-sistemistica { --hub-accent: #0f766e; }
.hub-card--consulenza { --hub-accent: #4f46e5; }
.hub-card .card-icon { color: var(--hub-accent, var(--accent-4)); }

.home-services__more { text-align: center; margin: 2.5rem 0 0; }

/* Home hero pills */
.hero-pills {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem;
  list-style: none; margin: 1.75rem 0 0; padding: 0; max-width: 520px;
}
.hero-pills li {
  padding: 0.65rem 0.75rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.hero-pills strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: #fff; }
.hero-pills span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.78); }
.hero-fullbleed .btn-ghost {
  border-color: rgba(255, 255, 255, 0.25); color: #fff; background: rgba(255, 255, 255, 0.06);
}
.hero-fullbleed .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero-cta-link { text-transform: none; letter-spacing: normal; font-weight: 500; }

.home-about__grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.home-about__lead { font-size: 1.05rem; color: var(--text-muted); }
.home-about__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.home-about__media .seo-photo { box-shadow: var(--shadow); }

.home-spotlight__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ecfeff 0%, var(--bg-elevated) 55%);
  border: 1px solid var(--border);
}
.home-spotlight__media { margin: 0; }
.home-spotlight__media .seo-photo { margin: 0; }

.home-testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.home-testimonials .testimonial { padding: 1.5rem; height: 100%; }

/* Content prose */
.prose h2 { margin-top: 2rem; }
.service-intro { font-size: 1.125rem; line-height: 1.75; color: var(--text-muted); max-width: 72ch; margin-bottom: 2rem; }
.prose ul.check-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; color: var(--text-muted);
}
.prose ul.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent-4);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.service-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-bottom: 2rem; align-items: start; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem;
}
.contact-info-card li { margin-bottom: 1rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text); font: inherit;
  box-shadow: none; outline: none;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2371717a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent-4);
  outline: 2px solid var(--accent-4); outline-offset: 1px;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.contact-form-card__lead { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.contact-form-card .h3 { margin-top: 0; }
.contact-form__submit { color: #fff; min-width: 220px; margin-top: 0.25rem; }
.page-inner__grid--contact { align-items: start; }
.contact-sidebar__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.contact-sidebar__list li {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; color: var(--text-muted);
}
.contact-sidebar__list a { color: var(--link); text-decoration: none; font-weight: 500; }
.contact-sidebar__map { margin-top: 0; }
.contact-sidebar__map iframe { height: 220px; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.form-msg.ok { background: #ecfdf5; border: 1px solid #86efac; color: #166534; }
.form-msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.form-check input { margin-top: 0.25rem; width: auto; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Testimonials placeholder */
.testimonial {
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1.6;
  color: var(--text); border: none; padding: 0; font-style: normal;
}
.testimonial::before { content: "\201C"; color: var(--accent-1); font-size: 2rem; line-height: 0; display: block; margin-bottom: 0.75rem; }
.testimonial cite { display: block; margin-top: 0.75rem; font-style: normal; font-weight: 600; color: var(--text); font-size: 0.9rem; }

/* Footer */
.site-footer {
  margin-top: 0; padding-bottom: env(safe-area-inset-bottom, 0);
}
body.has-cookie-banner { padding-bottom: 5.5rem; }
.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1e293b; padding: 1.25rem 0;
}
.footer-cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-cta__text { margin: 0; font-weight: 500; color: #f1f5f9; font-size: 1rem; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-cta__wa { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.footer-cta__wa:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }
.footer-body {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.footer-main {
  display: grid; grid-template-columns: 1.35fr 0.85fr 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.footer-logo { display: inline-block; margin-bottom: 1rem; text-decoration: none; }
.footer-logo__surface {
  display: inline-block; background: transparent; padding: 0; box-shadow: none; line-height: 0;
}
.footer-logo img { height: 88px; width: auto; max-width: min(360px, 100%); display: block; }
.footer-body .footer-tagline { font-size: 0.9375rem; color: var(--text-muted); margin: 0 0 1rem; max-width: 38ch; line-height: 1.55; }
.footer-body .footer-legal-line { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.footer-body .footer-legal-line strong { color: var(--text); font-weight: 600; }
.footer-col { min-width: 0; }
.service-steps { margin: 2rem 0 3rem; border-top: 1px solid var(--border); }
.footer-body .footer-title { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin: 0 0 1rem; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-body .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; }
.footer-body .footer-links a:hover { color: var(--accent-4); }
.footer-col--services { min-width: 220px; }
.footer-services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem;
  list-style: none; margin: 0; padding: 0;
}
.footer-body .footer-services-grid a {
  display: block; color: var(--text-muted); text-decoration: none; font-size: 0.9375rem; line-height: 1.35;
  padding: 0.15rem 0;
}
.footer-body .footer-services-grid a:hover { color: var(--accent-4); }
.footer-body .footer-services-all {
  display: inline-block; margin-top: 0.85rem; font-size: 0.875rem; font-weight: 600;
  color: var(--link); text-decoration: none;
}
.footer-body .footer-services-all:hover { color: var(--accent-4); text-decoration: underline; }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li { margin-bottom: 0.85rem; font-size: 0.9375rem; }
.footer-body .footer-contact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.15rem; }
.footer-body .footer-contact-value { color: var(--text-muted); }
.footer-body .footer-contact-list a { color: var(--text); font-weight: 500; text-decoration: none; }
.footer-body .footer-contact-list a:hover { color: var(--accent-4); }
.footer-body .footer-hours .hours-label { display: block; font-weight: 500; color: var(--text); margin-bottom: 0.25rem; }
.footer-body .hours-list { margin: 0; padding: 0 0 0 1rem; color: var(--text-muted); font-size: 0.875rem; }
.hours-list li { margin-bottom: 0.15rem; }
.footer-nap { color: var(--text-muted); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.15rem 0; background: #0b1220; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.8125rem; color: #64748b; }
.footer-copy { margin: 0; max-width: 52ch; line-height: 1.5; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.65rem 1.1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.footer-legal a, .footer-legal-btn { color: #94a3b8; text-decoration: none; font-size: inherit; font-family: inherit; background: none; border: none; padding: 0; cursor: pointer; }
.footer-legal a:hover, .footer-legal-btn:hover { color: #38bdf8; text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 1rem 0 1.5rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 0.65rem 0.75rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-subtle); font-weight: 600; }
.map-consent { padding: 1.25rem; text-align: center; background: var(--bg-subtle); font-size: 0.875rem; color: var(--text-muted); }
.map-consent p { margin: 0 0 0.75rem; }
.map-wrap--consent { min-height: 120px; }
.contact-sidebar__hours { margin: 0 0 1rem; font-size: 0.9rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 1rem;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-inner { width: var(--container); margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-text p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--text-muted); max-width: 720px; }
.cookie-text p:last-child { margin-bottom: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.cookie-preferences {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.cookie-preferences[hidden] { display: none !important; }
.cookie-preferences__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.cookie-preferences__panel {
  position: relative; width: min(480px, 100%); max-height: 90vh; overflow: auto;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.cookie-preferences__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.cookie-preferences__head h2 { margin: 0; font-size: 1.2rem; }
.cookie-preferences__close {
  background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0.15rem;
}
.cookie-preferences__intro { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1rem; }
.cookie-pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border); cursor: pointer;
}
.cookie-pref-row--locked { cursor: default; }
.cookie-pref-row__text { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.875rem; }
.cookie-pref-row__text strong { color: var(--text); font-size: 0.9375rem; }
.cookie-pref-row__text span { color: var(--text-muted); line-height: 1.45; }
.cookie-pref-badge { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.cookie-pref-row input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--accent-4); }
.cookie-preferences__actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }
body.cookie-prefs-open { overflow: hidden; }

/* Area chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: var(--accent-4); color: var(--accent-4); background: #fff; }

/* Landing SEO servizio × comune */
.service-hero--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.service-hero--compact .service-hero__grid { grid-template-columns: 1fr; }
.service-local-page__hub { margin-top: 1.25rem; font-size: 0.9375rem; }
.service-local-links__intro { color: var(--text-muted); max-width: 60ch; margin-bottom: 1rem; }
.local-area-chips {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem;
}
.local-area-chips--wrap { flex-direction: row; flex-wrap: wrap; gap: 0.65rem; }
.local-area-chips a {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.local-area-chips a:hover { border-color: var(--service-accent, var(--accent-4)); color: var(--service-accent, var(--accent-4)); }
.faq-list { margin: 1.25rem 0 0; }
.faq-list dt { font-weight: 600; margin-top: 1rem; }
.faq-list dd { margin: 0.35rem 0 0; color: var(--text-muted); }

.sitemap-local-grid {
  columns: 2; column-gap: 2rem; list-style: none; margin: 0 0 1.75rem; padding: 0;
}
.sitemap-local-grid li { break-inside: avoid; margin-bottom: 0.35rem; font-size: 0.9rem; }
@media (max-width: 640px) { .sitemap-local-grid { columns: 1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .contact-grid, .service-detail-grid, .split-media,
  .service-hero__grid, .service-body__grid, .service-split, .service-highlights,
  .service-tile-grid, .service-faq-grid, .service-check-columns { grid-template-columns: 1fr; columns: 1; }
  .service-highlights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-services-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .service-aside, .inner-aside { position: static; }
  .inner-hero__grid, .page-inner__grid, .home-about__grid, .home-spotlight__inner,
  .home-testimonials__grid, .about-values, .hero-pills { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .split-media.reverse { direction: ltr; }
  .grid-3 { gap: 1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cta__inner { flex-direction: column; align-items: flex-start; }
  .footer-cta__actions { width: 100%; }
  .footer-cta__actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 768px) {
  .site-topbar { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 1rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: 0.25s ease;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; padding-left: 0.5rem; display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown-mega { grid-template-columns: 1fr; }
  .header-cta { width: 100%; justify-content: center; margin-top: 0.5rem; }
  .steps { grid-template-columns: 1fr; }
  .nav-list { justify-content: flex-start; }
}
