/* ==========================================================
   GAD | SERVICE HERO
   Shared: Lead Generation / Graphic Design / Web Design / Content Creation
========================================================== */

.gad-lead-hero {
    --gad-lead-blue: #352f78;
    --gad-lead-red: #ca4c33;
    --gad-lead-yellow: #f8c629;
    position: relative;
    box-sizing: border-box;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    padding-top: clamp(110px, 9vw, 150px);
    padding-bottom: clamp(80px, 7vw, 120px);
}

.gad-lead-hero > .uk-container {
    width: 100%;
}

/* ==========================================================
   01 | GRID
========================================================== */

.gad-lead-grid {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ==========================================================
   02 | COPY
========================================================== */

.gad-lead-copy {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    padding-left: clamp(28px, 6vw, 110px);
}

/* ==========================================================
   03 | EYEBROW
========================================================== */

.gad-lead-eyebrow {
    margin-bottom: clamp(45px, 5vw, 80px);
    color: var(--gad-lead-red);
    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
}

/* ==========================================================
   04 | TITLE
========================================================== */

.gad-lead-title {
    margin: 0;
    color: var(--gad-lead-blue);
    font-size: clamp(48px, 4.7vw, 86px);
    font-weight: 800;
    line-height: .93;
    letter-spacing: -.045em;
}

.gad-lead-title-line {
    display: block;
}

.gad-lead-title-accent {
    color: var(--gad-lead-red);
}

/* ==========================================================
   05 | DESCRIPTION
========================================================== */

.gad-lead-text {
    max-width: 530px;
    margin-top: clamp(38px, 4vw, 58px);
    color: var(--gad-lead-blue);
    font-size: clamp(17px, 1.25vw, 21px);
    line-height: 1.45;
}

.gad-lead-text p {
    margin: 0;
}

/* Spaziatura tra paragrafi della descrizione */
.gad-lead-text p + p {
    margin-top: 20px;
}

.gad-lead-text strong {
    font-weight: 700;
}

/* ==========================================================
   06 | CTA
========================================================== */

.gad-lead-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(40px, 4vw, 60px);
    color: var(--gad-lead-blue);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.gad-lead-cta > span:first-child {
    position: relative;
    display: inline-block;
}

.gad-lead-cta > span:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 3px;
    background: var(--gad-lead-yellow);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
}

.gad-lead-cta:hover > span:first-child::after {
    transform: scaleX(1);
}

.gad-lead-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--gad-lead-yellow);
    color: var(--gad-lead-blue);
    font-size: 22px;
    font-weight: 400;
    transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
}

.gad-lead-cta:hover .gad-lead-cta-arrow {
    transform: translateX(5px);
}

.gad-lead-cta:hover {
    color: var(--gad-lead-blue);
    text-decoration: none;
}

.gad-lead-cta:focus-visible {
    outline: 2px solid var(--gad-lead-blue);
    outline-offset: 6px;
}

/* ==========================================================
   07 | VISUAL CONTAINER
========================================================== */

.gad-lead-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 610px;
}

/* ==========================================================
   08 | ART STAGE
========================================================== */

.gad-lead-art-stage {
    position: relative;
    width: clamp(430px, 37vw, 680px);
    max-width: 100%;
    aspect-ratio: 1;
    flex: 0 0 auto;
    transform: translateX(-10px);
}

/* ==========================================================
   09 | YELLOW CIRCLE
   first element in the diagonal
========================================================== */

.gad-lead-shape-circle {
    position: absolute;
    top: 2%;
    left: 0%;
    width: 88%;
    height: 88%;
    display: block;
    z-index: 1;
    border-radius: 50%;
    background: var(--gad-lead-yellow);
}

/* ==========================================================
   10 | ILLUSTRATION WRAPPER
   second element in the diagonal
========================================================== */

.gad-lead-art-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translate(56px, 54px);
}

/* ==========================================================
   11 | LEAD GENERATION SVG
========================================================== */

.gad-lead-art {
    display: block;
    width: 104%;
    height: 104%;
    object-fit: contain;
    pointer-events: none;
}

/* ==========================================================
   12 | LARGE DESKTOP
   >= 1600px
========================================================== */

@media (min-width: 1600px) {
    .gad-lead-copy {
        padding-left: clamp(28px, 6vw, 110px);
    }
    .gad-lead-visual {
        min-height: 640px;
    }
    .gad-lead-art-stage {
        width: clamp(450px, 37vw, 700px);
        transform: translateX(-12px);
    }
    .gad-lead-shape-circle {
        top: 1%;
        left: -1%;
        width: 89%;
        height: 89%;
    }
    .gad-lead-art-wrap {
        transform: translate(64px, 60px);
    }
    .gad-lead-art {
        width: 106%;
        height: 106%;
    }
}

