/* Complete visual reset loaded after legacy styles. Geo pages are intentionally excluded. */
:root {
  --ui-bg: #080807;
  --ui-bg-2: #10100e;
  --ui-surface: rgba(22, 22, 19, 0.86);
  --ui-surface-2: rgba(32, 31, 27, 0.82);
  --ui-card: rgba(248, 244, 232, 0.08);
  --ui-card-strong: rgba(248, 244, 232, 0.12);
  --ui-text: #fffaf0;
  --ui-text-strong: #ffffff;
  --ui-muted: #c7c0ad;
  --ui-soft: #9e9584;
  --ui-line: rgba(255, 250, 240, 0.16);
  --ui-line-strong: rgba(255, 250, 240, 0.28);
  --ui-teal: #38f8d4;
  --ui-teal-2: #16d6b4;
  --ui-amber: #ffb84d;
  --ui-violet: #9b7cff;
  --ui-red: #ff6b6b;
  --ui-radius: 10px;
  --ui-radius-lg: 18px;
  --ui-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --ui-shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.24);
}

html {
  background: var(--ui-bg) !important;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  color: var(--ui-text) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(145deg, #080807 0%, #12110f 42%, #17140f 100%) !important;
  background-size: 56px 56px, 56px 56px, auto !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(56, 248, 212, 0.16), transparent 34%),
    linear-gradient(265deg, rgba(255, 184, 77, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(155, 124, 255, 0.08), transparent 42%);
}

#vanta-bg,
body > canvas {
  display: none !important;
}

body,
main,
section,
.container {
  color: var(--ui-text) !important;
}

a {
  color: var(--ui-teal) !important;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--ui-amber) !important;
}

.navbar,
.navbar.navbar-light,
.navbar.navbar-dark,
.home-navbar {
  background: rgba(8, 8, 7, 0.82) !important;
  border-bottom: 1px solid var(--ui-line) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: blur(18px) saturate(1.3);
}

.navbar .container {
  min-height: 68px;
}

.navbar-brand {
  color: var(--ui-text-strong) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.12em !important;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.navbar-favicon,
.navbar-brand .navbar-favicon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--ui-line), 0 0 22px rgba(56, 248, 212, 0.22);
}

.navbar .nav-link {
  color: rgba(255, 250, 240, 0.74) !important;
  font-size: 0.93rem !important;
  font-weight: 720 !important;
  border-radius: 999px !important;
  padding: 0.52rem 0.82rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--ui-text-strong) !important;
  background: rgba(255, 250, 240, 0.08) !important;
}

.navbar .nav-link.btn,
.navbar .btn {
  color: #08100e !important;
  background: linear-gradient(135deg, var(--ui-teal), #b5ffe9) !important;
  border: 0 !important;
  box-shadow: 0 14px 36px rgba(56, 248, 212, 0.22) !important;
}

.navbar-toggler {
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 12px !important;
  background: rgba(255, 250, 240, 0.07) !important;
}

.navbar-toggler-icon {
  filter: invert(1);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.home-hero__title,
.hero-services h1,
.blog-hero h1,
.services-section h1,
.about-section h1,
.content-section h1,
.content-section h2,
.content-section h3,
.card-title,
.home-service-card__title,
.home-review-card__name {
  color: var(--ui-text-strong) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.03 !important;
  font-weight: 860 !important;
}

p,
li,
.lead,
.section-subtitle,
.home-hero__lead,
.hero-lead,
.section-lead,
.card-text,
.text-muted,
.about-text,
.blog-article p,
.blog-article li,
.content-section p,
.content-section li {
  color: var(--ui-muted) !important;
}

.lead,
.home-hero__lead,
.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem) !important;
}

.btn {
  border-radius: 999px !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
  padding: 0.78rem 1.35rem !important;
}

