/* ========================================================================== 
   DAXEM 2027
   Foglio di stile principale del sito.

   Struttura:
   1. Variabili grafiche
   2. Reset e tipografia
   3. Header e navigazione
   4. Componenti comuni
   5. Homepage
   6. Pagine interne
   7. Form
   8. Footer
   9. Responsive
   ========================================================================== */

/* 1. VARIABILI GRAFICHE =================================================== */
:root {
    --dx-orange: #ff7a00;
    --dx-orange-dark: #dc6100;
    --dx-black: #06080d;
    --dx-black-soft: #0c1118;
    --dx-white: #ffffff;
    --dx-gray-050: #fafafa;
    --dx-gray-100: #f3f4f6;
    --dx-gray-200: #e5e7eb;
    --dx-gray-500: #68717f;
    --dx-gray-700: #313946;
    --dx-text: #121821;
    --dx-border: rgba(18, 24, 33, 0.10);
    --dx-shell: 1280px;
    --dx-radius-small: 8px;
    --dx-radius: 16px;
    --dx-shadow: 0 24px 65px rgba(7, 10, 16, 0.13);
    --dx-header-height: 78px;
}

/* 2. RESET E TIPOGRAFIA ================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.dx-site {
    margin: 0;
    color: var(--dx-text);
    background: var(--dx-white);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.dx-menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

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

h1,
h2,
h3,
h4 {
    color: inherit;
    font-weight: 700;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(42px, 5.2vw, 74px);
    line-height: 1.02;
}

h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

h3 {
    font-size: 22px;
    line-height: 1.18;
}

p {
    color: var(--dx-gray-500);
}

.dx-shell {
    width: min(calc(100% - 48px), var(--dx-shell));
    margin-right: auto;
    margin-left: auto;
}

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

/* 3. HEADER E NAVIGAZIONE =============================================== */
.dx-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--dx-header-height);
    color: var(--dx-white);
    background: rgba(6, 8, 13, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dx-header-inner {
    height: var(--dx-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dx-logo {
    flex: 0 0 auto;
}

.dx-logo img {
    width: 122px;
    height: auto;
}

.dx-navigation {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.dx-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dx-menu-item {
    position: relative;
}

.dx-menu-item > a {
    min-height: var(--dx-header-height);
    padding: 0 13px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.90);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.dx-menu-item > a:hover,
.dx-menu-item.is-active > a {
    color: var(--dx-orange);
}

.dx-submenu-button {
    display: none;
}

.dx-submenu {
    position: absolute;
    top: 66px;
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: 10px;
    list-style: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    color: var(--dx-white);
    background: rgba(10, 13, 19, 0.99);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.40);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dx-menu-item:hover > .dx-submenu,
.dx-menu-item:focus-within > .dx-submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dx-submenu a {
    padding: 11px 13px;
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
}

.dx-submenu a:hover {
    color: var(--dx-white);
    background: rgba(255, 255, 255, 0.06);
}

.dx-header-cta {
    min-height: 43px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dx-white);
    background: var(--dx-orange);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dx-header-cta:hover {
    background: var(--dx-orange-dark);
}

.dx-language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 700;
}

.dx-language-switch a {
    color: rgba(255, 255, 255, 0.52);
}

.dx-language-switch a.is-active,
.dx-language-switch a:hover {
    color: var(--dx-orange);
}

.dx-menu-button {
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 12px;
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dx-menu-button > span:not(.dx-visually-hidden) {
    width: 24px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: var(--dx-white);
}

/* 4. COMPONENTI COMUNI ================================================== */
.dx-kicker,
.dx-overline {
    margin-bottom: 16px;
    display: block;
    color: var(--dx-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dx-lead {
    max-width: 760px;
    font-size: 19px;
    line-height: 1.7;
}

.dx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.dx-button {
    min-height: 52px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0.025em;
}

.dx-button-primary {
    color: var(--dx-white);
    background: var(--dx-orange);
}

.dx-button-primary:hover {
    background: var(--dx-orange-dark);
    transform: translateY(-1px);
}

.dx-button-dark {
    color: var(--dx-white);
    background: var(--dx-black);
}

.dx-button-outline-light {
    color: var(--dx-white);
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.dx-button-outline-light:hover {
    border-color: var(--dx-white);
    background: rgba(255, 255, 255, 0.06);
}

.dx-text-link {
    color: var(--dx-orange);
    font-size: 14px;
    font-weight: 750;
}

.dx-text-link:hover {
    color: var(--dx-orange-dark);
}

.dx-section {
    padding: 100px 0;
}

.dx-section-small {
    padding: 70px 0;
}

.dx-section-light {
    background: var(--dx-white);
}

.dx-section-soft {
    background: var(--dx-gray-100);
}

.dx-section-dark {
    color: var(--dx-white);
    background: var(--dx-black);
}

.dx-section-dark h2,
.dx-section-dark h3 {
    color: var(--dx-white);
}

.dx-section-dark p {
    color: rgba(255, 255, 255, 0.68);
}

.dx-section-heading {
    max-width: 820px;
    margin-bottom: 48px;
}

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

.dx-section-heading p:last-child {
    margin-bottom: 0;
    font-size: 18px;
}

.dx-heading-row {
    margin-bottom: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.dx-heading-row > div {
    max-width: 820px;
}

.dx-heading-row h2 {
    margin-bottom: 0;
}

.dx-grid-2,
.dx-grid-3,
.dx-grid-4 {
    display: grid;
    gap: 20px;
}

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

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

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

.dx-card {
    padding: 28px;
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: var(--dx-radius-small);
    box-shadow: 0 12px 34px rgba(8, 10, 18, 0.07);
}

.dx-card-dark {
    color: var(--dx-white);
    background: var(--dx-black-soft);
    border-color: rgba(255, 255, 255, 0.09);
}

.dx-card-dark p {
    color: rgba(255, 255, 255, 0.66);
}

.dx-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.dx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 70px;
}

.dx-split-media {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--dx-gray-100);
    border-radius: var(--dx-radius-small);
}

.dx-split-media img {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.dx-check-list {
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--dx-border);
}

.dx-check-list li {
    position: relative;
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid var(--dx-border);
    color: var(--dx-gray-700);
}

.dx-check-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--dx-orange);
    font-weight: 800;
}

.dx-section-dark .dx-check-list {
    border-color: rgba(255, 255, 255, 0.12);
}

.dx-section-dark .dx-check-list li {
    color: rgba(255, 255, 255, 0.80);
    border-color: rgba(255, 255, 255, 0.12);
}

.dx-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dx-tag {
    padding: 8px 11px;
    display: inline-flex;
    color: var(--dx-gray-700);
    background: var(--dx-gray-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dx-stat {
    padding: 24px;
    border-left: 2px solid var(--dx-orange);
}

.dx-stat strong {
    display: block;
    color: var(--dx-text);
    font-size: 40px;
    line-height: 1;
}

.dx-section-dark .dx-stat strong {
    color: var(--dx-white);
}

.dx-section-dark .dx-stat span {
    color: rgba(255, 255, 255, 0.65);
}

.dx-stat span {
    margin-top: 8px;
    display: block;
    color: var(--dx-gray-500);
    font-size: 14px;
}

/* 5. HOMEPAGE =========================================================== */
.dx-home-hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--dx-header-height) + 32px);
    color: var(--dx-white);
    background:
        radial-gradient(circle at 12% 45%, rgba(255, 122, 0, 0.11), transparent 32%),
        var(--dx-black);
}

.dx-home-hero::before,
.dx-home-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 122, 0, 0.72) 1px, transparent 1.7px);
    background-size: 18px 18px;
}

