/* Homepage pubblica per il professionista. Usa i token VexaCare, non un secondo tema. */
.professional-home {
    --ph-fg: #172126;
    --ph-muted: #5B6B7A;
    --ph-line: #EAEDF0;
    --ph-primary: #247B76;
    --ph-ice: #F9FAFB;
    --vx-nav-height: 64px;
    --vx-hero-nav-gap: 28px;
    background: #fff;
    color: var(--ph-fg);
    font-family: "Inter", system-ui, sans-serif;
}

.ph {
    padding-top: 0;
}

.ph-wrap {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.ph-eyebrow {
    margin: 0 0 14px;
    color: var(--ph-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ph h1,
.ph h2,
.ph h3,
.ph-script {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.ph h1 {
    margin: 0;
    max-width: 11em;
    color: #172126;
    font-size: clamp(42px, 4.3vw, 60px);
    line-height: 1.06;
}

.ph h2 {
    margin: 0;
    max-width: 14em;
    color: #172126;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.1;
}

.ph h3 {
    margin: 10px 0 0;
    color: #172126;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
}

.ph-lead {
    margin: 22px 0 0;
    max-width: 46rem;
    color: var(--ph-muted);
    font-size: 17px;
    line-height: 1.65;
}

.ph-note,
.ph-secure,
.ph-aside {
    color: var(--ph-muted);
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
}

.ph-note { margin: 18px 0 0; max-width: 36rem; }
.ph-secure { margin: 22px auto 0; max-width: 34rem; }
.ph-aside { margin: 18px 0 0; font-size: 14px; }

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ph-btn--primary {
    background: var(--ph-primary);
    color: hsl(var(--primary-foreground));
}

.ph-btn--primary:hover { filter: brightness(1.05); }

.ph-btn--ghost {
    background: #fff;
    border-color: #C8DEDD;
    color: var(--ph-fg);
}

.ph-btn--ghost:hover { border-color: var(--ph-primary); color: var(--ph-primary); }

.ph-btn:focus-visible,
.ph-nav a:focus-visible,
.ph-lang summary:focus-visible,
.ph-footer a:focus-visible,
.ph-nav__menu:focus-visible {
    outline: 2px solid var(--ph-primary);
    outline-offset: 3px;
}

.ph-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(229 236 239 / 0.8);
}

.ph-nav__bar {
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(1280px, calc(100% - 56px));
    min-height: var(--vx-nav-height);
    margin-inline: auto;
}

.ph-nav__logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
}
.homepage-body .ph-nav__logo img,
.ph-nav__logo img {
    display: block;
    width: auto;
    height: var(--vx-logo-height, 40px);
    max-width: none;
    object-fit: contain;
    object-position: left center;
}

.ph-nav__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
}

.ph-lang summary {
    color: var(--ph-fg);
    font-size: 14px;
    font-weight: 550;
    text-decoration: none;
}

.ph-nav__item {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #5B6B7A;
    text-decoration: none;
    transition: color 180ms ease;
}

.ph-nav__item:hover,
.ph-nav__item[aria-current="true"] { color: var(--ph-primary); }

.ph-nav__item[aria-current="true"] { font-weight: 600; }

.ph-nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.ph-nav__login {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 10px 20px;
    border: 1px solid #34B2AC;
    border-radius: 999px;
    background: #fff;
    color: #247B76;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.ph-nav__login svg { display: block; flex: none; }

.ph-nav__login:hover {
    background: #34B2AC;
    border-color: #34B2AC;
    color: #172126;
}

.ph-nav__login:focus-visible {
    outline: 2px solid #247B76;
    outline-offset: 3px;
}

.ph-nav__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}

.ph-nav__bell .vx-note-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
}

