@media (max-width: 992px) {
    .marpe-hero .container {
        grid-template-columns: 1fr !important;
        align-items: start !important;
        gap: 1.5rem !important;
    }

    .marpe-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
        align-items: flex-start !important;
    }

    .marpe-hero-visual {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: #f5f6fa !important;
        border: 1px solid #e6e6e6 !important;
        z-index: 1;
        overflow: hidden !important;
    }

    .marpe-hero-visual video {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 320px !important;
        min-height: 220px !important;
        object-fit: cover !important;
        display: block !important;
    }

    :is(
        body[data-product="sleep-apnea"],
        body[data-product="f1000"],
        body[data-product="tads"],
        body[data-product="pop-screws"],
        body[data-product="interactive-sl"]
    ) .marpe-hero-content {
        margin-bottom: 0 !important;
    }

    :is(
        body[data-product="sleep-apnea"],
        body[data-product="f1000"],
        body[data-product="tads"],
        body[data-product="pop-screws"],
        body[data-product="interactive-sl"]
    ) .marpe-hero-visual {
        height: clamp(270px, 72vw, 360px) !important;
        background: #fff !important;
        border: 0 !important;
    }

    :is(
        body[data-product="sleep-apnea"],
        body[data-product="f1000"],
        body[data-product="tads"],
        body[data-product="pop-screws"],
        body[data-product="interactive-sl"]
    ) .marpe-hero-visual img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    body[data-product="f1000"] .f1000-hero-subtitle {
        font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    }
}

