/*
 * DatMit - Pagina Azienda v2
 * Stili isolati dal resto del sito.
 */

.dm-about {
    color: #eaf3ff;
    background: #071326;
}

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

.dm-about-wrap {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.dm-about h1,
.dm-about h2,
.dm-about h3 {
    color: #fff;
    line-height: 1.15;
}

.dm-about p {
    line-height: 1.75;
}

.dm-about-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background:
        radial-gradient(
            ellipse at 85% 25%,
            rgba(35, 140, 230, .25),
            transparent 52%
        ),
        radial-gradient(
            ellipse at 5% 90%,
            rgba(90, 65, 170, .15),
            transparent 45%
        ),
        linear-gradient(135deg, #061323, #0b2342);
}

.dm-about-hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    right: -180px;
    bottom: -220px;
    border: 1px solid rgba(70, 190, 255, .2);
    border-radius: 50%;
    pointer-events: none;
}

.dm-about-eyebrow {
    margin: 0 0 18px;
    color: #55d8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.dm-about-hero h1 {
    max-width: 920px;
    margin: 0 0 28px;
    font-size: clamp(42px, 6vw, 78px);
    letter-spacing: -.04em;
}

.dm-about-hero h1 span,
.dm-about-value h2 span,
.dm-about-divisions h2 span,
.dm-about-final h2 span {
    display: block;
    color: #55caff;
}

.dm-about-hero-lead {
    max-width: 800px;
    margin: 0 0 16px;
    color: #e4efff;
    font-size: clamp(20px, 2.3vw, 27px);
}

.dm-about-hero-text {
    max-width: 720px;
    color: #aabfd7;
    font-size: 17px;
}

.dm-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 35px;
}

.dm-about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 15px 23px;
    border: 1px solid #55caff;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

.dm-about-button-primary {
    background: #169de2;
    color: #fff;
}

.dm-about-button-outline {
    background: transparent;
    color: #65d6ff;
}

.dm-about-button:hover {
    transform: translateY(-2px);
}

.dm-about-button-primary:hover {
    background: #087dbb;
    color: #fff;
}

.dm-about-button-outline:hover {
    background: rgba(40, 145, 210, .15);
    color: #fff;
}

.dm-about-section {
    padding: 90px 0;
}

.dm-about-heading {
    max-width: 850px;
    margin-bottom: 40px;
}

.dm-about-heading :is(h1, h2),
.dm-about-value h2,
.dm-about-final h2 {
    margin: 0 0 22px;
    font-size: clamp(30px, 4vw, 49px);
    letter-spacing: -.025em;
}

.dm-about-heading > p:last-child {
    color: #b3c6db;
    font-size: 17px;
}

.dm-about-introduction {
    background: #08182b;
}

.dm-about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 60px;
    align-items: start;
}

.dm-about-prose p {
    margin: 0 0 22px;
    color: #c0d0e2;
    font-size: 17px;
}

.dm-about-prose strong {
    color: #fff;
}

.dm-about-experience {
    display: grid;
    gap: 14px;
}

.dm-about-stat {
    padding: 22px 26px;
    border: 1px solid rgba(75, 170, 235, .23);
    border-radius: 14px;
    background: rgba(23, 63, 105, .25);
}

.dm-about-stat strong {
    display: block;
    margin-bottom: 5px;
    color: #58caff;
    font-size: 37px;
    line-height: 1.1;
}

.dm-about-stat span {
    color: #bed1e5;
    font-size: 14px;
}

.dm-about-value {
    background:
        linear-gradient(
            115deg,
            rgba(9, 39, 72, .95),
            rgba(6, 19, 35, .98)
        );
}

.dm-about-value .dm-about-wrap {
    max-width: 1000px;
}

.dm-about-value p:not(.dm-about-eyebrow) {
    color: #bdcfe3;
    font-size: 18px;
}

.dm-about-divisions {
    background: #061120;
}

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