.ph-lang { position: relative; display: flex; align-items: center; align-self: center; }
.ph-lang summary { cursor: pointer; list-style: none; }
.ph-lang summary::-webkit-details-marker { display: none; }
.ph-lang summary.ph-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5B6B7A;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 180ms ease;
}
.ph-lang summary.ph-lang__toggle svg {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
}
.ph-lang summary.ph-lang__toggle:hover { color: var(--ph-primary); }
.ph-lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    padding: 8px;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: #fff;
}
.ph-lang__menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ph-fg); text-decoration: none; }
.ph-lang__menu a:hover,
.ph-lang__menu a[aria-current="true"] { background: var(--ph-ice); color: var(--ph-primary); }

.ph-cart {
    position: relative;
    color: var(--ph-fg);
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}
.ph-cart__count {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ph-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.ph-account summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: none;
    padding: 10px 16px;
    border: 1px solid rgba(23, 33, 38, 0.12);
    border-radius: 999px;
    background: #F9FAFB;
    color: #172126;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}
.ph-account summary span {
    overflow: hidden;
    max-width: 16rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ph-account summary img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.ph-account__menu { min-width: 240px; }
.ph-account__menu a i,
.ph-account__menu button i { width: 16px; margin-right: 8px; text-align: center; opacity: 0.55; }
.ph-account__menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--ph-line); }
.ph-account__menu button,
.ph-nav__panel form button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ph-fg);
    font: inherit;
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
}
.ph-account__menu button:hover { background: var(--ph-ice); color: var(--ph-primary); }

.ph-nav__menu,
.ph-nav__panel { display: none; }

.ph-hero {
    position: relative;
    min-height: 700px;
    padding: 36px 0 28px;
    overflow: hidden;
    background:
        radial-gradient(720px 520px at 74% 42%, rgb(200 222 221 / 0.55), transparent 70%),
        radial-gradient(540px 420px at 96% 78%, rgb(200 222 221 / 0.85), transparent 68%),
        radial-gradient(380px 280px at 8% 88%, rgb(237 244 244 / 0.9), transparent 72%),
        linear-gradient(180deg, #F9FAFB 0%, #ffffff 82%);
}

.ph-hero::before {
    content: "";
    position: absolute;
    right: -6%;
    top: 8%;
    width: min(62vw, 760px);
    height: min(62vw, 760px);
    border-radius: 50%;
    background: radial-gradient(circle, rgb(200 222 221 / 0.7), transparent 68%);
    pointer-events: none;
}

.ph-hero__grid {
    position: relative;
    z-index: 1;
    min-height: 640px;
}

.ph-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 28px 0 20px;
}

.ph-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ph-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 32px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.ph-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5B6B7A;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.ph-benefits i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    color: var(--ph-primary);
    font-size: 13px;
}

.ph-hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}
.ph-hero__visual img {
    width: auto;
    height: 94%;
    max-width: 100%;
    margin: 0;
    display: block;
    object-fit: contain;
    object-position: right center;
    mask-image:
        linear-gradient(90deg, transparent, #000 14%),
        linear-gradient(to bottom, transparent 3%, #000 14%, #000 84%, transparent 97%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(90deg, transparent, #000 14%),
        linear-gradient(to bottom, transparent 3%, #000 14%, #000 84%, transparent 97%);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-composite: source-in;
}

.ph-script {
    position: absolute;
    right: 2%;
    top: 22%;
    margin: 0;
    color: #8A96A3;
    font-size: 26px;
    font-style: italic;
    line-height: 1.15;
    text-align: right;
    pointer-events: none;
}

.ph-section { padding: 108px 0; }
#percorso { background: #fff; }
#giornata {
    background:
        radial-gradient(640px 240px at 88% 0%, rgb(237 244 244 / 0.95), transparent 72%),
        linear-gradient(180deg, #F9FAFB 0%, #fff 70%);
}
#moduli {
    background: linear-gradient(180deg, #fff 0%, #F9FAFB 42%, #fff 100%);
}

.ph-section,
.ph-close,
.ph-footer,
#vexacare,
#risorse {
    scroll-margin-top: 80px;
}
.ph-section__intro h2 { margin-bottom: 8px; }
.ph-section__intro--center { text-align: center; }
.ph-section__intro--center h2,
.ph-section__intro--center .ph-lead { margin-inline: auto; }

.ph-timeline {
    display: flex;
    gap: 8px;
    margin: 56px 0 0;
    padding: 8px 0 12px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x proximity;
}

.ph-timeline li {
    position: relative;
    display: flex;
    flex: 1 0 108px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 108px;
    color: var(--ph-muted);
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    scroll-snap-align: center;
}

.ph-timeline li::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -50%;
    width: 100%;
    height: 1px;
    background: #C8DEDD;
}

.ph-timeline li:first-child::before { display: none; }

.ph-timeline__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EDF4F4;
    color: var(--ph-primary);
}

