/* =========================================================
   CryptoTasse — Report Fiscale — Hero
   ========================================================= */

.ct-rf-hero {
    width: 100%;
    overflow: hidden;

    background: #FAFDFB;
    color: #1f2937;
}

.ct-rf-hero,
.ct-rf-hero * {
    box-sizing: border-box;
}


/* =========================================================
   LAYOUT GENERALE
   ========================================================= */

.ct-rf-hero__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.94fr)
        minmax(0, 1.06fr);

    align-items: center;

    gap: 58px;

    min-height: 570px;

    padding: 30px 0 74px;
}


/* =========================================================
   COLONNA TESTO
   ========================================================= */

.ct-rf-hero__content {
    max-width: 570px;
}


/* =========================================================
   H1
   ========================================================= */

.ct-rf-hero__title {
    margin: 0 0 23px !important;

    font-size: clamp(52px, 5vw, 78px);
    line-height: 1.04;

    letter-spacing: -0.035em;
    font-weight: 800;
}

.ct-rf-hero__title-dark,
.ct-rf-hero__title-bright {
    display: block;
}

.ct-rf-hero__title-dark {
    color: #034331;
}

.ct-rf-hero__title-bright {
    color: #10B981;
}


/* =========================================================
   CLAIM
   ========================================================= */

.ct-rf-hero__claim {
    margin: 0 0 21px !important;

    color: #034331;

    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
}


/* =========================================================
   TESTO DESCRITTIVO
   ========================================================= */

.ct-rf-hero__text {
    max-width: 560px;

    margin: 0 !important;

    color: #374151;

    font-size: 18px;
    line-height: 1.70;
}

.ct-rf-hero__text strong {
    color: #263c36;
    font-weight: 700;
}


/* =========================================================
   CTA
   ========================================================= */

.ct-rf-hero__cta-wrap {
    margin-top: 42px !important;
}

.ct-rf-hero__button {
    display: inline-flex;

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

    gap: 11px;

    min-height: 54px;

    padding: 15px 26px;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #065F46 0%,
            #10B981 100%
        );

    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 16.5px;
    line-height: 1.25;
    font-weight: 700;

    box-shadow:
        0 8px 22px rgba(6, 95, 70, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.ct-rf-hero__button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 26px rgba(6, 95, 70, 0.23);
}

.ct-rf-hero__button:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.35);
    outline-offset: 4px;
}


/* =========================================================
   MICROCOPY
   ========================================================= */

.ct-rf-hero__microcopy {
    margin: 14px 0 0 !important;

    color: #111111;

    font-size: 15.5px;
    line-height: 1.5;
}


/* =========================================================
   COLONNA VISUAL
   ========================================================= */

.ct-rf-hero__visual {
    position: relative;

    min-width: 0;
    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   GRUPPO VISUAL
   ========================================================= */

.ct-rf-hero__visual-group {
    position: relative;

    width: 650px;
    max-width: none;

    margin-left: -90px;
}


/* =========================================================
   FRASE SOPRA IL LAPTOP
   ========================================================= */

.ct-rf-hero__callout {
    position: relative;
    z-index: 4;

    width: 100%;

    margin: 0 0 16px;

    text-align: center;
    white-space: nowrap;

    color: #034331;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    font-style: italic;

    transform: translateY(52px);
}

.ct-rf-hero__callout::after {
    content: "";

    display: block;

    width: 72px;
    height: 3px;

    margin: 8px auto 0;

    border-radius: 999px;

    background: #10B981;

    transform: rotate(-4deg);

    transform-origin: center;
}


/* =========================================================
   GRUPPO LAPTOP + BADGE
   ========================================================= */

.ct-rf-hero__laptop-wrap {
    position: relative;

    width: 650px;

    transform: translateY(10px);

    transform-origin: center center;

    transition:
        transform 0.32s ease;
}


/* =========================================================
   HOVER DESKTOP
   ========================================================= */

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

    .ct-rf-hero__laptop-wrap:hover {
        transform:
            translateY(10px)
            scale(1.035);
    }

}


/* =========================================================
   LAPTOP
   ========================================================= */

.ct-rf-hero__image {
    position: relative;
    z-index: 2;

    display: block;

    width: 650px;
    max-width: none;
    height: auto;

    margin: 0;
}


/* =========================================================
   BADGE NORMATIVA
   ========================================================= */