.dx-home-hero::before {
    left: -35px;
    bottom: 70px;
    width: 170px;
    height: 170px;
    opacity: 0.42;
}

.dx-home-hero::after {
    top: 170px;
    right: -35px;
    width: 150px;
    height: 150px;
    opacity: 0.20;
}

.dx-home-hero-grid {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
    align-items: stretch;
    gap: 28px;
}

.dx-home-hero-copy {
    max-width: 590px;
    padding: 58px 0 48px;
    align-self: center;
}

.dx-home-hero-copy h1 {
    margin-bottom: 22px;
    color: var(--dx-white);
}

.dx-home-hero-copy .dx-lead {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.82);
}

.dx-home-hero-media {
    min-height: 590px;
    background: url("../images/daxem_concept_hero.png") center center / cover no-repeat;
    box-shadow: var(--dx-shadow);
}

/* Tre competenze principali sotto la hero. */
.dx-home-pillars {
    padding: 14px 0 28px;
    background: var(--dx-black);
}

.dx-home-pillar-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
}

.dx-home-pillar-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.dx-home-pillar-card p {
    margin-bottom: 22px;
}

.dx-home-pillar-card .dx-text-link {
    margin-top: auto;
}

/* Ecosistema 3CAD. */
.dx-home-ecosystem {
    padding: 96px 0;
    background: var(--dx-gray-050);
}

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