@layer page-style {
    :root {
        --prod-blue: #214ecd;
        --prod-blue-hover: #163caa;
        --prod-text: #666;
        --prod-bg: #fff;
    }

    /* ======================= Base & Reset ====================== */

    body {
        background-color: #fff;
        color: var(--prod-text);
    }

    a {
        text-decoration: none;
    }

    /* ================== Hero Section (Marpe) - Refactored to match products.css =================== */

    .marpe-hero {
        display: block;
        width: 100%;
        background-color: #fff !important;
        position: relative;
        z-index: 5;
        overflow: hidden;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .marpe-hero .container {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
        gap: 2rem;
        align-items: center !important;
        width: 100%;
        max-width: var(--container, 1480px);
        margin: 0 auto;
        padding: 0 20px;
        overflow: visible;
        position: relative;
    }

    .marpe-hero-content {
        z-index: 20;
        align-self: center;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        text-align: left;
        max-width: 760px;
    }

    .marpe-hero-header {
        margin-bottom: 1rem;
    }

    .marpe-hero-header h1 {
        font-family: var(--font-primary);
        font-size: var(--fs-h1);
        line-height: var(--lh-h1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        color: var(--prod-blue) !important;
        letter-spacing: 0;
    }

    body[data-product="f1000"] .f1000-title-plus {
        font-weight: 400;
    }

    body[data-product="leaf-expander"] .leaf-title-series {
        font-weight: 300 !important;
    }

    body[data-product="leaf-expander"] :is(.marpe-desc, .longform-item__body, .feature-card p) strong {
        color: #121212 !important;
        font-weight: 700;
    }

    body[data-product="f1000"] .f1000-hero-subtitle {
        display: inline-block;
        font-size: var(--fs-h3);
        line-height: var(--lh-h3);
    }

    .marpe-desc {
        line-height: 1.7;
        max-width: 720px;
        margin-bottom: 1.5rem;
        color: #666;
        font-weight: 400;
        margin-right: 0;
    }

    .marpe-hero-visual {
        position: relative;
        width: 100%;
        height: 100%;
        /* Width matching prod page */
        display: flex;
        justify-content: flex-end;
        align-items: stretch;
        padding: 0;
        background: #f5f6fa;
        visibility: visible;
        opacity: 1;
        min-height: 360px;
        overflow: hidden;
        border: 1px solid #e6e6e6;
    }

    .marpe-hero-visual.marpe-hero-visual--image {
        background: transparent;
        border: none;
    }

    .marpe-hero-visual video,
    .marpe-hero-visual img,
    .marpe-hero-visual #hero-media {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right;
        transform: none;
        max-width: 100%;
        margin-bottom: 0;
        border-radius: 0;
    }

    .marpe-hero-visual #hero-media {
        display: flex;
        align-items: stretch;
        justify-content: stretch;
    }

    .marpe-hero-visual #hero-media > * {
        width: 100%;
        height: 100%;
    }

    .marpe-hero-visual.marpe-hero-visual--image img {
        object-fit: contain;
        object-position: right center;
    }

    :is(body[data-product="sleep-apnea"], body[data-product="f1000"], body[data-product="tads"]) .marpe-hero .container {
        grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
        gap: clamp(2rem, 4vw, 4rem);
    }

    :is(body[data-product="sleep-apnea"], body[data-product="f1000"], body[data-product="tads"]) .marpe-hero-content {
        max-width: 620px;
    }

    :is(body[data-product="sleep-apnea"], body[data-product="f1000"], body[data-product="tads"]) .marpe-hero-visual,
    :is(body[data-product="sleep-apnea"], body[data-product="f1000"], body[data-product="tads"]) .marpe-hero-visual #hero-media {
        align-items: center;
        justify-content: center;
    }

    :is(body[data-product="sleep-apnea"], body[data-product="f1000"], body[data-product="tads"]) .marpe-hero-visual.marpe-hero-visual--image img {
        object-position: center;
        transform: scale(1.08);
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero::after {
        position: absolute;
        z-index: 2;
        inset: 0;
        background: linear-gradient(
            90deg,
            #fff 0%,
            rgba(255, 255, 255, 0.98) 24%,
            rgba(255, 255, 255, 0.86) 40%,
            rgba(255, 255, 255, 0) 70%
        );
        content: "";
        pointer-events: none;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero .container {
        position: static;
        display: flex;
        align-items: center !important;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-content {
        z-index: 10;
        max-width: 60%;
        padding: 2rem;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-header h1 {
        display: block;
        font-size: var(--fs-h1);
        line-height: var(--lh-h1);
        background: linear-gradient(to right, #1d4ed8, #14b8a6, #84cc16);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-header h1 sup {
        font-size: var(--fs-h4);
        vertical-align: super;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .cadcam-title-main {
        font-weight: 700;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .cadcam-title-sub {
        font-weight: 400;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-visual.marpe-hero-visual--video {
        position: absolute;
        top: 0;
        right: -2%;
        width: 80%;
        height: 100%;
        min-height: 0;
        border: 0;
        background: transparent;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-visual.marpe-hero-visual--video video {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 992px) {
    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero .container {
        position: static !important;
        display: flex !important;
        align-items: center !important;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-content {
        width: auto !important;
        max-width: 60% !important;
        margin: 0 !important;
        padding: 2rem !important;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-header h1 {
        font-size: var(--fs-h1);
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-visual.marpe-hero-visual--video {
        position: absolute !important;
        top: 0;
        right: -2%;
        width: 80% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-visual.marpe-hero-visual--video video {
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
    }
}

@media (max-width: 768px) {
    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero::after {
        display: none;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero .container {
        display: flex;
        max-width: none;
        flex-direction: column;
        padding: 0;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-visual.marpe-hero-visual--video {
        position: relative !important;
        right: 0;
        width: 100% !important;
        height: 50vh !important;
        order: -1;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        align-items: center !important;
        padding: 2rem 1rem !important;
        text-align: center;
    }

    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-header h1 {
        font-size: var(--fs-h1);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :is(body[data-product="cad-cam"], body[data-product="a0640"]) .marpe-hero-header h1 {
        font-size: var(--fs-h1);
    }
}

/* Leaf Expander hero: mirrors the dedicated Leone America product page. */
body[data-product="leaf-expander"] .marpe-hero {
    display: flex;
    align-items: center;
}

body[data-product="leaf-expander"] .marpe-hero .container {
    display: flex;
    align-items: center !important;
    position: relative;
}

body[data-product="leaf-expander"] .marpe-hero-content {
    width: 50%;
    max-width: 50%;
    padding: 2rem;
    margin: 0;
    z-index: 10;
}

body[data-product="leaf-expander"] .marpe-hero-header {
    margin: 0;
}

body[data-product="leaf-expander"] .marpe-hero-header h1 {
    display: block;
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: 0;
}

body[data-product="leaf-expander"] .marpe-hero-header h1 span {
    font-weight: 600;
}

body[data-product="leaf-expander"] .marpe-hero-header h1 sup {
    font-size: var(--fs-h4);
    vertical-align: super;
}

body[data-product="leaf-expander"] .marpe-hero-visual {
    position: absolute;
    top: 0;
    right: -5vw;
    width: 70vw;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body[data-product="leaf-expander"] .marpe-hero-visual video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

@media (max-width: 1024px) {
    body[data-product="leaf-expander"] .marpe-hero-header h1 {
        font-size: var(--fs-h2);
    }
}

@media (max-width: 768px) {
    body[data-product="leaf-expander"] .marpe-hero .container {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        padding: 0;
    }

    body[data-product="leaf-expander"] .marpe-hero-visual {
        position: relative !important;
        order: -1;
        right: auto;
        width: 100% !important;
        height: 50vh !important;
        min-height: 300px !important;
        border: 0 !important;
        background: transparent !important;
    }

    body[data-product="leaf-expander"] .marpe-hero-visual video {
        max-height: none !important;
        min-height: 0 !important;
    }

    body[data-product="leaf-expander"] .marpe-hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1rem;
        margin: 0 !important;
        align-items: center !important;
        text-align: center;
    }

    body[data-product="leaf-expander"] .marpe-hero-header h1 {
        font-size: var(--fs-h2);
    }
}

@media (max-width: 480px) {
    body[data-product="leaf-expander"] .marpe-hero-header h1 {
        font-size: 2rem;
    }
}

/* ===================== Products Grid ===================== */

.section-products {
    padding: 0 0 var(--site-section-gap);
    background-color: #fff;
}

.category-hero-video {
    max-height: 80vh;
}

.category-section-hidden {
    display: none;
}

/* =================== Features Section (Overlay) =================== */

.feature-full-width {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: stretch;
    overflow: visible;
    /* Allow card to protrude */
    margin-bottom: 220px;
    /* Space for the protruding card */
    padding: 0;
}

:is(body[data-product="f1000"], body[data-product="a0640"]) .feature-full-width {
    /* Compensa il titolo sporgente e mantiene il gap visivo uguale alle altre sezioni. */
    margin-top: 56px;
    margin-bottom: calc(var(--site-section-gap) + 140px);
}

.feature-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.feature-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.feature-content-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    justify-content: space-between;
    /* Valid for mobile column layout */
}

.feature-title-col {
    align-self: flex-start;
}

.feature-title-col h2 {
    background-color: #fff;
    display: inline-block;
    padding: 1.75rem 2.5rem;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #121212;
    line-height: 1.1;
    max-width: 500px;
    font-weight: 700;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: -10%;
}

.category-feature-title {
    color: var(--prod-blue);
}

.feature-text-col {
    width: 100%;
}

.text-card-white {
    display: flex;
    gap: 50px;
    background-color: #fff;
    padding: 2.5rem;
    max-width: 920px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    transform: translateY(50%);
    /* Center on the bottom edge */
    border: 1px solid #e6e6e6;
}

.text-card-white .tc-col {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
}

.text-card-white .tc-col .btn {
    align-self: flex-start;
}

.text-card-white h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

body[data-product="f1000"] .text-card-white h3 {
    font-size: 1.4rem;
}

.text-card-white p {
    line-height: 1.5;
    color: #555;
    margin-bottom: 0.8rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.info-box-subtitle {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #222;
}

.info-box-subtitle--muted {
    font-size: 0.8em;
    font-weight: 300;
}

@media (max-width: 768px) {
    .feature-full-width,
    :is(body[data-product="f1000"], body[data-product="a0640"]) .feature-full-width {
        height: auto;
        min-height: 0;
        margin-top: 0;
        margin-bottom: var(--site-section-gap);
        padding: 0;
    }

    .feature-bg {
        inset: 0 0 auto;
        height: 320px;
    }

    .page-categoria .feature-content-overlay,
    :is(body[data-product="f1000"], body[data-product="a0640"]) .feature-content-overlay {
        height: auto;
        min-height: 0;
        padding-top: 230px;
    }

    .feature-title-col h2,
    :is(body[data-product="f1000"], body[data-product="a0640"]) .feature-title-col h2 {
        top: 16px;
        left: var(--page-gutter, 16px);
        max-width: calc(100% - (var(--page-gutter, 16px) * 2));
        padding: 1.25rem 1.5rem;
    }

    .text-card-white,
    :is(body[data-product="f1000"], body[data-product="a0640"]) .text-card-white {
        position: relative;
        max-width: 100%;
        margin-left: 0;
        transform: none;
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .text-card-white .tc-col {
        width: 100%;
    }
}



/* ========================================= Category Themes (Red for Implantologia, etc.) ========================================= */

/* ========================================= 2. Features Grid (White) ========================================= */
.section-temp-features {
    padding-top: var(--site-section-gap);
    padding-bottom: clamp(2rem, 3vw, 3rem);
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-slider {
    overflow: hidden;
}

.feature-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-slider-controls[hidden] {
    display: none;
}

.feature-slider-button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid #dfe6f2;
    border-radius: 0;
    background: #fff;
    color: var(--page-accent, #214ecd);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.feature-slider-button:hover,
.feature-slider-button:focus-visible {
    border-color: var(--page-accent, #214ecd);
    background: var(--page-accent, #214ecd);
    color: #fff;
}

.feature-slider-button:disabled {
    border-color: #e6e6e6;
    background: #fff;
    color: #b5bac4;
    cursor: default;
}

.features-grid--slider {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4rem) / 3);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.features-grid--slider::-webkit-scrollbar {
    display: none;
}

.features-grid--slider .feature-card {
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .features-grid--slider {
        grid-auto-columns: calc((100% - 2rem) / 2);
    }
}

.feature-card {
    background: #fff;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e6e6;
}

.feature-card-content {
    flex: 1;
    padding: 1.75rem;
}

.feature-card--text-only {
    border-top: 3px solid var(--prod-blue, #214ecd);
}

.feature-card--text-only .feature-card-content {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
}

.feature-card-content h3 {
    color: var(--prod-blue, #214ecd);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-content p {
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.feature-card-image {
    order: -1;
    width: 100%;
    height: 220px;
    padding: 1.5rem;
    background: transparent;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Moderate zoom for the CAD-CAM product renders. */
body[data-product="cad-cam"] .feature-card-image:has(img[src$="Elevata_resistenza.jpg"]),
body[data-product="cad-cam"] .feature-card-image:has(img[src$="Geometria_Ottimizzata.jpg"]) {
    padding: 0;
    overflow: hidden;
}

body[data-product="cad-cam"] .feature-card-image img[src$="Elevata_resistenza.jpg"],
body[data-product="cad-cam"] .feature-card-image img[src$="Geometria_Ottimizzata.jpg"],
body[data-product="cad-cam"] .feature-card-image img[src$="Chiavi_Dedicate.jpg"] {
    transform: scale(1.45);
}

.focus-catalog-section {
    padding: 0;
    background: #fff;
}

.section-product-resources {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    background: #f3f6fb;
}

.product-resources-header {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.product-resources-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--prod-blue, #214ecd);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-resources-header .category-section-title {
    margin: 0;
}

.product-resources-slider {
    overflow: hidden;
}

.product-resources-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin: -1rem 0 1.5rem;
}

.product-resources-slider-controls[hidden] {
    display: none;
}

.product-resources-slider-button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid #dfe6f2;
    border-radius: 0;
    background: #fff;
    color: var(--page-accent, #214ecd);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.product-resources-slider-button:hover,
.product-resources-slider-button:focus-visible {
    border-color: var(--page-accent, #214ecd);
    background: var(--page-accent, #214ecd);
    color: #fff;
}

.product-resources-slider-button:disabled {
    border-color: #e6e6e6;
    background: #fff;
    color: #b5bac4;
    cursor: default;
}

.product-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
}

.product-resources-grid--slider {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3rem) / 3);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-resources-grid--slider::-webkit-scrollbar {
    display: none;
}

.product-resource-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-top: 3px solid var(--prod-blue, #214ecd);
    background: #fff;
    box-shadow: 0 8px 18px rgba(22, 43, 83, 0.07);
}

.product-resources-grid--slider .product-resource-card {
    min-width: 0;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .product-resources-grid--slider {
        grid-auto-columns: calc((100% - 1.5rem) / 2);
    }
}

.product-resource-card h3 {
    margin: 0 0 1rem;
    color: #111;
    font-size: 1.25rem;
    line-height: 1.25;
}

.product-resource-card p {
    margin: 0;
    color: #5d6675;
    line-height: 1.6;
}

.product-resource-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

.product-resource-card button.product-resource-card__cta {
    cursor: pointer;
}

body.resource-modal-open {
    overflow: hidden;
}

.leaf-guidelines-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    padding: clamp(1rem, 3vw, 2.5rem);
    place-items: center;
    background: rgba(17, 24, 39, 0.45);
}

.leaf-guidelines-modal[hidden] {
    display: none;
}

.leaf-guidelines-modal__dialog {
    position: relative;
    width: min(100%, 1280px);
    max-height: min(86vh, 760px);
    overflow: auto;
    padding: clamp(2rem, 3vw, 3.25rem);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
}

.leaf-guidelines-modal__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font: inherit;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.leaf-guidelines-modal__close:hover,
.leaf-guidelines-modal__close:focus-visible {
    color: var(--prod-blue, #214ecd);
}

.leaf-guidelines-modal__table-wrap {
    overflow-x: auto;
    padding-top: 1.8rem;
}

.leaf-activation-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    color: #1f2937;
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    text-align: center;
}

.leaf-activation-table th,
.leaf-activation-table td {
    height: 64px;
    padding: 0.85rem 1rem;
    border: 1px solid #222;
    vertical-align: middle;
}

.leaf-activation-table__title {
    height: 72px;
    background: #fff;
    color: #111;
    font-size: clamp(1.1rem, 1.55vw, 1.45rem);
    font-weight: 800;
}

.leaf-activation-table__band {
    background: var(--prod-blue, #214ecd);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.leaf-activation-table__band--nine {
    background: #ff9015;
}

.leaf-activation-table__code {
    color: var(--prod-blue, #214ecd);
    font-weight: 700;
    line-height: 1.15;
}

.leaf-activation-table__label {
    width: 34%;
    background: #e5e5e5;
    color: #222;
    font-weight: 500;
}

@media (max-width: 720px) {
    .leaf-guidelines-modal {
        align-items: stretch;
        padding: 0.75rem;
    }

    .leaf-guidelines-modal__dialog {
        max-height: 92vh;
        padding: 1rem;
    }

    .leaf-guidelines-modal__close {
        top: 0.45rem;
        right: 0.6rem;
    }

    .leaf-guidelines-modal__table-wrap {
        padding-top: 2.4rem;
    }
}

.focus-catalog-container {
    width: 100%;
}

.focus-catalog-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--page-accent, #214ecd);
    color: #fff;
    text-decoration: none;
    transition: background-color 220ms ease, box-shadow 220ms ease;
}

.focus-catalog-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: var(--container, 1480px);
    min-height: 240px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 4.5rem) var(--page-gutter);
}

.focus-catalog-card::before {
    position: absolute;
    right: -120px;
    bottom: -210px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.focus-catalog-card::after {
    position: absolute;
    right: 90px;
    bottom: -245px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.focus-catalog-card:hover,
.focus-catalog-card:focus-visible {
    background: var(--page-accent-hover, #163caa);
    box-shadow: 0 18px 44px rgba(15, 31, 67, 0.2);
}

.focus-catalog-card h2 {
    position: relative;
    z-index: 1;
    max-width: 22ch;
    margin: 0;
    color: #fff;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: 0;
}

.focus-catalog-card__copy {
    min-width: 0;
}

.focus-catalog-card__copy p {
    max-width: 58ch;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.55;
}

.focus-catalog-card__arrow {
    position: relative;
    z-index: 1;
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    color: #fff;
    font-size: 1.7rem;
    transition: transform 220ms ease, background-color 220ms ease;
}

.focus-catalog-card:hover .focus-catalog-card__arrow,
.focus-catalog-card:focus-visible .focus-catalog-card__arrow {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(6px);
}

@media (max-width: 640px) {
    .features-grid--slider {
        grid-auto-columns: min(82vw, 320px);
    }

    .feature-card-image {
        height: 190px;
    }

    .feature-card-content {
        padding: 1.5rem;
    }

    .product-resources-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-resources-grid--slider {
        grid-template-columns: none;
        grid-template-rows: auto;
        grid-auto-columns: min(82vw, 320px);
    }

    .product-resource-card {
        min-height: 0;
    }

    .focus-catalog-card {
        min-height: auto;
    }

    .focus-catalog-card__content {
        min-height: 220px;
        align-items: flex-end;
        padding: 2rem 1.5rem;
    }

    .focus-catalog-card h2 {
        font-size: 1.9rem;
    }

    .focus-catalog-card__arrow {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 1.35rem;
    }
}

/* ========================================= 3. Series Products (White) ========================================= */

.card-specs {
    font-size: 0.85rem;
    color: #888;
    margin: 10px 0 20px;
    font-weight: 500;
}

.section-longform {
    padding: clamp(1rem, 2vw, 2rem) 0 var(--site-section-gap);
    background: #fff;
}

.section-longform > .container {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: 0;
    align-items: start;
}

.section-longform .category-section-title {
    margin: 0;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: 0;
}

.longform-intro {
    position: sticky;
    top: calc(var(--header-height, 86px) + 2rem);
}

.longform-media {
    height: clamp(230px, 28vw, 360px);
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
    overflow: hidden;
}

.longform-media[hidden] {
    display: none;
}

.longform-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-longform--with-media > .container {
    grid-template-rows: auto 1fr;
}

.section-longform--with-media .longform-intro {
    display: contents;
}

.section-longform--with-media .category-section-title {
    grid-column: 1;
    grid-row: 1;
}

.section-longform--with-media .longform-media {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin-top: 1.5rem;
}

.section-longform--with-media .longform-grid {
    grid-column: 2;
    grid-row: 2;
    margin-top: 1.5rem;
}

.longform-grid {
    min-width: 0;
}

.longform-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.longform-item {
    display: grid;
    grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    min-width: 0;
    padding: 1.5rem 0;
    border-top: 1px solid #dfe6f2;
}

.longform-item:last-child {
    border-bottom: 1px solid #dfe6f2;
}

.longform-item--plain .longform-item__body {
    grid-column: 1 / -1;
}

.longform-item h3 {
    margin: 0;
    color: var(--prod-blue, #214ecd);
    font-size: 1.1rem;
    line-height: 1.35;
}

.longform-group-heading {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 2.5rem;
    border-top: 1px solid #dfe6f2;
    color: #111;
    font-size: 1.55rem;
    line-height: 1.2;
}

.longform-copy--info-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
}

.longform-copy--info-columns > :not(.longform-item--info) {
    grid-column: 1 / -1;
}

.longform-copy--info-columns .longform-item--info {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    align-content: start;
    padding: 1rem 0 1.5rem;
    border-top: 0;
    border-bottom: 1px solid #dfe6f2;
}

.longform-copy--info-columns:not(.longform-copy--info-has-heading) .longform-item--info {
    border-top: 1px solid #dfe6f2;
}

.longform-copy--info-columns .longform-group-heading {
    padding-top: 1.5rem;
}

.longform-copy--info-columns .longform-group-heading + .longform-item {
    padding-top: 1.25rem;
    border-top: 0;
}

.longform-item__body {
    color: #4d5563;
    line-height: 1.75;
}

.longform-item__subtitle {
    display: block;
    margin-bottom: 0.55rem;
    color: #222;
}

.longform-item__cta {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    line-height: 1.2;
}

.longform-item__body strong {
    color: var(--prod-blue, #214ecd);
    font-weight: 700;
}

.longform-section-action {
    display: flex;
    padding: 1.5rem 0 0;
}

.longform-section-action__cta {
    width: fit-content;
}

/* La seconda sezione riutilizza le dimensioni del blocco editoriale esistente,
   invertendo esclusivamente le colonne. */
.section-longform--split .longform-split-section--reverse {
    margin-top: 6rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.section-longform--split .longform-split-section--reverse .category-section-title {
    grid-column: 2;
    grid-row: 1;
}

.section-longform--split .longform-split-section--reverse .longform-media {
    grid-column: 2;
    grid-row: 2;
}

.section-longform--split .longform-split-section--reverse .longform-grid {
    grid-column: 1;
    grid-row: 2;
}

@media (max-width: 900px) {
    .section-longform > .container {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 1.5rem;
    }

    .longform-intro {
        position: static;
    }

    .longform-media {
        height: clamp(240px, 55vw, 440px);
    }

    .section-longform--with-media > .container {
        grid-template-rows: auto auto auto;
    }

    .section-longform--with-media .category-section-title,
    .section-longform--with-media .longform-media,
    .section-longform--with-media .longform-grid {
        grid-column: 1;
    }

    .section-longform--with-media .category-section-title {
        grid-row: 1;
    }

    .section-longform--with-media .longform-media {
        grid-row: 2;
        height: clamp(260px, 68vw, 440px);
        min-height: 0;
        aspect-ratio: auto;
        margin-top: 0;
    }

    .section-longform--with-media .longform-grid {
        grid-row: 3;
        margin-top: 0;
    }

    .section-longform--split .longform-split-section--reverse .category-section-title,
    .section-longform--split .longform-split-section--reverse .longform-media,
    .section-longform--split .longform-split-section--reverse .longform-grid {
        grid-column: 1;
    }

    .section-longform--split .longform-split-section--reverse .category-section-title {
        grid-row: 1;
    }

    .section-longform--split .longform-split-section--reverse .longform-media {
        grid-row: 2;
    }

    .section-longform--split .longform-split-section--reverse .longform-grid {
        grid-row: 3;
    }
}

@media (max-width: 640px) {
    .longform-copy--info-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .longform-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }
}

/* ===================== Secondary focus details ===================== */

.section-focus-details {
    padding: var(--site-section-gap) 0;
    background: #f5f7fb;
}

.focus-details-header {
    max-width: 760px;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.focus-details-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--prod-blue, #214ecd);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-focus-details .category-section-title {
    margin: 0;
    color: #111;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: 0;
}

.focus-details-slider {
    overflow: hidden;
}

.focus-details-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin: -1rem 0 1.5rem;
}

.focus-details-slider-controls[hidden] {
    display: none;
}

.focus-details-slider-button {
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid #dfe6f2;
    border-radius: 0;
    background: #fff;
    color: var(--page-accent, #214ecd);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.focus-details-slider-button:hover,
.focus-details-slider-button:focus-visible {
    border-color: var(--page-accent, #214ecd);
    background: var(--page-accent, #214ecd);
    color: #fff;
}

.focus-details-slider-button:disabled {
    border-color: #e6e6e6;
    background: #fff;
    color: #b5bac4;
    cursor: default;
}

.focus-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}

.focus-details-grid--slider {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3.5rem) / 3);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.focus-details-grid--slider::-webkit-scrollbar {
    display: none;
}

.focus-detail-card {
    min-width: 0;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-top: 4px solid var(--prod-blue, #214ecd);
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 47, 95, 0.08);
}

.focus-details-grid--slider .focus-detail-card {
    scroll-snap-align: start;
}

.focus-detail-card h3 {
    margin: 0 0 1rem;
    color: #151515;
    font-size: 1.2rem;
    line-height: 1.3;
}

.focus-detail-card__body {
    color: #4d5563;
    line-height: 1.7;
}

.focus-detail-card__body strong {
    color: var(--prod-blue, #214ecd);
}

.focus-detail-card__subtitle {
    display: block;
    margin-bottom: 0.65rem;
}

.focus-detail-card__cta {
    display: flex;
    width: fit-content;
    margin-top: 1.5rem;
}

.focus-details-actions {
    display: flex;
    margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 900px) {
    .focus-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .focus-details-grid--slider {
        grid-template-columns: none;
        grid-template-rows: auto;
        grid-auto-columns: min(82vw, 340px);
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .focus-details-grid--slider {
        grid-auto-columns: calc((100% - 1.75rem) / 2);
    }
}

.tech-specs-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.tech-tab {
    background: none;
    border: none;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0;
}

.tech-tab:hover {
    color: var(--prod-blue);
    background-color: #f8f9fa;
}

.tech-tab.active {
    color: #fff;
    background-color: var(--prod-blue);
}

.tech-specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

@media (max-width: 768px) {
    .tech-specs-list {
        grid-template-columns: 1fr;
    }
}

.tech-spec-item {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.tech-spec-item:last-child {
    border-bottom: none;
}

.tech-spec-label {
    font-weight: 700;
    color: #333;
    min-width: 140px;
    /* Consente l'allineamento dei valori */
}

.tech-spec-value {
    color: #666;
    text-align: left;
}

/* ============= Buttons in Info Box Uses shared button system from components.css ============= */

/* Titoli delle sezioni delle pagine focus: scala tipografica uniforme. */
.page-categoria .category-section-title,
.page-categoria .category-feature-title,
.page-categoria .focus-catalog-card h2 {
    font-size: 2rem;
}

@media (min-width: 900px) {
    .page-categoria .focus-catalog-card h2 {
        max-width: none;
        white-space: nowrap;
    }
}

/* Native dialog keeps focus inside the tutorial and supports Escape. */
.leaf-tutorial-dialog {
    width: min(960px, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: clamp(1rem, 3vw, 2rem);
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
    overflow: auto;
}
.leaf-tutorial-dialog::backdrop { background: rgba(17, 24, 39, 0.65); }
.leaf-tutorial-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.leaf-tutorial-dialog__header h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.75rem); }
.leaf-tutorial-dialog video { display: block; width: 100%; max-height: 70dvh; background: #000; }
@media (prefers-reduced-motion: no-preference) {
    .leaf-tutorial-dialog[open] { animation: leaf-tutorial-enter 180ms ease-out; }
    @keyframes leaf-tutorial-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* Keep Leaf visible even when mobile autoplay is unavailable. */
.product-hero-mobile-image {
    display: none;
}

@media (max-width: 1199px) {
    body[data-product="leaf-expander"] .mobile-hero {
        --mobile-hero-media-scale: 1;
    }

    body[data-product="leaf-expander"] .mobile-hero .marpe-hero-visual {
        height: clamp(220px, 60vw, 340px) !important;
        min-height: 0 !important;
    }

    body[data-product="leaf-expander"] #hero-media .product-hero-mobile-image {
        display: block !important;
        flex: 0 0 100%;
        object-fit: contain !important;
        transform: none !important;
    }

    body[data-product="leaf-expander"] #hero-media video {
        display: none !important;
    }
}
