@font-face {
    font-family: "Nexa";
    src: url("../img/Nexa-ExtraLight.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Nexa";
    src: url("../img/Nexa-Heavy.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/SourceSans3VF-Upright.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --bg: #eef4ff;
    --bg-soft: #f7faff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --text: #51545a;
    --text-dark: #3f4349;
    --muted: #616c80;
    --line: rgba(68, 94, 126, 0.14);
    --blue: #63a8d8;
    --blue-dark: #4b82a7;
    --blue-light: #8fc4eb;
    --cyan: #86e8ee;
    --shadow: 0 24px 70px rgba(74, 103, 141, 0.14);
    --shadow-small: 0 14px 35px rgba(74, 103, 141, 0.12);
    --radius: 30px;
    --radius-small: 18px;
    --shell: 1240px;
    --header-height: 82px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

html.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
strong,
b {
    color: var(--text-dark);
    font-weight: 800;
}

h1,
h2,
h3 {
    font-family: "Nexa", "Source Sans 3", Arial, sans-serif;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 6.7rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

::selection {
    background: var(--blue);
    color: #fff;
}

.shell {
    width: min(calc(100% - 44px), var(--shell));
    margin-inline: auto;
}

.narrow-shell {
    max-width: 900px;
}

.section-space {
    padding-block: clamp(68px, 8vw, 118px);
}

.section-space-small {
    padding-block: clamp(42px, 5vw, 72px);
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    box-shadow: var(--shadow-small);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--blue-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    background: var(--blue-dark);
    box-shadow: 0 12px 24px rgba(74, 131, 172, 0.2);
}

.button-outline {
    background: transparent;
    color: var(--blue-dark);
}

.button-outline:hover,
.button-outline:focus-visible {
    color: #fff;
}

.button-small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.78rem;
}

.text-link {
    color: var(--blue-dark);
    font-weight: 800;
}

.text-link:hover {
    color: var(--blue);
}

.decorative-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 32%, rgba(143, 196, 235, 0.65), transparent 24%),
        radial-gradient(circle at 78% 28%, rgba(134, 232, 238, 0.52), transparent 22%),
        radial-gradient(circle at 58% 5%, rgba(255, 255, 255, 0.94), transparent 28%),
        linear-gradient(135deg, #edf4ff 0%, #eff6ff 52%, #eaf5fb 100%);
}

.decorative-bg::before,
.decorative-bg::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(202,211,231,0.62));
    box-shadow: inset -12px -16px 30px rgba(145, 158, 190, 0.14), 0 18px 45px rgba(102, 128, 164, 0.1);
}

.decorative-bg::before {
    width: 170px;
    height: 170px;
    right: 5%;
    top: 15%;
}

.decorative-bg::after {
    width: 62px;
    height: 62px;
    left: 12%;
    bottom: 18%;
}

/* Decorative accents inside long pages */
.ambient-section {
    --ambient-glow-x: 12%;
    --ambient-glow-y: 48%;
    position: relative;
    isolation: isolate;
}

.ambient-section::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(circle at var(--ambient-glow-x) var(--ambient-glow-y), rgba(134, 232, 238, 0.17), transparent 24%),
        radial-gradient(circle at calc(100% - var(--ambient-glow-x)) calc(100% - var(--ambient-glow-y)), rgba(143, 196, 235, 0.13), transparent 21%);
}

.ambient-section::after {
    content: none;
}

.ambient-ball {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(196,207,229,0.62));
    box-shadow: inset -13px -16px 30px rgba(137, 153, 187, 0.11), 0 22px 48px rgba(102, 128, 164, 0.08);
}

.ambient-ball-large {
    width: clamp(105px, 12vw, 170px);
    height: clamp(105px, 12vw, 170px);
    opacity: 0.46;
}

.ambient-ball-small {
    width: clamp(46px, 6vw, 82px);
    height: clamp(46px, 6vw, 82px);
    opacity: 0.54;
}

.ambient-left .ambient-ball-large {
    left: -5%;
    top: 8%;
}

.ambient-left .ambient-ball-small {
    right: 4%;
    bottom: 12%;
}

.ambient-right .ambient-ball-large {
    right: -5%;
    bottom: 8%;
}

.ambient-right .ambient-ball-small {
    left: 3%;
    top: 17%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(239, 246, 255, 0.76);
    backdrop-filter: blur(18px) saturate(140%);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.scrolled {
    background: rgba(245, 249, 255, 0.92);
    box-shadow: 0 10px 30px rgba(70, 94, 127, 0.08);
}

.header-inner {
    position: relative;
    display: flex;
    width: min(calc(100% - 42px), 1500px);
    height: 100%;
    align-items: center;
    justify-content: space-between;
    margin-inline: auto;
}

.brand {
    display: block;
    width: 185px;
    flex: 0 0 auto;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav > a,
.nav-link-button {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.main-nav > a:focus-visible,
.nav-link-button:focus-visible {
    border-radius: 9px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 168, 216, 0.24);
}

.main-nav > a:not(.support-button)::after,
.nav-link-button::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 6px;
    left: 15px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--blue);
    transition: transform 180ms ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.nav-link-button:hover::after,
.nav-link-button.active::after {
    transform: scaleX(1);
}

.nav-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: -3px 1px 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 180ms ease, margin 180ms ease;
}