.dx-product-card {
    overflow: hidden;
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: 9px;
    box-shadow: 0 14px 38px rgba(8, 10, 18, 0.08);
}

.dx-product-image {
    position: relative;
    aspect-ratio: 368 / 245;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dx-white);
}

.dx-product-image img {
    display: block;
    width: 100%;
    max-width: 368px;
    height: auto;
    aspect-ratio: 368 / 245;
    object-fit: contain;
    transition: transform 420ms ease;
}

.dx-product-card:hover .dx-product-image img {
    transform: scale(1.035);
}

.dx-product-body {
    padding: 24px;
}

.dx-product-label {
    margin-bottom: 9px;
    display: block;
    color: var(--dx-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dx-product-body h3 {
    margin-bottom: 12px;
}

.dx-product-body p {
    margin-bottom: 0;
    font-size: 14px;
}

.dx-product-card-next {
    color: var(--dx-white);
    background: var(--dx-black-soft);
    border-color: rgba(255, 122, 0, 0.58);
}

.dx-product-card-next .dx-product-image::after {
    display: none;
}

.dx-product-card-next h3 {
    color: var(--dx-white);
}

.dx-product-card-next p {
    color: rgba(255, 255, 255, 0.66);
}

.dx-next-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    padding: 7px 9px;
    color: var(--dx-white);
    background: var(--dx-orange);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 3CAD Business. */
.dx-home-business {
    padding: 100px 0;
    color: var(--dx-white);
    background:
        radial-gradient(circle at 75% 30%, rgba(255, 122, 0, 0.10), transparent 31%),
        var(--dx-black);
}

.dx-business-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
    align-items: center;
    gap: 74px;
}

.dx-business-copy h2 {
    margin-bottom: 20px;
    color: var(--dx-white);
}

.dx-business-copy > p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 18px;
}

.dx-business-list {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dx-business-list > div {
    padding: 17px 0;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dx-business-list strong {
    color: var(--dx-orange);
    font-size: 14px;
}

.dx-business-list span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
}

.dx-integration-panel {
    padding: 34px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.dx-flow-row {
    display: grid;
    grid-template-columns: 1.4fr auto 1fr auto 0.8fr auto 0.8fr auto 0.8fr;
    align-items: center;
    gap: 8px;
}

.dx-flow-row span,
.dx-flow-row strong {
    min-height: 68px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dx-white);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.dx-flow-row strong {
    color: var(--dx-white);
    background: var(--dx-orange);
    border-color: var(--dx-orange);
}

.dx-flow-row i {
    color: var(--dx-orange);
    font-style: normal;
    font-weight: 800;
}

.dx-integration-tags {
    margin-top: 26px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.dx-integration-tags span {
    padding: 8px 11px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* Intelligenza Artificiale. */
.dx-home-ai {
    padding: 100px 0;
    background: var(--dx-white);
}

.dx-ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 74px;
}

.dx-ai-media {
    min-height: 500px;
    overflow: hidden;
    background: var(--dx-gray-100);
    border-radius: 9px;
    box-shadow: var(--dx-shadow);
}

.dx-ai-media img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.dx-ai-copy h2 {
    margin-bottom: 20px;
}

.dx-ai-copy > p {
    font-size: 18px;
}

/* Call to action conclusiva. */
.dx-home-contact {
    padding: 58px 0;
    color: var(--dx-white);
    background: var(--dx-black-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dx-home-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.dx-home-contact h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--dx-white);
    font-size: clamp(30px, 3.5vw, 48px);
}

/* 6. PAGINE INTERNE ====================================================== */
.dx-page-main {
    padding-top: var(--dx-header-height);
}

.dx-page-hero {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    display: flex;
    align-items: center;
    color: var(--dx-white);
    background: var(--dx-black);
}

.dx-page-hero::before {
    content: "";
    z-index: 1;
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 8, 13, 0.96) 0%, rgba(6, 8, 13, 0.85) 48%, rgba(6, 8, 13, 0.20) 100%);
}

.dx-page-hero-bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.dx-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 100px 0 90px;
}