.btn-primary,
.btn-success {
  color: #07100e !important;
  background: linear-gradient(135deg, var(--ui-teal), #d7ffe9) !important;
  border: 0 !important;
  box-shadow: 0 18px 40px rgba(56, 248, 212, 0.22) !important;
}

.btn-primary:hover,
.btn-success:hover {
  color: #070807 !important;
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(56, 248, 212, 0.30) !important;
}

.btn-outline-light,
.btn-outline-dark {
  color: var(--ui-text) !important;
  background: rgba(255, 250, 240, 0.07) !important;
  border: 1px solid var(--ui-line-strong) !important;
  box-shadow: none !important;
}

.btn-outline-light:hover,
.btn-outline-dark:hover {
  color: #080807 !important;
  background: var(--ui-amber) !important;
  border-color: var(--ui-amber) !important;
}

.hero,
.home-hero,
.hero-services,
.hero-ai,
.hero-aziende,
.blog-hero,
.services-section,
.about-section,
.contact-section,
.content-section,
.section-spacing,
.home-section,
.blog-section {
  background: transparent !important;
  color: var(--ui-text) !important;
}

.home-hero {
  min-height: min(850px, calc(100vh - 72px)) !important;
  margin: 0 !important;
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(4.5rem, 8vw, 7rem) !important;
  align-items: center !important;
  text-align: left !important;
  isolation: isolate;
  overflow: hidden;
}

.home-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -2 !important;
  width: auto !important;
  height: auto !important;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.95) 0%, rgba(8, 8, 7, 0.78) 42%, rgba(8, 8, 7, 0.36) 100%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.18), rgba(8, 8, 7, 0.9)),
    url("/img/background.webp") center right / cover no-repeat !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  filter: none !important;
  transform: none !important;
}

.home-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  z-index: -1 !important;
  height: 34%;
  width: auto !important;
  background: linear-gradient(180deg, transparent, var(--ui-bg)) !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  filter: none !important;
  transform: none !important;
}

.home-hero .container,
.home-hero .row {
  position: relative;
  z-index: 1;
}

.home-hero .row {
  align-items: center !important;
}

.home-hero__title {
  max-width: 11ch;
  font-size: clamp(3.25rem, 8vw, 7.25rem) !important;
  margin: 1rem 0 1.25rem !important;
}

#hero .display-4,
#hero .home-hero__title,
#hero .lead,
#hero .home-hero__lead {
  color: var(--ui-text-strong) !important;
}

.home-hero__lead {
  max-width: 48rem !important;
  color: rgba(255, 250, 240, 0.82) !important;
}

.home-hero__eyebrow,
.section-eyebrow,
.home-badge,
.eyebrow,
.badge-pill,
.tagline,
.service-tag {
  width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  color: var(--ui-teal) !important;
  background: rgba(56, 248, 212, 0.10) !important;
  border: 1px solid rgba(56, 248, 212, 0.34) !important;
  border-radius: 999px !important;
  padding: 0.44rem 0.9rem !important;
  font-size: 0.74rem !important;
  font-weight: 880 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.home-hero__actions,
.hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.9rem !important;
  margin-top: 2rem !important;
}

.home-hero__pills,
.hero-tags,
.tech-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.68rem !important;
  margin-top: 1.5rem !important;
}

.home-pill,
.chip,
.tech-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  color: rgba(255, 250, 240, 0.82) !important;
  background: rgba(255, 250, 240, 0.08) !important;
  border: 1px solid rgba(255, 250, 240, 0.16) !important;
  border-radius: 999px !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.92rem !important;
}

.home-pill::before,
.chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--ui-teal);
  box-shadow: 0 0 20px rgba(56, 248, 212, 0.8);
}

.glass-card,
.card,
.service-box,
.blog-card,
.about-content,
.contact-form,
.panel,
.value-card,
.service-card,
.feature-card,
.usecase-card,
.stat-card,
.process-step,
.cta-panel,
.home-review__wrapper,
.home-review-card,
.home-zone-card,
.zone-card,
.sidebar-widget,
.list-group-item,
.service-intro-card,
.service-focus-item {
  color: var(--ui-text) !important;
  background: linear-gradient(145deg, rgba(31, 33, 28, 0.94), rgba(10, 10, 8, 0.86)) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: var(--ui-shadow-soft) !important;
  backdrop-filter: blur(18px) saturate(1.25);
}

.glass-card:hover,
.card:hover,
.service-box:hover,
.blog-card:hover,
.service-card:hover,
.feature-card:hover,
.usecase-card:hover,
.home-zone-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 248, 212, 0.42) !important;
  box-shadow: var(--ui-shadow) !important;
}

.home-hero__card {
  max-width: 440px !important;
  margin-left: auto !important;
  position: relative;
}

