/* Home pubblica (sales page) — usata solo da home_public.html per utenti anonimi */

.dhp {
    --dhp-green: #0f5b4f;
    --dhp-green-deep: #082f29;
    --dhp-green-ink: #0a4038;
    --dhp-gold: #d99b45;
    --dhp-gold-soft: #f3c77f;
    --dhp-cream: #fbf8f1;
    --dhp-ink: #14231e;
    --dhp-muted: #5b6e65;
    --dhp-line: rgba(20, 35, 30, .1);
    --dhp-radius: 1.4rem;
    --dhp-ease: cubic-bezier(.2, .7, .2, 1);
    color: var(--dhp-ink);
    margin-top: -1.5rem;
}

/* le sezioni a tutta larghezza usano 100vw: niente scroll orizzontale dovuto alla scrollbar */
body:has(.dhp) {
    overflow-x: clip;
}

/* il contenuto vive dentro main.container: le sezioni "bleed" escono a tutta larghezza */
.dhp-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.dhp-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: 1rem;
}

.dhp [id] {
    scroll-margin-top: 5.5rem;
}

.dhp-section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

/* ---------- tipografia ---------- */
.dhp-kicker,
.dhp-eyebrow {
    margin: 0 0 .9rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dhp-eyebrow { color: var(--dhp-green); }
.dhp-kicker { color: var(--dhp-gold-soft); }

.dhp-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

.dhp-lead {
    margin: 0;
    max-width: 44rem;
    color: var(--dhp-muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.65;
}

.dhp-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.dhp-head-center { text-align: center; }
.dhp-head-center .dhp-lead { margin-inline: auto; }
.dhp-head-split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.dhp-gold { color: var(--dhp-gold-soft); }

/* ---------- bottoni ---------- */
.dhp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.dhp-cta-row.is-center { justify-content: center; }

.dhp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .25s var(--dhp-ease), box-shadow .25s var(--dhp-ease), background-color .25s, color .25s, border-color .25s;
}

.dhp-btn:hover { transform: translateY(-2px); }
.dhp-btn:active { transform: translateY(0); }
.dhp-btn:focus-visible,
.dhp a:focus-visible,
.dhp summary:focus-visible {
    outline: 3px solid var(--dhp-gold);
    outline-offset: 3px;
}

.dhp-btn-gold {
    background: var(--dhp-gold);
    color: #1c1406;
    box-shadow: 0 10px 28px rgba(217, 155, 69, .35);
}

.dhp-btn-gold:hover {
    background: #e6ab57;
    color: #1c1406;
    box-shadow: 0 16px 36px rgba(217, 155, 69, .45);
}

.dhp-btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
}

.dhp-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.dhp-btn-outline {
    border-color: var(--dhp-green);
    color: var(--dhp-green);
    background: transparent;
}

.dhp-btn-outline:hover {
    background: var(--dhp-green);
    color: #fff;
}

.dhp-link-arrow {
    color: var(--dhp-green);
    font-weight: 800;
    text-decoration: none;
}

.dhp-link-arrow::after {
    content: " →";
    display: inline-block;
    transition: transform .25s var(--dhp-ease);
}

.dhp-link-arrow:hover::after { transform: translateX(4px); }

/* ---------- hero ---------- */
.dhp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem);
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(217, 155, 69, .22), transparent 28rem),
        radial-gradient(circle at 10% 90%, rgba(46, 140, 118, .35), transparent 30rem),
        linear-gradient(160deg, #0d4f45 0%, var(--dhp-green-deep) 70%);
}

.dhp-hero-glow {
    position: absolute;
    inset: -20% -10% auto auto;
    z-index: -1;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 199, 127, .18), transparent 65%);
    animation: dhp-drift 14s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes dhp-drift {
    to { transform: translate(-6rem, 4rem) scale(1.15); }
}

.dhp-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.dhp-hero-title {
    margin: 0 0 1.2rem;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    text-wrap: balance;
}

