:root {
  --ink: #0b1f1c;
  --muted: #5b6b68;
  --paper: #f3f6f4;
  --paper-deep: #e7eeeb;
  --line: #c9d5d1;
  --teal: #0d6e66;
  --teal-deep: #084b46;
  --teal-soft: #d7e8e4;
  --copper: #9a4a28;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 75, 70, 0.08);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --nav-h: 4.65rem;
  --nav-h-real: var(--nav-h);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h-real) + 0.75rem);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(13, 110, 102, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 8%, rgba(154, 74, 40, 0.08), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 40%, #eef3f1 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  padding-top: var(--nav-h-real);
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom));
  position: relative;
  overscroll-behavior-x: none;
}

img,
picture,
video {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(13, 110, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 102, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 75%);
  z-index: 0;
}

a {
  color: var(--teal-deep);
}

a:hover {
  color: var(--copper);
}

.brand-inline {
  display: inline-block;
  height: 1em;
  width: auto;
  max-width: 5.5em;
  vertical-align: -0.15em;
  margin: 0 0.06em;
  object-fit: contain;
}

.brand-inline-node {
  height: 1.35rem;
  vertical-align: middle;
  margin: 0;
}

.site-nav,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: calc(var(--nav-h) + var(--safe-top));
  max-width: 100%;
  padding:
    max(0.55rem, var(--safe-top))
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right))
    0.55rem
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-sizing: border-box;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  min-width: 0;
  flex-shrink: 1;
}

