/* CINGILAPAI — HOME */

/* HOME — BASE */
.hero {
    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom:
        1px solid var(--line);
}


.hero-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}


.hero h1,
.section h2,
.origin h2,
.tester-section h2 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;
}


.hero h1 {
    max-width: 720px;

    margin:
        14px 0 24px;

    font-size:
        clamp(3rem, 6vw, 5.7rem);

    line-height: .98;

    font-weight: 500;
}


.hero h1 span {
    display: block;

    color: var(--gold-light);
}


.hero-lead {
    max-width: 650px;

    margin-bottom: 32px;

    color: #d9dfd9;

    font-size: 1.15rem;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 26px;
}


.development-status {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--muted);

    font-size: .9rem;
}


.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 999px;

    background: #58c878;

    box-shadow:
        0 0 14px rgba(88,200,120,.8);
}


.hero-visual {
    position: relative;

    min-height: 520px;
}


.game-table {
    position: absolute;

    inset:
        90px 50px 50px 50px;

    border:
        1px solid rgba(216,166,77,.65);

    border-radius: 34px;

    display: grid;

    place-items: center;

    background:
        radial-gradient(
            circle at center,
            #17503e,
            #09241c
        );

    box-shadow:
        0 45px 100px rgba(0,0,0,.55),
        inset 0 0 90px rgba(0,0,0,.35);

    transform:
        perspective(800px)
        rotateX(9deg)
        rotateZ(-3deg);
}


.game-table span {
    color:
        rgba(240,206,130,.65);

    font-family: Georgia, serif;

    letter-spacing: .15em;
}


.card {
    position: absolute;

    z-index: 5;

    width: 145px;
    height: 220px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-radius: 14px;

    background: #f4eddd;

    color: #16211d;

    box-shadow:
        0 30px 60px rgba(0,0,0,.4);

    font-family: Georgia, serif;

    font-size: 1.4rem;
}


.card strong {
    align-self: center;

    margin-bottom: 50px;

    color: #a47a26;

    font-size: 3.4rem;
}


.card-one {
    left: 0;
    top: 120px;

    transform:
        rotate(-14deg);
}


.card-two {
    left: 41%;
    top: 15px;

    transform:
        rotate(8deg);
}


.card-three {
    right: 0;
    bottom: 15px;

    transform:
        rotate(17deg);
}


.features {
    background:
        var(--green-900);

    border-bottom:
        1px solid var(--line);
}


.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);
}


.feature-grid article {
    min-height: 210px;

    padding: 38px 28px;

    border-right:
        1px solid var(--line);
}


.feature-grid article:last-child {
    border-right: 0;
}


.feature-number {
    color: var(--gold);

    font-family: Georgia, serif;

    font-size: 1.6rem;
}


.feature-grid h2 {
    margin-bottom: 8px;

    font-family: Georgia, serif;
}


.feature-grid p {
    margin: 0;

    color: var(--muted);
}


.section {
    padding:
        105px 0;
}


.section-light {
    background: var(--cream);

    color: var(--text-dark);
}


.section-heading {
    margin-bottom: 50px;

    text-align: center;
}


.section-heading h2 {
    margin: 0;

    font-size:
        clamp(2.2rem,4vw,3.6rem);
}


.steps {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;

    margin-bottom: 45px;
}


.step {
    padding: 34px;

    border:
        1px solid rgba(9,35,28,.14);

    border-radius:
        var(--radius);

    text-align: center;
}


.step > span {
    width: 46px;
    height: 46px;

    margin:
        0 auto 20px;

    display: grid;

    place-items: center;

    border-radius: 999px;

    background: var(--green-900);

    color: var(--gold-light);

    font-weight: 800;
}


.center {
    text-align: center;
}


.split {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}


.large-text {
    font-size: 1.2rem;

    color: #d7ddd8;
}


.deck-preview {
    display: flex;
    justify-content: center;

    gap: 14px;
}


