/*
 * Nexa Studio
 * Tema pubblico moderno, pulito e professionale per MicroSite CMS.
 * Autore: Sandro Brotini
 */

/* =========================================================
   Fondamenta
   ========================================================= */
html .cms-site.theme-nexa-studio {
  --nexa-container: 1600px;
  --nexa-gutter: clamp(18px, 3.2vw, 56px);
  --nexa-canvas: #f5f7f8;
  --nexa-surface: #ffffff;
  --nexa-surface-soft: #eef2f4;
  --nexa-ink: #101828;
  --nexa-ink-soft: #344054;
  --nexa-muted: #667085;
  --nexa-line: #e4e7ec;
  --nexa-line-strong: #d0d5dd;
  --nexa-dark: #111827;
  --nexa-dark-soft: #1f2937;
  --nexa-success: #067647;
  --nexa-danger: #b42318;
  --nexa-radius-sm: 8px;
  --nexa-radius: 12px;
  --nexa-radius-lg: 18px;
  --nexa-shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
  --nexa-shadow: 0 22px 60px rgba(16, 24, 40, 0.10);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--nexa-canvas);
  color: var(--nexa-ink);
  font-family: var(--cms-font-body), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html .cms-site.theme-nexa-studio *,
html .cms-site.theme-nexa-studio *::before,
html .cms-site.theme-nexa-studio *::after {
  box-sizing: border-box;
}

html .cms-site.theme-nexa-studio img,
html .cms-site.theme-nexa-studio svg,
html .cms-site.theme-nexa-studio video {
  max-width: 100%;
}

html .cms-site.theme-nexa-studio a {
  color: inherit;
}

html .cms-site.theme-nexa-studio button,
html .cms-site.theme-nexa-studio input,
html .cms-site.theme-nexa-studio textarea,
html .cms-site.theme-nexa-studio select {
  font: inherit;
}

html .cms-site.theme-nexa-studio ::selection {
  background: var(--cms-primary);
  color: #ffffff;
}

html .cms-site.theme-nexa-studio .skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 11px 16px;
  border-radius: var(--nexa-radius-sm);
  background: var(--nexa-dark);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

html .cms-site.theme-nexa-studio .skip-link:focus {
  transform: translateY(0);
}

html .cms-site.theme-nexa-studio :where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cms-primary) 36%, transparent);
  outline-offset: 3px;
}

/* =========================================================
   Header e navigazione
   ========================================================= */
html .cms-site.theme-nexa-studio .site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

html .cms-site.theme-nexa-studio.is-scrolled .site-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

html .cms-site.theme-nexa-studio .site-header-inner {
  width: min(var(--nexa-container), calc(100% - var(--nexa-gutter) - var(--nexa-gutter)));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 48px);
}

html .cms-site.theme-nexa-studio .site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--nexa-ink);
  font-family: var(--cms-font-headings), system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

html .cms-site.theme-nexa-studio .site-logo picture {
  display: inline-flex;
  align-items: center;
}

html .cms-site.theme-nexa-studio .site-logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 230px;
  object-fit: contain;
}

html .cms-site.theme-nexa-studio .site-logo span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-left: 4px solid var(--cms-primary);
  background: #ffffff;
}

html .cms-site.theme-nexa-studio .site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

html .cms-site.theme-nexa-studio .site-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html .cms-site.theme-nexa-studio .site-menu li {
  position: relative;
  margin: 0;
  padding: 0;
}

html .cms-site.theme-nexa-studio .site-menu a,
html .cms-site.theme-nexa-studio .site-menu .site-menu-placeholder {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--nexa-radius-sm);
  color: var(--nexa-ink-soft);
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.93rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

html .cms-site.theme-nexa-studio .site-menu a:hover {
  background: var(--nexa-surface-soft);
  color: var(--nexa-ink);
}

html .cms-site.theme-nexa-studio .site-menu .menu-item-active > a,
html .cms-site.theme-nexa-studio .site-menu .menu-item-current > a,
html .cms-site.theme-nexa-studio .site-menu a[aria-current="page"] {
  background: color-mix(in srgb, var(--cms-primary) 10%, #ffffff);
  color: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .site-menu .menu-item-active > a::after,
html .cms-site.theme-nexa-studio .site-menu .menu-item-current > a::after,
html .cms-site.theme-nexa-studio .site-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  background: currentColor;
}

html .cms-site.theme-nexa-studio .site-menu .site-menu-placeholder {
  color: var(--nexa-muted);
  cursor: default;
}

html .cms-site.theme-nexa-studio .site-menu .menu-icon {
  font-size: 1rem;
}

html .cms-site.theme-nexa-studio .site-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  color: var(--nexa-ink);
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .site-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

html .cms-site.theme-nexa-studio.is-menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

html .cms-site.theme-nexa-studio.is-menu-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

html .cms-site.theme-nexa-studio.is-menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   Layout principale e tipografia
   ========================================================= */
html .cms-site.theme-nexa-studio .site-main {
  width: min(var(--nexa-container), calc(100% - var(--nexa-gutter) - var(--nexa-gutter)));
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px) 0 clamp(104px, 10vw, 150px);
}

