﻿:root {
    --blue-950: #06254a;
    --blue-900: #083665;
    --blue-800: #0b4d87;
    --blue-700: #086aa8;
    --blue-600: #0789c9;
    --blue-500: #16a6dc;
    --blue-100: #eaf7fc;
    --blue-050: #f5fbfe;
    --white: #ffffff;
    --text: #18324a;
    --muted: #60788e;
    --border: #d9e8f1;
    --shadow: 0 18px 50px rgba(7, 55, 96, 0.10);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

.header-content {
    min-height: 84px;
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 54px;
    object-fit: contain;
}

.brand-title {
    color: var(--blue-900);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.25;
    white-space: nowrap;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

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

h1,
h2,
h3 {
    color: var(--blue-950);
    line-height: 1.12;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 104px;
    background:
        radial-gradient(circle at 88% 18%, rgba(22, 166, 220, 0.16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f3fbff 58%, #e9f7fd 100%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -170px;
    bottom: -190px;
    border: 42px solid rgba(8, 137, 201, 0.07);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: 76px;
    align-items: center;
}

.hero-intro {
    max-width: 670px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 1.15rem;
}

.hero-actions,
.final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta {
    min-height: 50px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

a.cta:hover {
    transform: translateY(-2px);
}

.cta-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    box-shadow: 0 12px 28px rgba(8, 106, 168, 0.20);
}

.cta-secondary {
    color: var(--blue-800);
    background: var(--white);
    border-color: #bcdbea;
}

.hero-visual {
    position: relative;
}

.consultation-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(185, 218, 234, 0.9);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(7, 55, 96, 0.16);
}

.consultation-logo {
    min-height: 54px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
}

.consultation-logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.consultation-screen {
    min-height: 290px;
    padding: 28px 22px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    background:
        linear-gradient(145deg, rgba(5, 44, 82, 0.98), rgba(8, 91, 143, 0.96));
    border-radius: 22px;
}

.screen-person {
    min-height: 150px;
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--white);
    text-align: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
}

.screen-person strong {
    font-size: 0.92rem;
}

.person-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--blue-900);
    background: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 300;
}

.connection-line {
    width: 54px;
    height: 2px;
    position: relative;
    background: rgba(255, 255, 255, 0.65);
}

.connection-line span {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    background: #72dcff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 7px rgba(114, 220, 255, 0.14);
}

.consultation-card > p {
    margin: 20px 4px 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.how-it-works,
.areas,
.digital-consultation,
.ecosystem {
    padding: 100px 0;
}

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

.section-heading > p:last-child,
.digital-grid > div:first-child > p:last-child,
.ecosystem-content > p:last-child {
    color: var(--muted);
    font-size: 1.05rem;
}

.centered-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.step-card {
    min-height: 250px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(7, 55, 96, 0.055);
}

.step-number {
    margin-bottom: 32px;
    display: inline-flex;
    color: var(--blue-600);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

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

.areas {
    background: var(--blue-050);
}

.areas-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.area-card {
    position: relative;
    overflow: hidden;
    padding: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.area-card::before {
    content: "";
    position: absolute;
    height: 5px;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--blue-800), var(--blue-500));
}

.area-label {
    margin-bottom: 18px;
    display: inline-flex;
    color: var(--blue-700);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.area-card h3 {
    font-size: 1.75rem;
}

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

.area-card ul {
    margin: 26px 0 32px;
    padding: 0;
    list-style: none;
}

.area-card li {
    position: relative;
    margin: 11px 0;
    padding-left: 25px;
}

.area-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-600);
    font-weight: 800;
}

.cta-disabled {
    color: #6d8192;
    background: #edf3f6;
    border-color: #dce7ec;
    cursor: default;
}

.digital-consultation {
    background: var(--white);
}

