
/*
 * CryptoExcel Home Hero
 * Versione 1.0.5
 * WordPress / Elementor
 * CSS isolato - prefisso ceh-
 */

/* =========================================
   1. CONTENITORE PRINCIPALE
   ========================================= */

.ceh-hero {
    --ceh-dark: #123B78;
    --ceh-blue: #0879E8;
    --ceh-text: #28456F;
    --ceh-pale: #E3EEF9;

    box-sizing: border-box !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100% !important;

    background: #F8FDFF !important;
    color: #123B78 !important;

    padding: 12px 16px 40px !important;

    font-family: inherit;
}

.ceh-hero *,
.ceh-hero *::before,
.ceh-hero *::after {
    box-sizing: border-box !important;
}

.ceh-hero .ceh-container {
    width: 100% !important;
    max-width: 1100px !important;

    margin: 0 auto !important;
    padding: 0 !important;
}

/* =========================================
   2. DECORAZIONI DI SFONDO
   ========================================= */

.ceh-hero::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 320px;
    height: 320px;
    border-radius: 50%;

    background: rgba(8, 121, 232, 0.045);

    left: -245px;
    top: -130px;
}

.ceh-hero::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 320px;
    height: 320px;
    border-radius: 50%;

    background: rgba(8, 121, 232, 0.045);

    right: -250px;
    top: 170px;
}

/* =========================================
   3. BLOCCO INTRODUTTIVO E H1
   ========================================= */

.ceh-hero .ceh-intro {
    display: block !important;

    width: 100%;
    max-width: 1080px;

    text-align: center !important;

    margin: 0 auto 40px !important;
    padding: 0 !important;
}

.ceh-hero h1.ceh-h1 {
    display: block !important;

    margin: 0 0 16px !important;
    padding: 0 !important;

    font-size: clamp(36px, 4.1vw, 52px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;

    color: #123B78 !important;
    text-align: center !important;
}

.ceh-hero h1.ceh-h1 > span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;

    color: #123B78 !important;
}

.ceh-hero h1.ceh-h1 > span + span {
    margin-top: 7px !important;
    color: #0879E8 !important;
}

/* =========================================
   4. SOTTOTITOLO
   ========================================= */

.ceh-hero .ceh-subtitle {
    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(17px, 1.55vw, 20px) !important;
    line-height: 1.4 !important;

    color: #123B78 !important;
    text-align: center !important;
}

.ceh-hero .ceh-subtitle p {
    margin: 0 !important;
    padding: 0 !important;

    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;

    color: #123B78 !important;
}

.ceh-hero .ceh-subtitle p + p {
    margin-top: 3px !important;
}

/* =========================================
   5. GRIGLIA A DUE COLONNE
   ========================================= */

.ceh-hero .ceh-content {
    display: grid !important;

    grid-template-columns:
        minmax(0, 490px)
        minmax(0, 1fr);

    column-gap: 40px;
    row-gap: 30px;

    align-items: center !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   6. VIDEO E POSTER
   ========================================= */

.ceh-hero .ceh-media {
    position: relative;
    align-self: center !important;

    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}

.ceh-hero .ceh-media::before {
    content: "";
    position: absolute;
    z-index: -1;

    inset: 8% -5%;

    background: rgba(8, 121, 232, 0.055);
    border-radius: 50%;
}

.ceh-hero video.ceh-video {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    aspect-ratio: 1 / 1;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 10px !important;

    background: #FFFFFF;

    box-shadow:
        0 12px 28px rgba(3, 85, 167, 0.10);

    transform: scale(1);
    transform-origin: center center;

    transition:
        transform 250ms ease,
        box-shadow 250ms ease;

    will-change: transform;
}

/* Zoom hover 1.08 */

@media (hover: hover) and (pointer: fine) {

    .ceh-hero .ceh-media:hover video.ceh-video {
        transform: scale(1.08);

        box-shadow:
            0 18px 38px rgba(3, 85, 167, 0.17);
    }
}

/* =========================================
   7. COLONNA DESTRA E H2
   ========================================= */

.ceh-hero .ceh-copy {
    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}

.ceh-hero h2.ceh-h2 {
    display: block !important;

    margin: 0 0 15px !important;
    padding: 0 !important;

    font-size: clamp(29px, 2.55vw, 32px) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;

    color: #123B78 !important;
    text-align: left !important;
}

.ceh-hero h2.ceh-h2 > span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;

    color: #123B78 !important;
}

.ceh-hero h2.ceh-h2 > span + span {
    margin-top: 3px !important;
    color: #0879E8 !important;
}

/* =========================================
   8. PARAGRAFO DESCRITTIVO
   ========================================= */

.ceh-hero p.ceh-description {
    margin: 0 0 18px !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;

    color: #123B78 !important;
}

/* =========================================
   9. QUATTRO BENEFICI
   ========================================= */

.ceh-hero ul.ceh-benefits {
    display: grid !important;
    gap: 11px !important;

    list-style: none !important;

    margin: 0 0 35px !important;
    padding: 0 !important;
}