.nav-link-button[aria-expanded="true"] .nav-chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.support-button {
    min-height: 42px !important;
    margin-left: 5px;
    padding-inline: 20px !important;
    border-radius: 999px;
    background: var(--blue) !important;
    color: #fff !important;
    font-weight: 700;
}

.support-button span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    font-size: 0.7rem;
}

.support-button:hover {
    background: var(--blue-dark) !important;
}

.nav-services,
.nav-products {
    position: static;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 38px;
    max-height: calc(100vh - var(--header-height) - 20px);
    padding: 34px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(75, 130, 167, 0.14);
    border-radius: 0 0 26px 26px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.mega-menu::before,
.mega-menu::after {
    content: none;
}

.mega-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-intro {
    padding: 12px 10px 12px 4px;
}

.mega-intro p {
    margin-bottom: 22px;
    color: var(--text-dark);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.mega-intro a {
    color: var(--blue-dark);
    font-weight: 800;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
}

.mega-card {
    display: grid;
    min-height: 102px;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid rgba(99, 168, 216, 0.14);
    border-radius: 17px;
    background: linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    min-width: 0;
}

.mega-card span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mega-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.mega-card:hover,
.mega-card.current {
    transform: translateY(-3px);
    border-color: rgba(99, 168, 216, 0.34);
    background: linear-gradient(145deg, #ffffff 0%, #e8f3fc 100%);
    box-shadow: 0 12px 25px rgba(74, 103, 141, 0.09);
}

.product-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    padding: 34px;
    border: 1px solid rgba(75, 130, 167, 0.14);
    border-radius: 0 0 26px 26px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--shadow);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.product-menu.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.product-menu-intro {
    padding: 12px 10px 12px 4px;
}

.product-menu-intro p {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.product-menu-card {
    display: grid;
    min-height: 215px;
    grid-template-columns: minmax(170px, 0.38fr) minmax(0, 0.62fr);
    align-items: center;
    gap: clamp(26px, 4vw, 58px);
    padding: 24px clamp(26px, 4vw, 48px);
    border: 1px solid rgba(99, 168, 216, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-menu-card:hover,
.product-menu-card.current {
    transform: translateY(-3px);
    border-color: rgba(99, 168, 216, 0.34);
    box-shadow: 0 12px 25px rgba(74, 103, 141, 0.09);
}

.product-menu-card > img {
    width: 100%;
    height: 165px;
    object-fit: contain;
}

.product-menu-card > div > span {
    color: var(--blue-dark);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-menu-card strong {
    display: block;
    margin: 5px 0 8px;
    font-size: 1.65rem;
}

.product-menu-card p {
    max-width: 580px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.product-menu-card b {
    color: var(--blue-dark);
    font-size: 0.78rem;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Home */
.home-page .site-header {
    position: fixed;
    right: 0;
    left: 0;
    border-bottom-color: transparent;
    background: transparent;
    backdrop-filter: none;
}

.home-page .site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(245, 249, 255, 0.92);
    backdrop-filter: blur(18px) saturate(140%);
}

.home-page .site-header:not(.scrolled) .brand {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.home-hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: grid;
    place-items: center;
    padding-top: var(--header-height);
}

.home-hero::before,
.home-hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-block: clamp(28px, 6vh, 64px);
    text-align: center;
}

.hero-mark {
    width: clamp(138px, min(18.05vw, 28.75vh), 244px);
    margin-bottom: 35px;
    filter: drop-shadow(0 18px 28px rgba(79, 134, 173, 0.16));
}

.home-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(4rem, min(10.85vw, 18vh), 9rem);
}

.hero-since {
    display: grid;
    width: min(360px, 78vw);
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.hero-since span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 104, 137, 0.28));
}

.hero-since span:last-child {
    background: linear-gradient(90deg, rgba(77, 104, 137, 0.28), transparent);
}

.hero-since em {
    color: var(--muted);
    font-style: normal;
}

.hero-tagline {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(0.8rem, 1.4vw, 1.06rem);
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-tagline b {
    color: var(--blue);
}

.hero-scroll {
    position: absolute;
    bottom: clamp(14px, 3vh, 30px);
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(75, 130, 167, 0.2);
    border-radius: 50%;
    color: var(--blue-dark);
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

.hero-orb {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(196,207,229,0.65));
    box-shadow: inset -18px -20px 40px rgba(137, 153, 187, 0.13), 0 20px 50px rgba(102, 128, 164, 0.1);
}

.orb-one {
    width: clamp(100px, 13vw, 190px);
    height: clamp(100px, 13vw, 190px);
    top: 7%;
    left: 6%;
}

.orb-two {
    width: clamp(130px, 17vw, 250px);
    height: clamp(130px, 17vw, 250px);
    right: 6%;
    top: 36%;
}

.orb-three {
    width: clamp(52px, 5vw, 80px);
    height: clamp(52px, 5vw, 80px);
    top: 44%;
    left: 19%;
}

.orb-four {
    width: clamp(80px, 9vw, 135px);
    height: clamp(80px, 9vw, 135px);
    right: 27%;
    bottom: 8%;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto clamp(42px, 5.5vw, 68px);
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 22px;
}

.section-heading > p:last-child {
    max-width: 720px;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.compact-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    min-height: 230px;
    padding: 30px;
    border: 1px solid rgba(99, 168, 216, 0.15);
    border-radius: var(--radius-small);
    background: rgba(255,255,255,0.34);
    transition: transform 180ms ease, background-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.68);
}

.feature-symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(99, 168, 216, 0.3);
    border-radius: 50%;
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.cta-card {
    position: relative;
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(34px, 5vw, 62px);
    overflow: hidden;
    border: 1px solid rgba(99, 168, 216, 0.14);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 83% 45%, rgba(134, 232, 238, 0.56), transparent 25%),
        radial-gradient(circle at 57% 5%, rgba(143, 196, 235, 0.45), transparent 36%),
        rgba(255,255,255,0.72);
    box-shadow: var(--shadow);
}

.cta-card::before,
.cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #ced8eb);
    box-shadow: inset -7px -9px 16px rgba(141,153,181,0.14);
}

.cta-card::before {
    width: 75px;
    height: 75px;
    right: 8%;
    top: -15px;
}

.cta-card::after {
    width: 32px;
    height: 32px;
    right: 27%;
    bottom: 18px;
}

.cta-card > * {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.cta-eyebrow {
    margin-bottom: 10px;
    color: var(--blue-dark);
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.services-preview .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.services-preview {
    padding-block: clamp(60px, 7vw, 90px);
}

.services-preview .service-card {
    display: grid;
    min-height: 158px;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "icon title"
        "icon action";
    align-content: center;
    gap: 8px 22px;
    padding: 24px 28px;
}

.services-preview .service-card img {
    grid-area: icon;
    width: 70px;
    height: 70px;
    margin-bottom: 0;
}

.services-preview .service-card h3 {
    grid-area: title;
    margin-bottom: 0;
}

.services-preview .service-card span {
    grid-area: action;
    margin-top: 0;
}

.service-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    border: 1px solid rgba(99, 168, 216, 0.16);
    border-radius: 24px;
    background: rgba(255,255,255,0.48);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
    transform: translateY(-7px);
    background: #fff;
    box-shadow: var(--shadow-small);
}

.service-card img {
    width: 90px;
    height: 90px;
    margin-bottom: 28px;
    object-fit: contain;
}

.service-card h2,
.service-card h3 {
    margin-bottom: 14px;
}

.service-card p {
    margin-bottom: 24px;
    color: var(--muted);
}

.service-card span {
    margin-top: auto;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card span b {
    margin-left: 7px;
    color: var(--blue);
}

.testimonials-section {
    background: rgba(255,255,255,0.26);
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    transition: transform 400ms cubic-bezier(.2,.75,.3,1);
}

.testimonial-card {
    min-width: calc((100% - 40px) / 3);
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 38px;
    border: 1px solid rgba(99, 168, 216, 0.14);
    border-radius: 24px;
    background: rgba(255,255,255,0.58);
}

.quote-mark {
    height: 52px;
    color: var(--blue-light);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

.testimonial-card > p {
    color: var(--text-dark);
    font-size: 1.04rem;
}

.testimonial-card footer {
    display: flex;
    margin-top: auto;
    flex-direction: column;
}

.testimonial-card footer span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 34px;
}

.slider-controls > button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(99, 168, 216, 0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--blue-dark);
    cursor: pointer;
}

.slider-controls > button:hover {
    background: #fff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(75, 130, 167, 0.24);
    cursor: pointer;
}

.slider-dot.active {
    width: 22px;
    border-radius: 999px;
    background: var(--blue);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: center;
    gap: 20px;
}

.partner-logo {
    display: grid;
    min-height: 105px;
    place-items: center;
    padding: 12px;
    border-radius: 16px;
    transition: background-color 180ms ease, transform 180ms ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.5);
}

.partner-logo img {
    width: 100%;
    height: 75px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: filter 180ms ease, opacity 180ms ease;
}

.partner-logo img[alt="Libraesva Email Security"] {
    width: 115%;
    max-width: 145px;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Generic pages */
.page-hero {
    min-height: clamp(440px, 65svh, 560px);
    display: grid;
    place-items: center;
    padding-block: 90px;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 26px;
    font-size: clamp(2.7rem, 5.8vw, 5.3rem);
    text-wrap: balance;
}

.page-hero p:last-child {
    max-width: 780px;
    margin-inline: auto;
    color: var(--muted);
    font-size: 1.12rem;
}

.compact-page-hero {
    min-height: clamp(360px, 52svh, 440px);
}

.services-grid-large .service-card {
    min-height: 320px;
    padding: 28px;
}

.services-grid-large .service-card img {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
}

.services-grid-large .service-card h2 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.24;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.inline-actions,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.product-action-link {
    padding: 10px 4px;
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(75, 130, 167, 0.35);
    text-underline-offset: 5px;
}

.product-action-link:hover,
.product-action-link:focus-visible {
    color: var(--text-dark);
    text-decoration-color: var(--blue);
}

.transversal-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    border-top: 1px solid var(--line);
}

.transversal-section > div {
    max-width: 760px;
}

.transversal-section h2 {
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.transversal-section p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.product-band,
.product-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(42px, 7vw, 90px);
    padding: clamp(32px, 5vw, 65px);
    border: 1px solid rgba(99, 168, 216, 0.16);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(235,246,255,0.72));
    box-shadow: var(--shadow-small);
}