.ph-timeline .is-active { color: var(--ph-fg); font-weight: 700; }
.ph-timeline .is-active .ph-timeline__node { background: var(--ph-primary); color: #fff; }

.ph-day__head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 32px 48px;
    align-items: end;
}

.ph-day__head .ph-lead { margin: 0; }

.ph-day__grid,
.ph-modules {
    display: grid;
    gap: 28px;
    margin-top: 48px;
}

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

.ph-card,
.ph-module {
    min-height: 0;
    padding: 28px 28px 24px;
    border: 1px solid rgb(210 226 230 / 0.9);
    border-radius: 24px;
    background: rgb(255 255 255 / 0.86);
    box-shadow: 0 12px 32px rgb(22 60 72 / 0.045);
}

.ph-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px 8px;
    align-items: end;
}

.ph-module {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 20px 28px;
    align-items: center;
}

.ph-card:hover,
.ph-module:hover {
    border-color: hsl(var(--primary) / 0.28);
}

.ph-num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ph-ice);
    color: var(--ph-primary);
    font-size: 13px;
    font-weight: 700;
}

.ph-card ul,
.ph-module ul {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.ph-card li,
.ph-module li {
    position: relative;
    margin-top: 10px;
    padding-left: 22px;
    color: var(--ph-muted);
    font-size: 15px;
    line-height: 1.45;
}

.ph-card li::before,
.ph-module li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 5px;
    border-left: 1.5px solid var(--ph-primary);
    border-bottom: 1.5px solid var(--ph-primary);
    transform: rotate(-45deg);
}

.ph-card img {
    width: 132px;
    height: 112px;
    margin: 0;
    object-fit: contain;
    justify-self: end;
}

.ph-module img {
    width: 168px;
    height: 148px;
    margin: 0;
    object-fit: contain;
}