.mini-card {
    width: 105px;
    height: 160px;

    padding: 14px;

    border-radius: 12px;

    background: var(--cream);

    color: var(--text-dark);

    box-shadow:
        0 18px 45px rgba(0,0,0,.3);

    font-family: Georgia, serif;

    font-size: 1.25rem;
}


.mini-card:nth-child(1) {
    transform:
        rotate(-7deg);
}


.mini-card:nth-child(2) {
    transform:
        translateY(-12px)
        rotate(-2deg);
}


.mini-card:nth-child(3) {
    transform:
        translateY(-10px)
        rotate(3deg);
}


.mini-card:nth-child(4) {
    transform:
        rotate(8deg);
}


.origin {
    padding:
        95px 0;

    background: var(--green-900);

    border:
        1px solid var(--line);

    border-left: 0;
    border-right: 0;
}


.origin h2,
.tester-section h2 {
    margin-top: 8px;

    font-size:
        clamp(2.2rem,4vw,3.6rem);
}


.tester-section {
    padding:
        90px 0;

    background:
        linear-gradient(
            110deg,
            var(--cream) 0%,
            var(--cream) 50%,
            var(--green-850) 50%,
            var(--green-850) 100%
        );

    color:
        var(--text-dark);
}


.tester-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;
}


.tester-grid > div:first-child {
    max-width: 520px;
}


.tester-action {
    display: flex;

    justify-content: center;
}



/* HOME — VISUAL POLISH */
/* HERO */

.hero {
    position: relative;
    min-height: 800px;
    padding: 70px 0 90px;
}

.hero-grid {
    grid-template-columns: .95fr 1.05fr;
    gap: 90px;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero .eyebrow {
    margin-bottom: 18px;
    font-size: .86rem;
    letter-spacing: .22em;
}

.hero h1 {
    max-width: 690px;
    margin: 0 0 28px;
    font-size: clamp(4rem, 6.3vw, 6.5rem);
    line-height: .93;
}

.hero h1 span {
    margin-top: 5px;
    color: #efc870;
    text-shadow: 0 6px 28px rgba(216,166,77,.16);
}

.hero-lead {
    max-width: 610px;
    font-size: 1.23rem;
    line-height: 1.7;
}

.hero-actions {
    margin-top: 34px;
    gap: 17px;
}

.development-status {
    margin-top: 30px;
}


/* TAVOLO */

.hero-visual {
    min-height: 620px;
    isolation: isolate;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(216,166,77,.14),
            rgba(11,62,46,.10) 45%,
            transparent 72%
        );
    z-index: -2;
}

.game-table {
    inset: 95px 35px 55px 55px;
    border: 2px solid rgba(216,166,77,.64);
    border-radius: 38px;

    background:
        radial-gradient(
            circle at 50% 42%,
            #185844 0%,
            #0d382c 45%,
            #08271f 100%
        );

    box-shadow:
        0 55px 110px rgba(0,0,0,.58),
        inset 0 0 100px rgba(0,0,0,.34),
        inset 0 0 0 9px rgba(216,166,77,.025);
}

.game-table::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(216,166,77,.20);
    border-radius: 26px;
}

.game-table span {
    font-size: 1.15rem;
    letter-spacing: .24em;
    color: rgba(239,200,112,.66);
}


/* CARTE PROVVISORIE */

.card {
    width: 158px;
    height: 235px;
    padding: 16px;

    border: 1px solid rgba(43,37,24,.14);

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #eee4d0
        );

    box-shadow:
        0 28px 55px rgba(0,0,0,.46),
        inset 0 0 0 4px rgba(255,255,255,.42);
}

.card strong {
    color: #aa7921;
    font-size: 3.7rem;
}

.card-one {
    left: -4px;
    top: 185px;
    transform: rotate(-18deg);
}

.card-two {
    left: 41%;
    top: 22px;
    transform: rotate(7deg);
}

.card-three {
    right: -10px;
    bottom: 8px;
    transform: rotate(16deg);
}


/* QUATTRO CARATTERISTICHE */