.ceh-hero .ceh-benefits > li {
    display: flex !important;
    align-items: center !important;

    gap: 14px;

    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.ceh-hero .ceh-benefit-icon {
    flex: 0 0 52px;

    display: grid !important;
    place-items: center;

    width: 52px;
    height: 52px;

    background: #E3EEF9 !important;
    color: #0879E8 !important;

    border-radius: 50%;
}

.ceh-hero .ceh-benefit-icon svg {
    display: block;

    width: 28px;
    height: 28px;
}

.ceh-hero .ceh-benefits li > div {
    flex: 1;
    min-width: 0;
}

.ceh-hero .ceh-benefits strong {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 17px !important;
    line-height: 1.28 !important;
    font-weight: 750 !important;

    color: #123B78 !important;
}

.ceh-hero .ceh-benefits p {
    margin: 3px 0 0 !important;
    padding: 0 !important;

    font-size: 15.5px !important;
    line-height: 1.4 !important;

    color: #28456F !important;
}

/* =========================================
   10. CALL TO ACTION
   ========================================= */

.ceh-hero .ceh-actions {
    display: flex !important;

    flex-wrap: wrap;
    align-items: stretch;

    gap: 20px;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;
}

.ceh-hero a.ceh-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 9px;

    min-height: 64px;
    max-width: 100%;

    padding: 13px 12px !important;

    border-radius: 18px !important;

    font-size: 20px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;

    text-align: center !important;
    text-decoration: none !important;

    transition:
        background-color 150ms ease,
        border-color 150ms ease;
}

.ceh-hero a.ceh-button span {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
}

.ceh-hero a.ceh-button svg {
    display: block;

    width: 24px;
    height: 24px;

    flex: 0 0 24px;
}

/* CTA Download */

.ceh-hero a.ceh-button-primary {
    background: #0879E8 !important;
    color: #FFFFFF !important;

    border: 2px solid #0879E8 !important;
}

.ceh-hero a.ceh-button-primary:hover {
    background: #0355A7 !important;
    color: #FFFFFF !important;

    border-color: #0355A7 !important;
}

/* CTA Video */

.ceh-hero a.ceh-button-secondary {
    background: #FFFFFF !important;
    color: #0879E8 !important;

    border: 2px solid #0879E8 !important;
}

.ceh-hero a.ceh-button-secondary:hover {
    background: #E3EEF9 !important;
    color: #0355A7 !important;

    border-color: #0355A7 !important;
}

.ceh-hero a.ceh-button:focus-visible {
    outline: 3px solid #123B78 !important;
    outline-offset: 4px;
}

/* =========================================
   11. TABLET / DESKTOP INTERMEDIO
   ========================================= */

@media (max-width: 1050px) {

    .ceh-hero .ceh-content {
        grid-template-columns:
            minmax(0, 44%)
            minmax(0, 1fr);

        column-gap: 30px;
    }

    .ceh-hero h2.ceh-h2 {
        font-size: 30px !important;
    }

    .ceh-hero p.ceh-description {
        font-size: 16px !important;
    }

    .ceh-hero .ceh-benefits strong {
        font-size: 16px !important;
    }

    .ceh-hero .ceh-benefits p {
        font-size: 15px !important;
    }

    .ceh-hero a.ceh-button {
        font-size: 18px !important;
        min-height: 60px;
    }
}

/* =========================================
   12. TABLET VERTICALE / MOBILE
   ========================================= */

@media (max-width: 760px) {

    .ceh-hero {
        padding: 28px 20px 45px !important;
    }

    .ceh-hero .ceh-intro {
        margin-bottom: 32px !important;
    }

    .ceh-hero h1.ceh-h1 {
        font-size: clamp(32px, 6vw, 44px) !important;
    }

    .ceh-hero .ceh-subtitle {
        font-size: 18px !important;
    }

    .ceh-hero .ceh-content {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 30px;

        align-items: start !important;
    }

    .ceh-hero .ceh-media {
        width: 100%;
        max-width: 490px;

        margin: 0 auto !important;
    }

    .ceh-hero .ceh-copy {
        width: 100%;
        max-width: 580px;

        margin: 0 auto !important;
    }

    .ceh-hero h2.ceh-h2 {
        font-size: clamp(28px, 5vw, 34px) !important;
    }

    .ceh-hero a.ceh-button {
        font-size: 20px !important;
    }
}

/* =========================================
   13. SMARTPHONE PICCOLI
   ========================================= */

@media (max-width: 430px) {

    .ceh-hero {
        padding: 24px 15px 40px !important;
    }

    .ceh-hero h1.ceh-h1 {
        font-size: 31px !important;
    }

    .ceh-hero .ceh-subtitle {
        font-size: 16px !important;
    }

    .ceh-hero h2.ceh-h2 {
        font-size: 27px !important;
    }

    .ceh-hero p.ceh-description {
        font-size: 16px !important;
    }

    .ceh-hero .ceh-benefit-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .ceh-hero .ceh-benefit-icon svg {
        width: 26px;
        height: 26px;
    }

    .ceh-hero .ceh-actions {
        flex-direction: column;
    }

    .ceh-hero a.ceh-button {
        width: 100% !important;
        min-height: 62px;

        font-size: 21px !important;
    }
}

/* =========================================
   14. ACCESSIBILITA'
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .ceh-hero video.ceh-video {
        transition: none !important;
        transform: none !important;
    }

    .ceh-hero .ceh-media:hover video.ceh-video {
        transform: none !important;
    }

    .ceh-hero a.ceh-button {
        transition: none !important;
    }
}



/* =========================================
   HERO - SPOSTAMENTO VERTICALE DESKTOP
   ========================================= */

@media (min-width: 761px) {

    body.home .ceh-hero {
        position: relative !important;
        top: -30px !important;
    }

}