.home-hero__card h3,
.home-hero__card li,
.home-hero__card p,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card li,
.glass-card p {
  color: var(--ui-text) !important;
}

.home-hero__card li,
.glass-card p,
.glass-card li {
  color: rgba(255, 250, 240, 0.78) !important;
}

.home-hero__card::before {
  content: "LIVE OPS";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #08100e;
  background: var(--ui-amber);
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-hero__list,
.modern-list,
.home-service-card__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.2rem 0 0 !important;
}

.home-hero__list li,
.modern-list li,
.home-service-card__list li {
  position: relative !important;
  padding-left: 1.45rem !important;
  margin-bottom: 0.72rem !important;
}

.home-hero__list li::before,
.modern-list li::before,
.home-service-card__list li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.62rem !important;
  width: 0.55rem !important;
  height: 0.55rem !important;
  border-radius: 3px !important;
  background: linear-gradient(135deg, var(--ui-teal), var(--ui-amber)) !important;
  box-shadow: 0 0 18px rgba(56, 248, 212, 0.42) !important;
}

.home-section,
.services-section,
.about-section,
.contact-section,
.content-section,
.section-spacing,
.blog-section {
  padding-top: clamp(4rem, 8vw, 7rem) !important;
  padding-bottom: clamp(4rem, 8vw, 7rem) !important;
}

.home-section__header {
  text-align: left !important;
  max-width: 860px;
  margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.home-section__header .section-title,
.services-section .section-title,
.blog-hero h1 {
  font-size: clamp(2.4rem, 5.8vw, 5rem) !important;
}

.home-service-card,
.service-box {
  min-height: 100%;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  text-align: left !important;
  text-decoration: none !important;
}

.home-service-card__icon {
  width: 3.25rem !important;
  height: 3.25rem !important;
  display: grid !important;
  place-items: center !important;
  color: #08100e !important;
  background: linear-gradient(135deg, var(--ui-teal), #f4ffe8) !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  font-size: 1.25rem !important;
}

.service-box strong {
  color: var(--ui-text-strong) !important;
  font-size: 1.08rem !important;
}

.service-box p,
.services-section p,
.card p,
.panel p,
.stat-card p,
.value-card p,
.feature-card p,
.usecase-card p,
.process-step p,
.service-card p,
.home-service-card p,
.contact-form p,
.contact-form li,
.form-check-label,
.contact-form .form-check-label,
label.form-check-label {
  color: rgba(255, 250, 240, 0.78) !important;
}

.services-section .lead,
.contact-section .lead,
.about-section .lead,
.content-section .lead {
  color: rgba(255, 250, 240, 0.84) !important;
}

.home-about {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.02), rgba(56, 248, 212, 0.035)) !important;
}

.about-img-wrapper,
.about-img {
  border-radius: var(--ui-radius-lg) !important;
}

.about-img-wrapper {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow) !important;
}

.about-img {
  filter: saturate(1.08) contrast(1.02);
}

.home-review__wrapper {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}

.home-review__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1rem !important;
}

.home-review-card__avatar {
  background: linear-gradient(135deg, var(--ui-violet), var(--ui-teal)) !important;
  color: #080807 !important;
}

.home-review-card__badge {
  color: var(--ui-teal) !important;
  background: rgba(56, 248, 212, 0.1) !important;
  border-color: rgba(56, 248, 212, 0.28) !important;
}

.home-review-card__toggle {
  color: #080807 !important;
  background: var(--ui-amber) !important;
  border: 0 !important;
}

.home-zones__grid,
.zones-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 0.85rem !important;
}

.home-zone-card,
.zones-grid .zone-card {
  color: var(--ui-text) !important;
  text-align: center !important;
  text-decoration: none !important;
  padding: 0.95rem !important;
}

.map-container,
.map-embed {
  border-radius: var(--ui-radius-lg) !important;
  overflow: hidden !important;
}

.contact-form,
body.home-page #contact .contact-form {
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}

.form-control,
.contact-form .form-control,
.input-group .form-control,
.contact-form textarea.form-control,
.contact-field-input,
body.home-page #contact .contact-form .form-control {
  color: var(--ui-text) !important;
  background: rgba(8, 8, 7, 0.72) !important;
  border: 1px solid var(--ui-line-strong) !important;
  border-radius: 12px !important;
  padding: 0.85rem 1rem !important;
}