html .cms-site.theme-nexa-studio .site-main :where(h1, h2, h3, h4, h5, h6) {
  color: var(--nexa-ink);
  font-family: var(--cms-font-headings), system-ui, sans-serif;
  text-wrap: balance;
}

html .cms-site.theme-nexa-studio .site-main :where(p, li) {
  text-wrap: pretty;
}

html .cms-site.theme-nexa-studio .site-main :where(ul, ol) {
  padding-left: 1.35em;
}

html .cms-site.theme-nexa-studio .site-main :where(blockquote) {
  margin: 30px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--cms-primary);
  background: color-mix(in srgb, var(--cms-primary) 6%, #ffffff);
  color: var(--nexa-ink-soft);
}

html .cms-site.theme-nexa-studio .site-main :where(table) {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--nexa-line);
  background: #ffffff;
}

html .cms-site.theme-nexa-studio .site-main :where(th, td) {
  padding: 13px 15px;
  border-bottom: 1px solid var(--nexa-line);
  text-align: left;
  vertical-align: top;
}

html .cms-site.theme-nexa-studio .site-main :where(th) {
  background: var(--nexa-surface-soft);
  color: var(--nexa-ink);
  font-weight: 750;
}

/* =========================================================
   Hero home
   ========================================================= */
html .cms-site.theme-nexa-studio .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.55fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 80px);
  min-height: clamp(560px, 66vh, 760px);
  overflow: hidden;
  padding: clamp(42px, 6vw, 96px);
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-lg);
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--cms-secondary) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--cms-primary) 8%, #ffffff), #ffffff 56%, color-mix(in srgb, var(--cms-secondary) 10%, #ffffff));
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(34vw, 480px);
  height: 8px;
  background: linear-gradient(90deg, var(--cms-primary), var(--cms-secondary));
}

html .cms-site.theme-nexa-studio .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid color-mix(in srgb, var(--cms-primary) 16%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px color-mix(in srgb, var(--cms-primary) 4%, transparent),
    0 0 0 120px color-mix(in srgb, var(--cms-primary) 3%, transparent);
}

html .cms-site.theme-nexa-studio .hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 960px;
}

html .cms-site.theme-nexa-studio .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--cms-primary) 18%, var(--nexa-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--cms-primary) 7%, #ffffff);
  color: var(--cms-primary);
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

html .cms-site.theme-nexa-studio .hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 7rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

html .cms-site.theme-nexa-studio .hero p {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--nexa-muted);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.65;
}

html .cms-site.theme-nexa-studio .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

html .cms-site.theme-nexa-studio .hero-card {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 300px;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--nexa-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 46%),
    var(--nexa-dark);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.20);
}

html .cms-site.theme-nexa-studio .hero-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-top: 2px solid var(--cms-secondary);
  border-right: 2px solid var(--cms-secondary);
}

html .cms-site.theme-nexa-studio .hero-card strong {
  color: #ffffff;
  font-family: var(--cms-font-headings), system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

html .cms-site.theme-nexa-studio .hero-card span {
  color: #cbd5e1;
  line-height: 1.7;
}

html .cms-site.theme-nexa-studio.has-home-hero-custom .hero,
html .cms-site.theme-nexa-studio.has-page-featured-hero .hero {
  border-color: transparent;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.20);
}

html .cms-site.theme-nexa-studio.has-home-hero-custom .hero::after,
html .cms-site.theme-nexa-studio.has-page-featured-hero .hero::after {
  opacity: 0.35;
}

/* =========================================================
   Hero pagine interne
   ========================================================= */
html .cms-site.theme-nexa-studio .page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: clamp(340px, 42vw, 560px);
  margin: 0 0 clamp(28px, 4vw, 56px);
  overflow: hidden;
  padding: clamp(42px, 7vw, 104px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--nexa-radius-lg);
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--cms-primary) 48%, transparent), transparent 34%),
    linear-gradient(135deg, #0f172a, #1f2937 58%, color-mix(in srgb, var(--cms-primary) 46%, #111827));
  color: #ffffff;
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 42px;
  bottom: 34px;
  width: 90px;
  height: 90px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

html .cms-site.theme-nexa-studio .page-hero h1 {
  max-width: 1100px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 6.2vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

html .cms-site.theme-nexa-studio .page-hero p {
  max-width: 820px;
  margin: 0;
  color: #d0d5dd;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.68;
}

html .cms-site.theme-nexa-studio .page-hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

html .cms-site.theme-nexa-studio.has-page-featured-hero .page-hero {
  min-height: clamp(460px, 56vw, 760px);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.24);
}

/* =========================================================
   Sezioni, contenitori e pulsanti
   ========================================================= */
html .cms-site.theme-nexa-studio .section {
  padding: clamp(54px, 7vw, 104px) 0;
}

html .cms-site.theme-nexa-studio .section-soft {
  position: relative;
  margin: clamp(24px, 4vw, 52px) 0;
  padding: clamp(34px, 5.5vw, 78px);
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-lg);
  background: #ffffff;
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .section-soft::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(34px, 5.5vw, 78px);
  width: 86px;
  height: 4px;
  background: linear-gradient(90deg, var(--cms-primary), var(--cms-secondary));
}

html .cms-site.theme-nexa-studio .section-head,
html .cms-site.theme-nexa-studio .section-title {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 0 clamp(28px, 4vw, 50px);
}

