
/* =========================================================
   LM IMPIANTI — ELETTROHUB DIGITAL SHOWCASE
   Premium / Industrial / Digital
   Component: .eh-showcase
   ========================================================= */


/* =========================================================
   01 — FOUNDATION
   ========================================================= */

.eh-showcase {
    --eh-bg: #101516;
    --eh-surface: #1c2224;
    --eh-white: #f7f8f6;
    --eh-muted: #a0a8a7;
    --eh-line: rgba(255, 255, 255, .17);
    --eh-accent: #6100fe;

    --eh-font: var(--lm-font-body, "Instrument Sans", sans-serif);
    --eh-mono: var(--lm-font-mono, "IBM Plex Mono", monospace);

    --eh-width: 1440px;
    --eh-side: clamp(22px, 5vw, 80px);
    --eh-ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;
    overflow: clip;

    padding-block: clamp(100px, 10vw, 160px);

    background: var(--eh-bg);
    color: var(--eh-white);

    font-family: var(--eh-font);
    -webkit-font-smoothing: antialiased;
}

.eh-showcase *,
.eh-showcase *::before,
.eh-showcase *::after {
    box-sizing: border-box;
}

.eh-showcase h2,
.eh-showcase p {
    margin: 0;
}

.eh-showcase a {
    color: inherit;
    text-decoration: none;
}

.eh-showcase__container {
    position: relative;
    z-index: 1;

    width: min(100%, var(--eh-width));
    margin-inline: auto;
    padding-inline: var(--eh-side);
}


/* =========================================================
   02 — SECTION METADATA
   ========================================================= */

.eh-showcase__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    padding-bottom: 20px;
    border-bottom: 1px solid var(--eh-line);

    font-family: var(--eh-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.eh-showcase__top > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.eh-showcase__dot {
    display: block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    background: var(--eh-accent);
}


/* =========================================================
   03 — INTRO / TYPOGRAPHY
   ========================================================= */

.eh-showcase__intro {
    padding-top: clamp(60px, 7vw, 110px);
}

.eh-showcase__eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: clamp(25px, 4vw, 55px);

    font-family: var(--eh-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;

    color: var(--eh-muted);
}

.eh-showcase__title {
    position: relative;
    width: max-content;
    max-width: 100%;

    font-family: var(--eh-mono);
    font-size: clamp(45px, 10vw, 155px);
    font-weight: 500;
    line-height: .95;
    letter-spacing: -.095em;
    text-transform: uppercase;
    white-space: nowrap;

    color: var(--eh-white);
}

.eh-showcase__title span {
    color: #a58aff;
}

.eh-showcase__description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 80px);
    align-items: start;

    margin-top: clamp(35px, 5vw, 75px);
    padding-top: 24px;

    border-top: 1px solid var(--eh-line);
}

.eh-showcase__index {
    font-family: var(--eh-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .025em;
    color: var(--eh-muted);
}

.eh-showcase__description p {
    max-width: 550px;

    font-family: var(--eh-font);
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -.025em;
    color: var(--eh-white);
}


/* =========================================================
   04 — SHOWCASE STAGE
   ========================================================= */

.eh-showcase__stage {
    position: relative;
    isolation: isolate;

    margin-top: clamp(70px, 8vw, 125px);
    padding: clamp(45px, 5vw, 85px) 0 0;

    perspective: 1500px;
    perspective-origin: 50% 45%;
}

.eh-showcase__glow {
    position: absolute;
    z-index: -1;

    top: 5%;
    left: 50%;

    width: min(80vw, 950px);
    height: min(55vw, 600px);

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse at center,
            rgba(97, 0, 254, .17) 0%,
            rgba(97, 0, 254, .065) 38%,
            transparent 72%
        );

    filter: blur(40px);
    pointer-events: none;
}


/* =========================================================
   05 — BROWSER 3D
   ========================================================= */

.eh-showcase__browser {
    position: relative;
    z-index: 2;

    width: min(100%, 1120px);
    margin-inline: auto;

    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 13px;

    background: #e9eceb;

    box-shadow:
        0 35px 85px rgba(0, 0, 0, .40),
        0 12px 30px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(255, 255, 255, .035);

    transform:
        perspective(1500px)
        rotateX(8deg)
        rotateY(-5deg)
        translateY(25px)
        scale(.94);

    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform;

    transition:
        transform 1.1s var(--eh-ease),
        box-shadow 1.1s var(--eh-ease);
}

/* Fallback elegante anche senza JavaScript */

@media (hover: hover) and (pointer: fine) {
    .eh-showcase__stage:hover .eh-showcase__browser {
        transform:
            perspective(1500px)
            rotateX(2deg)
            rotateY(-1deg)
            translateY(0)
            scale(.975);

        box-shadow:
            0 45px 100px rgba(0, 0, 0, .48),
            0 15px 35px rgba(0, 0, 0, .28);
    }
}


/* =========================================================
   06 — BROWSER CHROME
   ========================================================= */

.eh-showcase__browser-bar {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;

    height: 48px;
    padding-inline: 18px;

    background: #21272a;
    border-bottom: 1px solid rgba(255, 255, 255, .12);

    color: rgba(255, 255, 255, .75);
}

