@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font: "Lato", sans-serif;
    --font-h: "Barlow Semi Condensed", sans-serif;
    --font-size: 16px;
    --green: #198662;
    --dark: #000b1d;
    --dark-light: #001a3d;
    --white: #fff;
    --yellow: #fcd31b;
    --max-width: 1200px;
    --progressbar-size: 30px;
    --oro-gradient: linear-gradient(
        140deg,
        #d9bb82 0%,
        #d9ce7d 27%,
        #bf923d 50%,
        #745130 74%,
        #bfa56b 100%
    );
}

@media (max-width: 768px) {
    :root {
        --font-size: 16px;
    }
}

html {
    font-size: var(--font-size);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-h);
    font-weight: 700;
    color: var(--yellow);
}
h1 {
    font-size: 32px;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 24px;
}
h4 {
    font-size: 20px;
}
h5 {
    font-size: 18px;
}
h6 {
    font-size: 16px;
}

body {
    background-color: var(--dark);
    background-image: url(background.jpg);
    background-size: cover;
    background-position: bottom center;

    color: var(--white);
    font-family: var(--font);
    font-size: var(--font-size);
    font-weight: 400;
}
.yellow_text {
    color: var(--yellow);
}
.green_text {
    color: var(--green);
}
.dark_text {
    color: var(--dark);
}
.padd-v-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}
.padd-v-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}
.padd-v-5 {
    padding-top: 5px;
    padding-bottom: 5px;
}
.inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 98%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
a {
    color: var(--white);
    text-decoration: none;
}
a:hover {
    color: var(--yellow);
    transition: color 0.3s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid transparent;
    background:
        linear-gradient(90deg, var(--green), var(--green)) padding-box,
        var(--oro-gradient) border-box;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: normal;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* homepage */

.homepage_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.homepage_header {
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.homepage_header_inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}
.homepage_items {
    display: grid;
    grid-template-columns: repeat(3, 28%);
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.homepage_item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.homepage_item_image_button {
    width: 80%;
    height: auto;
}
.homepage_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.homepage_item_button {
    margin-top: -20px;
}

/* fine homepage */

.app_header {
    background-color: transparent;
    background-image: var(--oro-gradient);
    background-position: bottom;
    background-size: 100% 2px;
    background-repeat: no-repeat;
}

.app_header_container {
    display: grid;
    grid-template-columns: 100px auto 190px;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--white);
}

.app_header_nav {
    text-align: left;
}
.back_button {
    gap: 5px;
    justify-content: center;
}
.back_button::before {
    content: "";
    background: url(back.svg) no-repeat center;
    background-size: contain;
    height: 16px;
    width: 8px;
    transition: transform 0.4s ease;
}
.back_button:hover::before {
    transform: translateX(-10px);
}
.app_header_logo {
    text-align: left;
}
.app_header_logo img {
    width: 150px;
    height: 120px;
    object-fit: cover;
}
.app_header_tools {
    text-align: right;
}

.testo_intro {
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}
.testo_intro h3 {
    font-family: var(--font);
    font-weight: 900;
    padding-bottom: 5px;
}

/* sfide mondiali */

.sfide_mondiali_container {
    padding-bottom: 20px;
}

.sfide_mondiali_statusbar_container {
    width: 100%;
    padding: 20px;
}
.sfide_mondiali_statusbar_text {
    font-size: 18px;
    font-weight: 400;
    text-align: left;
}
.sfide_mondiali_statusbar_text .yellow_text {
    font-weight: 900;
}

.sfide_mondiali_progressbar_cnt {
    width: 100%;
    height: auto;
    position: relative;
    padding: 20px 0;
}
.sfide_mondiali_progressbar {
    position: relative;
    width: 100%;
    height: var(--progressbar-size);
    background-color: #ffffff45;
    border-radius: 25px;
}
.sfide_mondiali_progressbar_fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--oro-gradient);
    border-radius: 25px;
    transition: width 2s ease-in-out;
    transition-delay: 1s;
}
.sfide_mondiali_progressbar_cursor {
    position: absolute;
    top: calc(var(--progressbar-size) * -0.75);
    right: calc(var(--progressbar-size) * -1.25);
    width: calc(var(--progressbar-size) * 2.5);
    height: calc(var(--progressbar-size) * 2.5);
    border-radius: 50%;
    background: url(pallone_oro.png) center no-repeat;
    background-size: contain;
    z-index: 2;
}
.sfide_mondiali_progressbar_steps {
    position: relative;
    width: 100%;
    height: calc(var(--progressbar-size) * 3.5);
    margin-top: calc(var(--progressbar-size) * -1);
}
.sfide_mondiali_progressbar_step {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: auto;
    text-align: center;
}
.sfide_mondiali_progressbar_step_icon {
    background-image: url("fre_step_progress.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 7px;
    height: 60px;
}
.sfide_mondiali_progressbar_step_bonus {
    font-family: var(--font-h);
    font-size: 32px;
    font-weight: 700;
    color: var(--yellow);
}
.sfide_mondiali_progressbar_step_requirements {
    font-size: 14px;
    font-weight: 400;
    color: var(--yellow);
    opacity: 0.8;
}

/* missioni */

.sfide_mondiali_missioni_container {
    width: 100%;
    padding: 0;
}
.sm_mission_items_container {
    width: 100%;
    height: auto;
}

.sm_mission_item {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 2px solid transparent;
    box-shadow: 2px 2px 8px #00000045;
    background:
        linear-gradient(90deg, #4271ae, #08122c) padding-box,
        var(--oro-gradient) border-box;
}

.sm_mission_item:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 0;
    right: 0;
    background: url(pallone_big.png) no-repeat center center / cover;
    z-index: 0;
}

.sm_mission_item_title {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 400;
    color: var(--yellow);
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--yellow);
    position: relative;
    z-index: 1;
}

.sm_mission_item_description {
    font-size: 21px;
    font-weight: 600;
    font-family: var(--font-h);
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mission_carousel.swiper {
    padding-top: 40px;
    padding-bottom: 60px;
    overflow: hidden;
}

.mission_carousel .swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

.mission_carousel .swiper-slide.swiper-slide-active {
    transform: scale(1.15);
    z-index: 2;
}

.mission_carousel .swiper-pagination.swiper-pagination {
    bottom: 15px;
}

.sm_mission_current {
    position: relative;
}
.sm_mission_current:after {
    content: "OGGI";
    position: absolute;
    width: 50px;
    height: 26px;
    top: -15px;
    right: 25px;
    color: var(--dark);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: var(--font-h);
    font-weight: bold;
    box-shadow: 4px 4px 4px #00000045;
}

.sm_mission_futura {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.sm_mission_item_title_futura {
    padding: 10px 0;
    border-top: 1px solid var(--yellow);
    color: var(--white);
}

/* fine sfide mondiali */