.product-band-visual,
.product-showcase-visual {
    display: grid;
    min-height: 280px;
    place-items: center;
}

.product-band-visual img,
.product-showcase-visual img {
    width: 100%;
    max-height: 310px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(70, 91, 120, 0.13));
}

.product-band h2,
.product-showcase h2 {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.product-band p,
.product-showcase p {
    max-width: 680px;
    color: var(--muted);
}

.home-product {
    padding-top: 0;
}

.product-catalog {
    max-width: 1100px;
}

.product-lead {
    color: var(--text-dark) !important;
    font-size: 1.22rem;
    font-weight: 800;
}

/* InfoFatture */
.product-hero {
    min-height: min(850px, calc(100svh - var(--header-height)));
    display: grid;
    align-items: center;
    padding-block: clamp(70px, 8vw, 115px);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(45px, 8vw, 110px);
}

.product-hero-copy h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: clamp(3rem, 5.7vw, 5.4rem);
    line-height: 0.99;
    text-wrap: balance;
}

.product-hero-lead {
    max-width: 720px;
    margin-bottom: 32px;
    color: #526078;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.product-hero-note {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.product-hero-visual {
    display: grid;
    min-height: 500px;
    place-items: center;
}

.product-hero-visual img {
    width: 100%;
    max-height: 530px;
    object-fit: contain;
    filter: drop-shadow(0 28px 42px rgba(70, 91, 120, 0.16));
}