.eh-showcase__browser-controls {
    display: flex;
    gap: 7px;
    align-items: center;
}

.eh-showcase__browser-controls span {
    display: block;

    width: 9px;
    height: 9px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
}

.eh-showcase__browser-controls span:first-child {
    background: #ff6b60;
    border-color: #ff6b60;
}

.eh-showcase__browser-controls span:nth-child(2) {
    background: #f4bf4f;
    border-color: #f4bf4f;
}

.eh-showcase__browser-controls span:nth-child(3) {
    background: #48c86e;
    border-color: #48c86e;
}

.eh-showcase__browser-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 220px;
    padding: 6px 28px;

    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 5px;

    background: rgba(255, 255, 255, .06);

    font-family: var(--eh-mono);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: -.02em;

    white-space: nowrap;
}

.eh-showcase__lock {
    font-size: 14px;
    color: #67d99a;
}

.eh-showcase__browser-label {
    justify-self: end;

    font-family: var(--eh-mono);
    font-size: 9px;
    letter-spacing: .04em;
    white-space: nowrap;
}


/* =========================================================
   07 — STORE PREVIEW IMAGE
   ========================================================= */

.eh-showcase__browser-viewport {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 10;

    background: #f7f7f7;
}

.eh-showcase__browser-viewport img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;

    object-fit: cover;
    object-position: top center;

    transition: transform 1.5s var(--eh-ease);
}

/* Micro-zoom indipendente dal browser */

@media (hover: hover) and (pointer: fine) {
    .eh-showcase__stage:hover
    .eh-showcase__browser-viewport img {
        transform: scale(1.025);
    }
}


/* =========================================================
   08 — STAGE METADATA
   ========================================================= */

.eh-showcase__stage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    max-width: 1120px;
    margin: 45px auto 0;
    padding-top: 19px;

    border-top: 1px solid var(--eh-line);

    font-family: var(--eh-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .025em;
    line-height: 1.5;
    color: var(--eh-muted);
}


/* =========================================================
   09 — BOTTOM / CTA
   ========================================================= */

.eh-showcase__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: end;

    margin-top: clamp(75px, 9vw, 135px);
    padding-top: 35px;
    border-top: 1px solid var(--eh-line);
}

.eh-showcase__bottom-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.eh-showcase__bottom-copy > span {
    font-family: var(--eh-mono);
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: 1.25;
}

.eh-showcase__bottom-copy p {
    max-width: 500px;

    font-family: var(--eh-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--eh-muted);
}

.eh-showcase__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 45px;

    width: fit-content !important;
    min-width: 265px;
    min-height: 55px;
    height: auto !important;

    margin: 0 !important;
    padding: 14px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .65) !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: var(--eh-white) !important;

    font-family: var(--eh-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.5;
    text-transform: uppercase;
    text-decoration: none !important;

    transition:
        color .3s ease,
        border-color .3s ease;
}

.eh-showcase__cta span:last-child {
    font-family: var(--eh-font);
    font-size: 25px;
    font-weight: 400;
    transition: transform .35s var(--eh-ease);
}

.eh-showcase__cta:hover {
    color: #bda8ff !important;
    border-color: #bda8ff !important;
}

.eh-showcase__cta:hover span:last-child {
    transform: translate(5px, -5px);
}

.eh-showcase__cta:focus-visible {
    outline: 2px solid #bda8ff;
    outline-offset: 7px;
}


/* =========================================================
   10 — LARGE VIEWPORT
   ========================================================= */

@media (min-width: 1600px) {

    .eh-showcase {
        --eh-side: 80px;
    }

    .eh-showcase__title {
        font-size: 155px;
    }

}