.form-control::placeholder,
.contact-form .form-control::placeholder,
.contact-field-input::placeholder {
  color: rgba(199, 192, 173, 0.72) !important;
}

.form-control:focus,
.contact-form .form-control:focus {
  border-color: var(--ui-teal) !important;
  box-shadow: 0 0 0 0.22rem rgba(56, 248, 212, 0.18) !important;
}

.form-check-label,
.contact-form label,
body.home-page #contact .contact-form label {
  color: var(--ui-muted) !important;
}

.form-check-input {
  background-color: rgba(8, 8, 7, 0.8) !important;
  border-color: var(--ui-line-strong) !important;
}

.form-check-input:checked {
  background-color: var(--ui-teal-2) !important;
  border-color: var(--ui-teal-2) !important;
}

.blog-hero {
  padding-top: clamp(5rem, 8vw, 7rem) !important;
  text-align: left !important;
}

.blog-card {
  overflow: hidden !important;
}

.blog-card .card-img-top {
  height: 240px !important;
  object-fit: cover !important;
  filter: saturate(1.05) contrast(1.02);
}

.blog-card .card-body {
  padding: 1.35rem !important;
}

.blog-article,
.blog-main .blog-article,
main.container .blog-article {
  max-width: 980px !important;
  margin: 0 auto clamp(4rem, 8vw, 6rem) !important;
  padding: clamp(1.35rem, 3vw, 2.5rem) !important;
  background: linear-gradient(145deg, rgba(255, 250, 240, 0.105), rgba(255, 250, 240, 0.05)) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

.blog-article h2 {
  margin-top: 2.2rem !important;
  font-size: clamp(1.5rem, 3vw, 2.15rem) !important;
}

.blog-article h3 {
  margin-top: 1.55rem !important;
  font-size: 1.2rem !important;
}

.article-cover {
  border-radius: var(--ui-radius-lg) !important;
  border: 1px solid var(--ui-line) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

.hero-services,
.hero-ai,
.hero-aziende {
  padding-top: clamp(5rem, 8vw, 7rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
  min-height: auto !important;
  position: relative;
  overflow: hidden;
}

.hero-services::before,
.hero-ai::before,
.hero-aziende::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.92), rgba(8, 8, 7, 0.64)),
    url("/img/background.webp") center / cover no-repeat !important;
  opacity: 1 !important;
}

.hero-services::after,
.hero-ai::after,
.hero-aziende::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 0 !important;
  height: 40% !important;
  background: linear-gradient(180deg, transparent, var(--ui-bg)) !important;
}

