﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --prim-color: #0e2e58;
    --sec-color: #ed364b;
    --ter-color: #fc0;
    --quat-color: silver;
}

body {
    /*background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;*/

    background-color: var(--prim-color);
    opacity: 1;
    background-image: radial-gradient(circle at center center, #0f448a, var(--prim-color)), repeating-radial-gradient(circle at center center, #0f448a, #0f448a, 11px, transparent 22px, transparent 11px);
    background-blend-mode: multiply;
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 15px;
    margin: 0;
    max-width: 100%;
    overflow-y: auto;
}
/*index page*/
/*header*/
.head-cont {
    margin: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
    background-color: #3333334f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .head-cont img {
        max-width: 20%;
        min-width: 210px;
    }

    .head-cont a {
        text-decoration: none;
        background-color: var(--sec-color);
        color: white;
        padding: 15px;
        border-radius: 5px;
    }

/*splide*/
.splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/*menu-img-cont*/
.menu-img-cont {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 10px 0;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* scorrimento fluido su iOS */
    scroll-behavior: smooth;
    touch-action: pan-x;
}

    .menu-img-cont > img,
    .menu-img-cont > a > img {
        cursor: pointer;
        max-height: 200px;
        flex: 0 0 auto; /* evita che le immagini si restringano quando è scrollabile */
        display: block;
    }

    .menu-img-cont img:hover {
        transform: scale(1.1);
        transition: transform 0.3s ease;
    }

    /* opzionale: stile scrollbar webkit per visibilità */
    .menu-img-cont::-webkit-scrollbar {
        height: 10px;
    }

    .menu-img-cont::-webkit-scrollbar-thumb {
        background: #ffffff5e;
        border-radius: 6px;
    }

h1.no-promo {
    display: none;
    margin: auto;
    text-align: center;
}

/*desc-cont*/
.desc-cont {
    /*height: 180px;*/
    display: flex;
    justify-content: space-around;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background-color: #010820;
    margin-top: 10px;
}

.step-cont {
    display: inline-flex;
}

.step {
    font-size: 162px;
    /*opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    animation-name: descanim;*/
}


    .step.desc {
        margin: unset;
        font-size: 1.4vw;
        padding-left: 20px;
    }

        .step.desc p {
            margin-top: 10px;
            margin-bottom: 10px;
        }

            .step.desc p:nth-child(1) {
                color: var(--sec-color);
                margin-top: 35px;
                font-weight: bold;
            }

/*.step:nth-child(n+1):nth-child(-n+2) {
        animation-delay: 1s;
    }

    .step:nth-child(n+3):nth-child(-n+4) {
        animation-delay: 2s;
    }

    .step:nth-child(n+5):nth-child(-n+6) {
        animation-delay: 3s;
    }

    .step.desc p:nth-child(1) {
        font-size: 2.2vw;
    }*/


.container {
    max-width: 100%;
}

.promo-caption {
    background-color: var(--quat-color);
    color: var(--prim-color);
    font-weight: 700;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    font-style: italic;
}

.promo {
    background-image: linear-gradient(var(--sec-color), #6b6b6b 216%);
    /*display: flex;*/
}

.promo-title {
    flex-basis: 94%;
    text-transform: uppercase;
    font-size: 20px;
}

.bottone-reg {
    padding: 10px 10px 25px 10px !important;
    display: flex;
    flex-direction: column;
    font-size: 22px !important;
}

    .bottone-reg > span {
        text-align: center;
    }
        .bottone-reg > span>a {
        background-color: var(--ter-color);
        color: #333;
        border: 1px solid var(--ter-color);
        border-radius: 7px;
        padding: 5px;
        text-decoration: none;
    }

.promo-info {
    text-align: center;
    background-color: var(--ter-color);
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
    padding: 0 9px;
    margin: auto;
}

    .promo-info:hover {
        transform: scale(1.2)
    }

footer {
    margin: 20px 0;
    background-color: var(--prim-color);
    padding: 0 10px;
}

    footer a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        text-decoration: none;
        color: #fff;
    }

        footer a img {
            min-width: 50px;
            height: 50px;
        }

.modal {
    display: none;
    background-color: #00000066;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    justify-content: center;
}

.modal-content {
    background-color: var(--prim-color);
    margin: auto;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    padding: 8px;
    border-radius: 10px;
}

.modal-header {
    position: relative;
}

    .modal-header > h1 {
        text-align: center;
        color: var(--ter-color);
    }

    .modal-header > span {
        /*position: absolute;
            top: -25px;
            right: 0;*/
        font-size: 20px;
        color: #f00;
        font-weight: 900;
    }

.modal-body {
    font-size: 20px;
}

    .modal-body img {
        max-width: 100%;
    }

.part-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    gap: 20px;
    padding: 20px;
    text-align: justify;
    font-size: 15px;
}

    .part-section > div {
        flex-direction: column;
        display: flex;
        align-items: center;
    }