.product-benefits {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: -42px;
    border: 1px solid rgba(99, 168, 216, 0.16);
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-small);
}

.product-benefits article {
    min-height: 150px;
    padding: 28px;
    border-right: 1px solid var(--line);
}

.product-benefits article:last-child {
    border-right: 0;
}

.product-benefits strong,
.product-benefits span {
    display: block;
}

.product-jump-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 24;
    margin-top: 24px;
    border-block: 1px solid rgba(75, 130, 167, 0.14);
    background: rgba(245, 249, 255, 0.94);
    backdrop-filter: blur(16px) saturate(135%);
}

.product-jump-nav .shell {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 54px);
    overflow-x: auto;
    scrollbar-width: none;
}

.product-jump-nav .shell::-webkit-scrollbar {
    display: none;
}

.product-jump-nav a {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    transition: color 180ms ease;
}

.product-jump-nav a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    content: "";
    opacity: 0;
    transform: scaleX(0.45);
    background: var(--blue);
    transition: opacity 180ms ease, transform 180ms ease;
}

.product-jump-nav a:hover,
.product-jump-nav a:focus-visible,
.product-jump-nav a.is-active {
    color: var(--blue-dark);
}

.product-jump-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.product-jump-nav + .product-audience {
    padding-top: clamp(44px, 4.2vw, 64px);
}

#funzionalita,
#schermate,
#demo,
#richiedi-info,
#faq-infofatture {
    scroll-margin-top: calc(var(--header-height) + 56px);
}

.product-benefits strong {
    margin-bottom: 9px;
    color: var(--blue-dark);
    font-size: 1.05rem;
}