.dhp-hero-lead {
    margin: 0 0 1.8rem;
    max-width: 36rem;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1.02rem, 1.8vw, 1.18rem);
    line-height: 1.65;
}

.dhp-hero-lead strong { color: #fff; }

/* due percorsi nell'hero: piccolo host / property manager */
.dhp-paths {
    display: grid;
    gap: .75rem;
    margin: 1.6rem 0 0;
    max-width: 40rem;
}

.dhp-path {
    display: grid;
    gap: .3rem;
    padding: 1rem 1.15rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    font-size: .93rem;
    line-height: 1.5;
    text-decoration: none;
    transition: transform .3s var(--dhp-ease), background-color .3s, border-color .3s;
}

.dhp-path:hover {
    transform: translateY(-3px);
    border-color: rgba(243, 199, 127, .55);
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .88);
}

.dhp-path strong {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.3;
}

.dhp-path-tag {
    justify-self: start;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.dhp-path.is-pro { border-color: rgba(243, 199, 127, .35); }
.dhp-path.is-pro .dhp-path-tag { background: var(--dhp-gold); color: #1c1406; }

.dhp-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
}

.dhp-hero-proof li::before {
    content: "✓";
    margin-right: .4rem;
    color: var(--dhp-gold-soft);
    font-weight: 800;
}

.dhp-hero-proof a {
    color: #fff;
    font-weight: 700;
}

.dhp-hero-media {
    position: relative;
    justify-self: center;
    width: min(100%, 300px);
}

/* cornice telefono: i video sono verticali 9:16 */
.dhp-phone {
    position: relative;
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    padding: .55rem;
    border-radius: 2.4rem;
    background: linear-gradient(145deg, #1b2a26, #050d0b);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08) inset,
        0 30px 60px -20px rgba(4, 25, 21, .55),
        0 18px 36px -18px rgba(0, 0, 0, .5);
}

/* Livello proprio per le cornici che si muovono: il video dentro non viene ridisegnato con la pagina. */
.dhp-phone-hero,
.dhp-feature-media .dhp-phone,
.dhp-phone-sm { will-change: transform; }

.dhp-phone-hero {
    transform: rotate(-2deg);
    transition: transform .6s var(--dhp-ease);
}

.dhp-hero-media:hover .dhp-phone-hero { transform: rotate(0deg) scale(1.02); }

.dhp-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.9rem;
    background: var(--dhp-green-deep);
}

.dhp-float {
    position: absolute;
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: .65rem .9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    color: var(--dhp-ink);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .4);
    font-size: .82rem;
    line-height: 1.25;
    white-space: nowrap;
    animation: dhp-float 6s ease-in-out infinite;
}

.dhp-float strong { display: block; font-weight: 800; }
.dhp-float small { color: var(--dhp-muted); }
.dhp-float-a { top: 44%; left: -22%; }
.dhp-float-b { bottom: 6%; right: -18%; animation-delay: -3s; }

.dhp-float-dot {
    flex: 0 0 auto;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
}

.dhp-float-dot.is-green { background: #22a06b; box-shadow: 0 0 0 4px rgba(34, 160, 107, .18); }
.dhp-float-dot.is-gold { background: var(--dhp-gold); box-shadow: 0 0 0 4px rgba(217, 155, 69, .2); }

@keyframes dhp-float {
    50% { transform: translateY(-8px); }
}

/* ---------- striscia integrazioni ---------- */
.dhp-strip {
    border-bottom: 1px solid var(--dhp-line);
    background: #fff;
}

.dhp-strip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    align-items: center;
    justify-content: center;
    padding-block: 1.1rem;
}

.dhp-strip-label {
    color: var(--dhp-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dhp-strip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.75rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhp-strip-list li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--dhp-green-ink);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.dhp-strip-list img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .dhp-strip-list { gap: .6rem 1.1rem; }
    .dhp-strip-list li { font-size: .84rem; }
    .dhp-strip-list img { width: 18px; height: 18px; }
}

/* ---------- prima / dopo ---------- */
.dhp-compare {
    display: grid;
    gap: 1rem;
}