html .cms-site.theme-nexa-studio .section-head h2,
html .cms-site.theme-nexa-studio .section-title h2,
html .cms-site.theme-nexa-studio .content-card h2,
html .cms-site.theme-nexa-studio .contact-card h2,
html .cms-site.theme-nexa-studio .cta-band h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.4vw, 4.8rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

html .cms-site.theme-nexa-studio .section-head p,
html .cms-site.theme-nexa-studio .section-title p {
  max-width: 760px;
  margin: 0;
  color: var(--nexa-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

html .cms-site.theme-nexa-studio .cms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--cms-primary);
  border-radius: var(--nexa-radius-sm);
  background: var(--cms-primary);
  color: #ffffff;
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--cms-primary) 22%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html .cms-site.theme-nexa-studio .cms-button:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--cms-primary) 90%, #000000);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--cms-primary) 28%, transparent);
}

html .cms-site.theme-nexa-studio .cms-button-light {
  border-color: var(--nexa-line-strong);
  background: #ffffff;
  color: var(--nexa-ink);
  box-shadow: none;
}

html .cms-site.theme-nexa-studio .cms-button-light:hover {
  border-color: var(--nexa-ink);
  background: #ffffff;
  color: var(--nexa-ink);
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .hero .cms-button-light,
html .cms-site.theme-nexa-studio .page-hero .cms-button-light {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.95);
  color: var(--nexa-ink);
}

/* =========================================================
   Blocchi contenuto e feature
   ========================================================= */
html .cms-site.theme-nexa-studio .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

html .cms-site.theme-nexa-studio .feature-grid article,
html .cms-site.theme-nexa-studio .content-card,
html .cms-site.theme-nexa-studio .contact-card {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3.5vw, 46px);
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius);
  background: #ffffff;
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .feature-grid article {
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

html .cms-site.theme-nexa-studio .feature-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cms-primary), var(--cms-secondary));
  transform: scaleX(0.34);
  transform-origin: left;
  transition: transform 0.24s ease;
}

html .cms-site.theme-nexa-studio .feature-grid article:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cms-primary) 25%, var(--nexa-line));
  box-shadow: var(--nexa-shadow);
}

html .cms-site.theme-nexa-studio .feature-grid article:hover::before {
  transform: scaleX(1);
}

html .cms-site.theme-nexa-studio .feature-grid h3,
html .cms-site.theme-nexa-studio .contact-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

html .cms-site.theme-nexa-studio .feature-grid p,
html .cms-site.theme-nexa-studio .content-card p,
html .cms-site.theme-nexa-studio .contact-card p {
  color: var(--nexa-muted);
  line-height: 1.78;
}

html .cms-site.theme-nexa-studio .content-card > :first-child,
html .cms-site.theme-nexa-studio .contact-card > :first-child {
  margin-top: 0;
}

html .cms-site.theme-nexa-studio .content-card > :last-child,
html .cms-site.theme-nexa-studio .contact-card > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   Prodotti e servizi
   ========================================================= */
html .cms-site.theme-nexa-studio .cms-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  width: 100%;
}

html .cms-site.theme-nexa-studio .cms-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius);
  background: #ffffff;
  box-shadow: var(--nexa-shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html .cms-site.theme-nexa-studio .cms-product-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cms-primary) 24%, var(--nexa-line));
  box-shadow: var(--nexa-shadow);
}

html .cms-site.theme-nexa-studio .cms-product-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--nexa-surface-soft);
}

html .cms-site.theme-nexa-studio .cms-product-card-media img,
html .cms-site.theme-nexa-studio .cms-product-card > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}

html .cms-site.theme-nexa-studio .cms-product-card:hover .cms-product-card-media img,
html .cms-site.theme-nexa-studio .cms-product-card:hover > img {
  transform: scale(1.035);
}

html .cms-site.theme-nexa-studio .cms-product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: clamp(22px, 2.6vw, 32px);
}

html .cms-site.theme-nexa-studio .cms-product-card-body .cms-product-card-eyebrow {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cms-primary);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

html .cms-site.theme-nexa-studio .cms-product-card-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

html .cms-site.theme-nexa-studio .cms-product-card-body h3 a {
  text-decoration: none;
}