.product-benefits span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.product-audience .section-heading,
.product-core .section-heading {
    max-width: 850px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.audience-card,
.module-card,
.confidence-grid article {
    padding: 30px;
    border: 1px solid rgba(99, 168, 216, 0.15);
    border-radius: 21px;
    background: rgba(255,255,255,0.55);
}

.audience-card > span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 36px;
    border: 1px solid rgba(99, 168, 216, 0.3);
    border-radius: 50%;
    color: var(--blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.audience-card p,
.module-card p,
.confidence-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.product-core {
    background: rgba(255,255,255,0.3);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 50px;
}

.module-card {
    min-height: 285px;
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: var(--shadow-small);
}

.module-card > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: auto;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef7ff, #dfeefa);
    color: var(--blue-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.module-card h3 {
    margin: 28px 0 10px;
}

.product-confidence {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(45px, 8vw, 100px);
}

.confidence-copy {
    position: sticky;
    top: calc(var(--header-height) + 38px);
}

.confidence-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.confidence-copy > p:last-child {
    color: var(--muted);
}

.confidence-grid {
    display: grid;
    gap: 16px;
}

.confidence-grid article {
    min-height: 165px;
    background: rgba(255,255,255,0.62);
}

.product-gallery {
    background: rgba(255,255,255,0.28);
}

.product-gallery > .shell {
    width: min(calc(100% - 44px), 1080px);
}

.product-gallery .section-heading {
    max-width: 900px;
}

.gallery-layout {
    display: grid;
    grid-template-columns: minmax(170px, 190px) minmax(0, 1fr);
    grid-template-areas: "thumbs stage";
    align-items: start;
    gap: 18px;
    margin-top: 48px;
}

.gallery-stage-wrap {
    grid-area: stage;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(75, 130, 167, 0.16);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.gallery-stage {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9eff6;
}

.gallery-stage::after {
    content: "Apri a dimensione intera ↗";
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(5px);
    background: rgba(26, 48, 65, 0.86);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-stage:hover::after,
.gallery-stage:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-stage:focus-visible {
    outline: 3px solid rgba(99, 168, 216, 0.45);
    outline-offset: -3px;
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-caption {
    display: flex;
    min-height: 104px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 22px 28px;
    border-top: 1px solid var(--line);
}

.gallery-caption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.08rem;
}

.gallery-caption p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.gallery-caption > span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-thumbs {
    grid-area: thumbs;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-height: 610px;
    padding: 2px 7px 2px 2px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.gallery-thumb {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 7px;
    border: 1px solid rgba(75, 130, 167, 0.14);
    border-radius: 15px;
    background: rgba(255,255,255,0.55);
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    transform: translateX(3px);
    border-color: rgba(99, 168, 216, 0.48);
    background: #fff;
    box-shadow: var(--shadow-small);
}

.gallery-thumb:focus-visible {
    outline: 3px solid rgba(99, 168, 216, 0.3);
    outline-offset: 2px;
}

.gallery-thumb img {
    width: 72px;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
    object-fit: cover;
    object-position: top left;
}

.gallery-thumb span {
    display: block;
    padding: 4px 7px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.demo-section {
    padding-block: clamp(68px, 8vw, 105px);
}

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(45px, 7vw, 90px);
}

.demo-grid h2 {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.demo-grid p {
    max-width: 760px;
    color: #56637a;
}

.demo-action {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
}

.demo-action span {
    color: var(--muted);
    font-size: 0.76rem;
}

.demo-access-gate {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    width: 100%;
}

.demo-access-gate > .button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.demo-access-note,
.demo-access-status {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.demo-access-status {
    min-height: 1.3em;
    color: var(--blue-dark);
}

.demo-credentials {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border: 1px solid rgba(75, 130, 167, 0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.78);
    box-shadow: var(--shadow-small);
}

.demo-credential-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 7px 8px 7px 12px;
}

.demo-credential-row + .demo-credential-row {
    border-top: 1px solid var(--line);
}

.demo-credential-row > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-credential-row code {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.84rem;
}

.demo-credential-row button {
    min-width: 68px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(75, 130, 167, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--blue-dark);
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
}

.demo-credential-row button:hover,
.demo-credential-row button:focus-visible {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 168, 216, 0.14);
}

.copy-status {
    min-height: 18px;
    margin: 0;
    padding: 0 12px 5px;
    color: var(--blue-dark) !important;
    font-size: 0.68rem !important;
}

.product-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
    align-items: start;
    gap: clamp(50px, 8vw, 100px);
}

.product-contact-copy {
    position: sticky;
    top: calc(var(--header-height) + 38px);
}

.product-contact-copy h2 {
    font-size: clamp(2.15rem, 3.7vw, 3.3rem);
}

.product-contact-copy > p {
    color: var(--muted);
}

.field-label-line {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.optional-label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 300;
    white-space: nowrap;
}

.faq-section {
    display: grid;
    max-width: var(--shell);
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(50px, 8vw, 110px);
}

.faq-intro {
    position: sticky;
    top: calc(var(--header-height) + 88px);
}

.faq-intro > p:last-child {
    color: var(--muted);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: grid;
    min-height: 82px;
    grid-template-columns: 1fr 34px;
    align-items: center;
    gap: 20px;
    padding: 18px 4px;
    color: var(--text-dark);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(99, 168, 216, 0.26);
    border-radius: 50%;
    color: var(--blue-dark);
    transition: transform 180ms ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-item > p {
    max-width: 800px;
    padding: 0 50px 26px 4px;
    color: var(--muted);
}

/* Service detail */
.service-hero {
    min-height: clamp(720px, 86svh, 900px);
    padding-block: clamp(58px, 6vw, 86px);
}

.service-hero .shell > .eyebrow,
.service-hero .shell > h1 {
    text-align: center;
}

.service-hero h1 {
    max-width: 1100px;
    margin-inline: auto;
    margin-bottom: clamp(42px, 5vw, 68px);
    font-size: clamp(2.65rem, 5.4vw, 5rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.service-visual {
    display: grid;
    min-height: clamp(360px, 34vw, 460px);
    place-items: center;
}

.service-visual img {
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 22px 35px rgba(70, 91, 120, 0.15));
}

.service-copy h2 {
    margin-bottom: 26px;
    font-size: clamp(2rem, 3.5vw, 3.15rem);
}

.service-copy p {
    color: #56637a;
    font-size: 1.03rem;
}

.check-list {
    display: grid;
    gap: 9px;
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-dark);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-dark);
    font-weight: 800;
}

.service-highlight {
    margin-top: 28px;
    padding-left: 20px;
    border-left: 3px solid var(--blue);
    color: var(--text-dark) !important;
    font-weight: 800;
}

.related-services {
    padding-top: 88px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-card {
    display: grid;
    min-height: 120px;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(99, 168, 216, 0.15);
    border-radius: 19px;
    background: rgba(255,255,255,0.4);
    font-weight: 800;
    transition: transform 180ms ease, background-color 180ms ease;
}

.related-card:hover {
    transform: translateY(-4px);
    background: #fff;
}

.related-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.related-card b {
    color: var(--blue);
}

/* Contact */
.contact-section {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(45px, 8vw, 110px);
    align-items: start;
}

.contact-details {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.contact-details h2 {
    margin-bottom: 18px;
}

.contact-person {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 17px;
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(99, 168, 216, 0.15);
    border-radius: 17px;
    background: rgba(255,255,255,0.4);
}

.contact-person > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.contact-person div {
    display: flex;
    flex-direction: column;
}

.contact-person a,
.office-email a {
    color: var(--blue-dark);
}

.office-email {
    margin-top: 25px;
}

.contact-form {
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid rgba(99, 168, 216, 0.16);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.62);
    box-shadow: var(--shadow-small);
}

.contact-form h2 {
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid rgba(75, 130, 167, 0.2);
    border-radius: 13px;
    outline: none;
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    font-weight: 300;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
    height: 52px;
    padding: 0 15px;
}

.contact-form textarea {
    min-height: 170px;
    padding: 14px 15px;
    resize: vertical;
}

.contact-form select {
    height: 52px;
    padding: 0 42px 0 15px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--blue-dark) 50%), linear-gradient(135deg, var(--blue-dark) 50%, transparent 50%);
    background-position: calc(100% - 19px) 22px, calc(100% - 13px) 22px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(99, 168, 216, 0.12);
}

.privacy-check {
    display: grid !important;
    grid-template-columns: 20px 1fr;
    gap: 11px !important;
    align-items: start;
    font-weight: 300 !important;
}

.privacy-check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--blue-dark);
}

.privacy-check a {
    color: var(--blue-dark);
    text-decoration: underline;
}

.honeypot {
    position: absolute;
    left: -10000px;
}

.form-message {
    margin-bottom: 25px;
    padding: 15px 17px;
    border-radius: 12px;
}

.form-message.success {
    border: 1px solid rgba(42, 132, 91, 0.25);
    background: rgba(65, 170, 117, 0.1);
    color: #226a49;
}

.form-message.error {
    border: 1px solid rgba(174, 67, 67, 0.22);
    background: rgba(190, 73, 73, 0.09);
    color: #8d3535;
}

.form-message a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.captcha-wrap {
    margin: 3px 0 22px;
}

.captcha-wrap > p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.contact-form .button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.7);
    opacity: 0.55;
}

