﻿@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: #56a2e4;
    --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*/
.top-menu {
    width: 100%;
    background-color: var(--prim-color);
    line-height: 40px;
    padding-top: 0.2rem;
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: center
}

.title-header{
    display:flex;
}

.title-header svg{
    fill: #fff;
    max-width:50px;
    cursor: pointer;
}
    .title-header svg:hover {
        transform: scale(1.2)
    }

.title-header h1 {
    font-size: 50px;
    margin: 40px auto;
    font-weight: bold;
    text-align: center;
}

.top-menu a {
    padding: 5px 10px;
    margin-left: 20px;
    cursor: pointer;
    font-weight: bold;
    text-transform: capitalize;
}

.container {
    max-width: 100%;
}

.left-menu a {
    display: block;
}

    .left-menu a.selected {
        color: var(--ter-color);
    }

.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 {
    flex-basis: 12%;
    margin: 0 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .bottone-reg > span {
        /*background-image: linear-gradient(to bottom, #0078D7 0%, #09a2ce);*/
        background-color: var(--prim-color);
        border: 2px solid #5f8ea9;
        line-height: 12px;
        border-radius: 5px;
        font-size: 14px;
        padding: 2px 15px;
    }

.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-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-footer > button:last-child {
            border: 1px solid var(--ter-color);
            background-color: var(--ter-color);
        }

        .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) {

    #container-inf {
        display: flex;
    }

    .promo img {
        width: -moz-available;
        width: -o-available;
        width: -ms-available;
        width: -webkit-fill-available;
        width: fill-available;
    }

    .top-menu nav {
        white-space: nowrap;
        overflow-x: auto;
        margin-right: 20px;
    }

    .top-menu a {
        margin-left: 5px;
        font-size: 16px;
    }

        .top-menu a.selected {
            background-color: var(--ter-color);
            color: #000;
        }

    a {
        border-radius: 7px;
    }

    .left-menu {
        position: sticky;
        top: 40px;
        z-index: 1;
        line-height: 30px;
        border-top: 1px solid var(--ter-color);
        background-color: #000;
        padding-right: 15px;
    }

        .left-menu nav::-webkit-scrollbar {
            display: none;
        }

        .top-menu:after,
        .left-menu:before {
            right: 3px;
            top: 3px;
            content: '>';
            color: var(--ter-color);
            position: absolute;
            z-index: 1;
            font-size: 30px;
            font-weight: 900;
        }

        .left-menu nav div {
            display: none;
        }

        .left-menu nav {
            display: flex;
            white-space: nowrap;
            overflow-x: auto;
        }

        .left-menu a {
            margin: 5px;
            padding: 0 5px;
            text-transform: uppercase;
        }

    .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;
    }

    .top-menu, .splide {
        margin-bottom: 20px;
    }

        .top-menu a {
            display: inline-block;
            margin-left: 20px;
            font-size: 1.2vw;
        }

            .top-menu a.selected,
            .top-menu a:hover {
                border-bottom: 3px solid var(--ter-color);
            }

    .left-menu nav {
        margin-left: 5px;
        border: 3px solid #000;
        background-color: var(--sec-color);
        border-radius: 7px;
    }

    .left-menu a {
        padding: 10px 5px;
        cursor: pointer;
        font-weight: 700;
        font-size: 19px;
        text-transform: capitalize;
    }

    .left-menu nav > a:not(:first-of-type) {
        border-top: 1px solid #fff;
    }

    .left-menu nav div {
        background-color: var(--prim-color);
        margin: 0 5px 5px;
    }

    .left-menu div a {
        color: inherit;
        text-decoration: none;
        font-size: 14px;
    }

        .left-menu div a:not(:first-of-type) {
            border-top: 1px solid #fff;
        }

    .container {
        display: grid;
        grid-gap: 10px;
        grid-template-columns: 200px auto;
    }

        .container > div:last-child {
            display: grid;
            grid-gap: 5px 20px;
            width: 97%;
            grid-auto-rows: min-content;
        }

    .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);
    }
}

nav a[data-filt="424"] {
    animation: bn1-glow 2s infinite;
    animation-direction: alternate;
    color: var(--ter-color);
}

.seo-content {
    position: relative;
    overflow: hidden;
    height: 59px;
    background-color: #333;
    margin: 0 5px;
    border-radius: 5px
}

    .seo-content.expanded {
        overflow: visible;
        height: auto !important;
        text-align: justify;
        padding: 0 5px
    }

        .seo-content.expanded a {
            color: var(--ter-color)
        }

.seo-accordion-header {
    font-size: 1rem;
    padding: 20px 30px 20px 7px
}

.seo-content h2 {
    font-size: 1rem
}