.nav-brand img {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: min(9.5rem, 42vw);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-left: 0.75rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant: all-small-caps;
  letter-spacing: 0.06em;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.nav-links a.is-active {
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

.nav-links a.nav-free {
  color: var(--copper);
}

.nav-links a.nav-free.is-active {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.nav-links a.btn {
  border-bottom: 0;
  font-variant: normal;
  letter-spacing: 0.01em;
  white-space: normal;
}

.nav-aside {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

.lang-select-wrap {
  display: none;
  margin: 0;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  min-height: 2.75rem;
  padding: 0.45rem 2.1rem 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23082a28' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.75rem center;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:focus-visible,
.lang-switch button:focus-visible,
.nav-toggle:focus-visible,
.module-shot:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 55%, white);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.72;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: color-mix(in srgb, #fff 70%, transparent);
  border-color: var(--line);
  color: var(--teal-deep);
}

.btn-nav {
  background: var(--teal-deep);
  color: #fff;
  min-height: 2.6rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: normal;
  max-width: 12.5rem;
  text-wrap: balance;
}

.btn-nav:hover {
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  min-height: auto;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1rem, 4vw, 2.5rem);
  overflow: clip;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-gratis {
  color: var(--copper);
  font-style: italic;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-gratis:hover,
.hero-gratis:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  outline: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
  max-width: 100%;
}

.hero-actions .btn {
  flex: 1 1 auto;
  font-size: 1.02rem;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  max-width: 100%;
}

.nav-cta-mobile {
  display: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal);
}

.hero-brand {
  margin: 0;
  line-height: 0;
}

.hero-brand img {
  display: block;
  width: min(100%, clamp(17rem, 46vw, 32rem));
  height: auto;
}

.hero-support {
  margin: 1.2rem 0 0;
  max-width: 100%;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.1vw, 1.28rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

.hero-adapted {
  margin: 0.65rem 0 0;
  max-width: 100%;
  color: var(--teal-deep);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero-adapted-rest::before {
  content: " ";
}

br.break-mobile {
  display: none;
}

.hero-free-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.free-discover {
  font-size: 1.05rem;
  text-underline-offset: 0.2em;
}

.free-discover:hover {
  text-decoration: underline;
}

.hero-side {
  display: grid;
  gap: 0.85rem;
  align-content: stretch;
  justify-self: stretch;
  will-change: transform;
  min-height: 0;
}

.hero-stage {
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.75rem 1.25rem 2rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--copper) 16%, transparent), transparent 50%),
    linear-gradient(165deg, color-mix(in srgb, var(--teal) 22%, #fff), color-mix(in srgb, var(--teal-soft) 55%, #fff));
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  box-shadow: 0 8px 22px rgba(8, 75, 70, 0.05);
  box-sizing: border-box;
  overflow: hidden;
}

.hero-node {
  min-width: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: color-mix(in srgb, #fff 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--teal-deep);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}

a.hero-node:hover,
a.hero-node:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: 0 8px 18px rgba(8, 75, 70, 0.12);
  outline: none;
  color: var(--teal-deep);
}

.hero-stage.is-in .hero-node:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 18px rgba(8, 75, 70, 0.12);
}

.hero-stage-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-stage-title:hover,
.hero-stage-title:focus-visible {
  color: var(--teal);
  outline: none;
}

.hero-stage-title .brand-inline {
  max-width: 5.5rem;
  width: auto;
  height: 1.35rem;
}

.hero-node-root {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding-block: 0.85rem;
  background: color-mix(in srgb, var(--teal) 20%, #fff);
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  font-family: var(--font-display);
  font-size: 1.1rem;
  animation: node-glow 3.8s ease-in-out infinite alternate;
}

.hero-node-more {
  min-width: min(100%, 18rem);
  font-style: italic;
  font-weight: 700;
  color: var(--copper);
  border-style: dashed;
  background: color-mix(in srgb, var(--copper) 12%, #fff);
  line-height: 1.3;
  padding-inline: 1rem;
  white-space: normal;
}

.hero-spine {
  width: 2px;
  height: 1.6rem;
  background: linear-gradient(180deg, var(--teal), color-mix(in srgb, var(--copper) 50%, var(--teal)));
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.hero-row-soft .hero-node {
  opacity: 0.96;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.35rem auto 0.75rem;
  padding: 0.35rem 0.75rem;
  max-width: 100%;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.scroll-cue-label {
  opacity: 0.9;
}

.scroll-cue-icon {
  position: relative;
  width: 1.35rem;
  height: 2rem;
  border: 1.5px solid color-mix(in srgb, var(--teal) 45%, var(--line));
  border-radius: 999px;
}

.scroll-cue-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--teal);
  transform: translateX(-50%);
  animation: scroll-cue-dot 1.6s ease-in-out infinite;
}

.scroll-cue-desktop {
  display: none;
}

@keyframes scroll-cue-dot {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  70% {
    opacity: 0.15;
    transform: translateX(-50%) translateY(0.85rem);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(0.95rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-icon::before {
    animation: none;
    top: 0.55rem;
    opacity: 0.85;
  }
}

@keyframes node-glow {
  from { box-shadow: 0 0 0 rgba(13, 110, 102, 0); }
  to { box-shadow: 0 0 22px rgba(13, 110, 102, 0.22); }
}

.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1rem, 4vw, 2.5rem);
}

.section-alt {
  background: color-mix(in srgb, var(--teal-soft) 45%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--teal) 12%, var(--line));
}

.strip .section-head {
  max-width: 40rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.35rem;
  max-width: 56rem;
  margin-bottom: 2rem;
}

.section-head-copy {
  min-width: 0;
  flex: 1;
  line-height: 1.2;
}

.section-head-copy h2 {
  line-height: 1.05;
}

.section-head-copy p {
  margin-top: 0.4rem;
  line-height: 1.3;
}

.section-head-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(3.75rem, 8vw, 5rem);
  height: clamp(3.75rem, 8vw, 5rem);
  margin: 0.15rem 0 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--teal-soft) 75%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  box-shadow: 0 10px 24px rgba(8, 75, 70, 0.06);
}

.section-head-icon img {
  width: 58%;
  height: 58%;
  display: block;
  object-fit: contain;
}

.section-head-icon-copper {
  background: color-mix(in srgb, var(--copper) 14%, #fff);
  border-color: color-mix(in srgb, var(--copper) 28%, var(--line));
}

.free-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.35rem;
  max-width: none;
  margin-bottom: 2rem;
}

.free-banner .section-head-copy {
  flex: 1;
  min-width: 0;
}

.section-head h2,
.free-banner h2,
.contact-panel h2,
.try-panel h2,
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: none;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.3;
  max-width: 46rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pillar {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.pillar h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

#modules.section {
  padding-inline: clamp(0.5rem, 2vw, 1.25rem);
}

#modules .section-head {
  max-width: 56rem;
  margin-inline: 0;
  justify-content: flex-start;
  text-align: left;
  width: auto;
}

#modules .section-head .section-head-copy {
  flex: 1;
  min-width: 0;
}

.section-head h2 .brand-inline {
  height: 0.92em;
  max-width: 4.6em;
  vertical-align: -0.12em;
}

#modules .section-head p,
.modules-lede {
  margin-top: 0.4rem;
  max-width: 46rem;
  font-size: 1.08rem;
  line-height: 1.3;
  text-align: left;
}

.title-star {
  margin-left: 0.12em;
  color: var(--copper);
  font-weight: 800;
  text-decoration: none !important;
  vertical-align: super;
  font-size: 0.55em;
  line-height: 1;
}

.title-star:hover,
.title-star:focus,
.title-star:focus-visible,
.title-star:active,
.title-star:visited {
  color: var(--copper);
  text-decoration: none !important;
}

.modules-gallery {
  width: min(100%, 56rem);
  margin: 0.35rem auto 0;
}

.modules-gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

.modules-gallery-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--teal) 10%, #fff), transparent 55%),
    linear-gradient(180deg, #f3f7f6 0%, #fff 42%, #fff 100%);
  box-shadow: 0 16px 40px rgba(8, 75, 70, 0.08);
  transition: height 0.35s ease;
}