html .cms-site.theme-nexa-studio .cms-product-card-body h3 a:hover {
  color: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .cms-product-card-body p {
  margin: 0;
  color: var(--nexa-muted);
  line-height: 1.72;
}

html .cms-site.theme-nexa-studio .cms-product-card-body strong {
  color: var(--nexa-ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

html .cms-site.theme-nexa-studio .cms-product-card-body .cms-button {
  width: 100%;
  margin-top: auto;
}

html .cms-site.theme-nexa-studio .cms-product-category-section .section-title {
  margin-bottom: clamp(24px, 3vw, 42px);
}

html .cms-site.theme-nexa-studio .cms-product-detail-hero {
  align-items: end;
}

html .cms-site.theme-nexa-studio .cms-product-detail-intro {
  max-width: 980px;
}

html .cms-site.theme-nexa-studio .cms-product-detail-price {
  display: inline-flex;
  margin-top: 20px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--nexa-radius-sm);
  background: rgba(255, 255, 255, 0.10);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html .cms-site.theme-nexa-studio .cms-product-detail-body {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

html .cms-site.theme-nexa-studio .cms-product-detail-content {
  width: 100%;
  max-width: none;
  padding: clamp(30px, 4.5vw, 68px);
}

html .cms-site.theme-nexa-studio .cms-product-detail-content :where(h2, h3, h4) {
  margin-top: 1.55em;
  margin-bottom: 0.55em;
  letter-spacing: -0.035em;
}

html .cms-site.theme-nexa-studio .cms-product-detail-content :where(img) {
  width: 100%;
  margin: 28px 0;
  border-radius: var(--nexa-radius-sm);
}

/* Carosello prodotti: massimo tre card desktop */
html .cms-site.theme-nexa-studio .cms-products-grid.cms-products-carousel {
  display: block;
  position: relative;
  --cms-products-carousel-gap: 24px;
}

html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-viewport::-webkit-scrollbar {
  display: none;
}

html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-track,
html .cms-site.theme-nexa-studio [data-cms-products-carousel] .cms-products-carousel-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  gap: var(--cms-products-carousel-gap);
}

html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-track .cms-product-card,
html .cms-site.theme-nexa-studio [data-cms-products-carousel] .cms-products-carousel-track .cms-product-card {
  flex: 0 0 calc(33.333333% - 16px);
  max-width: calc(33.333333% - 16px);
  min-width: 0;
  scroll-snap-align: start;
}

html .cms-site.theme-nexa-studio .cms-products-carousel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

html .cms-site.theme-nexa-studio .cms-products-carousel-arrow {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--nexa-line-strong);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  color: var(--nexa-ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html .cms-site.theme-nexa-studio .cms-products-carousel-arrow:hover {
  border-color: var(--cms-primary);
  background: var(--cms-primary);
  color: #ffffff;
}

/* =========================================================
   Blog e news
   ========================================================= */
html .cms-site.theme-nexa-studio .cms-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  width: 100%;
}

html .cms-site.theme-nexa-studio .cms-blog-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius);
  background: #ffffff;
  box-shadow: var(--nexa-shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html .cms-site.theme-nexa-studio .cms-blog-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cms-primary) 24%, var(--nexa-line));
  box-shadow: var(--nexa-shadow);
}

html .cms-site.theme-nexa-studio .cms-blog-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--nexa-surface-soft);
}

html .cms-site.theme-nexa-studio .cms-blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

html .cms-site.theme-nexa-studio .cms-blog-card:hover .cms-blog-card-media img {
  transform: scale(1.035);
}

html .cms-site.theme-nexa-studio .cms-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 32px);
}

html .cms-site.theme-nexa-studio .cms-blog-card-eyebrow {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cms-primary);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

html .cms-site.theme-nexa-studio .cms-blog-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

html .cms-site.theme-nexa-studio .cms-blog-card h3 a {
  text-decoration: none;
}

html .cms-site.theme-nexa-studio .cms-blog-card h3 a:hover {
  color: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .cms-blog-card-date,
html .cms-site.theme-nexa-studio .cms-blog-detail-date {
  color: var(--nexa-muted);
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html .cms-site.theme-nexa-studio .cms-blog-card p {
  margin: 0;
  color: var(--nexa-muted);
  line-height: 1.72;
}

html .cms-site.theme-nexa-studio .cms-blog-card-link {
  width: 100%;
  margin-top: auto;
}

html .cms-site.theme-nexa-studio .cms-blog-empty {
  padding: 24px;
  border: 1px dashed var(--nexa-line-strong);
  border-radius: var(--nexa-radius);
  background: #ffffff;
  color: var(--nexa-muted);
  text-align: center;
}

html .cms-site.theme-nexa-studio .cms-blog-category-section .section-head {
  margin-bottom: clamp(24px, 3vw, 42px);
}

html .cms-site.theme-nexa-studio .cms-blog-detail-intro {
  max-width: 980px;
}

html .cms-site.theme-nexa-studio .cms-blog-detail-body {
  padding-top: 0;
}

html .cms-site.theme-nexa-studio .cms-blog-detail-content {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(30px, 4.5vw, 68px);
}

html .cms-site.theme-nexa-studio .cms-blog-detail-content :where(h2, h3, h4) {
  margin-top: 1.6em;
  margin-bottom: 0.55em;
  letter-spacing: -0.035em;
}

html .cms-site.theme-nexa-studio .cms-blog-detail-content :where(img) {
  width: 100%;
  margin: 30px 0;
  border-radius: var(--nexa-radius-sm);
}

html .cms-site.theme-nexa-studio .cms-blog-more {
  border-top: 1px solid var(--nexa-line);
}

/* =========================================================
   Gallery e lightbox
   ========================================================= */
html .cms-site.theme-nexa-studio .cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}

html .cms-site.theme-nexa-studio .cms-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: var(--nexa-surface-soft);
}

html .cms-site.theme-nexa-studio .cms-gallery-item::after {
  content: "+";
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--nexa-radius-sm);
  background: rgba(17, 24, 39, 0.66);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0;
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

html .cms-site.theme-nexa-studio .cms-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

html .cms-site.theme-nexa-studio .cms-gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.84);
}