.value-cards,
.services-grid,
.process-steps,
.usecase-grid {
  display: grid !important;
  gap: 1rem !important;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

.value-cards {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.process-steps {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

.usecase-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.stat-card strong,
.value-card h3 {
  color: var(--ui-teal) !important;
}

.step-index {
  color: #080807 !important;
  background: var(--ui-teal) !important;
  border: 0 !important;
}

.accordion-item,
.accordion-button,
.accordion-body {
  color: var(--ui-text) !important;
  background: rgba(255, 250, 240, 0.06) !important;
  border-color: var(--ui-line) !important;
}

.accordion-button:not(.collapsed) {
  color: var(--ui-teal) !important;
}

.accordion-button::after {
  filter: invert(1);
}

.text-white,
.text-light,
.text-white-50 {
  color: var(--ui-text) !important;
}

.bg-dark,
footer,
footer.bg-dark {
  background: #080807 !important;
}

footer {
  color: rgba(255, 250, 240, 0.78) !important;
  border-top: 1px solid var(--ui-line) !important;
}

footer a {
  color: var(--ui-teal) !important;
}

footer small {
  color: rgba(255, 250, 240, 0.62) !important;
}

.cc-window {
  color: var(--ui-text) !important;
  background: rgba(8, 8, 7, 0.96) !important;
  border: 1px solid var(--ui-line) !important;
  box-shadow: var(--ui-shadow) !important;
}

.cc-window .cc-message,
.cc-window a {
  color: rgba(255, 250, 240, 0.86) !important;
}

.cc-window .cc-btn {
  color: #080807 !important;
  border-radius: 999px !important;
  font-weight: 820 !important;
}

.cc-window .cc-btn.cc-deny {
  background: #fffaf0 !important;
}

.cc-window .cc-btn.cc-allow {
  background: var(--ui-teal) !important;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 64px !important;
  }

  .navbar .container {
    min-height: 56px;
  }

  .navbar-collapse {
    padding: 0.9rem 0 0.35rem !important;
  }

  .home-hero {
    min-height: auto !important;
    padding-top: clamp(4rem, 12vw, 6rem) !important;
  }

  .home-hero__title {
    max-width: 100%;
    font-size: clamp(2.75rem, 11vw, 5.5rem) !important;
  }

  .home-hero__card {
    margin: 1.5rem 0 0 !important;
    max-width: 100% !important;
  }

  .home-hero__actions .btn,
  .hero-actions .btn {
    width: auto !important;
  }
}

@media (max-width: 767.98px) {
  .home-hero {
    text-align: left !important;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.86), rgba(8, 8, 7, 0.92)),
      url("/img/background.webp") center / cover no-repeat !important;
  }

  .home-hero__title {
    font-size: clamp(2.55rem, 13vw, 4.25rem) !important;
  }

  .home-hero__actions,
  .hero-actions {
    width: 100%;
  }

  .home-hero__actions .btn,
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .home-pill,
  .chip,
  .tech-pill {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .home-section__header {
    text-align: left !important;
  }

  .home-section__header .section-title,
  .services-section .section-title,
  .blog-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem) !important;
  }

  .blog-card .card-img-top {
    height: 200px !important;
  }

  .cc-window.cc-floating,
  .cc-window.cc-banner {
    right: 10px !important;
    left: 10px !important;
    bottom: 10px !important;
    width: calc(100% - 20px) !important;
    max-width: none !important;
  }
}

/* Refined visual polish: quiet depth, consistent rhythm and useful feedback. */
:root {
  --ui-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ui-glow: 0 0 0 1px rgba(56, 248, 212, 0.08), 0 22px 65px rgba(0, 0, 0, 0.34);
}

html {
  scrollbar-color: rgba(56, 248, 212, 0.52) #0b0b09;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0b09;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #0b0b09;
  border-radius: 999px;
  background: linear-gradient(var(--ui-teal), var(--ui-violet));
}

.navbar {
  box-shadow:
    0 1px 0 rgba(255, 250, 240, 0.05),
    0 18px 50px rgba(0, 0, 0, 0.26) !important;
}

.navbar-brand {
  transition: transform 0.35s var(--ui-ease), color 0.25s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.navbar .nav-link:not(.btn) {
  position: relative;
}

.navbar .nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0.82rem;
  bottom: 0.28rem;
  left: 0.82rem;
  height: 2px;
  border-radius: 99px;
  background: var(--ui-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ui-ease);
}

.navbar .nav-link:not(.btn):hover::after,
.navbar .nav-link:not(.btn):focus-visible::after,
.navbar .nav-link:not(.btn).active::after {
  transform: scaleX(1);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.3s var(--ui-ease),
    box-shadow 0.3s var(--ui-ease),
    border-color 0.3s ease,
    background-color 0.3s ease !important;
}

.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -45%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-260%) rotate(18deg);
  transition: transform 0.65s var(--ui-ease);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(620%) rotate(18deg);
}

.btn:active {
  transform: translateY(0) scale(0.98) !important;
}

body :where(
  .card,
  .panel,
  .feature-card,
  .usecase-card,
  .stat-card,
  .case-study,
  .service-box,
  .home-service-card,
  .blog-card,
  .contact-form,
  .service-intro-card,
  .service-focus-item,
  .geo-card,
  .geo-proof,
  .geo-local-copy
) {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.38s var(--ui-ease),
    border-color 0.38s ease,
    box-shadow 0.38s var(--ui-ease),
    background-color 0.38s ease !important;
}

body :where(
  .card,
  .panel,
  .feature-card,
  .usecase-card,
  .stat-card,
  .case-study,
  .service-box,
  .home-service-card,
  .blog-card,
  .service-intro-card,
  .service-focus-item,
  .geo-card,
  .geo-proof,
  .geo-local-copy
)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(56, 248, 212, 0.62), transparent);
  opacity: 0.55;
}