/* ==========================================================
   13 | STANDARD DESKTOP
   1181px - 1599px
========================================================== */

@media (min-width: 1181px) and (max-width: 1599px) {
    .gad-lead-copy {
        padding-left: clamp(45px, 5vw, 85px);
    }
    .gad-lead-visual {
        min-height: 590px;
    }
    .gad-lead-art-stage {
        width: clamp(410px, 36vw, 590px);
        transform: translateX(-8px);
    }
    .gad-lead-shape-circle {
        top: 2%;
        left: 1%;
        width: 87%;
        height: 87%;
    }
    .gad-lead-art-wrap {
        transform: translate(50px, 48px);
    }
    .gad-lead-art {
        width: 104%;
        height: 104%;
    }
}

/* ==========================================================
   14 | COMPACT LAPTOP
   960px - 1180px
========================================================== */

@media (min-width: 960px) and (max-width: 1180px) {
    .gad-lead-copy {
        padding-left: 42px;
    }
    .gad-lead-visual {
        min-height: 500px;
    }
    .gad-lead-art-stage {
        width: clamp(355px, 38vw, 455px);
        transform: translateX(-4px);
    }
    .gad-lead-shape-circle {
        top: 4%;
        left: 2%;
        width: 86%;
        height: 86%;
    }
    .gad-lead-art-wrap {
        transform: translate(40px, 38px);
    }
    .gad-lead-art {
        width: 101%;
        height: 101%;
    }
}

/* ==========================================================
   15 | TABLET
   <= 959px
========================================================== */

@media (max-width: 959px) {
    .gad-lead-hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 110px;
    }
    .gad-lead-copy {
        padding-left: 34px;
        padding-right: 34px;
    }
    .gad-lead-eyebrow {
        margin-bottom: 45px;
    }
    .gad-lead-title {
        font-size: clamp(48px, 8vw, 76px);
    }
    .gad-lead-text {
        max-width: 580px;
    }
    .gad-lead-visual {
        min-height: 520px;
        margin-top: 55px;
    }
    .gad-lead-art-stage {
        width: min(70vw, 490px);
        transform: none;
    }
    .gad-lead-shape-circle {
        top: 4%;
        left: 3%;
        width: 86%;
        height: 86%;
    }
    .gad-lead-art-wrap {
        transform: translate(34px, 32px);
    }
    .gad-lead-art {
        width: 100%;
        height: 100%;
    }
}

/* ==========================================================
   16 | TABLET INTERMEDIATE
   769px - 959px
========================================================== */

@media (min-width: 769px) and (max-width: 959px) {
    .gad-lead-art-stage {
        width: clamp(390px, 50vw, 475px);
    }
}

/* ==========================================================
   17 | TABLET PORTRAIT
   641px - 768px
========================================================== */

@media (min-width: 641px) and (max-width: 768px) {
    .gad-lead-visual {
        min-height: 455px;
    }
    .gad-lead-art-stage {
        width: clamp(350px, 50vw, 410px);
    }
    .gad-lead-shape-circle {
        width: 85%;
        height: 85%;
    }
    .gad-lead-art-wrap {
        transform: translate(28px, 28px);
    }
}

/* ==========================================================
   18 | MOBILE
   <= 640px
========================================================== */