.modules-gallery-track {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.modules-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-margin-top: calc(var(--nav-h-real) + 0.85rem);
  transition: box-shadow 0.35s ease;
}

.modules-slide.is-linked {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--teal) 45%, transparent);
}

.modules-slide .module-shot {
  --screen-tilt: perspective(1400px) rotateX(3.5deg) rotateY(-5deg);
  display: grid;
  grid-template-rows: 1.45rem minmax(0, 1fr);
  width: calc(100% - 1.75rem);
  max-width: 100%;
  margin: 0.85rem auto 0.15rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, #082a28 55%, #000);
  border-radius: 12px;
  overflow: hidden;
  background: #102624;
  cursor: zoom-in;
  aspect-ratio: 16 / 10.35;
  box-sizing: border-box;
  isolation: isolate;
  transform: var(--screen-tilt);
  transform-origin: center bottom;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 2px 0 rgba(0, 0, 0, 0.2) inset,
    0 22px 36px -10px rgba(8, 42, 40, 0.38),
    0 10px 18px -8px rgba(8, 42, 40, 0.28),
    8px 18px 28px -12px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.modules-slide .module-shot::before {
  content: "";
  display: block;
  grid-row: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 0.72rem 50%, #ff5f57 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 1.55rem 50%, #febc2e 0 0.22rem, transparent 0.26rem),
    radial-gradient(circle at 2.38rem 50%, #28c840 0 0.22rem, transparent 0.26rem),
    linear-gradient(180deg, #2d4844 0%, #1a322f 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.modules-slide .module-shot:hover,
.modules-slide .module-shot:focus-visible {
  outline: none;
  transform: perspective(1400px) rotateX(1.5deg) rotateY(-2deg) translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 2px 0 rgba(0, 0, 0, 0.2) inset,
    0 26px 42px -10px rgba(8, 42, 40, 0.42),
    0 12px 22px -8px rgba(8, 42, 40, 0.3),
    10px 20px 32px -12px rgba(0, 0, 0, 0.2);
}

.modules-slide .module-shot:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  outline-offset: 3px;
}

.modules-slide .module-shot picture {
  display: grid;
  place-items: center;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.7rem 0.75rem 0.8rem;
  box-sizing: border-box;
  background:
    radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--teal) 28%, #1a3532) 0%, transparent 58%),
    linear-gradient(165deg, #1c3834 0%, #0f2421 48%, #16302c 100%);
}

.modules-slide .module-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .modules-slide .module-shot {
    --screen-tilt: perspective(900px) rotateX(2deg) rotateY(-3deg);
    width: calc(100% - 1.1rem);
    margin: 0.65rem auto 0.05rem;
    border-radius: 10px;
    aspect-ratio: 16 / 10.4;
  }

  .modules-slide .module-shot::before {
    background-size: auto;
  }

  .modules-slide .module-shot picture {
    padding: 0.55rem 0.55rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modules-slide .module-shot,
  .modules-slide .module-shot:hover,
  .modules-slide .module-shot:focus-visible {
    transform: none;
  }
}

.modules-slide-copy {
  padding: 0.85rem 1.15rem 0.95rem;
  text-align: left;
}

.modules-slide-copy h3 {
  margin: 0 0 0.28rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink);
}

.modules-slide-copy p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.35;
}

.modules-slide-more .modules-slide-copy {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal) 6%, #fff));
}