.dx-page-hero h1 {
    margin-bottom: 20px;
    color: var(--dx-white);
}

.dx-page-hero p {
    max-width: 680px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 19px;
}

.dx-solution-card {
    padding: 0;
    overflow: hidden;
}

.dx-solution-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.dx-solution-card-body {
    padding: 26px;
}

.dx-solution-card-body p:last-child {
    margin-bottom: 0;
}

.dx-numbered-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dx-counter;
}

.dx-numbered-list li {
    position: relative;
    min-height: 76px;
    padding: 18px 0 18px 64px;
    border-bottom: 1px solid var(--dx-border);
    counter-increment: dx-counter;
}

.dx-numbered-list li::before {
    content: counter(dx-counter, decimal-leading-zero);
    position: absolute;
    top: 18px;
    left: 0;
    color: var(--dx-orange);
    font-size: 13px;
    font-weight: 800;
}

.dx-numbered-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dx-text);
    font-size: 18px;
}

.dx-numbered-list span {
    color: var(--dx-gray-500);
}

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

.dx-gallery-item {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--dx-gray-100);
}

.dx-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.dx-gallery-item:hover img {
    transform: scale(1.035);
}

.dx-gallery-item span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 12px 14px;
    color: var(--dx-white);
    background: rgba(6, 8, 13, 0.82);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.dx-support-card {
    display: flex;
    flex-direction: column;
}

.dx-support-card .dx-button {
    margin-top: auto;
    align-self: flex-start;
}

.dx-legal-content {
    max-width: 900px;
}

.dx-legal-content h2 {
    margin-top: 42px;
    font-size: 28px;
}

.dx-legal-content h3 {
    margin-top: 30px;
    font-size: 21px;
}

/* 7. FORM ================================================================ */
.dx-form-card {
    padding: 34px;
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: 10px;
    box-shadow: var(--dx-shadow);
}

.dx-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dx-form-field {
    margin-bottom: 18px;
}

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

.dx-form-field label {
    margin-bottom: 7px;
    display: block;
    color: var(--dx-text);
    font-size: 13px;
    font-weight: 700;
}

.dx-form-field input,
.dx-form-field textarea,
.dx-form-field select {
    width: 100%;
    padding: 13px 14px;
    color: var(--dx-text);
    background: var(--dx-gray-050);
    border: 1px solid var(--dx-gray-200);
    border-radius: 7px;
    outline: none;
}