.features {
    background:
        linear-gradient(
            180deg,
            #0a2e24,
            #08251d
        );

    box-shadow:
        inset 0 1px rgba(216,166,77,.22),
        inset 0 -1px rgba(216,166,77,.22);
}

.feature-grid article {
    min-height: 245px;
    padding: 48px 34px;
    transition: background .25s ease;
}

.feature-grid article:hover {
    background: rgba(216,166,77,.045);
}

.feature-number {
    display: block;
    margin-bottom: 20px;
    color: #efc870;
    font-size: 1.85rem;
}

.feature-grid h2 {
    margin: 0 0 12px;
    font-size: 1.38rem;
}

.feature-grid p {
    font-size: .98rem;
    line-height: 1.65;
}


/* SEZIONI */

.section {
    padding: 125px 0;
}

.section-heading {
    margin-bottom: 65px;
}

.section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.section-light {
    background:
        linear-gradient(
            180deg,
            #f8f1e3,
            #eee3d0
        );
}

.steps {
    gap: 32px;
}

.step {
    min-height: 250px;
    padding: 42px 36px;

    background: rgba(255,255,255,.28);

    border: 1px solid rgba(67,50,20,.18);

    box-shadow:
        0 14px 32px rgba(60,43,18,.05);
}

.step > span {
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
}

.step h3 {
    font-family: Georgia, serif;
    font-size: 1.45rem;
}


/* MAZZO */

.split {
    gap: 90px;
}

.section:not(.section-light) h2 {
    color: var(--gold-light);
    font-size: clamp(2.7rem, 4.4vw, 4.3rem);
}

.large-text {
    font-size: 1.18rem;
    line-height: 1.75;
}

.deck-preview {
    gap: 18px;
}

.mini-card {
    width: 125px;
    height: 185px;
    padding: 17px;

    border: 1px solid rgba(33,24,13,.12);

    box-shadow:

        0 24px 55px rgba(0,0,0,.35);
}


/* ORIGINE */

.origin {
    padding: 115px 0;

    background:
        radial-gradient(
            circle at 10% 60%,
            rgba(216,166,77,.07),
            transparent 35%
        ),
        #092b22;
}


/* TESTER */

.tester-section {
    padding: 110px 0;

    background:
        linear-gradient(
            108deg,
            #f5eddd 0%,
            #f5eddd 48%,
            #0b3429 48.1%,
            #08271f 100%
        );
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;

        padding:
            90px 0;
    }


    .hero-grid,
    .split,
    .tester-grid {
        grid-template-columns:
            1fr;
    }


    .hero-visual {
        min-height: 420px;
    }


    .feature-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .steps {
        grid-template-columns:
            1fr;
    }

    .tester-section {
        background:
            var(--cream);
    }


    .tester-action {
        justify-content:
            flex-start;
    }
    .hero {
        min-height: auto;
        padding: 75px 0 85px;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero h1 {
        font-size: clamp(3.6rem, 13vw, 5.2rem);
    }

    .hero-visual {
        min-height: 480px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 3.15rem;
    }


    .hero-visual {
        min-height: 340px;
    }


    .game-table {
        inset:
            70px 25px 35px;
    }


    .card {
        width: 90px;
        height: 140px;

        font-size: 1rem;
    }


    .card strong {
        margin-bottom: 20px;

        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        border-right: 0;

        border-bottom:
            1px solid var(--line);
    }


    .deck-preview {
        gap: 6px;
    }


    .mini-card {
        width: 70px;
        height: 115px;
    }
    .hero h1 {
        font-size: 3.25rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .card {
        width: 95px;
        height: 145px;
    }

    .section {
        padding: 85px 0;
    }

    .tester-section {
        background: #f5eddd;
    }
}


/* =========================================================
   HOME — REAL GAMEPLAY HERO v1
   ========================================================= */

.hero-visual {
    position: relative;

    min-height: 650px;

    display: block;
    isolation: isolate;
}


.hero-visual::before {
    content: "";

    position: absolute;

    width: 590px;
    height: 590px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(216,166,77,.17) 0%,
            rgba(17,83,63,.13) 42%,
            transparent 72%
        );

    filter: blur(2px);

    z-index: -2;
}