html .cms-site.theme-nexa-studio .cms-gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

html .cms-site.theme-nexa-studio.is-lightbox-open,
html .cms-site.theme-nexa-studio.is-cookie-open {
  overflow: hidden;
}

html .cms-site.theme-nexa-studio .cms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 52px);
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(12px);
}

html .cms-site.theme-nexa-studio .cms-lightbox.is-open {
  display: grid;
}

html .cms-site.theme-nexa-studio .cms-lightbox-figure {
  display: grid;
  width: min(1380px, 100%);
  gap: 14px;
  margin: 0;
}

html .cms-site.theme-nexa-studio .cms-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--nexa-radius-sm);
  object-fit: contain;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

html .cms-site.theme-nexa-studio .cms-lightbox-caption {
  justify-self: center;
  color: #ffffff;
  font-weight: 650;
  text-align: center;
}

html .cms-site.theme-nexa-studio .cms-lightbox-close,
html .cms-site.theme-nexa-studio .cms-lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--nexa-radius-sm);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .cms-lightbox-close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

html .cms-site.theme-nexa-studio .cms-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 2.6rem;
}

html .cms-site.theme-nexa-studio .cms-lightbox-prev {
  left: 20px;
}

html .cms-site.theme-nexa-studio .cms-lightbox-next {
  right: 20px;
}

html .cms-site.theme-nexa-studio .cms-lightbox-nav[hidden],
html .cms-site.theme-nexa-studio .cms-lightbox-caption[hidden] {
  display: none;
}

/* =========================================================
   FAQ
   ========================================================= */
html .cms-site.theme-nexa-studio .cms-faq-list {
  display: grid;
  gap: 12px;
}

html .cms-site.theme-nexa-studio .cms-faq-item {
  overflow: hidden;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.035);
}

html .cms-site.theme-nexa-studio .cms-faq-item[open] {
  border-color: color-mix(in srgb, var(--cms-primary) 28%, var(--nexa-line));
  box-shadow: var(--nexa-shadow-sm);
}

html .cms-site.theme-nexa-studio .cms-faq-item summary {
  position: relative;
  padding: 20px 64px 20px 22px;
  color: var(--nexa-ink);
  font-family: var(--cms-font-headings), system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .cms-faq-item summary::-webkit-details-marker {
  display: none;
}

html .cms-site.theme-nexa-studio .cms-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--nexa-line-strong);
  border-radius: var(--nexa-radius-sm);
  color: var(--cms-primary);
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-50%);
}

html .cms-site.theme-nexa-studio .cms-faq-item[open] summary::after {
  content: "−";
  border-color: var(--cms-primary);
  background: var(--cms-primary);
  color: #ffffff;
}

html .cms-site.theme-nexa-studio .cms-faq-item > div {
  padding: 0 22px 22px;
  color: var(--nexa-muted);
  line-height: 1.78;
}

html .cms-site.theme-nexa-studio .cms-faq-item > div > :first-child {
  margin-top: 0;
}

html .cms-site.theme-nexa-studio .cms-faq-item > div > :last-child {
  margin-bottom: 0;
}

/* =========================================================
   Form e contatti
   ========================================================= */
html .cms-site.theme-nexa-studio .contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
}

html .cms-site.theme-nexa-studio .cms-form-wrap {
  scroll-margin-top: 110px;
}

html .cms-site.theme-nexa-studio .cms-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

html .cms-site.theme-nexa-studio .cms-form-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

html .cms-site.theme-nexa-studio .cms-form-field-textarea,
html .cms-site.theme-nexa-studio .cms-form-field-checkbox,
html .cms-site.theme-nexa-studio .cms-form > .cms-button {
  grid-column: 1 / -1;
}

html .cms-site.theme-nexa-studio .cms-form-field label {
  color: var(--nexa-ink-soft);
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

html .cms-site.theme-nexa-studio .cms-form-field input,
html .cms-site.theme-nexa-studio .cms-form-field textarea,
html .cms-site.theme-nexa-studio .cms-form-field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--nexa-line-strong);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  color: var(--nexa-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html .cms-site.theme-nexa-studio .cms-form-field input:hover,
html .cms-site.theme-nexa-studio .cms-form-field textarea:hover,
html .cms-site.theme-nexa-studio .cms-form-field select:hover {
  border-color: #98a2b3;
}

html .cms-site.theme-nexa-studio .cms-form-field input:focus,
html .cms-site.theme-nexa-studio .cms-form-field textarea:focus,
html .cms-site.theme-nexa-studio .cms-form-field select:focus {
  outline: none;
  border-color: var(--cms-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cms-primary) 14%, transparent);
}

html .cms-site.theme-nexa-studio .cms-form-field textarea {
  min-height: 150px;
  resize: vertical;
}

html .cms-site.theme-nexa-studio .cms-form-field input[type="file"] {
  padding: 10px;
}

html .cms-site.theme-nexa-studio .cms-form-field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: var(--nexa-surface-soft);
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .cms-form-field-checkbox input[type="checkbox"] {
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .cms-form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

html .cms-site.theme-nexa-studio .cms-form-unavailable {
  padding: 16px;
  border: 1px solid #fecdca;
  border-radius: var(--nexa-radius-sm);
  background: #fef3f2;
  color: var(--nexa-danger);
}

html .cms-site.theme-nexa-studio .cms-form-notice {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--nexa-line);
  border-left-width: 4px;
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
}