.dx-form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.dx-form-field input:focus,
.dx-form-field textarea:focus,
.dx-form-field select:focus {
    border-color: var(--dx-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.dx-form-error,
.dx-form-success {
    margin-bottom: 24px;
    padding: 13px 15px;
    border-radius: 7px;
    font-size: 14px;
}

.dx-form-error {
    color: #8e241f;
    background: #fff0ef;
    border: 1px solid #f2cac7;
}

.dx-form-success {
    color: #205c37;
    background: #edf9f1;
    border: 1px solid #c8ead3;
}

.dx-security-image {
    width: 200px;
    margin-bottom: 12px;
    border-radius: 6px;
}

/* 8. FOOTER ============================================================== */
.dx-footer {
    padding: 65px 0 22px;
    color: var(--dx-white);
    background: var(--dx-black);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.dx-footer-grid {
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: 1.35fr repeat(4, 1fr);
    gap: 38px;
}

.dx-footer-brand img {
    width: 132px;
    margin-bottom: 18px;
}

.dx-footer-brand p {
    max-width: 310px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.dx-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.dx-footer-column h2 {
    margin-bottom: 10px;
    color: var(--dx-white);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dx-footer-column a,
.dx-footer-column p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.7;
}

.dx-footer-column a:hover {
    color: var(--dx-orange);
}

.dx-footer-bottom {
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.42);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 12px;
}

.dx-footer-bottom > div {
    display: flex;
    gap: 17px;
}

.dx-footer-bottom a:hover {
    color: var(--dx-orange);
}

/* 9. RESPONSIVE ========================================================== */
@media (max-width: 1160px) {
    .dx-header-cta,
    .dx-language-switch {
        display: none;
    }

    .dx-menu-item > a {
        padding: 0 10px;
        font-size: 11px;
    }

    .dx-home-hero-grid {
        grid-template-columns: 1fr;
    }

    .dx-home-hero-copy {
        max-width: 760px;
        padding-bottom: 25px;
    }

    .dx-home-hero-media {
        min-height: 450px;
    }

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

    .dx-process-title {
        grid-column: 1 / -1;
    }

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

@media (max-width: 900px) {
    :root {
        --dx-header-height: 68px;
    }

    .dx-shell {
        width: min(calc(100% - 30px), var(--dx-shell));
    }

    .dx-menu-button {
        display: block;
    }

    .dx-navigation {
        /*
         * Menu mobile.
         * Il menu vive dentro l'header, che usa backdrop-filter.
         * Alcuni browser trattano quindi l'header come containing block per
         * gli elementi fixed, limitando l'altezza del menu.
         *
         * Usiamo position:absolute rispetto all'header e assegniamo
         * esplicitamente l'altezza residua del viewport.
         */
        position: absolute;
        top: 100%;
        right: 0;
        bottom: auto;
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--dx-header-height));
        height: calc(100dvh - var(--dx-header-height));
        max-height: calc(100vh - var(--dx-header-height));
        max-height: calc(100dvh - var(--dx-header-height));
        padding: 18px 20px 35px;
        display: none;
        align-items: stretch;
        overflow-y: auto;
        background: rgba(6, 8, 13, 0.995);
    }

    .dx-navigation.is-open {
        display: block;
    }

    .dx-menu {
        display: block;
    }

    .dx-menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .dx-menu-item > a {
        min-height: 54px;
        padding: 0 8px;
        font-size: 15px;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .dx-menu-item.has-children > a {
        padding-right: 55px;
    }

    .dx-submenu-button {
        position: absolute;
        top: 4px;
        right: 0;
        width: 48px;
        height: 48px;
        display: block;
        border: 0;
        background: transparent;
    }

    .dx-submenu-button::before,
    .dx-submenu-button::after {
        content: "";
        position: absolute;
        top: 23px;
        left: 16px;
        width: 16px;
        height: 2px;
        background: var(--dx-orange);
    }

    .dx-submenu-button::after {
        transform: rotate(90deg);
        transition: transform 180ms ease;
    }

    .submenu-open > .dx-submenu-button::after {
        transform: rotate(0deg);
    }

    .dx-submenu {
        position: static;
        min-width: 0;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        border: 0;
        box-shadow: none;
    }

    .submenu-open > .dx-submenu {
        display: block;
    }

    .dx-header-cta,
    .dx-language-switch {
        margin-top: 16px;
        display: flex;
    }

    .dx-header-cta {
        min-height: 50px;
    }

    .dx-language-switch {
        justify-content: center;
    }

    .dx-section,
    .dx-section-small {
        padding: 72px 0;
    }

    .dx-grid-2,
    .dx-grid-3,
    .dx-split,
    .dx-project-grid,
    .dx-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dx-split {
        gap: 38px;
    }

    .dx-split-media,
    .dx-split-media img {
        min-height: 400px;
    }

    .dx-home-hero {
        padding-top: calc(var(--dx-header-height) + 18px);
    }

    .dx-home-hero-grid {
        min-height: 0;
    }

    .dx-home-hero-copy {
        padding-top: 38px;
    }

    .dx-home-hero-media {
        min-height: 300px;
    }

    .dx-page-hero {
        min-height: 460px;
    }

    .dx-page-hero-content {
        padding: 80px 0 70px;
    }

    .dx-heading-row,
    .dx-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dx-footer-grid {
        grid-template-columns: 1fr;
    }

    .dx-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .dx-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dx-button {
        width: 100%;
    }

    .dx-grid-4,
    .dx-process-grid,
    .dx-form-grid {
        grid-template-columns: 1fr;
    }

    .dx-process-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .dx-form-card {
        padding: 23px 18px;
    }

    .dx-project-card,
    .dx-gallery-item {
        min-height: 220px;
    }
}

/* RESPONSIVE HOMEPAGE V9 ================================================ */
@media (max-width: 1160px) {
    .dx-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dx-business-grid,
    .dx-ai-grid {
        grid-template-columns: 1fr;
    }

    .dx-business-grid {
        gap: 52px;
    }

    .dx-ai-grid {
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .dx-home-ecosystem,
    .dx-home-business,
    .dx-home-ai {
        padding: 72px 0;
    }

    .dx-flow-row {
        grid-template-columns: 1fr;
    }

    .dx-flow-row i {
        text-align: center;
        transform: rotate(90deg);
    }

    .dx-business-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dx-ai-media,
    .dx-ai-media img {
        min-height: 360px;
    }

    .dx-home-contact-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .dx-product-grid {
        grid-template-columns: 1fr;
    }

    .dx-product-image {
        height: 210px;
    }

    /*
     * 3CAD Next su mobile:
     * area logo completamente bianca,
     * area descrittiva nera.
     */
    .dx-product-card-next {
        background: var(--dx-white);
    }

    .dx-product-card-next .dx-product-image {
        background: var(--dx-white);
    }

    .dx-product-card-next .dx-product-body {
        background: var(--dx-black-soft);
    }

    .dx-integration-panel {
        padding: 22px;
    }
}

/* HOMEPAGE V9.2, PERCORSI INDUSTRIA E PUNTI VENDITA ==================== */
.dx-home-audiences {
    padding: 96px 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 122, 0, 0.13), transparent 32%),
        var(--dx-black-soft);
}

.dx-section-heading-light h2 {
    color: var(--dx-white);
}

.dx-section-heading-light p {
    color: rgba(255, 255, 255, 0.66);
}

.dx-audience-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dx-audience-link {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
    min-height: 330px;
    color: var(--dx-white);
    background: #10131a;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transition: transform 220ms ease, border-color 220ms ease;
}

.dx-audience-link:hover {
    color: var(--dx-white);
    border-color: rgba(255, 122, 0, 0.72);
    transform: translateY(-4px);
}

.dx-audience-link-media {
    min-height: 100%;
    overflow: hidden;
}

.dx-audience-link-media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform 420ms ease;
}

.dx-audience-link:hover .dx-audience-link-media img {
    transform: scale(1.04);
}

.dx-audience-link-body {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dx-audience-link-body h3 {
    margin-bottom: 14px;
    color: var(--dx-white);
    font-size: clamp(25px, 2vw, 34px);
}

.dx-audience-link-body p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.66);
}