.hero-visual::after {
    content: "";

    position: absolute;

    width: 72%;
    height: 70px;

    left: 50%;
    bottom: 25px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(0,0,0,.48);

    filter: blur(30px);

    z-index: -1;
}


.hero-device {
    position: absolute;

    margin: 0;
    padding: 9px;

    border:
        1px solid rgba(239,200,112,.34);

    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            #18211d,
            #050807
        );

    box-shadow:
        0 35px 80px rgba(0,0,0,.52),
        0 0 0 1px rgba(255,255,255,.04),
        inset 0 0 0 1px rgba(255,255,255,.05);

    overflow: hidden;
}


.hero-device img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 25px;
}


.hero-device-primary {
    width: min(340px, 58%);

    right: 3%;
    top: 50%;

    transform:
        translateY(-50%)
        rotate(4deg);

    z-index: 3;
}


.hero-device-secondary {
    width: min(285px, 48%);

    left: 2%;
    top: 52%;

    transform:
        translateY(-50%)
        rotate(-7deg);

    opacity: .94;

    z-index: 2;
}


@media (max-width: 900px) {

    .hero-visual {
        min-height: 610px;

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

        margin:
            0 auto;
    }


    .hero-device-primary {
        width: min(335px, 57%);

        right: 8%;
    }


    .hero-device-secondary {
        width: min(275px, 47%);

        left: 8%;
    }

}


@media (max-width: 560px) {

    .hero-visual {
        min-height: 480px;
    }


    .hero-visual::before {
        width: 420px;
        height: 420px;
    }


    .hero-device {
        padding: 6px;

        border-radius: 25px;
    }


    .hero-device img {
        border-radius: 19px;
    }


    .hero-device-primary {
        width: 57%;

        right: 5%;

        transform:
            translateY(-50%)
            rotate(3deg);
    }


    .hero-device-secondary {
        width: 47%;

        left: 3%;

        transform:
            translateY(-50%)
            rotate(-6deg);
    }

}


/* =========================================================
   HOME — HERO FULL BACKGROUND v2
   ========================================================= */

.hero {
    position: relative;

    min-height: 720px;
    padding: 80px 0;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(1,15,11,.24) 0%,
            rgba(1,15,11,.14) 37%,
            rgba(1,15,11,.02) 58%,
            transparent 74%
        ),
        url("/assets/media/hero/cingilapai-hero.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    border-bottom: 1px solid rgba(216,166,77,.28);

    overflow: hidden;
}


/* Disattiviamo completamente il precedente sistema visuale */
.hero-art,
.hero-visual {
    display: none !important;
}


/* Il contenuto torna nella zona sinistra */
.hero-grid {
    position: relative;
    z-index: 2;

    display: grid;

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

    width: 100%;

    align-items: center;
}


.hero-content {
    grid-column: 1;

    width: 100%;
    max-width: 650px;
}


.hero h1 {
    max-width: 650px;

    margin-bottom: 26px;

    font-size:
        clamp(3.8rem, 5vw, 5.8rem);

    line-height: .95;
}


.hero-lead {
    max-width: 600px;

    font-size: 1.15rem;
    line-height: 1.7;
}


/*
 * Ombra molto leggera solamente dietro il testo.
 * Non deve coprire il tavolo.
 */
.hero::after {
    content: "";

    position: absolute;

    inset: 0 auto 0 0;

    width: 58%;

    background:
        linear-gradient(
            90deg,
            rgba(0,12,9,.34),
            rgba(0,12,9,.12) 70%,
            transparent
        );

    pointer-events: none;

    z-index: 1;
}


@media (max-width: 1000px) {

    .hero {
        min-height: 680px;

        background-position: 58% center;
    }


    .hero-grid {
        grid-template-columns:
            minmax(0, 590px)
            1fr;
    }


    .hero-content {
        max-width: 590px;
    }

}