.btnpart {
    cursor: pointer;
    background-color: #1aa91d;
    color: #ffffff;
    border-radius: 7px;
    padding: 10px;
    font-weight: bold;
    border: 1px solid #1aa91d;
}

.modal-footer {
    text-align: right;
}

    .modal-footer > button {
        font-size: 15px;
        padding: 8px;
        border-radius: 5px;
        font-weight: 700;
    }

        .modal-footer > button:first-child {
            border: 1px solid var(--ter-color);
            color: var(--ter-color);
            background: unset;
        }

        .modal-header > span:hover,
        .modal-header > span:focus,
        .modal-footer > button:hover {
            cursor: pointer;
            filter: grayscale(0.5);
        }

.fallback-img {
    margin: auto;
    text-align: center;
}

    .fallback-img img {
        max-width: 100%;
    }

@media only screen and (max-height: 760px) {
    body {
        padding-bottom: 20px;
    }

    p.title, p.title {
        display: none;
    }
}

@media only screen and (max-width: 602px) {

    .desc-cont {
        flex-direction: column;
        gap: 20px;
    }
    .step.desc {
        font-size: 15px;
    }

    #container-inf {
        display: flex;
    }

    .promo img {
        width: -moz-available;
        width: -o-available;
        width: -ms-available;
        width: -webkit-fill-available;
        width: fill-available;
    }

    .container > div:last-child {
        width: 95%;
        margin: 10px auto 0;
    }

    .promo-caption {
        text-align: center;
        height: 25px;
        line-height: 25px;
    }

    .promo {
        /*height: 80px;*/
        height: auto;
        margin: 10px 0;
        /*padding: 0 5px;*/
        padding: 5px 5px;
    }

    .promo-title {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modal-content {
        width: 90vw;
    }
}

@media only screen and (min-width: 603px) {

    #container-inf {
        width: 100%;
    }

    .promo, .promo {
        display: flex;
    }

        .promo img {
            display: none;
        }

    ::-webkit-scrollbar {
        width: .8rem;
        height: .8rem;
    }

    .splide {
        margin-bottom: 20px;
    }

    

    .promo-caption {
        height: 40px;
        line-height: 40px;
        padding-inline-start: 15px;
        font-size: 20px;
    }

    .promo {
        padding: 25px;
        cursor: pointer;
    }

    .modal-content {
        width: 50vw;
    }
}

@media only screen and (min-width: 603px) and (max-width: 1300px) {
    .container > div:last-child {
        grid-template-columns: 50% 50%;
    }

    .promo-caption {
        -ms-grid-column: 1 / 3;
        grid-column: 1 / 3;
    }
}

@media only screen and (min-width: 1301px) {
    .container > div:last-child {
        grid-template-columns: 33.3% 33.3% 33.3%;
    }

    .promo-caption {
        -ms-grid-column: 1 / 4;
        grid-column: 1 / 4;
    }
}

@keyframes bn1-glow {
    0% {
        filter: drop-shadow(0px 0px 0px #fff);
    }

    100% {
        filter: drop-shadow(0px 0px 20px #fff);
    }
}