.dx-audience-link-body strong {
    margin-top: auto;
    color: var(--dx-orange);
    font-size: 13px;
    letter-spacing: 0.03em;
}

/* PAGINE 3CAD INDUSTRIA E RETAIL ======================================== */
.dx-audience-page .dx-page-hero::before {
    background: linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.75) 50%, rgba(5, 7, 12, 0.34) 100%);
}

.dx-platform-grid {
    align-items: stretch;
}

.dx-platform-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: 10px;
    box-shadow: 0 16px 42px rgba(8, 10, 18, 0.08);
}

.dx-platform-logo {
    min-height: 245px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dx-white);
    border-bottom: 1px solid var(--dx-border);
}

.dx-platform-logo img {
    display: block;
    width: 368px;
    max-width: 100%;
    height: auto;
    max-height: 245px;
    object-fit: contain;
}

.dx-platform-copy {
    padding: 28px;
}

.dx-platform-copy h3 {
    margin-bottom: 13px;
}

.dx-platform-copy p {
    margin-bottom: 0;
}

.dx-platform-card-next {
    color: var(--dx-white);
    background: var(--dx-black-soft);
    border-color: rgba(255, 122, 0, 0.58);
}

.dx-platform-card-next .dx-platform-logo {
    background: var(--dx-white);
}