.dm-about-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(85, 175, 235, .22);
    border-radius: 15px;
    background: #0b2039;
    color: inherit;
    text-decoration: none;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.dm-about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(85, 216, 255, .7);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .3);
}

.dm-about-card-image {
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    background: #102a45;
}

.dm-about-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.dm-about-card:hover img {
    transform: scale(1.055);
}

.dm-about-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 23px;
}

.dm-about-card-label {
    margin: 0 0 8px;
    color: #64cfff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
}

.dm-about-card-content h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.dm-about-card-content > p:not(.dm-about-card-label) {
    flex: 1;
    margin: 0;
    color: #aec3db;
    font-size: 14px;
    line-height: 1.65;
}

.dm-about-card-link {
    display: block;
    margin-top: 22px;
    color: #65d4ff;
    font-size: 13px;
    font-weight: 700;
}

.dm-about-card-link span {
    margin-left: 7px;
}

.dm-about-credentials {
    background: #091a30;
}

.dm-about-credential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dm-about-credential {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid rgba(85, 175, 235, .25);
    border-radius: 14px;
    background: rgba(18, 47, 80, .65);
    color: inherit;
    text-decoration: none;
}

a.dm-about-credential:hover {
    border-color: #55caff;
    background: rgba(23, 64, 105, .85);
}

.dm-about-credential-icon {
    margin-bottom: 17px;
    color: #59d1ff;
    font-size: 27px;
}

.dm-about-credential h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.dm-about-credential p {
    flex: 1;
    color: #b7cce1;
    font-size: 15px;
}

.dm-about-credential-action,
.dm-about-credential-note {
    margin-top: 18px;
    color: #65d4ff;
    font-size: 13px;
    font-weight: 700;
}

.dm-about-registrations {
    margin-top: 65px;
}

.dm-about-registrations h3 {
    margin-bottom: 24px;
    font-size: 25px;
}

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

.dm-about-registration-grid > div {
    padding: 20px 22px;
    border: 1px solid rgba(85, 175, 235, .18);
    border-radius: 10px;
    background: rgba(12, 37, 66, .75);
}

.dm-about-registration-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
}

.dm-about-registration-grid span {
    color: #a9bfd7;
    font-size: 14px;
}

.dm-about-final {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(
            ellipse at center,
            rgba(25, 104, 170, .25),
            transparent 65%
        ),
        #061323;
}

.dm-about-final .dm-about-wrap {
    max-width: 850px;
}

.dm-about-final p:not(.dm-about-eyebrow) {
    margin-bottom: 30px;
    color: #bbcee2;
    font-size: 18px;
}

.dm-about-final .dm-about-button {
    margin: 0 auto;
}

.dm-about a:focus-visible {
    outline: 3px solid #78dfff;
    outline-offset: 4px;
}

@media (max-width: 1100px) {
    .dm-about-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .dm-about-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .dm-about-credential-grid {
        grid-template-columns: 1fr;
    }

    .dm-about-section {
        padding: 65px 0;
    }
}