.digital-grid {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-list article {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    align-items: start;
    background: var(--blue-050);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.feature-list article > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue-700);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.feature-list h3 {
    margin-bottom: 5px;
}

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

.ecosystem {
    background:
        linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.ecosystem-content {
    max-width: 830px;
}

.ecosystem .eyebrow {
    color: #8ddfff;
}

.ecosystem h2,
.ecosystem-content > p:last-child {
    color: var(--white);
}

.ecosystem-content > p:last-child {
    opacity: 0.86;
}

.final-cta {
    padding: 94px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(90, 210, 255, 0.20), transparent 26%),
        linear-gradient(135deg, #0875b4, #064579);
}

.final-cta-content {
    text-align: center;
}

.final-cta .eyebrow {
    color: #b8ecff;
}

.final-cta h2 {
    color: var(--white);
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.final-cta-content > p:not(.eyebrow) {
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

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

.cta-light {
    color: var(--blue-900);
    background: var(--white);
}

.cta-outline-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.72);
}

.site-footer {
    padding: 30px 0;
    color: #70869a;
    background: #f7fafc;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
}

.footer-content strong {
    color: var(--blue-900);
}

/* TABLET */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-content {
        max-width: 780px;
    }

    .hero-visual {
        max-width: 650px;
    }

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

    .digital-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* MOBILE */
@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .header-content {
        min-height: 72px;
    }

    .brand {
        width: 100%;
        gap: 10px;
    }

    .brand-logo {
        height: 43px;
        flex: 0 0 auto;
    }

    .brand-title {
        font-size: 0.64rem;
        letter-spacing: 0.035em;
        white-space: normal;
    }

    .hero {
        padding: 68px 0 76px;
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .hero-intro {
        font-size: 1.02rem;
    }

    .hero-actions,
    .final-actions {
        flex-direction: column;
    }

    .hero-actions .cta,
    .final-actions .cta {
        width: 100%;
    }

    .consultation-card {
        padding: 18px;
        border-radius: 22px;
    }

    .consultation-screen {
        min-height: 0;
        padding: 18px;
        grid-template-columns: 1fr;
    }

    .screen-person {
        min-height: 120px;
    }

    .connection-line {
        width: 2px;
        height: 38px;
        margin: 0 auto;
    }

    .how-it-works,
    .areas,
    .digital-consultation,
    .ecosystem {
        padding: 72px 0;
    }

    .steps-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

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

    .area-card {
        padding: 30px 24px;
    }

    .feature-list article {
        grid-template-columns: 42px 1fr;
        padding: 19px;
        gap: 14px;
    }

    .final-cta {
        padding: 72px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .brand-logo {
        height: 38px;
    }

    .brand-title {
        font-size: 0.58rem;
    }

    .container {
        width: min(calc(100% - 26px), var(--container));
    }
}

/* CSD + ASE: TELEMEDICINA, DIAGNOSTICA E PROTEZIONE DATI */
.csd-ase {
    padding: 105px 0;
    background:
        radial-gradient(circle at 92% 8%, rgba(22, 166, 220, 0.10), transparent 25%),
        linear-gradient(180deg, #f7fcff 0%, #ffffff 100%);
}

.csd-ase-heading {
    max-width: 900px;
}

.telemedicine-figure {
    margin: 48px 0 34px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 24px 65px rgba(7, 55, 96, 0.14);
}

.telemedicine-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    position: relative;
    min-height: 310px;
    padding: 38px;
    overflow: hidden;
    border-radius: 26px;
}

.value-card .eyebrow {
    margin-bottom: 12px;
}

.value-card h3 {
    max-width: 480px;
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    line-height: 1.18;
}

.value-card > p:last-child {
    margin-bottom: 0;
    font-size: 1rem;
}

.value-number {
    position: absolute;
    top: 25px;
    right: 28px;
    font-size: 3.7rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.08;
}

.security-card {
    color: rgba(255, 255, 255, 0.88);
    background:
        radial-gradient(circle at 100% 0%, rgba(75, 202, 246, 0.22), transparent 34%),
        linear-gradient(135deg, var(--blue-950), var(--blue-800));
    box-shadow: 0 20px 48px rgba(6, 37, 74, 0.16);
}

.security-card .eyebrow {
    color: #8fe4ff;
}

.security-card h3 {
    color: var(--white);
}

.diagnostic-card {
    color: var(--muted);
    background: var(--white);
    border: 1px solid #cfe5ef;
    box-shadow: 0 20px 48px rgba(7, 55, 96, 0.09);
}

.diagnostic-card::before {
    content: "";
    position: absolute;
    width: 5px;
    top: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(var(--blue-500), var(--blue-800));
}

/* PRESENTAZIONE ASE */
.ase-discovery {
    padding: 105px 0;
    background: #f3f9fc;
}

.ase-discovery-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
    gap: 78px;
    align-items: center;
}

.ase-presentation {
    max-width: 510px;
    justify-self: center;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    box-shadow: 0 26px 65px rgba(7, 55, 96, 0.14);
}

.ase-presentation img {
    width: 100%;
    height: auto;
    display: block;
}

.ase-discovery-content {
    max-width: 600px;
}

.ase-discovery-content > p:not(.eyebrow) {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 1.08rem;
}

.ase-discovery-content .cta {
    min-width: 175px;
}

/* RESPONSIVE NUOVE SEZIONI */
@media (max-width: 900px) {
    .value-grid {
        grid-template-columns: 1fr;
    }

    .ase-discovery-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ase-presentation {
        max-width: 560px;
    }

    .ase-discovery-content {
        max-width: 720px;
    }
}

@media (max-width: 680px) {
    .csd-ase,
    .ase-discovery {
        padding: 72px 0;
    }

    .telemedicine-figure {
        margin: 34px 0 24px;
        border-radius: 18px;
    }

    .value-card {
        min-height: 0;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .value-number {
        top: 20px;
        right: 20px;
        font-size: 3rem;
    }

    .ase-discovery-grid {
        gap: 38px;
    }

    .ase-presentation {
        border-radius: 20px;
    }

    .ase-discovery-content .cta {
        width: 100%;
    }
}

/* =========================================================
   CSD - RIFINITURA TOP E HERO VISUALE
   ========================================================= */

/* TOP CON ACCESSI */
.header-content {
    justify-content: space-between;
    gap: 28px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.header-cta {
    min-width: 150px;
    padding: 12px 18px;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* HERO CON IMMAGINE TELEMEDICINA */
.hero-grid {
    grid-template-columns: minmax(330px, 0.72fr) minmax(560px, 1.28fr);
    gap: 52px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.65rem, 4.3vw, 4.65rem);
}

.hero-telemedicine {
    max-width: none;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(185, 218, 234, 0.95);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(7, 55, 96, 0.17);
}

.hero-telemedicine img {
    display: block;
    width: 100%;
    height: auto;
}

/* ASE SUBITO DOPO LA HERO */
.ase-discovery {
    position: relative;
    padding: 82px 0;
}

.ase-discovery-grid {
    grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
}

.ase-presentation {
    max-width: 470px;
}

/* TABLET */
@media (max-width: 1100px) {
    .brand-title {
        font-size: 0.78rem;
        letter-spacing: 0.055em;
    }

    .header-cta {
        min-width: 132px;
        padding: 11px 14px;
        font-size: 0.72rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-content {
        max-width: 820px;
    }

    .hero-telemedicine {
        width: 100%;
        max-width: 100%;
    }
}

/* MOBILE */
@media (max-width: 680px) {
    .header-content {
        min-height: 0;
        padding-top: 14px;
        padding-bottom: 14px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .header-cta {
        min-width: 0;
        width: 100%;
        padding: 11px 8px;
        font-size: 0.68rem;
    }

    .hero {
        padding-top: 66px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-content h1 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
    }

    .hero-telemedicine {
        border-radius: 18px;
        box-shadow: 0 18px 44px rgba(7, 55, 96, 0.14);
    }

    .ase-discovery {
        padding: 64px 0 72px;
    }

    .ase-discovery-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ase-presentation {
        width: 100%;
        max-width: 500px;
    }
}

/* RIFINITURA TOP MOBILE */
@media (max-width: 680px) {
    .header-content {
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-cta {
        min-height: 46px;
        padding: 9px 7px;
        border-radius: 10px;
    }
}