.dx-platform-card-next h3 {
    color: var(--dx-white);
}

.dx-platform-card-next p {
    color: rgba(255, 255, 255, 0.68);
}

.dx-audience-service-card {
    height: 100%;
}

@media (max-width: 1160px) {
    .dx-audience-link {
        grid-template-columns: 1fr;
    }

    .dx-audience-link-media,
    .dx-audience-link-media img {
        min-height: 250px;
    }
}

@media (max-width: 900px) {
    .dx-home-audiences {
        padding: 72px 0;
    }

    .dx-audience-links {
        grid-template-columns: 1fr;
    }

    .dx-platform-grid.dx-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .dx-audience-link-body {
        padding: 28px 24px;
    }

    .dx-platform-logo {
        min-height: 0;
        aspect-ratio: 368 / 245;
        padding: 0;
    }

    .dx-platform-copy {
        padding: 24px;
    }
}

/* AZIENDA V9.3 ===========================================================
   Pagina About ispirata al layout V8/V9.
   Le classi sono isolate con prefisso dx-about per facilitare le modifiche.
   ======================================================================= */

.dx-about-page main {
    overflow: hidden;
}

/* Hero divisa tra testo e immagine. */
.dx-about-hero {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    background: var(--dx-white);
}

.dx-about-hero-copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 76px 58px 68px max(24px, calc((100vw - var(--dx-shell)) / 2));
}

.dx-about-hero-copy-inner {
    width: min(100%, 610px);
}

.dx-about-hero h1 {
    margin: 14px 0 24px;
    color: var(--dx-text);
    font-size: clamp(42px, 4.4vw, 68px);
}

.dx-about-hero .dx-lead {
    max-width: 610px;
    margin-bottom: 22px;
    color: var(--dx-gray-700);
    font-size: 18px;
}

.dx-about-hero-note {
    margin-bottom: 0;
    color: var(--dx-text);
    font-weight: 700;
}

.dx-about-hero-media {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--dx-black-soft);
}

.dx-about-hero-media::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 110px;
    background: linear-gradient(102deg, var(--dx-white) 0 48%, transparent 49% 100%);
    pointer-events: none;
}

.dx-about-hero-media::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 8, 13, 0.12), rgba(6, 8, 13, 0.02));
}

.dx-about-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
}

/* Fascia sintetica dei punti distintivi. */
.dx-about-facts {
    border-top: 1px solid var(--dx-border);
    border-bottom: 1px solid var(--dx-border);
    background: var(--dx-white);
}

.dx-about-facts-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dx-about-fact {
    min-height: 112px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--dx-border);
}

.dx-about-fact:first-child {
    border-left: 0;
}

.dx-about-fact strong {
    color: var(--dx-text);
    font-size: 27px;
    line-height: 1;
}

.dx-about-fact span {
    margin-top: 8px;
    color: var(--dx-gray-500);
    font-size: 12px;
    font-weight: 600;
}

/* Griglia delle competenze. */
.dx-about-skills {
    padding: 92px 0;
    background: var(--dx-gray-050);
}

.dx-about-skills-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.7fr);
    align-items: start;
    gap: 64px;
}

.dx-about-skills-intro {
    position: sticky;
    top: calc(var(--dx-header-height) + 32px);
}

.dx-about-skills-intro h2 {
    margin: 12px 0 22px;
    font-size: clamp(34px, 3.6vw, 50px);
}