@media (max-width: 560px) {
    .dm-about-wrap {
        width: calc(100% - 34px);
    }

    .dm-about-hero {
        padding: 75px 0 85px;
    }

    .dm-about-cards,
    .dm-about-registration-grid {
        grid-template-columns: 1fr;
    }

    .dm-about-card-image {
        aspect-ratio: 1.65 / 1;
    }

    .dm-about-card-content {
        padding: 21px;
    }

    .dm-about-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dm-about-button {
        width: 100%;
    }

    .dm-about-final {
        padding: 75px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-about-card,
    .dm-about-card-image img,
    .dm-about-button {
        transition: none;
    }
}

/* =============================================
   DATMIT-AZIENDA-REFINE-v1
   Proporzioni, tipografia e RIPEstat
   ============================================= */

.dm-about .dm-about-hero {
    padding: 76px 0 86px;
}

.dm-about .dm-about-hero h1 {
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.dm-about .dm-about-hero-lead {
    font-size: clamp(18px, 1.65vw, 23px);
    line-height: 1.55;
}

.dm-about .dm-about-hero-text {
    font-size: 16px;
    line-height: 1.7;
}

.dm-about .dm-about-section {
    padding: 68px 0;
}

.dm-about .dm-about-heading {
    margin-bottom: 32px;
}

.dm-about .dm-about-heading :is(h1, h2),
.dm-about .dm-about-value h2,
.dm-about .dm-about-final h2 {
    font-size: clamp(29px, 3vw, 42px);
    line-height: 1.18;
}

.dm-about .dm-about-prose p,
.dm-about .dm-about-value p:not(.dm-about-eyebrow),
.dm-about .dm-about-final p:not(.dm-about-eyebrow) {
    font-size: 16px;
    line-height: 1.7;
}

.dm-about .dm-about-heading > p:last-child {
    font-size: 16px;
}

.dm-about .dm-about-intro-grid {
    gap: 44px;
}

.dm-about .dm-about-stat strong {
    font-size: 32px;
}

.dm-about .dm-about-card-content {
    padding: 20px;
}

.dm-about .dm-about-card-content h3 {
    font-size: 21px;
}

.dm-about .dm-about-card-image {
    aspect-ratio: 1.45 / 1;
}

.dm-about .dm-about-card-image img {
    object-position: center top;
}

.dm-about .dm-about-credential h3 {
    font-size: 20px;
}

.dm-about .dm-about-registrations h3 {
    font-size: 22px;
}

.dm-about .dm-about-final {
    padding: 78px 0;
}

/* Collegamento RIPEstat */

.dm-about .dm-about-ripe-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: #65d4ff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dm-about .dm-about-ripe-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.dm-about .dm-about-ripe-link:focus-visible {
    outline: 2px solid #78dfff;
    outline-offset: 4px;
}

@media (max-width: 800px) {
    .dm-about .dm-about-section {
        padding: 54px 0;
    }

    .dm-about .dm-about-hero {
        padding: 66px 0 74px;
    }
}

@media (max-width: 560px) {
    .dm-about .dm-about-hero h1 {
        font-size: clamp(34px, 9vw, 42px);
    }

    .dm-about .dm-about-heading :is(h1, h2),
    .dm-about .dm-about-value h2,
    .dm-about .dm-about-final h2 {
        font-size: clamp(27px, 7.5vw, 34px);
    }

    .dm-about .dm-about-hero {
        padding: 58px 0 68px;
    }
}


/* DATMIT AZIENDA STYLE 28.8.8 */

/* Apertura pagina direttamente dalla sezione Chi siamo */
.dm-about .dm-about-introduction {
    padding-top: clamp(65px, 7vw, 110px);
}

.dm-about .dm-about-introduction .dm-about-heading h1 {
    margin-top: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.13;
    letter-spacing: -0.025em;
}

/* Descrizione aziendale */
.dm-about .dm-about-introduction .dm-about-prose p {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Presentazione certificazioni e qualifiche */
.dm-about .dm-about-credentials-intro {
    max-width: 1050px;
    margin: 22px 0 36px;
    color: #c3d2e7;
}

.dm-about .dm-about-credentials-intro p {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.8;
    margin: 0 0 16px;
}

.dm-about .dm-about-credentials-intro strong {
    color: #f0f7ff;
    font-weight: 700;
}

/* Conclusione */
.dm-about .dm-about-final p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

@media (max-width: 650px) {
    .dm-about .dm-about-introduction {
        padding-top: 55px;
    }

    .dm-about .dm-about-credentials-intro {
        margin-bottom: 28px;
    }
}

/* FINE DATMIT AZIENDA STYLE 28.8.8 */


/* DATMIT ABOUT VALUE FONT 28.8.9 */

/* Dimensioni coerenti con la homepage Corporate */
.dm-about .dm-about-value p:not(.dm-about-eyebrow) {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.8;
}

.dm-about .dm-about-value p strong {
    font-weight: 700;
}

/* FINE DATMIT ABOUT VALUE FONT 28.8.9 */