.eyebrow,
.section-eyebrow,
.tagline,
.geo-eyebrow,
.badge-pill,
.service-focus-kicker {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.section-title,
.geo-heading h2 {
  text-wrap: balance;
}

.section-eyebrow::before,
.tagline::before {
  box-shadow: 0 0 16px rgba(56, 248, 212, 0.75);
}

.blog-card .card-img-top,
.article-cover,
.home-about__image,
.service-image {
  transition: transform 0.7s var(--ui-ease), filter 0.5s ease;
}

.blog-card .card-body {
  position: relative;
  z-index: 1;
}

.form-control,
.form-select,
textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-control:hover,
.form-select:hover,
textarea:hover {
  border-color: rgba(56, 248, 212, 0.42) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: var(--ui-teal) !important;
  box-shadow: 0 0 0 4px rgba(56, 248, 212, 0.14) !important;
}

.accordion-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: rgba(56, 248, 212, 0.42) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22) !important;
}

.accordion-button::after {
  transition: transform 0.35s var(--ui-ease) !important;
}

footer a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

footer a:hover {
  color: #fffaf0 !important;
  text-shadow: 0 0 18px rgba(56, 248, 212, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  body :where(
    .card,
    .feature-card,
    .usecase-card,
    .stat-card,
    .service-box,
    .home-service-card,
    .blog-card,
    .service-intro-card,
    .service-focus-item,
    .geo-card
  ):hover {
    transform: translateY(-6px);
    border-color: rgba(56, 248, 212, 0.42) !important;
    box-shadow: var(--ui-glow) !important;
  }

  .blog-card:hover .card-img-top,
  .home-about__image:hover,
  .service-image:hover {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.03);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.55rem;
    padding: 0.65rem !important;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: rgba(12, 12, 10, 0.96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.42);
  }

  .navbar .nav-link:not(.btn)::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn::after {
    display: none;
  }
}

/* Final contrast pass: neutralize legacy muted text after page-level styles. */
body :where(
  p,
  li,
  dd,
  dt,
  figcaption,
  blockquote,
  label,
  small,
  td,
  th,
  .lead,
  .text-muted,
  .text-white-50,
  .card-text,
  .section-lead,
  .section-subtitle,
  .hero-lead,
  .about-text,
  .accordion-body,
  .home-contact__intro,
  .home-contact__info,
  .home-review-card__text,
  .home-review-card__meta,
  .home-review__note,
  .service-intro-meta,
  .sidebar-widget,
  .zone-card,
  .faq-section
) {
  color: rgba(255, 250, 240, 0.88) !important;
  opacity: 1 !important;
}

body :where(h1, h2, h3, h4, h5, h6, strong, b) {
  color: #fffaf0 !important;
}

body :where(.text-muted, .text-white-50, .opacity-50, .opacity-75) {
  color: rgba(255, 250, 240, 0.9) !important;
  opacity: 1 !important;
}

body :where(
  .card,
  .panel,
  .service-card,
  .home-service-card,
  .feature-card,
  .value-card,
  .usecase-card,
  .process-step,
  .timeline-step,
  .stat-card,
  .case-study,
  .blog-card,
  .contact-form,
  .cta-panel,
  .service-box,
  .home-review-card,
  .sidebar-widget
) :where(p, li, small, span, label, .lead, .text-muted, .text-white-50) {
  color: rgba(255, 250, 240, 0.88) !important;
  opacity: 1 !important;
}

body :where(
  .eyebrow,
  .section-eyebrow,
  .tagline,
  .badge-pill,
  .stat-card .label,
  .service-focus-kicker,
  .home-pill,
  .chip,
  .tech-pill,
  .badge,
  .category-badge
) {
  color: #9ff7e8 !important;
  opacity: 1 !important;
}

body :where(.home-pill, .chip, .tech-pill, .badge-pill) i,
body :where(.home-pill, .chip, .tech-pill, .badge-pill) span {
  color: inherit !important;
}

body :where(.btn, button, .navbar-toggler, .cc-btn),
body :where(.btn, button, .navbar-toggler, .cc-btn) :where(span, i, strong) {
  opacity: 1 !important;
}

body :where(a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item)) {
  color: #7debdc !important;
}