.dx-about-skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dx-about-skill-card {
    min-height: 174px;
    padding: 24px;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: start;
    gap: 18px;
    background: var(--dx-white);
    border: 1px solid var(--dx-border);
    border-radius: 10px;
    box-shadow: 0 13px 34px rgba(7, 10, 16, 0.055);
}

.dx-about-skill-card-featured {
    border-color: rgba(255, 122, 0, 0.55);
    box-shadow: 0 16px 40px rgba(255, 122, 0, 0.11);
}

.dx-about-skill-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.dx-about-skill-card h3 {
    margin: 2px 0 9px;
    color: var(--dx-text);
    font-size: 17px;
    letter-spacing: -0.02em;
}

.dx-about-skill-card p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
}

/* Sezione scura dedicata alla nuova era dello sviluppo. */
.dx-about-new-era {
    padding: 92px 0;
    color: var(--dx-white);
    background:
        radial-gradient(circle at 68% 52%, rgba(0, 151, 255, 0.11), transparent 30%),
        radial-gradient(circle at 82% 25%, rgba(255, 122, 0, 0.12), transparent 32%),
        var(--dx-black-soft);
}

.dx-about-new-era-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.78fr) minmax(300px, 0.95fr) minmax(380px, 1.2fr);
    align-items: center;
    gap: 38px;
}

.dx-about-new-era-title h2 {
    margin: 14px 0 0;
    color: var(--dx-white);
    font-size: clamp(34px, 3.8vw, 52px);
}

.dx-about-new-era-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.dx-about-new-era-copy strong {
    color: var(--dx-white);
    font-size: 17px;
}

.dx-about-new-era-media {
    min-height: 340px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.dx-about-new-era-media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.dx-about-new-era-points {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.dx-about-new-era-points article {
    padding: 23px 24px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
}

.dx-about-new-era-points h3 {
    margin-bottom: 9px;
    color: var(--dx-white);
    font-size: 16px;
}

.dx-about-new-era-points h3::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    display: inline-block;
    background: var(--dx-orange);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.7);
}

.dx-about-new-era-points p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

/* Responsive About. */
@media (max-width: 1160px) {
    .dx-about-hero {
        grid-template-columns: 1fr 1fr;
    }

    .dx-about-skills-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .dx-about-skills-intro {
        position: static;
        max-width: 760px;
    }

    .dx-about-new-era-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dx-about-new-era-media {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dx-about-hero {
        grid-template-columns: 1fr;
    }

    .dx-about-hero-copy {
        padding: 72px 24px 58px;
    }

    .dx-about-hero-copy-inner {
        width: min(100%, var(--dx-shell));
        margin: 0 auto;
    }

    .dx-about-hero-media,
    .dx-about-hero-media img {
        min-height: 390px;
    }

    .dx-about-hero-media::before {
        display: none;
    }

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

    .dx-about-fact {
        border-top: 1px solid var(--dx-border);
    }

    .dx-about-fact:nth-child(odd) {
        border-left: 0;
    }

    .dx-about-skill-grid {
        grid-template-columns: 1fr;
    }

    .dx-about-new-era-grid,
    .dx-about-new-era-points {
        grid-template-columns: 1fr;
    }

    .dx-about-new-era-media,
    .dx-about-new-era-points {
        grid-column: auto;
    }
}

@media (max-width: 580px) {
    .dx-about-facts-grid {
        grid-template-columns: 1fr;
    }

    .dx-about-fact,
    .dx-about-fact:nth-child(odd) {
        border-left: 0;
    }

    .dx-about-skill-card {
        grid-template-columns: 46px 1fr;
        padding: 20px;
    }

    .dx-about-skill-card img {
        width: 46px;
        height: 46px;
    }

    .dx-about-skills,
    .dx-about-new-era {
        padding: 72px 0;
    }
}

/* ================================================================
   ABOUT V9.5.0, fascia sintetica a quattro elementi
   ================================================================ */
@media (min-width: 981px) {
    .dx-about-facts-grid.dx-about-facts-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