@media (max-width: 980px) {
  .modules-slide-copy {
    padding: 0.65rem 0.85rem 0.7rem;
  }

  .modules-gallery-dots {
    margin-top: 0.7rem;
  }
}

.modules-gallery-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-deep);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(8, 75, 70, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modules-gallery-nav:hover,
.modules-gallery-nav:focus-visible {
  background: color-mix(in srgb, var(--teal) 12%, #fff);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  color: var(--teal);
  outline: none;
}

.modules-gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.modules-gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 22%, var(--line));
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.modules-gallery-dot[aria-selected="true"] {
  width: 1.35rem;
  background: var(--teal);
}

.modules-gallery-dot:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 55%, transparent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .modules-gallery-shell {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .modules-gallery-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modules-gallery-track,
  .modules-gallery-viewport {
    transition: none;
  }
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}

.flow-steps li {
  position: relative;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.flow-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -0.7rem;
  left: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-steps strong {
  font-size: 1.05rem;
}

.flow-steps span {
  color: var(--muted);
  font-size: 0.96rem;
}

.free-section {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--teal) 10%, #fff), color-mix(in srgb, var(--copper) 6%, #fff));
  border-block: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
}

.free-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.35rem;
  max-width: none;
  margin-bottom: 2rem;
}

.free-card ul strong {
  color: var(--ink);
  font-weight: 700;
}

.free-banner h2 {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
}

.free-giant {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  letter-spacing: -0.03em;
  color: var(--copper);
  white-space: nowrap;
}

.free-star {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--copper);
  margin-top: 0.55rem;
}

.free-lead {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
  color: var(--ink);
  max-width: none;
}

.free-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.free-card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.free-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.free-card h3 .icon {
  width: 2.4rem;
  height: 2.4rem;
}

.free-card h3 .icon img {
  width: 1.45rem;
  height: 1.45rem;
}

.free-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.free-yes {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
}

.free-extra {
  border-color: color-mix(in srgb, var(--copper) 30%, var(--line));
}

.free-why {
  margin: 1.5rem 0 0;
  max-width: none;
  width: 100%;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.55;
}

.free-note {
  margin: 1rem 0 0;
  max-width: none;
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.trust-row article {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.trust-row h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.08rem;
}

.trust-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal-soft) 70%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  flex-shrink: 0;
}

.icon img {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.icon-lg {
  width: 3.15rem;
  height: 3.15rem;
}

.icon-lg img {
  width: 1.95rem;
  height: 1.95rem;
}

.icon-copper {
  background: color-mix(in srgb, var(--copper) 12%, #fff);
  border-color: color-mix(in srgb, var(--copper) 22%, var(--line));
}

.pillar .icon {
  margin-bottom: 0.55rem;
}

.install-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.try-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#contatti .section-head,
.section-head-center {
  max-width: 56rem;
  margin-inline: 0;
  justify-content: flex-start;
  text-align: left;
  width: auto;
}

#contatti .section-head .section-head-copy {
  flex: 1;
  min-width: 0;
}

#contatti .section-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  line-height: 1.05;
  font-size: clamp(1.45rem, 3.4vw, 2.6rem);
}

#contatti .section-head p {
  margin-top: 0.4rem;
  max-width: 46rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.3;
  text-align: left;
}

.contact-wow {
  font-style: italic;
  font-weight: 700;
  color: var(--copper);
  font-family: var(--font-display);
  font-size: 1.12em;
  letter-spacing: -0.02em;
}