body :where(a:not(.btn):not(.nav-link):not(.navbar-brand):not(.dropdown-item)):hover {
  color: #fffaf0 !important;
}

footer,
footer :where(p, li, small, span, .text-muted, .text-white-50) {
  color: rgba(255, 250, 240, 0.82) !important;
}

footer :where(h1, h2, h3, h4, h5, h6, strong) {
  color: #fffaf0 !important;
}

.hero-services::before,
.hero-ai::before,
.hero-aziende::before,
.service-hero::before {
  opacity: 1 !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 248, 212, 0.2), transparent 34%),
    linear-gradient(120deg, rgba(8, 8, 7, 0.92), rgba(8, 8, 7, 0.82) 58%, rgba(8, 8, 7, 0.92)) !important;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: rgba(255, 250, 240, 0.58) !important;
}

body.page-servizio-privati .content-section {
  background:
    linear-gradient(rgba(255, 250, 240, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.032) 1px, transparent 1px),
    #0d0c0a !important;
  background-size: 56px 56px !important;
}

body.page-servizio-privati :where(
  .service-intro-card,
  .service-focus-item,
  .process-card,
  .process-step,
  .callout-card,
  .contact-form,
  .accordion-item,
  .zone-card
) {
  color: var(--ui-text) !important;
  background: linear-gradient(145deg, rgba(32, 34, 29, 0.96), rgba(9, 9, 8, 0.9)) !important;
  border-color: rgba(255, 250, 240, 0.18) !important;
  box-shadow: var(--ui-shadow-soft) !important;
}

body.page-servizio-privati :where(
  .service-intro-card,
  .service-focus-item,
  .process-card,
  .process-step,
  .callout-card,
  .contact-form,
  .accordion-item,
  .zone-card
) :where(p, li, span, small, label, .lead, .text-muted, .accordion-body) {
  color: rgba(255, 250, 240, 0.9) !important;
  opacity: 1 !important;
}

body.page-servizio-privati :where(.service-focus-kicker, .process-step strong, .service-tag) {
  color: #9ff7e8 !important;
}

body.page-servizio-privati .service-intro-meta .icon-circle {
  background: linear-gradient(135deg, #38f8d4, #fff2a6) !important;
  box-shadow: 0 0 24px rgba(56, 248, 212, 0.28) !important;
}

body.page-servizio-privati .accordion-button,
body.page-servizio-privati .accordion-button:not(.collapsed) {
  color: #fffaf0 !important;
  background: rgba(8, 8, 7, 0.78) !important;
}

body.page-servizio-privati .service-focus-list li::before {
  color: #38f8d4 !important;
}

body :where(.case-study, .feature-card, .value-card, .panel, .stat-card) :where(ul, ol, li, span:not(.badge):not(.badge-pill)) {
  color: rgba(255, 250, 240, 0.9) !important;
  opacity: 1 !important;
}

.modern-list li,
.panel .modern-list li,
.panel.accent .modern-list li,
.case-study .modern-list li,
.cta-panel .modern-list li,
.service-focus-list li,
.home-service-card__list li {
  color: rgba(255, 250, 240, 0.9) !important;
  opacity: 1 !important;
}

.home-pill,
.chip,
.tech-pill {
  color: #fffaf0 !important;
  border-color: rgba(255, 250, 240, 0.24) !important;
}

.stat-card p,
.stat-card .label {
  color: rgba(255, 250, 240, 0.92) !important;
}

body.home-page #services .section-title,
body.home-page #about .section-title,
body.home-page #reviews .section-title,
body.home-page #contact .section-title,
body.home-page #zones .section-title,
body.home-page .home-section .section-title,
body.home-page .home-section__header .section-title,
body.home-page .home-about__card h2,
body.home-page .home-about__card .section-title,
body.home-page .text-white.section-title {
  color: #fffaf0 !important;
  opacity: 1 !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28) !important;
}

body.home-page #services .section-subtitle,
body.home-page #zones .section-subtitle,
body.home-page .home-section .section-subtitle,
body.home-page .home-about__card .about-text,
body.home-page .home-about__card p,
body.home-page .home-service-card__text,
body.home-page .home-review-card__text,
body.home-page .home-review-card__meta {
  color: rgba(255, 250, 240, 0.9) !important;
  opacity: 1 !important;
}