@media (max-width: 760px) {

    .hero {
        min-height: 680px;

        padding: 70px 0;

        background-position: 67% center;
    }


    .hero::after {
        width: 100%;

        background:
            linear-gradient(
                90deg,
                rgba(0,12,9,.88) 0%,
                rgba(0,12,9,.68) 55%,
                rgba(0,12,9,.25) 100%
            );
    }


    .hero-grid {
        display: block;
    }


    .hero-content {
        max-width: 570px;
    }


    .hero h1 {
        max-width: 560px;

        font-size:
            clamp(3.1rem, 12vw, 4.5rem);
    }

}


@media (max-width: 520px) {

    .hero {
        min-height: 650px;

        padding:
            65px 0 75px;

        background-position: 72% center;
    }


    .hero h1 {
        font-size:
            clamp(2.9rem, 13vw, 3.8rem);
    }


    .hero-lead {
        font-size: 1.03rem;
    }

}


/* =========================================================
   HOME — HERO FINAL LAYOUT v3
   ========================================================= */

.hero {
    min-height: 720px;
    padding: 72px 0;

    background-color: #031a13;

    background-image:
        linear-gradient(
            90deg,
            rgba(2,20,15,.92) 0%,
            rgba(2,20,15,.72) 27%,
            rgba(2,20,15,.32) 43%,
            rgba(2,20,15,0) 58%
        ),
        url("/assets/media/hero/cingilapai-hero.webp");

    /*
     * Il visual viene mostrato interamente in altezza.
     * La parte eventualmente libera a sinistra viene
     * riempita naturalmente dal verde della Hero.
     */
    background-size:
        100% 100%,
        auto 100%;

    background-position:
        center center,
        calc(50% + 218px) center;

    background-repeat: no-repeat;
}


/* Stesso allineamento orizzontale dell'header */
.hero-grid {
    width: min(1280px, calc(100% - 96px));
    max-width: 1280px;

    margin-left: auto;
    margin-right: auto;

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

    gap: 40px;
}


/* Blocco testuale */
.hero-content {
    position: relative;

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

    padding:
        20px 0
        22px 30px;

    border-left:
        2px solid rgba(231,193,118,.72);
}


/* Piccolo dettaglio decorativo sul bordo */
.hero-content::before {
    content: "";

    position: absolute;

    width: 9px;
    height: 9px;

    left: -5px;
    top: 18px;

    border-radius: 50%;

    background: #e7c176;

    box-shadow:
        0 0 18px rgba(231,193,118,.45);
}


.hero h1 {
    max-width: 700px;

    margin:
        12px 0 26px;

    font-size:
        clamp(3.6rem, 4.6vw, 5.25rem);

    line-height: .98;
}


.hero-lead {
    max-width: 590px;

    margin-bottom: 28px;

    font-size: 1.12rem;
    line-height: 1.7;
}


.hero-actions {
    margin-top: 28px;
}


.development-status {
    margin-top: 24px;
}


/* L'overlay precedente non serve più */
.hero::after {
    display: none;
}


@media (max-width: 1000px) {

    .hero-grid {
        width: min(100% - 56px, 900px);

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


    .hero-content {
        max-width: 620px;
    }


    .hero h1 {
        max-width: 620px;

        font-size:
            clamp(3.4rem, 7vw, 4.8rem);
    }

}


@media (max-width: 760px) {

    .hero {
        min-height: 680px;

        background-size:
            100% 100%,
            auto 100%;

        background-position:
            center,
            66% center;
    }


    .hero-grid {
        width: calc(100% - 40px);

        display: block;
    }


    .hero-content {
        max-width: 570px;

        padding-left: 22px;
    }


    .hero h1 {
        font-size:
            clamp(3rem, 11vw, 4.2rem);
    }

}


@media (max-width: 520px) {

    .hero {
        min-height: 650px;

        padding:
            58px 0 70px;

        background-position:
            center,
            70% center;
    }


    .hero-grid {
        width: calc(100% - 32px);
    }


    .hero-content {
        padding-left: 18px;
    }


    .hero h1 {
        font-size:
            clamp(2.8rem, 12vw, 3.7rem);
    }

}


/* =========================================================
   HOME — COME SI GIOCA v1
   ========================================================= */

.howto-home .section-heading {
    max-width: 760px;

    margin:
        0 auto 58px;
}


.howto-intro {
    max-width: 680px;

    margin:
        20px auto 0;

    color: rgba(28,38,33,.76);

    font-size: 1.08rem;
    line-height: 1.7;
}


.howto-home .steps {
    margin-bottom: 65px;
}


.howto-home .step {
    position: relative;

    min-height: 270px;

    background:
        rgba(255,255,255,.36);
}


.howto-gallery {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0,1fr));

    gap: 18px;

    max-width: 1500px;

    margin:
        0 auto 50px;
}