.dhp-compare-col {
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--dhp-radius);
    border: 1px solid var(--dhp-line);
}

.dhp-compare-col h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.dhp-compare-col ul {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhp-compare-col li {
    position: relative;
    padding-left: 1.9rem;
    line-height: 1.5;
}

.dhp-compare-col li::before {
    position: absolute;
    left: 0;
    top: .05rem;
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
}

.dhp-compare-col.is-before {
    background: #fff;
    color: var(--dhp-muted);
}

.dhp-compare-col.is-before li::before {
    content: "✕";
    background: #f6e3e1;
    color: #a23c2f;
}

.dhp-compare-col.is-after {
    background: linear-gradient(160deg, var(--dhp-green), var(--dhp-green-ink));
    color: #fff;
    box-shadow: 0 24px 50px -24px rgba(10, 64, 56, .6);
}

.dhp-compare-col.is-after li::before {
    content: "✓";
    background: var(--dhp-gold);
    color: #1c1406;
}

/* ---------- funzioni con video ---------- */
.dhp-feature {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.dhp-feature + .dhp-feature { border-top: 1px dashed var(--dhp-line); }

.dhp-feature-copy h3 {
    margin: 0 0 .9rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.dhp-feature-copy p {
    margin: 0 0 1.2rem;
    color: var(--dhp-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.dhp-step {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--dhp-gold);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.dhp-feature-media .dhp-phone {
    max-width: 280px;
    transition: transform .5s var(--dhp-ease), box-shadow .5s var(--dhp-ease);
}

.dhp-feature-media:hover .dhp-phone {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08) inset,
        0 40px 70px -24px rgba(4, 25, 21, .55);
}

.dhp-feature-more { margin: 1.2rem 0 0; }

/* Schermate dimostrative nelle stesse cornici dei reel della home. */
.dhp-phone-scene {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.9rem;
    font-size: .8rem;
}

.dhp-phone-scene h4 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
}

.dhp-scene-kicker {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.dhp-scene-foot {
    margin-top: auto;
    padding: .7rem;
    text-align: center;
    font-size: .65rem;
}

.dhp-tax-scene {
    padding: 1.55rem 1.1rem .4rem;
    color: #123c33;
    background: #f7faf8;
}

.dhp-tax-scene .dhp-scene-brand {
    margin-bottom: 2.5rem;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f5b4f;
}

.dhp-tax-scene .dhp-scene-kicker { color: #598075; }
.dhp-tax-scene h4 { margin: .45rem 0 1.2rem; }

.dhp-scene-panel {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem;
    border: 1px solid #d7e5df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 66, 56, .07);
}

.dhp-scene-panel span { font-weight: 700; }
.dhp-scene-panel small { color: #657b73; font-size: .67rem; }
.dhp-scene-panel strong { margin-top: .65rem; font-size: 2rem; line-height: 1; }

.dhp-scene-payment,
.dhp-brand-scene-cta {
    margin-top: 1.25rem;
    padding: .8rem;
    border-radius: 7px;
    background: #0f5b4f;
    color: #fff;
    text-align: center;
    font-weight: 800;
}

.dhp-scene-payment { animation: dhp-payment-pulse 5s ease-in-out infinite; }

.dhp-scene-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.5rem;
    margin-top: .7rem;
    color: #11664f;
    font-size: .75rem;
    font-weight: 800;
    animation: dhp-payment-confirm 5s ease-in-out infinite;
}

.dhp-scene-confirm span {
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #d7f2e4;
}

.dhp-brand-scene { color: #242039; background: #faf9fc; }

.dhp-brand-scene-top {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 4.5rem;
    padding: 1rem;
    color: #fff;
    background: #7a1f5c;
}

.dhp-brand-mark {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 800;
}

.dhp-brand-scene-body { padding: 2rem 1rem 0; }
.dhp-brand-scene .dhp-scene-kicker { color: #7a1f5c; }
.dhp-brand-scene h4 { margin: .6rem 0; }
.dhp-brand-scene p { margin: 0 0 1.3rem; color: #665e6a; line-height: 1.4; }

.dhp-brand-progress { display: flex; gap: .3rem; margin-bottom: 1.3rem; }
.dhp-brand-progress span { height: .3rem; flex: 1; border-radius: 3px; background: #e5d9e1; }
.dhp-brand-progress span:first-child { background: #7a1f5c; animation: dhp-brand-progress 4s ease-in-out infinite; }

.dhp-brand-field {
    margin-bottom: .65rem;
    padding: .75rem;
    border: 1px solid #e0d8e0;
    border-radius: 7px;
    background: #fff;
    color: #716b73;
}

.dhp-brand-scene-cta { margin-top: 1rem; background: #7a1f5c; }
.dhp-brand-scene .dhp-scene-foot { color: #716b73; }

@keyframes dhp-payment-pulse {
    0%, 30%, 100% { transform: scale(1); }
    40% { transform: scale(.97); }
}

@keyframes dhp-payment-confirm {
    0%, 35%, 95%, 100% { opacity: 0; transform: translateY(.4rem); }
    45%, 85% { opacity: 1; transform: translateY(0); }
}

@keyframes dhp-brand-progress {
    0%, 20%, 100% { background: #7a1f5c; }
    40%, 80% { background: #b75a92; }
}

.dhp-pm-more { margin: 1.25rem 0 0; }
.dhp-pm-more a { color: var(--dhp-gold-soft); font-weight: 800; }
.dhp-pm-more a::after { content: " →"; }

.dhp-checks {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhp-checks li {
    position: relative;
    padding-left: 1.7rem;
    line-height: 1.5;
}

.dhp-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5.3-5.3L12.8 4.8z'/%3E%3C/svg%3E") center / .8rem no-repeat,
        var(--dhp-green);
}

/* ---------- selettore host / property manager ---------- */
.dhp-audience {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1.75rem;
    padding: .3rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dhp-line);
    box-shadow: 0 10px 26px -18px rgba(10, 64, 56, .5);
}

.dhp-audience[hidden] { display: none; }

.dhp-audience button {
    position: relative;
    z-index: 1;
    padding: .65rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--dhp-muted);
    font: inherit;
    font-weight: 800;
    font-size: .92rem;
    cursor: pointer;
    transition: color .3s;
}

.dhp-audience button[aria-selected="true"] { color: #fff; }
.dhp-audience button:focus-visible { outline: 3px solid var(--dhp-gold); outline-offset: 2px; }

.dhp-audience-pill {
    position: absolute;
    top: .3rem;
    bottom: .3rem;
    left: .3rem;
    width: calc(50% - .3rem);
    border-radius: 999px;
    background: var(--dhp-green);
    transition: transform .45s var(--dhp-ease);
}

.dhp-audience[data-active="pm"] .dhp-audience-pill { transform: translateX(100%); }

.dhp-compare[hidden] { display: none; }
.dhp-compare.is-entering .dhp-compare-col { animation: dhp-swap .5s var(--dhp-ease) both; }
.dhp-compare.is-entering .dhp-compare-col + .dhp-compare-col { animation-delay: .08s; }

@keyframes dhp-swap {
    from { opacity: 0; transform: translateY(14px); }
}

/* ---------- property manager ---------- */
.dhp-pm {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(217, 155, 69, .2), transparent 26rem),
        radial-gradient(circle at 0% 100%, rgba(46, 140, 118, .3), transparent 30rem),
        linear-gradient(160deg, var(--dhp-green-ink), var(--dhp-green-deep));
}

.dhp-pm .dhp-title { color: #fff; }
.dhp-pm .dhp-lead { color: rgba(255, 255, 255, .78); }

.dhp-pm-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

.dhp-pains {
    display: grid;
    gap: .9rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: pain;
}

.dhp-pain {
    position: relative;
    padding: 1.15rem 1.25rem 1.15rem 3.4rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    counter-increment: pain;
    transition: background-color .3s, border-color .3s, transform .35s var(--dhp-ease);
}

.dhp-pain:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(243, 199, 127, .45);
    transform: translateX(4px);
}

.dhp-pain::before {
    content: counter(pain, decimal-leading-zero);
    position: absolute;
    left: 1.1rem;
    top: 1.15rem;
    color: var(--dhp-gold-soft);
    font-weight: 800;
    font-size: .95rem;
}

.dhp-pain-q {
    margin: 0 0 .35rem;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.35;
}

.dhp-pain-a {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    line-height: 1.6;
}

.dhp-pm-media {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
}

.dhp-pm-media .dhp-phone { max-width: 300px; }

.dhp-pm-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    width: 100%;
    max-width: 360px;
    margin: 0;
}

.dhp-pm-stats div {
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.dhp-pm-stats dt {
    color: var(--dhp-gold-soft);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.dhp-pm-stats dd {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    line-height: 1.4;
}

/* ---------- operatività ---------- */
.dhp-ops-wrap {
    background:
        radial-gradient(circle at 0% 0%, rgba(217, 155, 69, .12), transparent 26rem),
        var(--dhp-cream);
    border-bottom: 1px solid var(--dhp-line);
}

.dhp-ops {
    display: grid;
    gap: 1rem;
}

.dhp-op {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: var(--dhp-radius);
    border: 1px solid var(--dhp-line);
    background: #fff;
    transition: transform .35s var(--dhp-ease), box-shadow .35s var(--dhp-ease), border-color .35s;
}

.dhp-op:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 91, 79, .25);
    box-shadow: 0 26px 50px -30px rgba(10, 64, 56, .5);
}

.dhp-op h3 {
    margin: .7rem 0 .5rem;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.dhp-op p {
    margin: 0 0 1rem;
    color: var(--dhp-muted);
    line-height: 1.6;
}

.dhp-op-tag {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(15, 91, 79, .08);
    color: var(--dhp-green);
    font-size: .78rem;
    font-weight: 800;
}

.dhp-op p.dhp-op-pain {
    padding-left: .8rem;
    border-left: 3px solid var(--dhp-gold);
    color: var(--dhp-ink);
    font-style: italic;
}

.dhp-op-wide {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    background:
        radial-gradient(circle at 100% 100%, rgba(15, 91, 79, .1), transparent 18rem),
        #fff;
}

.dhp-op-media {
    display: flex;
    justify-content: center;
}

.dhp-phone-sm {
    max-width: 210px;
    padding: .45rem;
    border-radius: 2rem;
}

.dhp-phone-sm .dhp-video { border-radius: 1.6rem; }
.dhp-op-wide:hover .dhp-phone-sm { transform: rotate(-2deg) translateY(-4px); }
.dhp-phone-sm { transition: transform .5s var(--dhp-ease); }

.dhp-roles {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhp-roles li {
    display: grid;
    gap: .1rem;
    padding: .7rem .9rem;
    border-radius: .9rem;
    background: var(--dhp-cream);
    border: 1px solid var(--dhp-line);
    transition: transform .3s var(--dhp-ease), border-color .3s;
}

.dhp-roles li:hover { transform: translateX(4px); border-color: rgba(15, 91, 79, .3); }
.dhp-roles strong { font-weight: 800; }
.dhp-roles span { color: var(--dhp-muted); font-size: .88rem; }

/* contratto: i segnaposto si riempiono quando la card entra nello schermo */
.dhp-contract {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--dhp-cream);
    border: 1px dashed rgba(15, 91, 79, .3);
    font-size: .9rem;
    line-height: 1.9;
}

.dhp-contract p { margin: 0 0 .6rem; color: var(--dhp-ink); }

.dhp-contract-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.dhp-contract-tokens code {
    padding: .1rem .4rem;
    border-radius: .4rem;
    background: rgba(217, 155, 69, .18);
    color: #8a5a17;
    font-size: .74rem;
}

.dhp-fill {
    padding: .05rem .35rem;
    border-radius: .4rem;
    background: rgba(217, 155, 69, .25);
    color: transparent;
    text-shadow: 0 0 6px rgba(20, 35, 30, .45);
    white-space: nowrap;
    transition: background-color .5s var(--dhp-ease), color .5s var(--dhp-ease), text-shadow .5s var(--dhp-ease);
    transition-delay: calc(.4s + var(--i) * .35s);
}

.dhp-contract-ok {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    color: #1d7a52;
    font-weight: 800;
    opacity: 0;
    transition: opacity .5s 1.6s;
}

.is-visible .dhp-fill,
.dhp:not(.dhp-js) .dhp-fill {
    background: rgba(15, 91, 79, .12);
    color: var(--dhp-green-ink);
    text-shadow: none;
}

.is-visible .dhp-contract-ok,
.dhp:not(.dhp-js) .dhp-contract-ok { opacity: 1; }

.dhp-toasts {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dhp-toasts li {
    display: flex;
    gap: .7rem;
    align-items: center;
    padding: .65rem .8rem;
    border-radius: .9rem;
    background: #fff;
    border: 1px solid var(--dhp-line);
    box-shadow: 0 10px 22px -16px rgba(10, 64, 56, .5);
    font-size: .84rem;
    line-height: 1.3;
    color: var(--dhp-muted);
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .5s var(--dhp-ease), transform .5s var(--dhp-ease);
    transition-delay: calc(.3s + var(--i) * .3s);
}

.dhp-toasts b { display: block; color: var(--dhp-ink); }

.dhp-toasts i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: .6rem;
    background: rgba(15, 91, 79, .1);
    color: var(--dhp-green);
}

.dhp-toasts li:last-child i { background: rgba(217, 155, 69, .18); color: #8a5a17; }
.is-visible .dhp-toasts li,
.dhp:not(.dhp-js) .dhp-toasts li { opacity: 1; transform: none; }

/* ---------- prezzi ---------- */
.dhp-pricing {
    display: grid;
    gap: 1.25rem;
    max-width: 52rem;
    margin-inline: auto;
}

.dhp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 3vw, 2.2rem);
    border-radius: var(--dhp-radius);
    border: 1px solid var(--dhp-line);
    background: #fff;
    transition: transform .35s var(--dhp-ease), box-shadow .35s var(--dhp-ease);
}

.dhp-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -28px rgba(10, 64, 56, .45);
}

.dhp-plan h3 {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.dhp-plan-desc {
    margin: 0 0 1.25rem;
    color: var(--dhp-muted);
}

.dhp-price {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .5rem;
    align-items: baseline;
    margin: 0 0 .35rem;
}

.dhp-price-num {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.dhp-price-small,
.dhp-price-unit {
    color: var(--dhp-muted);
    font-weight: 700;
}

/* "+ IVA" accanto ai prezzi: piccolo e meno contrastato del numero. */
.dh-iva {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    opacity: .72;
    white-space: nowrap;
}

.dhp-price-note {
    margin: 0 0 1.4rem;
    color: var(--dhp-muted);
    font-size: .88rem;
}

.dhp-plan .dhp-checks { margin-bottom: 1.75rem; }
.dhp-plan .dhp-btn { margin-top: auto; }

.dhp-plan.is-featured {
    border: 2px solid var(--dhp-green);
    background: linear-gradient(180deg, #f2f8f5, #fff 40%);
    box-shadow: 0 30px 60px -32px rgba(10, 64, 56, .55);
}

.dhp-plan-badge {
    position: absolute;
    top: -.85rem;
    right: 1.5rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: var(--dhp-gold);
    color: #1c1406;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dhp-pricing-foot {
    margin: 1.75rem 0 0;
    text-align: center;
    color: var(--dhp-muted);
}

.dhp-pricing-foot a { color: var(--dhp-green); font-weight: 800; }

/* ---------- FAQ ---------- */
/* ---------- confronto dettagliato dei piani (sezione prezzi) ---------- */
.dhp-compare-plans {
    max-width: 52rem;
    margin: 2rem auto 0;
    border: 1px solid var(--dhp-line);
    border-radius: 1rem;
    background: #fff;
}

.dhp-compare-plans summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 800;
    color: var(--dhp-green);
    list-style: none;
}

.dhp-compare-plans summary::-webkit-details-marker { display: none; }
.dhp-compare-plans summary::after { content: "+"; font-size: 1.2rem; transition: transform .3s var(--dhp-ease); }
.dhp-compare-plans[open] summary::after { transform: rotate(45deg); }

.dhp-compare-plans-scroll { overflow-x: auto; padding: 0 .75rem .75rem; }

.dhp-compare-plans-table { width: 100%; border-collapse: collapse; font-size: .95rem; }

.dhp-compare-plans-table th,
.dhp-compare-plans-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--dhp-line); text-align: center; vertical-align: middle; }

.dhp-compare-plans-table thead th { position: sticky; top: 0; background: #fff; font-weight: 800; }
.dhp-compare-plans-table th[scope="row"] { text-align: left; font-weight: 600; color: var(--dhp-ink, inherit); }
.dhp-compare-plans-table th:first-child { width: 64%; }

.dhp-compare-plans-group th {
    padding-top: 1.1rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dhp-gold);
}

.dhp-compare-plans-table .is-featured { background: rgba(15, 91, 79, .05); }
.dhp-compare-plans-table .bi-check-lg { color: var(--dhp-green); font-size: 1.15rem; }
.dhp-compare-no { color: var(--dhp-muted); }

@media (max-width: 575.98px) {
    .dhp-compare-plans-scroll { padding: 0 .35rem .5rem; }
    .dhp-compare-plans-table { table-layout: fixed; font-size: .85rem; }
    .dhp-compare-plans-table th,
    .dhp-compare-plans-table td { padding: .5rem .3rem; }
    .dhp-compare-plans-table th:first-child { width: auto; }
    .dhp-compare-plans-table thead th:not(:first-child) { width: 4.6rem; font-size: .72rem; }
}

.dhp-faq-wrap { padding-top: 0; }

.dhp-faq {
    display: grid;
    gap: .75rem;
    max-width: 52rem;
}

.dhp-faq details {
    border-radius: 1rem;
    border: 1px solid var(--dhp-line);
    background: #fff;
    transition: border-color .3s, box-shadow .3s;
}

.dhp-faq details[open] {
    border-color: rgba(15, 91, 79, .3);
    box-shadow: 0 14px 30px -22px rgba(10, 64, 56, .45);
}

.dhp-faq summary {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

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

.dhp-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(15, 91, 79, .1);
    color: var(--dhp-green);
    font-size: 1.2rem;
    transition: transform .3s var(--dhp-ease);
}

.dhp-faq details[open] summary::after { transform: rotate(45deg); }

.dhp-faq details p {
    margin: 0;
    padding: 0 1.25rem 1.2rem;
    color: var(--dhp-muted);
    line-height: 1.6;
}

/* ---------- blog ---------- */
.dhp-blog {
    display: grid;
    gap: 1rem;
}

.dhp-blog-card {
    overflow: hidden;
    border-radius: var(--dhp-radius);
    border: 1px solid var(--dhp-line);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .35s var(--dhp-ease), box-shadow .35s var(--dhp-ease);
}

.dhp-blog-card:hover {
    color: inherit;
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -28px rgba(10, 64, 56, .5);
}

.dhp-blog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.dhp-blog-body { padding: 1.2rem 1.3rem 1.4rem; }

.dhp-blog-cat {
    color: var(--dhp-green);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dhp-blog-body h3 {
    margin: .4rem 0 .5rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.dhp-blog-body p {
    margin: 0;
    color: var(--dhp-muted);
    font-size: .95rem;
    line-height: 1.55;
}

/* ---------- CTA finale ---------- */
.dhp-final {
    margin-bottom: -1rem;
    padding-block: clamp(4rem, 9vw, 6.5rem);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 120%, rgba(217, 155, 69, .35), transparent 30rem),
        linear-gradient(160deg, var(--dhp-green), var(--dhp-green-deep));
}

.dhp-final h2 {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.dhp-final p {
    margin: 0 auto 2rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, .8);
    font-size: 1.1rem;
}

/* ---------- barra CTA mobile ---------- */
.dhp-sticky {
    position: fixed;
    inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom)) .75rem;
    z-index: 1020;
    display: flex;
    gap: .5rem;
    padding: .5rem;
    border-radius: 999px;
    /* niente backdrop-filter: la sfocatura sopra i video costringe a ridisegnarli a ogni scorrimento */
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 40px -12px rgba(4, 25, 21, .45);
    transform: translateY(160%);
    transition: transform .4s var(--dhp-ease);
}

.dhp-sticky.is-visible { transform: translateY(0); }
.dhp-sticky .dhp-btn { flex: 1; min-height: 2.75rem; padding-block: .6rem; }

/* ---------- animazioni allo scroll ---------- */
.dhp-js .dhp-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--dhp-ease), transform .8s var(--dhp-ease);
}

.dhp-js .dhp-reveal[data-delay="1"] { transition-delay: .12s; }
.dhp-js .dhp-reveal[data-delay="2"] { transition-delay: .24s; }

.dhp-js .dhp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- breakpoint ---------- */
/* Home su telefono e tablet: il reel del check-in viene prima dei testi, ed e' visibile subito. */
@media (max-width: 991.98px) {
    .dhp-hero-media-first { padding-top: 1.5rem; }
    .dhp-hero-media-first .dhp-hero-grid { gap: 1.75rem; }
    .dhp-hero-media-first .dhp-hero-media { order: -1; width: min(64%, 260px); }
    .dhp-js .dhp-hero-media-first .dhp-hero-media.dhp-reveal { transition-delay: 0s; }
}

@media (max-width: 575.98px) {
    .dhp { margin-top: -1rem; }
    .dhp-cta-row .dhp-btn { flex: 1 1 100%; }
    .dhp-float-a { display: none; }
    .dhp-float { font-size: .74rem; padding: .5rem .7rem; }
    .dhp-float-b { right: -8%; }
    .dhp-hero-media { width: min(78%, 280px); }
    .dhp-final { padding-bottom: 7rem; }
}

@media (min-width: 768px) {
    .dhp-compare,
    .dhp-pricing { grid-template-columns: 1fr 1fr; }
    .dhp-ops,
    .dhp-blog { grid-template-columns: repeat(2, 1fr); }
    .dhp-op-wide { grid-column: 1 / -1; grid-template-columns: 1.3fr .7fr; }
    .dhp-op-wide.is-reversed { grid-template-columns: .7fr 1.3fr; }
    .dhp-op-wide.is-reversed .dhp-op-copy { order: 2; }
    .dhp-sticky { display: none; }
}

@media (min-width: 992px) {
    .dhp-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
    .dhp-hero-media { width: 320px; }
    .dhp-feature { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
    .dhp-paths { grid-template-columns: 1fr 1fr; }
    .dhp-feature.is-reversed .dhp-feature-copy { order: 2; }
    .dhp-pm-grid { grid-template-columns: 1.25fr .75fr; gap: 4rem; }
    .dhp-pm-media { position: sticky; top: 6rem; }
    .dhp-ops,
    .dhp-blog { grid-template-columns: repeat(3, 1fr); }
    .dhp-op-wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
    .dhp *,
    .dhp *::before,
    .dhp *::after {
        animation: none !important;
        transition: none !important;
    }
    .dhp-js .dhp-reveal { opacity: 1; transform: none; }
    .dhp-phone-hero { transform: none; }
    .dhp-fill { background: rgba(15, 91, 79, .12); color: var(--dhp-green-ink); text-shadow: none; }
    .dhp-contract-ok,
    .dhp-toasts li { opacity: 1 !important; transform: none !important; }
}