html .cms-site.theme-nexa-studio .cms-form-notice-success {
  border-color: #abefc6;
  border-left-color: var(--nexa-success);
  background: #ecfdf3;
  color: #05603a;
}

html .cms-site.theme-nexa-studio .cms-form-notice-error {
  border-color: #fecdca;
  border-left-color: var(--nexa-danger);
  background: #fef3f2;
  color: #912018;
}

html .cms-site.theme-nexa-studio .cms-form-notice-title {
  font-weight: 800;
}

html .cms-site.theme-nexa-studio .cms-form-notice-message {
  line-height: 1.55;
}

/* =========================================================
   CTA
   ========================================================= */
html .cms-site.theme-nexa-studio .cta-band {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: clamp(34px, 6vw, 82px) 0 0;
  overflow: hidden;
  padding: clamp(42px, 7vw, 92px);
  border-radius: var(--nexa-radius-lg);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--cms-primary) 62%, transparent), transparent 34%),
    linear-gradient(135deg, #0f172a, #1f2937);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--nexa-shadow);
}

html .cms-site.theme-nexa-studio .cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -130px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

html .cms-site.theme-nexa-studio .cta-band h2 {
  max-width: 980px;
  color: #ffffff;
}

html .cms-site.theme-nexa-studio .cta-band p {
  max-width: 720px;
  margin: 0 0 8px;
  color: #d0d5dd;
  font-size: 1.08rem;
}

html .cms-site.theme-nexa-studio .cta-band .cms-button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--nexa-ink);
  box-shadow: none;
}

html .cms-site.theme-nexa-studio .cta-band .cms-button:hover {
  border-color: var(--cms-secondary);
  background: var(--cms-secondary);
  color: #ffffff;
}

/* =========================================================
   Footer
   ========================================================= */
html .cms-site.theme-nexa-studio .site-footer {
  margin-top: 0;
  padding: clamp(48px, 7vw, 92px) var(--nexa-gutter) calc(104px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c111d;
  color: #d0d5dd;
}

html .cms-site.theme-nexa-studio .site-footer-grid {
  width: min(var(--nexa-container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: clamp(30px, 5vw, 84px);
}

html .cms-site.theme-nexa-studio .site-footer-logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 72px;
  margin: 0 0 22px;
  object-fit: contain;
}

html .cms-site.theme-nexa-studio .site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

html .cms-site.theme-nexa-studio .site-footer p {
  margin: 0 0 8px;
  color: #98a2b3;
  line-height: 1.62;
}

html .cms-site.theme-nexa-studio .site-footer-business-name {
  margin-bottom: 10px;
}

html .cms-site.theme-nexa-studio .site-footer-business-name strong {
  color: #ffffff;
  font-family: var(--cms-font-headings), system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html .cms-site.theme-nexa-studio .site-footer-payoff {
  max-width: 560px;
  margin-bottom: 18px;
}

html .cms-site.theme-nexa-studio .site-footer-data-label {
  color: #d0d5dd;
  font-weight: 650;
}

html .cms-site.theme-nexa-studio .site-footer a {
  color: #d0d5dd;
  text-decoration-color: rgba(208, 213, 221, 0.38);
  text-underline-offset: 3px;
}

html .cms-site.theme-nexa-studio .site-footer a:hover {
  color: #ffffff;
}

html .cms-site.theme-nexa-studio .site-footer-menu ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html .cms-site.theme-nexa-studio .site-footer-menu a,
html .cms-site.theme-nexa-studio .site-footer-menu .site-menu-placeholder {
  display: inline-flex;
  padding: 2px 0;
  text-decoration: none;
}

html .cms-site.theme-nexa-studio .site-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

html .cms-site.theme-nexa-studio .site-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--nexa-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

html .cms-site.theme-nexa-studio .site-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--cms-primary);
  background: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .site-footer-bottom {
  width: min(var(--nexa-container), 100%);
  margin: clamp(34px, 5vw, 66px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #667085;
  font-size: 0.9rem;
}

html .cms-site.theme-nexa-studio .site-footer-bottom button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d0d5dd;
  text-decoration: underline;
  text-decoration-color: rgba(208, 213, 221, 0.38);
  text-underline-offset: 3px;
  cursor: pointer;
}

/* =========================================================
   Sticky contact bar
   ========================================================= */
html .cms-site.theme-nexa-studio .sticky-contact-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 150;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(520px, calc(100% - 28px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--nexa-radius);
  background: rgba(12, 17, 29, 0.94);
  box-shadow: 0 20px 55px rgba(16, 24, 40, 0.30);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

html .cms-site.theme-nexa-studio .sticky-contact-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--nexa-radius-sm);
  color: #ffffff;
  font-family: var(--cms-font-menu), system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

html .cms-site.theme-nexa-studio .sticky-contact-bar a:first-child {
  background: #079455;
}

html .cms-site.theme-nexa-studio .sticky-contact-bar a:last-child {
  background: var(--cms-primary);
}

/* =========================================================
   Cookie banner
   ========================================================= */
html .cms-site.theme-nexa-studio .cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: end center;
  padding: 20px;
  background: rgba(12, 17, 29, 0.52);
  backdrop-filter: blur(6px);
}

html .cms-site.theme-nexa-studio .cookie-banner.is-hidden {
  display: none;
}

html .cms-site.theme-nexa-studio .cookie-banner.is-open {
  display: grid;
}

html .cms-site.theme-nexa-studio .cookie-banner-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-lg);
  background: #ffffff;
  color: var(--nexa-ink);
  box-shadow: 0 30px 90px rgba(16, 24, 40, 0.30);
}