@media (min-width: 981px) {
  #contatti .section-head h2 {
    flex-wrap: wrap;
    white-space: normal;
  }

  #contatti .section-head p {
    white-space: normal;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.contact-grid-org {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin-top: 0.85rem;
}

.contact-field-website {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  width: 100%;
  max-width: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-field-message textarea {
  min-height: 4.5rem;
}

.contact-captcha {
  margin-top: 0.35rem;
  max-width: 16rem;
}

.contact-captcha input[name="captcha_answer"] {
  max-width: 8rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  min-height: 2.85rem;
}

.contact-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--teal) 35%, white);
  border-color: var(--teal);
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
  border-color: #a61b1b;
  outline-color: color-mix(in srgb, #a61b1b 35%, white);
}

.contact-fieldset {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 55%, #fff);
  display: grid;
  gap: 0.7rem;
}

.contact-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.contact-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.contact-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.contact-option-title {
  display: block;
}

.contact-option-hint {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.contact-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--teal);
}

.contact-check input.is-invalid {
  outline: 2px solid #a61b1b;
  outline-offset: 2px;
}

.contact-privacy {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal-soft) 45%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
  max-height: calc(1.35em * 4 + 0.9rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.15rem;
}

.contact-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
}

.contact-status.is-ok {
  background: color-mix(in srgb, var(--teal) 12%, #fff);
  color: var(--teal-deep);
}

.contact-status.is-error {
  background: color-mix(in srgb, #a61b1b 10%, #fff);
  color: #7a1414;
}

.try-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.try-panel > div > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.try-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.try-note {
  margin: 0;
  color: var(--teal-deep);
  font-weight: 700;
}

.install-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.install-panel > div > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.install-list {
  margin: 1.15rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.install-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: stretch;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: min(100%, 88rem);
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1.1rem;
  height: 100%;
  box-sizing: border-box;
}

.faq-list summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 800;
  list-style: none;
  line-height: 1.35;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0.7rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.faq-list p strong {
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding:
    0.85rem
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right))
    max(0.95rem, env(safe-area-inset-bottom))
    max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.25rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 28px rgba(8, 75, 70, 0.06);
}

.footer-brand {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  min-width: 0;
}

.footer-mark {
  display: block;
  height: 1.35rem;
  width: auto;
  flex-shrink: 0;
}

.footer-brand span,
.footer-copy,
.footer-credit {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-credit {
  margin-left: auto;
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .site-footer {
  z-index: 30;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(0.85rem, env(safe-area-inset-right))
    max(0.85rem, env(safe-area-inset-bottom))
    max(0.85rem, env(safe-area-inset-left));
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 31, 28, 0.72);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 68rem);
  max-height: 92vh;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 5rem);
  object-fit: contain;
  border-radius: 12px;
  background: var(--paper-deep);
}

.lightbox-dialog p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="fade-up"],
[data-reveal]:not([data-reveal="fade-left"]):not([data-reveal="fade-right"]):not([data-reveal="scale-in"]):not([data-reveal="pop"]) {
  transform: translate3d(0, 28px, 0);
}

[data-reveal="fade-left"],
[data-reveal="fade-right"] {
  transform: translate3d(0, 24px, 0);
}

[data-reveal="scale-in"] {
  transform: translate3d(0, 18px, 0) scale(0.98);
  filter: none;
}