body.home-page .home-badge,
body.home-page .section-eyebrow {
  color: #9ff7e8 !important;
  border-color: rgba(56, 248, 212, 0.36) !important;
  background: rgba(56, 248, 212, 0.12) !important;
}

/* Accessibility and readability guardrails shared by every page type. */
html {
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  font-kerning: normal;
}

body :where(p, li, dd, blockquote, .lead, .section-lead, .section-subtitle, .hero-lead, .card-text) {
  line-height: 1.72 !important;
}

body :where(p, li, dd, blockquote, .card-text, .accordion-body) {
  font-size: max(1rem, 16px);
}

body :where(h1, h2, h3, h4, h5, h6) {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body :where(p, .lead, .section-lead, .section-subtitle, .hero-lead) {
  text-wrap: pretty;
}

/* Content must remain available if an observer or page script fails. */
body .reveal,
body .reveal:not(.is-visible),
body .reveal.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Decorative hero fades must stay behind text and controls. */
.hero-services,
.hero-ai,
.hero-aziende,
.service-hero {
  isolation: isolate;
}

.hero-services::after,
.hero-ai::after,
.hero-aziende::after,
.service-hero::after {
  z-index: -1 !important;
  pointer-events: none !important;
}

.hero-services > *,
.hero-ai > *,
.hero-aziende > *,
.service-hero > * {
  position: relative;
  z-index: 1;
}

body :where(
  .card,
  .panel,
  .feature-card,
  .usecase-card,
  .stat-card,
  .case-study,
  .service-box,
  .home-service-card,
  .blog-card,
  .contact-form,
  .accordion-item
) {
  border-color: rgba(255, 250, 240, 0.22) !important;
}

body :where(
  .card,
  .panel,
  .feature-card,
  .usecase-card,
  .stat-card,
  .case-study,
  .service-box,
  .home-service-card,
  .blog-card,
  .contact-form
) :where(p, li, small, label, .text-muted, .card-text) {
  color: #d8d2c2 !important;
}

.blog-card .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(56, 248, 212, 0.12), rgba(255, 184, 77, 0.08)),
    #171713;
}

.form-control,
.form-select,
textarea,
input {
  min-height: 48px;
  font-size: 1rem !important;
}

textarea.form-control,
textarea {
  min-height: 132px;
}

.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder,
input::placeholder {
  color: #aaa392 !important;
  opacity: 1 !important;
}

.form-select option {
  color: #fffaf0;
  background: #171713;
}

.accordion-button,
.accordion-button:not(.collapsed),
.accordion-body {
  color: #fffaf0 !important;
  background: #12120f !important;
}

.accordion-button {
  min-height: 56px;
  line-height: 1.45;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--ui-amber) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

::selection {
  color: #080807;
  background: var(--ui-teal);
}

/* Cookie consent is a legal control: never leave it transparent or unreadable. */
.cc-window,
.cc-window.cc-floating,
.cc-window.cc-banner,
.cc-window.cc-invisible {
  z-index: 2147483000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fffaf0 !important;
  background: #0b0d0c !important;
  border: 1px solid rgba(255, 250, 240, 0.32) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72) !important;
}

.cc-window .cc-message,
.cc-window .cc-message *,
.cc-window .cc-link {
  color: #fffaf0 !important;
  opacity: 1 !important;
}

.cc-window .cc-btn,
.cc-window .cc-btn.cc-deny,
.cc-window .cc-btn.cc-allow {
  min-height: 44px !important;
  color: #080807 !important;
  opacity: 1 !important;
  min-width: 0 !important;
  white-space: normal !important;
  text-align: center !important;
}

@media (max-width: 767.98px) {
  body :where(p, li, dd, blockquote, .card-text, .accordion-body) {
    font-size: 1rem !important;
  }

  body :where(.display-1, .display-2, .display-3, .display-4, .home-hero__title) {
    font-size: clamp(2.45rem, 12vw, 4rem) !important;
    line-height: 0.98 !important;
  }

  .cc-window.cc-floating,
  .cc-window.cc-banner {
    max-height: min(46vh, 360px) !important;
    overflow-y: auto !important;
    padding: 1rem !important;
  }

  .cc-window .cc-message {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }
}