.seo-accordion-header:after {
    content: "";
    position: absolute;
    top: 13px;
    right: 0;
    width: 35px;
    height: 35px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARBAMAAADJQ1rJAAAAFVBMVEUAAABBQ09BQ09BQ09BQ09BQ09BQ08+mUQ5AAAABnRSTlMAGcBi5DAigwVuAAAAN0lEQVQI12MgFjAawkjmJAEgSygZyFNTBBMgLlAQhMF8sBBYMAgkBBZ0AwtBVMKMVISbLkDYAQALtwXzEgfw3wAAAABJRU5ErkJggg==) center center no-repeat #fff;
    transform: rotate(-90deg);
    border-radius: 3px
}

.seo-content.expanded .seo-accordion-header:after {
    transform: rotate(0deg)
}

.seo-content ul {
    padding-left: 25px
}

.seo-content {
    width: 97vw !important;
    display: block !important;
    background-color: #333;
    border-radius: 0.5em;
    margin: 10px 10px 40px;
    position: relative;
    overflow: hidden;
    height: 10rem;
    padding: 10px;
    line-height: 1.5em;
    text-align: justify;
}

    .seo-content h1, .seo-content h2 {
        color: var(--ter-color);
        font-weight: 700;
    }

    .seo-content a {
        color: var(--ter-color);
        text-decoration: underline;
        font-weight: 700;
    }

    .seo-content.expanded {
        overflow: visible;
        height: unset;
    }

        .seo-content.expanded .seo-accordion-header::after {
            background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARBAMAAADJQ1rJAAAAFVBMVEUAAABBQ09BQ09BQ09BQ09BQ09BQ08+mUQ5AAAABnRSTlMAGcBi5DAigwVuAAAANklEQVQI12MgDARgDEZFGEsoSQAqpOamCBMKAgqChRSBCKoKhMFCUIIZrEYoGcg1BDJAJLEAAOjQBfPTo/7yAAAAAElFTkSuQmCC);
        }

    .seo-content .seo-accordion-header::after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
        background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARBAMAAADJQ1rJAAAAFVBMVEUAAABBQ09BQ09BQ09BQ09BQ09BQ08+mUQ5AAAABnRSTlMAGcBi5DAigwVuAAAAN0lEQVQI12MgFjAawkjmJAEgSygZyFNTBBMgLlAQhMF8sBBYMAgkBBZ0AwtBVMKMVISbLkDYAQALtwXzEgfw3wAAAABJRU5ErkJggg==) center center no-repeat rgb(255, 255, 255);
        border-radius: 40px 40px 0 0;
        opacity: 0.9;
    }

.splide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/*promo page*/

#promopage h1 {
    margin-top: 40px;
    text-align: center;
    color: var(--ter-color);
}

#promopage div:not(.footer) {
    background-color: var(--prim-color);
    padding: 20px;
    text-align: justify;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#promopage div {
    margin: auto;
    max-width: 1000px;
}

/*#promopage section {
    height: 46px;
    background-color: #000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
}*/

#promopage img {
    /*float: left;*/
    margin-right: 5px;
    margin-bottom: 5px;
    max-width: 50%;
    min-width: 300px;
}

#promopage ul {
    list-style-position: inside;
}

#promopage .footer {
    margin-top: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

    #promopage .footer span {
        width: 100%;
        height: 40px;
    }

        #promopage .footer span:first-child {
            text-align: right;
        }

        #promopage .footer span:last-child {
            text-align: center;
        }

    #promopage .footer a {
        background-color: var(--ter-color);
        color: #333;
        border: 1px solid var(--ter-color);
        border-radius: 7px;
        padding: 5px;
        text-decoration: none;
    }

        #promopage .footer a:hover {
            background-color: unset;
            color: var(--ter-color);
        }

@media only screen and (max-height: 760px) {
    #promopage {
        padding-bottom: 30px;
    }
}

#reg_promo {
    padding: 10px 10px 25px 10px !important;
    display: flex;
    flex-direction: column;
    font-size: 22px !important;
}

    #reg_promo span {
        text-align: center;
    }

        #reg_promo span a {
            background-color: var(--ter-color);
            color: #333;
            border: 1px solid var(--ter-color);
            border-radius: 7px;
            padding: 5px;
            text-decoration: none;
        }

.wp-block-table table, .wp-block-table th, .wp-block-table td {
    border: 1px solid #fff;
}

.wp-block-image {
    display: flex;
}

.part-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row !important;
    gap: 20px;
}

.btnpart {
    cursor: pointer;
    background-color: #1aa91d;
    color: #ffffff;
    border-radius: 7px;
    padding: 10px;
    font-weight: bold;
    border: 1px solid #1aa91d;
}

    .btnpart:hover {
        background-color: #333;
    }

.part-result > span {
    font-weight: bold;
    padding-right: 15px;
}

.part-result {
    margin-bottom: 20px;
}