@media (max-width: 640px) {
    .gad-lead-hero {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    .gad-lead-copy {
        padding-left: 20px;
        padding-right: 20px;
    }
    .gad-lead-eyebrow {
        margin-bottom: 35px;
        font-size: 16px;
    }
    .gad-lead-title {
        font-size: clamp(36px, 8.4vw, 54px);
        line-height: .98;
        letter-spacing: -.045em;
    }
    .gad-lead-text {
        margin-top: 32px;
        font-size: 17px;
        line-height: 1.45;
    }
    .gad-lead-cta {
        margin-top: 35px;
        gap: 15px;
        font-size: 15px;
    }
    .gad-lead-cta-arrow {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 23px;
    }
    .gad-lead-visual {
        min-height: 355px;
        margin-top: 40px;
    }
    .gad-lead-art-stage {
        width: min(72vw, 320px);
        transform: none;
    }
    .gad-lead-shape-circle {
        top: 5%;
        left: 3%;
        width: 85%;
        height: 85%;
    }
    .gad-lead-art-wrap {
        transform: translate(22px, 22px);
    }
    .gad-lead-art {
        width: 97%;
        height: 97%;
    }
}

/* ==========================================================
   19 | SMALL MOBILE
   <= 480px
========================================================== */

@media (max-width: 480px) {
    .gad-lead-copy {
        padding-left: 17px;
        padding-right: 17px;
    }
    .gad-lead-art-stage {
        width: min(75vw, 300px);
    }
    .gad-lead-shape-circle {
        width: 84%;
        height: 84%;
    }
    .gad-lead-art-wrap {
        transform: translate(18px, 18px);
    }
    .gad-lead-art {
        width: 96%;
        height: 96%;
    }
}

/* ==========================================================
   20 | VERY SMALL MOBILE
   <= 380px
========================================================== */

@media (max-width: 380px) {
    .gad-lead-copy {
        padding-left: 14px;
        padding-right: 14px;
    }
    .gad-lead-cta {
        font-size: 13px;
        gap: 10px;
    }
    .gad-lead-art-stage {
        width: min(72vw, 272px);
    }
    .gad-lead-art-wrap {
        transform: translate(14px, 14px);
    }
    .gad-lead-art {
        width: 94%;
        height: 94%;
    }
}

/* ==========================================================
   21 | REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .gad-lead-cta > span:first-child::after,
    .gad-lead-cta-arrow {
        transition: none;
    }
}

/* ==========================================================
   22 | GRAPHIC DESIGN VISUAL
   Approved shape from the homepage, on the shared hero stage.
   Matches the previously approved inline HTML values.
========================================================== */

.gad-lead-shape-circle.gad-graphic-shape {
    top: 3%;
    left: -2%;
    width: 91%;
    height: 77%;
    border-radius: 56% 44% 52% 48% / 48% 54% 46% 52%;
    transform: rotate(-5deg);
}


/* ==========================================================
   23 | WEB DESIGN VISUAL
   Polygonal shape from the homepage; shares the hero art stage.
   Values proportional to the Lead Generation illustration area.
========================================================== */

.gad-lead-shape-circle.gad-web-shape {
    top: 2%;
    left: -2%;
    width: 90%;
    height: 86%;
    border-radius: 0;
    clip-path: polygon(
        20% 2%,
        82% 7%,
        98% 44%,
        80% 93%,
        18% 100%,
        2% 56%
    );
    transform: rotate(-3deg);
}

/* ==========================================================
   24 | CONTENT CREATION VISUAL
   Square yellow shape rotated -3deg, as in the homepage.
   Shared hero stage and illustration placement remain unchanged.
========================================================== */

.gad-lead-shape-circle.gad-content-shape {
    top: 3%;
    left: 1%;
    width: 85%;
    height: 85%;
    border-radius: 0;
    transform: rotate(-3deg);
}


/* ==========================================================
   25 | BACK TO SERVICES - SHARED LINK
   All four service HERO pages
   Approved alignment: left column, above service eyebrow.
   The link and content spacing are adjustable independently.
========================================================== */

.gad-lead-back-anchor {
    position: relative;
    height: 30px;
}

.gad-lead-back-link {
    position: absolute;
    top: -55px;
    left: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gad-lead-blue, #352f78);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.gad-lead-back-link:hover,
.gad-lead-back-link:focus-visible {
    color: var(--gad-lead-blue, #352f78);
    text-decoration: none;
}

.gad-lead-back-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--gad-lead-yellow, #f8c629);
    color: var(--gad-lead-blue, #352f78);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
}

.gad-lead-back-text {
    position: relative;
    display: inline-block;
}

.gad-lead-back-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 3px;
    background: var(--gad-lead-yellow, #f8c629);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
}

.gad-lead-back-link:hover .gad-lead-back-circle,
.gad-lead-back-link:focus-visible .gad-lead-back-circle {
    transform: translateX(-5px);
}

.gad-lead-back-link:hover .gad-lead-back-text::after,
.gad-lead-back-link:focus-visible .gad-lead-back-text::after {
    transform: scaleX(1);
}

.gad-lead-back-link:focus-visible {
    outline: 2px solid var(--gad-lead-blue, #352f78);
    outline-offset: 6px;
}

/* Keep the service text and the back link independently positioned.
   The 30px content offset replicates the approved Web Design test. */
.gad-lead-copy > .gad-lead-eyebrow,
.gad-lead-copy > .gad-lead-title,
.gad-lead-copy > .gad-lead-text,
.gad-lead-copy > .gad-lead-cta {
    position: relative;
    top: 30px;
}

/* Align the right-hand artwork with the lowered left-hand content. */
@media (min-width: 960px) {
    .gad-lead-visual {
        top: 50px;
    }
}

@media (max-width: 959px) {
    .gad-lead-visual {
        top: 0;
    }
}

@media (max-width: 639px) {
    .gad-lead-back-anchor {
        height: 20px;
    }

    .gad-lead-back-link {
        top: -50px;
        gap: 10px;
        font-size: 12px;
    }

    .gad-lead-back-circle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 20px;
    }

    .gad-lead-copy > .gad-lead-eyebrow,
    .gad-lead-copy > .gad-lead-title,
    .gad-lead-copy > .gad-lead-text,
    .gad-lead-copy > .gad-lead-cta {
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gad-lead-back-circle,
    .gad-lead-back-text::after {
        transition: none;
    }
}