.ph-module__meta {
    margin: 0;
    color: var(--ph-primary);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.ph-module__meta span { margin-right: 8px; }

.ph-close { padding: 40px 0 160px; }
.ph-close__box { max-width: 760px; text-align: center; }
.ph-close__box h2,
.ph-close__box .ph-lead { margin-inline: auto; }
.ph-close__box .ph-hero__cta { justify-content: center; }

.professional-home .vx-lp,
.professional-home .vx-lightzone,
.professional-home .vx-cta {
    margin-bottom: 0;
}

.ph-footer {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 120px 0 48px;
    background: #172126;
    color: #F9FAFB;
}

.ph-footer__particles {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ph-footer .ph-wrap {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: none;
    padding-inline: clamp(20px, 5.5vw, 140px);
}

.ph-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.ph-footer__logo {
    display: inline-block;
    max-width: 100%;
}

.ph-footer__logo img {
    display: block;
    width: auto;
    height: var(--vx-logo-height, 40px);
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.ph-footer__label {
    margin: 0 0 12px;
    color: #F9FAFB;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ph-footer a {
    display: block;
    margin-top: 8px;
    color: #F9FAFB;
    font-size: 15px;
    text-decoration: none;
}

.ph-footer a:hover { color: #C8DEDD; }

.ph-footer__base {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 0.35);
    color: #8A96A3;
    font-size: 13px;
    line-height: 1.4;
}

.ph-footer__base span,
.ph-footer__base a {
    display: inline;
    margin: 0;
    color: #8A96A3;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 900px) {
    .ph-footer .ph-wrap { padding-inline: 20px; }
}

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

@media (max-width: 980px) {
    .ph-nav__links { display: none; }
    .ph-nav__actions .ph-nav__login,
    .ph-nav__actions .ph-account,
    .ph-nav__actions .ph-btn { display: none; }
    .ph-nav__menu {
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        margin-left: auto;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--ph-fg);
        font-size: 18px;
    }
    .ph-nav__panel {
        display: grid;
        gap: 4px;
        padding: 8px 24px 20px;
    }
    .ph-nav__panel[hidden] { display: none; }
    .ph-nav__panel a { padding: 10px 0; color: var(--ph-fg); text-decoration: none; }
    .ph-nav__panel a.ph-nav__item { color: #5B6B7A; }
    .ph-nav__panel a.ph-nav__login {
        display: flex;
        width: 100%;
        margin-top: 16px;
        padding: 10px 20px;
        color: #247B76;
    }
    .ph-nav__panel a.ph-nav__login:hover {
        background: #34B2AC;
        color: #172126;
    }
    .ph-nav__panel a.ph-nav__item:hover,
    .ph-nav__panel a.ph-nav__item[aria-current="true"] { color: var(--ph-primary); }
    .ph-nav__who {
        margin: 12px 0 0;
        color: #172126;
        font-family: "Inter", sans-serif;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }
    .ph-day__grid,
    .ph-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .ph-hero__grid,
    .ph-day__head,
    .ph-modules { grid-template-columns: 1fr; }
    .ph-hero { min-height: 0; padding-bottom: 12px; }
    .ph-hero__grid { min-height: 0; }
    .ph-hero__copy { max-width: none; }
    .ph-hero__visual {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 420px;
        margin-top: 8px;
        pointer-events: none;
    }
    .ph-hero__visual img {
        width: min(100%, 480px);
        height: auto;
        margin-inline: auto;
        object-position: center;
        mask-image: linear-gradient(#000 78%, transparent);
        -webkit-mask-image: linear-gradient(#000 78%, transparent);
    }
    .ph-script { right: 8%; top: 8%; font-size: 22px; }
    .ph-section { padding: 84px 0; }
    .ph-close { padding-bottom: 96px; }
    .ph h1 { max-width: none; }
}

@media (max-width: 720px) {
    .ph-wrap,
    .ph-nav__bar,
    .professional-home .vx-hero > .vx-wrap { width: min(1240px, calc(100% - 40px)); }
    .ph-section { padding: 76px 0; }
    .ph-card,
    .ph-module { padding: 22px; border-radius: 20px; }
    .ph-card,
    .ph-module { grid-template-columns: 1fr; }
    .ph-card img,
    .ph-module img { width: min(100%, 180px); height: 120px; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .ph-card,
    .ph-module,
    .ph-btn { transition: none; }
    .ph-card:hover,
    .ph-module:hover { border-color: rgb(210 226 230 / 0.9); }
}

/* Hero Professionals: figura a destra, testi allineati al logo.
   s1 eyebrow→titolo, s2 titolo→lead, s3 lead→CTA, s4 minimo CTA→feature
   (lo spazio in più ci finisce tutto), s5 feature→«Scopri VexaCare». */
.professional-home {
    --vx-hero-s1: clamp(16px, 2.5vh, 28px);
    --vx-hero-s2: clamp(24px, 3.5vh, 40px);
    --vx-hero-s3: clamp(32px, 4.5vh, 52px);
    --vx-hero-s4: clamp(48px, 7vh, 96px);
    --vx-hero-s5: clamp(32px, 5vh, 56px);
    --vx-hero-pad: clamp(64px, 10vh, 112px);
    --vx-hero-title: clamp(56px, min(7.5vw, 12vh), 118px);
}

.professional-home .vx-hero {
    position: relative;
    background: #172126;
    overflow: visible;
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding: calc(var(--vx-nav-height) + var(--vx-hero-nav-gap)) 0 var(--vx-hero-pad);
}

.professional-home .vx-hero > .vx-wrap {
    display: flex;
    flex-direction: column;
    width: min(1280px, calc(100% - 56px));
    min-height: calc(100svh - var(--vx-nav-height) - var(--vx-hero-nav-gap) - var(--vx-hero-pad));
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
    z-index: 3;
}

.professional-home .vx-hero__inner {
    max-width: calc(var(--vx-hero-title) * 7.2);
}

.professional-home .vx-hero h1 {
    max-width: calc(var(--vx-hero-title) * 7.05);
    font-size: var(--vx-hero-title);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: var(--vx-hero-s1) 0 0;
}

.professional-home .vx-hero__lead {
    max-width: 46ch;
    margin-top: var(--vx-hero-s2);
    font-size: clamp(18px, 1.35vw, 22px);
    line-height: 1.55;
}

.professional-home .vx-hero__cta {
    margin-top: var(--vx-hero-s3);
    gap: clamp(16px, 1.5vw, 24px);
}

.professional-home .vx-hero__cta .vx-btn {
    height: auto;
    min-height: clamp(52px, 6vh, 64px);
    padding-inline: clamp(22px, 2vw, 34px);
}

.professional-home .vx-hero__feats {
    max-width: min(70%, calc(var(--vx-hero-title) * 7.2));
    margin-top: auto;
    padding-top: var(--vx-hero-s4);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 2vw, 40px);
}

.professional-home .vx-hero__feat {
    align-items: center;
    min-width: 0;
}

.professional-home .vx-hero__feat i {
    width: 52px;
    height: 52px;
    flex: none;
}

.professional-home .vx-hero__media {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 62%;
    z-index: 2;
}

.homepage-body .vx-hero img.vx-hero__bg,
.professional-home .vx-hero img.vx-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 60% 15%;
    z-index: 0;
    pointer-events: none;
    border: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
    mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}

.professional-home .vx-hero__shade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(0deg, #172126 0%, rgba(7, 26, 43, 0) 100%);
}

.professional-home .vx-hero__foot {
    justify-content: flex-start;
    margin-top: var(--vx-hero-s5);
}

.professional-home .vx-hero .vx-eyebrow {
    margin: 0;
    color: #34B2AC;
    font-size: clamp(12px, 0.95vw, 15px);
    font-weight: 500;
    letter-spacing: 0.22em;
    line-height: 1.7;
    text-transform: uppercase;
}

@media (min-width: 1600px) {
    .professional-home .vx-hero__media {
        width: min(62%, 1400px);
    }
}

/* Sotto i 1200px di altezza il titolo grande non lascia posto a «Scopri VexaCare»:
   si nasconde e gli spazi scendono, tenendo le stesse proporzioni. */
@media (max-height: 1200px) and (min-width: 981px) {
    .professional-home {
        --vx-hero-nav-gap: 12px;
        --vx-hero-pad: clamp(36px, 5vh, 56px);
        --vx-hero-s1: clamp(8px, 1.4vh, 20px);
        --vx-hero-s2: clamp(10px, 2vh, 28px);
        --vx-hero-s3: clamp(14px, 2.6vh, 36px);
        --vx-hero-s4: clamp(18px, 3.2vh, 56px);
        --vx-hero-s5: clamp(12px, 2vh, 28px);
    }

    .professional-home .vx-hero .vx-eyebrow { line-height: 1.5; }
    .professional-home .vx-hero__foot { display: none; }
}

@media (max-height: 800px) and (min-width: 981px) {
    .professional-home {
        --vx-hero-nav-gap: 10px;
        --vx-hero-pad: 32px;
        --vx-hero-s1: clamp(6px, 1vh, 12px);
        --vx-hero-s2: clamp(8px, 1.5vh, 16px);
        --vx-hero-s3: clamp(10px, 2vh, 20px);
        --vx-hero-s4: clamp(14px, 2.4vh, 28px);
    }

    .professional-home .vx-hero .vx-eyebrow {
        font-size: 12px;
        line-height: 1.4;
    }

    .professional-home .vx-hero__lead { font-size: clamp(16px, 1.15vw, 18px); }

    .professional-home .vx-hero__cta .vx-btn { min-height: 48px; }
}

/* Smartphone e tablet verticale: foto sopra, testo sotto, niente colonna a tutta altezza. */
@media (max-width: 980px) {
    .professional-home {
        --vx-hero-title: clamp(32px, 12vw, 68px);
        --vx-hero-s1: clamp(8px, 1.6vh, 16px);
        --vx-hero-s2: clamp(12px, 2.2vh, 22px);
        --vx-hero-s3: clamp(14px, 2.9vh, 28px);
        --vx-hero-s4: clamp(18px, 4.5vh, 40px);
        --vx-hero-s5: clamp(14px, 3.2vh, 28px);
        --vx-hero-pad: 28px;
    }

    .professional-home .vx-hero {
        display: block;
        height: auto;
        max-height: none;
        min-height: 0;
        padding: 0 0 var(--vx-hero-pad);
    }

    .professional-home .vx-hero__media {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: clamp(180px, 48vw, 340px);
    }

    .homepage-body .vx-hero img.vx-hero__bg,
    .professional-home .vx-hero img.vx-hero__bg {
        height: 100%;
        object-position: 60% 10%;
        -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    }

    .professional-home .vx-hero__shade { display: none; }

    .professional-home .vx-hero > .vx-wrap {
        width: min(1280px, calc(100% - 40px));
        min-height: 0;
        padding-top: clamp(16px, 2.4vh, 28px);
    }

    .professional-home .vx-hero__inner,
    .professional-home .vx-hero h1,
    .professional-home .vx-hero__feats { max-width: none; }

    .professional-home .vx-hero .vx-eyebrow {
        font-size: clamp(11px, 2.9vw, 13px);
        line-height: 1.55;
    }

    .professional-home .vx-hero__lead {
        max-width: 40em;
        font-size: clamp(15px, 3.9vw, 18px);
    }

    .professional-home .vx-hero__cta .vx-btn { min-height: 48px; }

    .professional-home .vx-hero__feats {
        margin-top: var(--vx-hero-s4);
        padding-top: 0;
        grid-template-columns: 1fr 1fr;
        gap: clamp(14px, 3vw, 24px) clamp(12px, 3vw, 28px);
    }

    .professional-home .vx-hero__feat { font-size: 13.5px; }

    .professional-home .vx-hero__feat i {
        width: 44px;
        height: 44px;
    }

    .professional-home .vx-hero__foot { display: none; }
}

@media (max-width: 720px) {
    .professional-home .vx-hero > .vx-wrap {
        width: min(1240px, calc(100% - 40px));
    }

    .professional-home .vx-hero__cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .professional-home .vx-hero__cta .vx-btn {
        justify-content: center;
        width: 100%;
    }
}

/* «del tuo paziente» deve restare su una sola riga. */
@media (max-width: 380px) {
    .professional-home { --vx-hero-title: clamp(30px, 10.4vw, 38px); }

    .professional-home .vx-hero__feat { font-size: 12.5px; gap: 8px; }
    .professional-home .vx-hero__feat i { width: 40px; height: 40px; }
}

.professional-home a:focus-visible,
.professional-home button:focus-visible,
.professional-home summary:focus-visible {
    outline: 2px solid #34B2AC;
    outline-offset: 3px;
}

.professional-home .vx-light a:focus-visible,
.professional-home .vx-light button:focus-visible {
    outline-color: #247B76;
}

.professional-home .vx-journey__visual,
.professional-home .vx-day__visual {
    background-image: none;
}

.professional-home .vx-day__visual {
    position: relative;
}

.professional-home .vx-journey__visual img,
.professional-home .vx-day__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.professional-home .ph-nav__menu svg {
    display: block;
}