/* Support */
.support-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.support-card {
    display: flex;
    min-height: 410px;
    flex-direction: column;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(99, 168, 216, 0.15);
    border-radius: 24px;
    background: rgba(255,255,255,0.5);
}

.support-number {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 45px;
    border: 1px solid rgba(99, 168, 216, 0.28);
    border-radius: 50%;
    color: var(--blue-dark);
    font-weight: 800;
}

.support-card h2 {
    font-size: 2rem;
}

.support-card p {
    color: var(--muted);
}

.support-card > a,
.support-actions {
    margin-top: auto;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Legal and error */
.legal-content {
    max-width: 880px;
}

.legal-content h2 {
    margin-top: 45px;
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
}

.legal-content ul {
    display: grid;
    gap: 11px;
    margin: 18px 0 24px;
    padding-left: 22px;
    color: var(--muted);
}

.legal-content li {
    padding-left: 5px;
}

.legal-content strong {
    color: var(--text-dark);
}

.legal-updated {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 13px;
    border: 1px solid rgba(75, 130, 167, 0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.58);
    font-size: 0.82rem;
}

.legal-content a {
    color: var(--blue-dark);
    text-decoration: underline;
}

.legal-note {
    margin-top: 50px;
    padding: 25px;
    border-left: 3px solid var(--blue);
    background: rgba(255,255,255,0.45);
}

.legal-note p {
    margin-bottom: 0;
}

.error-section {
    min-height: 70svh;
    display: grid;
    place-items: center;
    padding-block: 90px;
    text-align: center;
}

.error-section h1 {
    font-size: clamp(3rem, 8vw, 7rem);
}

.error-section .button {
    margin-top: 25px;
}

/* Footer */
.site-footer {
    margin-top: clamp(48px, 5vw, 76px);
    border-top: 1px solid var(--line);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(390px, 1.25fr) minmax(245px, 0.85fr);
    gap: clamp(44px, 5vw, 74px);
    padding-block: 72px 56px;
}

.footer-company > img {
    width: 205px;
    margin-bottom: 30px;
}

.footer-company > p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-contact-link {
    color: var(--blue-dark);
    font-weight: 800;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-phones a {
    color: var(--text-dark);
}

.footer-heading {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 28px;
}

.footer-service-grid a {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-service-grid a:hover {
    color: var(--blue-dark);
}

.footer-product-card {
    display: flex;
    min-height: 205px;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    border: 1px solid rgba(75, 130, 167, 0.16);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(228,241,252,0.7));
    box-shadow: 0 12px 30px rgba(74, 103, 141, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.footer-product-card:hover,
.footer-product-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(75, 130, 167, 0.28);
    box-shadow: var(--shadow-small);
}

.footer-product-card strong {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-family: "Nexa", "Source Sans 3", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.footer-product-card > span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-product-card em {
    margin-top: auto;
    padding-top: 24px;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px 50px;
    padding-block: 24px 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.73rem;
    letter-spacing: 0.025em;
    line-height: 1.55;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-legal-data strong {
    color: var(--text-dark);
}

.footer-legal-data a,
.footer-bottom-meta a {
    color: var(--blue-dark);
}

.footer-bottom-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
    text-align: right;
}

.footer-policy-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-policy-links span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--blue);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(75, 130, 167, 0.18);
    border-radius: 50%;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    background: rgba(255,255,255,0.76);
    color: var(--blue-dark);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.75,.3,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 821px) {
    .home-page .site-header:not(.scrolled) .brand {
        position: absolute;
        left: 0;
    }

    .home-page .site-header:not(.scrolled) .header-inner {
        justify-content: center;
    }

    .home-page .site-header:not(.scrolled) .main-nav {
        position: static;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .mega-menu,
    .product-menu {
        grid-template-columns: 220px 1fr;
        gap: 22px;
        padding: 28px;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-main {
        grid-template-columns: minmax(250px, 0.8fr) minmax(420px, 1.2fr);
        gap: 55px;
    }

    .footer-product {
        grid-column: 1 / -1;
    }

    .footer-product-card {
        min-height: 0;
    }

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

    .service-layout {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 50px;
    }

    .support-section {
        grid-template-columns: 1fr 1fr;
    }

    .support-card:last-child {
        grid-column: 1 / -1;
        min-height: 320px;
    }

    .product-benefits,
    .audience-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-benefits article:nth-child(2) {
        border-right: 0;
    }

    .product-benefits article:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .product-contact {
        grid-template-columns: minmax(0, 0.75fr) minmax(430px, 1.25fr);
        gap: 45px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 72px;
    }

    .header-inner {
        position: static;
        width: min(calc(100% - 28px), 1500px);
    }

    .site-header {
        position: fixed;
        right: 0;
        left: 0;
    }

    body:not(.home-page) main {
        padding-top: var(--header-height);
    }

    .brand {
        width: 165px;
    }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: flex;
    }

    .home-page .site-header:not(.scrolled) .menu-toggle {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 8px 24px rgba(74, 103, 141, 0.12);
    }

    body.menu-open .site-header {
        z-index: 500;
        border-bottom-color: var(--line);
        background: #f5f9ff;
        backdrop-filter: none;
        box-shadow: 0 10px 30px rgba(70, 94, 127, 0.08);
    }

    .home-page.menu-open .site-header:not(.scrolled) .brand {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .main-nav {
        position: absolute;
        z-index: 1;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        display: flex;
        width: 100%;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        padding: 22px;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        overflow-y: auto;
        background: rgba(242, 248, 255, 0.98);
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    .main-nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav > a,
    .nav-link-button {
        width: 100%;
        min-height: 55px;
        justify-content: space-between;
        padding-inline: 15px;
        font-size: 1.08rem;
    }

    .support-button {
        width: fit-content !important;
        margin-top: 10px;
        margin-left: 0;
    }

    .mega-menu {
        position: static;
        display: none;
        max-height: none;
        grid-template-columns: 1fr;
        padding: 12px;
        border: 1px solid rgba(99, 168, 216, 0.14);
        border-radius: 16px;
        visibility: visible;
        opacity: 1;
        transform: none;
        overflow: visible;
        background: #fff;
        box-shadow: none;
    }

    .mega-menu.open {
        display: grid;
    }

    .product-menu {
        position: static;
        display: none;
        grid-template-columns: 1fr;
        max-height: none;
        padding: 12px;
        border: 1px solid rgba(99, 168, 216, 0.14);
        border-radius: 16px;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: #fff;
        box-shadow: none;
    }

    .product-menu.open {
        display: grid;
    }

    .mega-intro,
    .product-menu-intro {
        display: none;
    }

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

    .mega-card {
        min-height: 76px;
        grid-template-columns: 46px 1fr;
        padding: 12px;
        background: linear-gradient(145deg, #ffffff 0%, #eef6ff 100%);
    }

    .mega-card img {
        width: 46px;
        height: 46px;
    }

    .product-menu-card {
        min-height: 150px;
        grid-template-columns: 90px 1fr;
        gap: 18px;
        padding: 16px;
        border-radius: 15px;
    }

    .product-menu-card > img {
        height: 100px;
    }

    .product-menu-card strong {
        font-size: 1.35rem;
    }

    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 12vw, 4.8rem);
        letter-spacing: -0.025em;
        white-space: nowrap;
    }

    .orb-two {
        right: -8%;
    }

    .orb-three {
        left: 3%;
    }

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-card {
        min-width: calc((100% - 20px) / 2);
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-visual {
        min-height: 360px;
        order: 2;
    }

    .service-copy {
        order: 1;
    }

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

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

    .contact-details {
        position: static;
    }

    .support-section {
        grid-template-columns: 1fr;
    }

    .support-card:last-child {
        grid-column: auto;
    }

    .transversal-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .product-band,
    .product-showcase,
    .product-hero-grid,
    .product-confidence,
    .demo-grid,
    .product-contact {
        grid-template-columns: 1fr;
    }

    .faq-section {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .faq-intro {
        position: static;
        max-width: 650px;
    }

    .product-jump-nav .shell {
        justify-content: flex-start;
    }

    .product-band-visual,
    .product-showcase-visual {
        min-height: 230px;
    }

    .product-hero-copy {
        text-align: center;
    }

    .product-hero-copy h1,
    .product-hero-copy p {
        margin-inline: auto;
    }

    .product-actions {
        justify-content: center;
    }

    .product-hero-visual {
        min-height: 340px;
    }

    .confidence-copy,
    .product-contact-copy {
        position: static;
    }

    .gallery-thumbs {
        order: 2;
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(6, 165px);
        max-height: none;
        margin-top: 18px;
        padding: 0 0 10px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .gallery-stage-wrap {
        order: 1;
    }

    .gallery-thumb {
        display: block;
        padding: 8px;
        scroll-snap-align: start;
    }

    .gallery-thumb:hover,
    .gallery-thumb.active {
        transform: translateY(-3px);
    }

    .gallery-thumb img {
        width: 100%;
    }

    .gallery-thumb span {
        padding: 10px 5px 4px;
        font-size: 0.78rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-product {
        grid-column: auto;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 14px;
        padding-block: 24px;
    }

    .footer-bottom-meta {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    body {
        font-size: 16px;
    }

    .section-space {
        padding-block: 60px;
    }

    .ambient-ball-large {
        opacity: 0.38;
    }

    .ambient-ball-small {
        opacity: 0.44;
    }

    .hero-content {
        padding-top: 50px;
    }

    .hero-mark {
        margin-bottom: 26px;
    }

    .hero-tagline {
        letter-spacing: 0.18em;
    }

    .feature-grid,
    .services-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .service-card {
        min-height: 280px;
    }

    .services-preview .services-grid {
        grid-template-columns: 1fr;
    }

    .services-preview .service-card {
        min-height: 132px;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 6px 18px;
        padding: 20px;
    }

    .services-preview .service-card img {
        width: 58px;
        height: 58px;
    }

    .services-preview .service-card span {
        font-size: 0.7rem;
    }

    .services-grid-large .service-card {
        min-height: 280px;
        padding: 24px;
    }

    .services-grid-large .service-card img {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        min-width: 100%;
    }

    .page-hero {
        min-height: 420px;
        padding-block: 70px;
    }

    .compact-page-hero {
        min-height: 370px;
    }

    .service-hero {
        min-height: auto;
    }

    .service-hero h1 {
        margin-bottom: 55px;
        font-size: clamp(2.1rem, 10vw, 2.65rem);
    }

    .service-visual {
        min-height: 280px;
    }

    .cta-card {
        width: min(calc(100% - 28px), var(--shell));
        border-radius: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .support-card {
        min-height: 350px;
    }

    .product-band,
    .product-showcase {
        padding: 26px 22px 32px;
        border-radius: 22px;
    }

    .product-band-visual,
    .product-showcase-visual {
        min-height: 190px;
    }

    .product-hero {
        min-height: auto;
        padding-block: 58px 84px;
    }

    .product-hero-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.45rem);
        letter-spacing: -0.045em;
    }

    .product-hero-visual {
        min-height: 260px;
    }

    .product-benefits,
    .audience-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .product-benefits {
        width: min(calc(100% - 28px), var(--shell));
        margin-top: -35px;
    }

    .product-benefits article,
    .product-benefits article:nth-child(2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .product-benefits article:last-child {
        border-bottom: 0;
    }

    .audience-card > span {
        margin-bottom: 25px;
    }

    .module-card {
        min-height: 250px;
    }

    .gallery-stage-wrap {
        border-radius: 18px;
    }

    .gallery-layout {
        margin-top: 34px;
    }

    .product-gallery > .shell {
        width: min(calc(100% - 28px), 1080px);
    }

    .gallery-caption {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .gallery-stage::after {
        content: "Ingrandisci ↗";
        right: 10px;
        bottom: 10px;
        opacity: 1;
        transform: none;
        font-size: 0.62rem;
    }

    .demo-action {
        align-items: stretch;
    }

    .demo-action .button,
    .product-actions .button,
    .product-lead-form .button {
        width: 100%;
    }

    .product-action-link {
        width: 100%;
        text-align: center;
    }

    .demo-credential-row {
        grid-template-columns: 1fr auto;
        gap: 4px 10px;
        padding-block: 10px;
    }

    .demo-credential-row > span {
        grid-column: 1 / -1;
    }

    .demo-credential-row code {
        font-size: 0.8rem;
    }

    .faq-item summary {
        min-height: 74px;
    }

    .footer-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 18px;
    }

    .product-jump-nav + .product-audience {
        padding-top: 42px;
    }

    .footer-policy-links {
        flex-wrap: wrap;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