.howto-shot {
    margin: 0;
    padding: 9px;

    border:
        1px solid rgba(76,55,24,.20);

    border-radius: 22px;

    background:
        #0a2d23;

    box-shadow:
        0 24px 55px rgba(55,38,16,.15);

    overflow: hidden;
}


.howto-shot img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 15px;
}


.howto-shot figcaption {
    padding:
        17px 12px 10px;

    color: #f2d58e;

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.12rem;
}


.howto-action {
    display: flex;

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

    gap: 24px;
}


.howto-rule-link {
    color: #17362c;

    font-weight: 700;

    text-decoration:
        underline;

    text-decoration-color:
        rgba(167,118,32,.50);

    text-underline-offset:
        5px;
}


@media (max-width: 1500px) {

    .howto-gallery {
        grid-template-columns:
            repeat(6, minmax(220px, 240px));

        overflow-x: auto;

        justify-content: start;

        padding-bottom: 14px;

        scroll-snap-type:
            x proximity;
    }


    .howto-shot {
        scroll-snap-align:
            start;
    }

}


@media (max-width: 560px) {

    .howto-gallery {
        grid-template-columns:
            repeat(6, minmax(230px, 78vw));
    }


    .howto-shot img {
        height: auto;
    }


    .howto-action {
        flex-direction: column;
    }

}


/* =========================================================
   HOME — MAZZO CINGILAPAI v1
   ========================================================= */

.deck-showcase {
    position: relative;

    margin: 0;
    padding: 12px;

    border:
        1px solid rgba(216,166,77,.32);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(216,166,77,.08),
            rgba(4,27,21,.30)
        );

    box-shadow:
        0 35px 75px rgba(0,0,0,.32);

    overflow: hidden;
}


.deck-showcase img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 16px;
}


.deck-showcase figcaption {
    padding:
        15px 10px 5px;

    color: var(--gold-light);

    text-align: center;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;
}


@media (max-width: 900px) {

    .deck-showcase {
        max-width: 760px;

        margin:
            10px auto 0;
    }

}


/* =========================================================
   HOME — QUATTRO MAZZI REALI v2
   ========================================================= */

.deck-preview-real {
    position: relative;

    display: block;

    width: 100%;
    max-width: 650px;
    min-height: 430px;

    margin:
        0 auto;
}


.deck-preview-real .deck-card {
    position: absolute;

    width: 31%;
    max-width: 190px;
    height: auto;

    filter:
        drop-shadow(0 26px 30px rgba(0,0,0,.38));

    transform-origin:
        center bottom;
}


.deck-card-1 {
    left: 1%;
    top: 105px;

    transform:
        rotate(-12deg);
}


.deck-card-2 {
    left: 25%;
    top: 28px;

    transform:
        rotate(-4deg);
}


.deck-card-3 {
    right: 24%;
    top: 30px;

    transform:
        rotate(5deg);
}


.deck-card-4 {
    right: 1%;
    top: 108px;

    transform:
        rotate(12deg);
}


@media (max-width: 900px) {

    .deck-preview-real {
        max-width: 620px;
        min-height: 400px;

        margin-top: 25px;
    }

}