/* =========================================================
   11 — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .eh-showcase {
        --eh-side: clamp(26px, 4vw, 48px);
    }

    .eh-showcase__title {
        font-size: clamp(44px, 9.3vw, 110px);
    }

    .eh-showcase__browser {
        transform:
            perspective(1400px)
            rotateX(6deg)
            rotateY(-3deg)
            translateY(15px)
            scale(.96);
    }

    .eh-showcase__browser-bar {
        height: 44px;
    }

    .eh-showcase__stage-meta {
        margin-top: 32px;
    }

}


/* =========================================================
   12 — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .eh-showcase {
        --eh-side: 20px;

        padding-block: 85px 100px;
    }

    .eh-showcase__top {
        gap: 12px;
        font-size: 8px;
        padding-bottom: 16px;
    }

    .eh-showcase__top > span:last-child {
        text-align: right;
    }

    .eh-showcase__intro {
        padding-top: 55px;
    }

    .eh-showcase__eyebrow {
        align-items: flex-start;
        margin-bottom: 28px;

        font-size: 8px;
    }

    .eh-showcase__eyebrow > span:last-child {
        text-align: right;
    }

    .eh-showcase__title {
        width: 100%;
        max-width: 100%;

        font-size: clamp(30px, 9vw, 70px);
        letter-spacing: -.09em;
        white-space: nowrap;
    }

    .eh-showcase__description {
        grid-template-columns: 1fr;
        gap: 20px;

        margin-top: 35px;
        padding-top: 20px;
    }

    .eh-showcase__description p {
        max-width: 100%;
        font-size: 17px;
    }

    .eh-showcase__stage {
        margin-top: 55px;
        padding-top: 20px;
        perspective: none;
    }

    .eh-showcase__glow {
        width: 100%;
        height: 300px;
        top: 0;
        filter: blur(25px);
    }

    .eh-showcase__browser {
        width: 100%;
        border-radius: 8px;

        transform: none;
        will-change: auto;

        box-shadow:
            0 18px 45px rgba(0, 0, 0, .32);
    }

    .eh-showcase__browser-bar {
        grid-template-columns: auto 1fr;
        height: 38px;
        gap: 10px;
        padding-inline: 10px;
    }

    .eh-showcase__browser-controls {
        gap: 4px;
    }

    .eh-showcase__browser-controls span {
        width: 6px;
        height: 6px;
    }

    .eh-showcase__browser-address {
        justify-self: end;
        min-width: 0;
        padding: 4px 9px;
        font-size: 9px;
    }

    .eh-showcase__browser-label {
        display: none;
    }

    .eh-showcase__browser-viewport {
        aspect-ratio: 4 / 3;
    }

    .eh-showcase__stage-meta {
        gap: 15px;
        margin-top: 25px;
        padding-top: 15px;
        font-size: 8px;
    }

    .eh-showcase__stage-meta span:last-child {
        text-align: right;
    }

    .eh-showcase__bottom {
        grid-template-columns: 1fr;
        gap: 40px;

        margin-top: 85px;
        padding-top: 30px;
    }

    .eh-showcase__bottom-copy > span {
        font-size: 22px;
    }

    .eh-showcase__bottom-copy p {
        font-size: 15px;
    }

    .eh-showcase__cta {
        width: 100% !important;
        min-width: 0;
        max-width: 340px;
    }

}


/* =========================================================
   13 — SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .eh-showcase {
        --eh-side: 18px;
    }

    .eh-showcase__title {
        font-size: 8.5vw;
    }

    .eh-showcase__description p {
        font-size: 16px;
    }

    .eh-showcase__browser-address {
        font-size: 8px;
    }

}


/* =========================================================
   14 — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .eh-showcase *,
    .eh-showcase *::before,
    .eh-showcase *::after {
        animation: none !important;
        transition: none !important;
    }

    .eh-showcase__browser {
        transform: none !important;
        will-change: auto;
    }

    .eh-showcase__browser-viewport img {
        transform: none !important;
    }

}



/* =========================================================
   ELETTROHUB — COMPACT EDITORIAL LAYOUT
   Riduzione spazi verticali
   ========================================================= */

/* Sezione principale */
.eh-showcase {
    padding-block: clamp(65px, 6vw, 100px);
}

/* Introduzione */
.eh-showcase__intro {
    padding-top: clamp(35px, 4vw, 65px);
}

/* Micro etichette */
.eh-showcase__eyebrow {
    margin-bottom: clamp(15px, 2vw, 30px);
}

/* Titolo */
.eh-showcase__title {
    font-size: clamp(45px, 8vw, 120px);
}

/* Descrizione */
.eh-showcase__description {
    margin-top: clamp(20px, 3vw, 40px);
    padding-top: 18px;
}

.eh-showcase__description p {
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.5;
}

/* Avviciniamo il browser al testo */
.eh-showcase__stage {
    margin-top: clamp(35px, 4vw, 65px);
    padding-top: 15px;
}

/* Browser più compatto */
.eh-showcase__browser {
    width: min(100%, 940px);
}

/* Riduzione altezza anteprima */
.eh-showcase__browser-viewport {
    aspect-ratio: 16 / 8;
}

/* Metadati sotto browser */
.eh-showcase__stage-meta {
    max-width: 940px;
    margin-top: 22px;
    padding-top: 14px;
}

/* CTA finale */
.eh-showcase__bottom {
    margin-top: clamp(40px, 5vw, 70px);
    padding-top: 25px;
}

.eh-showcase__bottom-copy {
    gap: 12px;
}

.eh-showcase__bottom-copy p {
    font-size: 15px;
    line-height: 1.55;
}

/* MOBILE */

@media (max-width: 767px) {

    .eh-showcase {
        padding-block: 55px 65px;
    }

    .eh-showcase__intro {
        padding-top: 35px;
    }

    .eh-showcase__title {
        font-size: clamp(30px, 9vw, 60px);
    }

    .eh-showcase__description {
        margin-top: 25px;
    }

    .eh-showcase__stage {
        margin-top: 35px;
        padding-top: 0;
    }

    .eh-showcase__browser {
        width: 100%;
    }

    .eh-showcase__browser-viewport {
        aspect-ratio: 4 / 3;
    }

    .eh-showcase__stage-meta {
        margin-top: 18px;
    }

    .eh-showcase__bottom {
        margin-top: 45px;
        gap: 25px;
    }

}