html .cms-site.theme-nexa-studio .cookie-banner-panel h2 {
  margin: 0 44px 8px 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

html .cms-site.theme-nexa-studio .cookie-banner-panel > p {
  margin: 0 0 20px;
  color: var(--nexa-muted);
}

html .cms-site.theme-nexa-studio .cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: var(--nexa-surface-soft);
  color: var(--nexa-ink);
  font-size: 1.35rem;
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .cookie-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
}

html .cms-site.theme-nexa-studio .cookie-choice input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--cms-primary);
}

html .cms-site.theme-nexa-studio .cookie-choice span {
  display: grid;
  gap: 3px;
}

html .cms-site.theme-nexa-studio .cookie-choice small {
  color: var(--nexa-muted);
  line-height: 1.45;
}

html .cms-site.theme-nexa-studio .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

html .cms-site.theme-nexa-studio .cookie-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--nexa-line-strong);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  color: var(--nexa-ink);
  font-weight: 730;
  cursor: pointer;
}

html .cms-site.theme-nexa-studio .cookie-actions button:last-child {
  border-color: var(--cms-primary);
  background: var(--cms-primary);
  color: #ffffff;
}

html .cms-site.theme-nexa-studio .cookie-links {
  margin: 18px 0 0;
  color: var(--nexa-muted);
  font-size: 0.9rem;
}

html .cms-site.theme-nexa-studio .cookie-preferences-floating {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 130;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--nexa-line);
  border-radius: var(--nexa-radius-sm);
  background: #ffffff;
  color: var(--nexa-ink);
  font-size: 0.78rem;
  font-weight: 720;
  box-shadow: var(--nexa-shadow-sm);
  cursor: pointer;
}

/* =========================================================
   Responsive desktop medio
   ========================================================= */