.ct-rf-hero__badge {
    position: absolute;
    z-index: 5;

    top: 39px;
    right: -10px;

    width: 154px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;

    padding: 15px;

    background: #ffffff;

    border:
        1px solid
        rgba(16, 185, 129, 0.25);

    border-radius: 11px;

    box-shadow:
        0 7px 20px
        rgba(3, 67, 49, 0.12);

    transform: rotate(15deg);
    transform-origin: center;
}


/* =========================================================
   BANDIERA ITALIANA
   ========================================================= */

.ct-rf-hero__flag {
    display: block;

    width: 31px;
    height: 21px;

    border-radius: 2px;

    background:
        linear-gradient(
            to right,

            #009246 0%,
            #009246 33.333%,

            #ffffff 33.333%,
            #ffffff 66.666%,

            #ce2b37 66.666%,
            #ce2b37 100%
        );

    box-shadow:
        0 0 0 1px
        rgba(0, 0, 0, 0.05);
}

.ct-rf-hero__badge-text {
    color: #034331;

    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .ct-rf-hero__inner {
        grid-template-columns: 1fr;

        width:
            min(
                760px,
                calc(100% - 40px)
            );

        gap: 38px;

        min-height: 0;

        padding: 24px 0 68px;
    }


    .ct-rf-hero__content {
        max-width: 680px;
    }


    .ct-rf-hero__visual {
        min-height: 430px;
    }


    .ct-rf-hero__visual-group {
        width: 600px;

        margin-left: 0;
    }


    .ct-rf-hero__callout {
        font-size: 17px;

        transform: none;
    }


    .ct-rf-hero__callout::after {
        width: 64px;
    }


    .ct-rf-hero__laptop-wrap {
        width: 600px;

        transform: translateY(18px);
    }


    .ct-rf-hero__image {
        width: 600px;
    }


    .ct-rf-hero__badge {
        top: 35px;
        right: -12px;

        width: 148px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ct-rf-hero__inner {
        width: calc(100% - 32px);

        gap: 38px;

        min-height: 0;

        padding: 18px 0 54px;
    }


    .ct-rf-hero__title {
        margin-bottom: 18px !important;

        font-size:
            clamp(
                38px,
                11vw,
                48px
            );

        line-height: 1.06;
    }


    .ct-rf-hero__claim {
        margin-bottom: 18px !important;

        font-size: 18px;
        line-height: 1.45;
    }


    .ct-rf-hero__text {
        font-size: 16px;
        line-height: 1.65;
    }


    .ct-rf-hero__cta-wrap {
        margin-top: 36px !important;
    }


    .ct-rf-hero__button {
        width: 100%;

        min-height: 54px;

        padding: 15px 18px;

        font-size: 16px;
    }


    .ct-rf-hero__microcopy {
        text-align: center;

        font-size: 12px;
    }


    .ct-rf-hero__visual {
        min-height: 350px;

        overflow: visible;
    }


    .ct-rf-hero__visual-group {
        width: 112%;

        margin-left: -6%;
    }


    .ct-rf-hero__callout {
        width: 100%;

        margin-bottom: 12px;

        padding: 0 28px;

        text-align: center;
        white-space: normal;

        font-size: 14px;
        line-height: 1.3;

        transform: none;
    }


    .ct-rf-hero__callout::after {
        width: 54px;
        height: 2px;

        margin-top: 6px;
    }


    .ct-rf-hero__laptop-wrap {
        width: 100%;

        transform: translateY(10px);

        transition: none;
    }


    .ct-rf-hero__image {
        width: 100%;
        max-width: none;

        margin: 0;
    }


    .ct-rf-hero__badge {
        top: 28px;
        right: 6px;

        width: 128px;

        gap: 8px;

        padding: 11px;

        transform: rotate(10deg);
    }


    .ct-rf-hero__flag {
        width: 27px;
        height: 18px;
    }


    .ct-rf-hero__badge-text {
        font-size: 10.5px;
        line-height: 1.25;
    }

}


/* =========================================================
   MOBILE MOLTO PICCOLO
   ========================================================= */

@media (max-width: 380px) {

    .ct-rf-hero__title {
        font-size: 36px;
    }


    .ct-rf-hero__claim {
        font-size: 17px;
    }


    .ct-rf-hero__callout {
        padding: 0 22px;

        font-size: 13px;
    }


    .ct-rf-hero__badge {
        top: 26px;
        right: 4px;

        width: 120px;
    }

}