@media (max-width: 560px) {

    .deck-preview-real {
        min-height: 300px;
    }


    .deck-preview-real .deck-card {
        width: 32%;
    }


    .deck-card-1 {
        top: 78px;
    }


    .deck-card-2,
    .deck-card-3 {
        top: 18px;
    }


    .deck-card-4 {
        top: 78px;
    }

}


/* =========================================================
   HOME — QUATTRO MAZZI SPACING v3
   ========================================================= */

.deck-preview-real {
    max-width: 760px;
    min-height: 450px;
}


.deck-preview-real .deck-card {
    width: 32%;
    max-width: 205px;
}


/* Carta sinistra */
.deck-card-1 {
    left: -2%;
    top: 120px;

    transform:
        rotate(-13deg);
}


/* Centro sinistra */
.deck-card-2 {
    left: 22%;
    top: 30px;

    transform:
        rotate(-5deg);
}


/* Centro destra */
.deck-card-3 {
    right: 22%;
    top: 28px;

    transform:
        rotate(5deg);
}


/* Carta destra */
.deck-card-4 {
    right: -3%;
    top: 112px;

    transform:
        rotate(13deg);
}


@media (max-width: 900px) {

    .deck-preview-real {
        max-width: 680px;
    }

}


@media (max-width: 560px) {

    .deck-preview-real {
        min-height: 310px;
    }


    .deck-preview-real .deck-card {
        width: 34%;
    }


    .deck-card-1 {
        left: -5%;
        top: 80px;
    }


    .deck-card-2 {
        left: 20%;
        top: 20px;
    }


    .deck-card-3 {
        right: 20%;
        top: 20px;
    }


    .deck-card-4 {
        right: -5%;
        top: 80px;
    }

}


/* =========================================================
   HOME — MAZZI LAYOUT v4
   Più spazio al visual senza modificare gli altri .split
   ========================================================= */

.deck-section .container.split {
    width: min(calc(100% - 56px), 1500px);

    grid-template-columns:
        minmax(420px, 0.82fr)
        minmax(650px, 1.18fr);

    gap: 45px;
}


.deck-section .deck-copy {
    max-width: 570px;
}


.deck-section .deck-preview-real {
    width: 100%;
    max-width: 820px;

    justify-self: end;
}


@media (max-width: 1100px) {

    .deck-section .container.split {
        width: min(calc(100% - 56px), 1320px);

        grid-template-columns:
            1fr 1fr;

        gap: 50px;
    }

}


@media (max-width: 825px) {

    .deck-section .container.split {
        grid-template-columns:
            1fr;
    }


    .deck-section .deck-preview-real {
        justify-self: center;
    }

}


/* =========================================================
   HOME — HERO MOBILE/TABLET IMAGE OVERRIDE
   Ottimizzazione LCP senza cambiare layout
   ========================================================= */

@media (max-width: 1024px) {
    .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(2,20,15,.92) 0%,
                rgba(2,20,15,.72) 27%,
                rgba(2,20,15,.32) 43%,
                rgba(2,20,15,0) 58%
            ),
            url("/assets/media/hero/cingilapai-hero-960.webp");
    }
}

@media (max-width: 640px) {
    .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(2,20,15,.92) 0%,
                rgba(2,20,15,.72) 27%,
                rgba(2,20,15,.32) 43%,
                rgba(2,20,15,0) 58%
            ),
            url("/assets/media/hero/cingilapai-hero-640.webp");
    }
}


/* =========================================================
   HOME — TESTER ACCESSIBILITY CONTRAST
   Contrasto WCAG per eyebrow su fondo chiaro
   ========================================================= */

.page-home .tester-section .eyebrow {
    color: #73521c;
}


/* =========================================================
   HOME — MOBILE DECK SECTION OVERFLOW FIX FINAL
   Diagnostica reale Android:
   .deck-section aggiungeva 26px allo scrollWidth del documento.
   Le carte restano nella posizione approvata, ma lo sbordo
   laterale non può più ampliare la Home.
   ========================================================= */

@media (max-width: 560px) {

    .page-home .deck-section {
        overflow-x: hidden;
        overflow-x: clip;
    }

}