[data-reveal="pop"] {
  transform: translate3d(0, 12px, 0);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.contact-panel.is-in,
.free-card.is-in {
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-footer {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding:
      0.45rem
      max(0.7rem, env(safe-area-inset-right))
      max(0.5rem, env(safe-area-inset-bottom))
      max(0.7rem, env(safe-area-inset-left));
    overflow: hidden;
  }

  .footer-brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .footer-brand span {
    display: none;
  }

  .footer-mark {
    height: 1.1rem;
  }

  .footer-credit {
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }
}

/* Mobile nav + stacked sections (default already stacked) */
@media (max-width: 980px) {
  .pillar-grid,
  .pillar-grid-compact,
  .flow-steps,
  .free-grid,
  .trust-row,
  .install-panel,
  .try-panel {
    grid-template-columns: 1fr;
  }

  .trust-row article:not(.trust-priority) {
    display: none;
  }

  .nav-links,
  .nav-cta-desktop,
  .lang-switch {
    display: none;
  }

  .lang-select-wrap {
    display: block;
  }

  br.break-mobile {
    display: block;
  }

  .hero-adapted-rest {
    display: block;
  }

  .hero-adapted-rest::before {
    content: none;
  }

  .hero {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
    padding-block: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-height: 0;
    align-content: start;
    align-items: stretch;
    justify-content: start;
    gap: 0;
  }

  .hero-copy {
    order: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: left;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    /* svh = viewport stabile al primo avvio (barra indirizzi inclusa) */
    min-height: calc(100svh - var(--nav-h-real));
    height: calc(100svh - var(--nav-h-real));
    max-height: calc(100svh - var(--nav-h-real));
    padding-block: 0.75rem 4.5rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .scroll-cue-mobile {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(3.4rem + env(safe-area-inset-bottom));
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 1rem);
    margin-inline: auto;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 2;
  }

  .scroll-cue-desktop {
    display: none;
  }

  .hero-side {
    order: 2;
  }

  .hero-brand,
  .hero-lede,
  .hero-support,
  .hero-adapted {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 1rem;
    margin-inline: auto;
    box-sizing: border-box;
    align-self: center;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 12.5rem;
    box-sizing: border-box;
    padding: 0.62rem 0.85rem;
    font-size: 0.88rem;
    line-height: 1.2;
    min-height: 2.7rem;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .hero-brand img {
    width: min(100%, clamp(13rem, 58vw, 20rem));
    margin-inline: 0;
  }

  .hero-lede {
    margin-top: 0.55rem;
    font-size: clamp(1.55rem, 6.2vw, 2.15rem);
  }

  .hero-support {
    margin-top: 0.7rem;
    font-size: clamp(0.98rem, 3.6vw, 1.1rem);
  }

  .hero-adapted {
    margin-top: 0.4rem;
    font-size: clamp(0.9rem, 3.3vw, 1rem);
  }

  .hero-side {
    will-change: auto;
    min-height: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-block: 0.35rem 1.5rem;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .hero-stage {
    min-height: 0 !important;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0.5rem 1rem;
    gap: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 16px;
  }

  .hero-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-row:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-row-soft {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-node {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0.42rem 0.2rem;
    font-size: 0.7rem;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-node-root {
    min-width: 0 !important;
    width: auto;
    max-width: min(100%, 9rem);
    flex: none;
    padding: 0.45rem 0.55rem;
    box-sizing: border-box;
  }

  .hero-node-more {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    flex: none;
    font-size: 0.68rem;
    line-height: 1.25;
    padding: 0.5rem 0.55rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .brand-inline-node {
    max-width: 4.25rem;
    height: auto;
  }

  .hero-stage.is-in .hero-node:hover {
    transform: none;
    box-shadow: none;
  }

  .hero-node-root {
    animation: none;
  }

  [data-reveal="pop"] {
    transform: translate3d(0, 14px, 0);
  }

  [data-reveal="pop"].is-in {
    transform: none;
  }

  /* Prevent off-screen reveal transforms from widening the page */
  [data-reveal="fade-left"],
  [data-reveal="fade-right"] {
    transform: translate3d(0, 24px, 0);
  }

  #modules .section-head .section-head-copy,
  #contatti .section-head .section-head-copy {
    min-width: 0 !important;
  }

  #modules .section-head h2,
  #contatti .section-head h2,
  #contatti .section-head p,
  .modules-lede,
  .contact-wow {
    white-space: normal !important;
    text-wrap: pretty;
  }

  .section,
  .modules-gallery,
  .trust-row,
  .free-section,
  .free-grid,
  .contact-panel,
  .faq-list,
  main {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero-gratis {
    white-space: normal;
  }

  .free-yes {
    transform: none;
  }

  .free-giant {
    font-size: clamp(2.6rem, 14vw, 4rem);
    white-space: normal;
  }

  .lightbox-dialog {
    width: min(100%, 68rem);
    max-width: calc(100% - 1.5rem);
  }

  .site-footer,
  .footer-brand,
  .footer-copy {
    max-width: 100%;
  }

  .site-nav {
    gap: 0.35rem;
    padding-inline: max(0.6rem, env(safe-area-inset-left)) max(0.6rem, env(safe-area-inset-right));
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .site-nav.is-open {
    overflow: visible;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-brand img {
    height: 1.5rem;
    max-width: min(7.25rem, 34vw);
  }

  .lang-select-wrap {
    flex: 0 0 auto;
  }

  .lang-select {
    max-width: 5.6rem;
    min-height: 2.3rem;
    font-size: 0.7rem;
    padding: 0.28rem 1.35rem 0.28rem 0.4rem;
  }

  .nav-aside {
    gap: 0.3rem;
    min-width: 0;
    flex: 0 0 auto;
    margin-left: 0.15rem;
  }

  .nav-toggle {
    width: 2.3rem;
    height: 2.3rem;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .nav-toggle-bars {
    width: 1rem;
    gap: 4px;
  }

  img,
  svg,
  video,
  canvas,
  .btn {
    max-width: 100%;
  }

  [data-parallax] {
    transform: none !important;
  }

  .site-nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem max(1.25rem, env(safe-area-inset-right)) 1.35rem max(1.25rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, #0a3f3a 0%, #082a28 100%);
    border-bottom: 1px solid color-mix(in srgb, #000 25%, transparent);
    box-shadow: 0 22px 40px rgba(8, 42, 40, 0.35);
  }

  .site-nav.is-open .nav-links a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    border-bottom-color: transparent;
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    padding-inline: 0.35rem;
    border-radius: 10px;
  }

  .site-nav.is-open .nav-links a:not(.btn):hover,
  .site-nav.is-open .nav-links a:not(.btn):focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open .nav-links a.is-active {
    color: #fff;
    border-bottom-color: color-mix(in srgb, var(--copper) 70%, #fff);
  }

  .site-nav.is-open .nav-links a.nav-free {
    color: color-mix(in srgb, var(--copper) 45%, #fff);
  }

  .site-nav.is-open .nav-cta-mobile {
    display: inline-flex;
    width: 100%;
    max-width: none;
    margin-top: 0.55rem;
    background: #fff;
    color: var(--teal-deep);
    font-size: 0.92rem;
    min-height: 3.1rem;
  }

  .site-nav.is-open .nav-cta-mobile:hover {
    color: var(--teal-deep);
  }

  .nav-toggle {
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .faq-list summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  /* Hard mobile containment: nothing may widen the page */
  html,
  body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .ambient {
    inset: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .site-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .section {
    padding-inline: max(0.85rem, env(safe-area-inset-left)) max(0.85rem, env(safe-area-inset-right));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .modules-gallery {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    box-sizing: border-box;
  }

  .modules-slide .module-shot,
  .modules-slide .module-shot picture,
  .modules-slide .module-shot img {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero,
  .hero-copy,
  .hero-side,
  .hero-stage,
  .scroll-cue {
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-stage {
    margin-inline: 0;
  }

  .hero-row,
  .hero-row-soft {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
  }

  .hero-row-soft {
    max-width: 100% !important;
  }

  .hero-node,
  .hero-node-root,
  .hero-node-more {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  [data-reveal],
  [data-reveal="fade-up"],
  [data-reveal="fade-left"],
  [data-reveal="fade-right"],
  [data-reveal="scale-in"],
  [data-reveal="pop"] {
    transform: translate3d(0, 16px, 0) !important;
  }

  [data-reveal].is-in {
    transform: none !important;
  }

  .free-card,
  .trust-row article,
  .contact-panel,
  .faq-list details {
    max-width: 100%;
    box-sizing: border-box;
  }

  .lightbox-dialog {
    width: calc(100% - 1.25rem) !important;
    max-width: calc(100% - 1.25rem) !important;
    box-sizing: border-box;
  }
}

@media (min-width: 640px) and (max-width: 980px) {
  .pillar-grid-compact {
    grid-template-columns: 1fr 1fr;
  }

  .modules-gallery {
    width: min(98%, 48rem);
  }

  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(96%, 56rem);
  }
}

/* Desktop / tablet landscape */
@media (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: center;
    justify-content: center;
    max-width: 78rem;
    margin-inline: auto;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100dvh - var(--nav-h));
    padding:
      clamp(2rem, 5vh, 3.5rem)
      clamp(1.75rem, 5vw, 3.25rem)
      clamp(2rem, 5vh, 3.5rem);
  }

  .hero-copy {
    justify-self: center;
    width: 100%;
    max-width: 42rem;
    padding-right: 0;
  }

  .hero-side {
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin-right: 0;
    min-height: 0;
    align-self: center;
  }

  .hero-stage {
    height: auto;
    min-height: 0;
    gap: 0.85rem;
    padding: 1.75rem 1.5rem 2rem;
    justify-content: center;
  }

  .hero-stage-title {
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  }

  .hero-stage-title .brand-inline {
    height: 1.55rem;
    max-width: 6.5rem;
  }

  .hero-spine {
    height: 1.35rem;
  }

  .hero-row {
    gap: 0.65rem;
    width: 100%;
  }

  .hero-node {
    min-width: 6.5rem;
    padding: 0.85rem 1.05rem;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  .hero-node-root {
    min-width: 9.5rem;
    padding-block: 0.9rem;
    padding-inline: 1.1rem;
  }

  .hero-node-root .brand-inline-node {
    max-width: 5.5rem;
    width: 5.5rem;
    height: auto;
  }

  .hero-node-more {
    min-width: min(100%, 22rem);
    max-width: min(100%, 24rem);
    padding: 0.85rem 1.15rem;
    font-size: 1rem;
    line-height: 1.35;
  }

  .scroll-cue-mobile {
    display: none;
  }

  .scroll-cue-desktop {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0.25rem auto 0.15rem;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .modules-gallery {
    width: min(92%, 56rem);
    margin-inline: auto;
  }

  .nav-cta-mobile {
    display: none !important;
  }

  .pillar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pillar-grid-compact {
    grid-template-columns: 1fr 1fr;
  }

  .flow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .free-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .try-panel,
  .install-panel {
    grid-template-columns: 1.35fr 0.9fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-field-full {
    grid-column: 1 / -1;
  }

  .contact-features {
    grid-template-columns: 1fr 1fr;
  }

  .faq-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(96%, 88rem);
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .hero-copy,
  .hero-side,
  .btn,
  .hero-node-root {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* --- Optimizations pack --- */
.pillar-grid-two {
  grid-template-columns: 1fr 1fr !important;
}

.free-yes {
  box-shadow: 0 14px 36px rgba(8, 75, 70, 0.1);
}

.free-extra {
  background: color-mix(in srgb, #fff 94%, var(--copper));
  box-shadow: 0 14px 36px rgba(154, 74, 40, 0.08);
}

.faq-list {
  gap: 1rem;
}

.faq-extra[hidden] {
  display: none !important;
}

.faq-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.contact-step-panel[hidden] {
  display: none !important;
}

.contact-steps {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.contact-step {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.contact-step.is-active {
  color: var(--teal-deep);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  background: color-mix(in srgb, var(--teal-soft) 55%, #fff);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 42, 40, 0.72);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-counter {
  margin: 0.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.lightbox-dialog {
  position: relative;
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(3.1rem + env(safe-area-inset-bottom));
  }

  .contact-grid-org {
    grid-template-columns: 1fr;
  }

  .contact-field-website {
    margin-bottom: 0;
  }

  #modules .section-head h2,
  #contatti .section-head h2,
  #contatti .section-head p,
  .modules-lede {
    white-space: normal;
    text-wrap: pretty;
  }

  #modules .section-head .section-head-copy,
  #contatti .section-head .section-head-copy {
    min-width: 0;
  }

  .nav-links a {
    font-size: 0.92rem;
  }
}

@media (min-width: 721px) {
  .site-footer {
    min-height: 3.1rem;
    padding-block: 0.55rem;
  }
}