@media (max-width: 1180px) {
  html .cms-site.theme-nexa-studio .feature-grid,
  html .cms-site.theme-nexa-studio .cms-products-grid,
  html .cms-site.theme-nexa-studio .cms-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html .cms-site.theme-nexa-studio .cms-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-track .cms-product-card,
  html .cms-site.theme-nexa-studio [data-cms-products-carousel] .cms-products-carousel-track .cms-product-card {
    flex-basis: calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

/* =========================================================
   Tablet e navigazione mobile
   ========================================================= */
@media (max-width: 960px) {
  html .cms-site.theme-nexa-studio .site-header-inner {
    min-height: 74px;
  }

  html .cms-site.theme-nexa-studio .site-logo img {
    height: 46px;
    max-width: 200px;
  }

  html .cms-site.theme-nexa-studio .site-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  html .cms-site.theme-nexa-studio .site-menu {
    position: fixed;
    top: 82px;
    right: 14px;
    left: 14px;
    display: none;
    max-height: calc(100vh - 104px);
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--nexa-line);
    border-radius: var(--nexa-radius);
    background: rgba(255, 255, 255, 0.985);
    box-shadow: var(--nexa-shadow);
    backdrop-filter: blur(18px);
  }

  html .cms-site.theme-nexa-studio.is-menu-open .site-menu {
    display: block;
  }

  html .cms-site.theme-nexa-studio .site-menu ul {
    display: grid;
    gap: 4px;
  }

  html .cms-site.theme-nexa-studio .site-menu a,
  html .cms-site.theme-nexa-studio .site-menu .site-menu-placeholder {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  html .cms-site.theme-nexa-studio .site-menu .menu-item-active > a::after,
  html .cms-site.theme-nexa-studio .site-menu .menu-item-current > a::after,
  html .cms-site.theme-nexa-studio .site-menu a[aria-current="page"]::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 5px;
    width: 3px;
    height: auto;
  }

  html .cms-site.theme-nexa-studio .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  html .cms-site.theme-nexa-studio .hero-card {
    min-height: 220px;
  }

  html .cms-site.theme-nexa-studio .contact-layout {
    grid-template-columns: 1fr;
  }

  html .cms-site.theme-nexa-studio .site-footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  html .cms-site.theme-nexa-studio .site-footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 700px) {
  html .cms-site.theme-nexa-studio {
    --nexa-gutter: 12px;
  }

  html .cms-site.theme-nexa-studio .site-header-inner {
    width: calc(100% - 24px);
    min-height: 68px;
  }

  html .cms-site.theme-nexa-studio .site-logo img {
    height: 42px;
    max-width: 170px;
  }

  html .cms-site.theme-nexa-studio .site-menu {
    top: 76px;
  }

  html .cms-site.theme-nexa-studio .site-main {
    width: calc(100% - 24px);
    padding-top: 14px;
    padding-bottom: 116px;
  }

  html .cms-site.theme-nexa-studio .hero {
    gap: 26px;
    padding: 34px 22px 22px;
    border-radius: var(--nexa-radius);
  }

  html .cms-site.theme-nexa-studio .hero::before {
    width: 44%;
    height: 5px;
  }

  html .cms-site.theme-nexa-studio .hero h1 {
    font-size: clamp(3rem, 15vw, 4.9rem);
    line-height: 0.96;
  }

  html .cms-site.theme-nexa-studio .hero p {
    margin-top: 20px;
    font-size: 1.04rem;
  }

  html .cms-site.theme-nexa-studio .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  html .cms-site.theme-nexa-studio .hero-actions .cms-button {
    width: 100%;
  }

  html .cms-site.theme-nexa-studio .hero-card {
    min-height: 188px;
    padding: 24px;
  }

  html .cms-site.theme-nexa-studio .page-hero {
    min-height: 330px;
    margin-bottom: 22px;
    padding: 34px 22px;
    border-radius: var(--nexa-radius);
  }

  html .cms-site.theme-nexa-studio.has-page-featured-hero .page-hero {
    min-height: min(620px, 78vh);
  }

  html .cms-site.theme-nexa-studio .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  html .cms-site.theme-nexa-studio .section {
    padding: 46px 0;
  }

  html .cms-site.theme-nexa-studio .section-soft {
    padding: 30px 22px;
    border-radius: var(--nexa-radius);
  }

  html .cms-site.theme-nexa-studio .section-soft::before {
    left: 22px;
  }

  html .cms-site.theme-nexa-studio .feature-grid,
  html .cms-site.theme-nexa-studio .cms-products-grid,
  html .cms-site.theme-nexa-studio .cms-blog-grid,
  html .cms-site.theme-nexa-studio .site-footer-grid {
    grid-template-columns: 1fr;
  }

  html .cms-site.theme-nexa-studio .cms-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html .cms-site.theme-nexa-studio .feature-grid article,
  html .cms-site.theme-nexa-studio .content-card,
  html .cms-site.theme-nexa-studio .contact-card,
  html .cms-site.theme-nexa-studio .cms-product-detail-content,
  html .cms-site.theme-nexa-studio .cms-blog-detail-content {
    padding: 24px;
  }

  html .cms-site.theme-nexa-studio .cms-form {
    grid-template-columns: 1fr;
  }

  html .cms-site.theme-nexa-studio .cms-form-field,
  html .cms-site.theme-nexa-studio .cms-form-field-textarea,
  html .cms-site.theme-nexa-studio .cms-form-field-checkbox,
  html .cms-site.theme-nexa-studio .cms-form > .cms-button {
    grid-column: 1;
  }

  html .cms-site.theme-nexa-studio [data-products-carousel] .cms-products-carousel-track .cms-product-card,
  html .cms-site.theme-nexa-studio [data-cms-products-carousel] .cms-products-carousel-track .cms-product-card {
    flex-basis: 88%;
    max-width: 88%;
  }

  html .cms-site.theme-nexa-studio .cms-products-carousel-actions {
    justify-content: center;
  }

  html .cms-site.theme-nexa-studio .cta-band {
    padding: 42px 24px;
    border-radius: var(--nexa-radius);
  }

  html .cms-site.theme-nexa-studio .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  html .cms-site.theme-nexa-studio .site-footer-grid > :last-child {
    grid-column: auto;
  }

  html .cms-site.theme-nexa-studio .sticky-contact-bar {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    padding: 6px;
  }

  html .cms-site.theme-nexa-studio .sticky-contact-bar a {
    min-height: 50px;
    padding: 9px 8px;
    font-size: 0.84rem;
  }

  html .cms-site.theme-nexa-studio .cookie-banner {
    padding: 8px;
  }

  html .cms-site.theme-nexa-studio .cookie-banner-panel {
    max-height: calc(100vh - 16px);
    padding: 24px 18px;
    border-radius: var(--nexa-radius);
  }

  html .cms-site.theme-nexa-studio .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html .cms-site.theme-nexa-studio .cookie-actions button {
    width: 100%;
  }

  html .cms-site.theme-nexa-studio .cookie-preferences-floating {
    right: 8px;
    bottom: 78px;
  }

  html .cms-site.theme-nexa-studio .cms-lightbox-image {
    max-height: calc(100vh - 136px);
  }

  html .cms-site.theme-nexa-studio .cms-lightbox-nav {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    transform: none;
    font-size: 2rem;
  }

  html .cms-site.theme-nexa-studio .cms-lightbox-prev {
    left: calc(50% - 58px);
  }

  html .cms-site.theme-nexa-studio .cms-lightbox-next {
    right: calc(50% - 58px);
  }
}

@media (max-width: 430px) {
  html .cms-site.theme-nexa-studio .cms-gallery-grid {
    grid-template-columns: 1fr;
  }

  html .cms-site.theme-nexa-studio .cms-gallery-item {
    aspect-ratio: 16 / 11;
  }

  html .cms-site.theme-nexa-studio .sticky-contact-bar a span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =========================================================
   Accessibilità e riduzione movimento
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html .cms-site.theme-nexa-studio *,
  html .cms-site.theme-nexa-studio *::before,
  html .cms-site.theme-nexa-studio *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
