@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%
    );
}

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;
    background-repeat: no-repeat;
    color: var(--white);
    font-family: var(--font);
    font-size: var(--font-size);
    font-weight: 400;
    position: relative;
}

.optin_modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
#main_container.optin_accepted_false {
    filter: blur(10px);
    overflow: hidden;
}

.optin_modal_content {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 95%;
    max-width: 600px;
    border: 3px solid transparent;
    border-radius: 3px;
    background:
        linear-gradient(180deg, #243561, #08122c) padding-box,
        var(--oro-gradient) border-box;
    box-shadow: 4px 4px 4px #00000045;
}

.optin_modal_content p {
    margin-bottom: 20px;
}

.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: 95%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.t_e_c {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 92%;
    height: auto;
    padding: 40px 0;
}

.t_e_c h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.t_e_c p {
    font-size: 14px;
    line-height: 1.6;
}

.t_e_c ul {
    font-size: 14px;
    list-style-position: inside;
    margin: 5px 0;
}

.t_e_c ul li {
    padding: 5px 0;
}

table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: auto;
    min-width: 300px;
    margin: 20px 0;
    font-size: 14px;
}

td,
th {
    border: 1px solid #ddd;
    padding: 5px;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    color: white;
}

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;
    padding-bottom: 50px;
    position: relative;
}

.homepage_container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.4;
    z-index: 0;
}

.homepage_header {
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2;
}
.homepage_header_inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
}

.homepage_header_inner h1 {
    font-size: 78px;
    font-weight: 900;
    color: #e1af25;
    letter-spacing: 4px;
    text-shadow:
              -1px -1px 1px #fff9d6, /* Luce riflessa (avorio caldo) */
              0px 1px 0 #4a3c11,    /* Inizio estrusione (bronzo scuro, più chiaro del #2e2e2e) */
              0px 2px 0 #43360f,
              0px 3px 0 #3d310d,
              0px 4px 0 #362b0b,
              0px 5px 0 #30260a,
              0px 6px 0 #292008,
              0px 7px 0 #231b06,
              0px 8px 0 #1c1504,
              0px 9px 0 #161002,    /* Fine estrusione (quasi nero, ma a base gialla) */
              2px 14px 5px rgba(0, 0, 0, 0.9),  /* Ripristinate le ombre ambientali profonde */
              5px 16px 5px rgba(0, 0, 0, 0.3),
              8px 17px 8px rgba(0, 0, 0, 0.5),
              8px 18px 35px rgba(0, 0, 0, 0.9);

    text-rendering: optimizeLegibility;
    position: relative;
    display: inline-block;
}

.homepage_header_innerh1::before {
  content:"";
  width: 100%;
  height: 750px;
  position: absolute;
  top: -200px;
  left: 10px;
  transform: rotate(55deg);
  background: rgba(206,188,155,.7);
  background: -moz-linear-gradient(left, rgba(206,188,155,.7) 0%, rgba(42,31,25,0) 65%);
  background: -webkit-gradient(left top, right top, color-stop(0%, rgba(206,188,155,.7)), color-stop(65%, rgba(42,31,25,0)));
  background: -webkit-linear-gradient(left, rgba(206,188,155,.7) 0%, rgba(42,31,25,0) 65%);
  background: -o-linear-gradient(left, rgba(206,188,155,.7) 0%, rgba(42,31,25,0) 65%);
  background: -ms-linear-gradient(left, rgba(206,188,155,.7) 0%, rgba(42,31,25,0) 65%);
  background: linear-gradient(to right, rgba(206,188,155,.7) 0%, rgba(42,31,25,0) 65%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cebc9b', endColorstr='#2a1f19', GradientType=0.7 ); );
}

.homepage_header_inner p {
    font-size: 16px;
    text-transform: none;
    margin: 10px auto;
    max-width: 600px;
}

.homepage_items {
    display: grid;
    grid-template-columns: repeat(3, 28%);
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.homepage_item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}
.homepage_item p {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--yellow);
    margin-top: -40px;
}
.homepage_item_button {
    margin-top: auto;
}
.homepage_item_image_button {
    width: 80%;
    height: auto;
    position: relative;
}
.homepage_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img_luce {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none; /* Evita che interferisca con i click del mouse */

    /* Applichiamo il tuo effetto di brillantezza */
    filter: brightness(1.8);

    /* Creiamo una maschera lineare a 45° (da in basso a sinistra a in alto a destra) */
    -webkit-mask-image: linear-gradient(
        45deg,
        transparent var(--pos-luce),
        #000 calc(var(--pos-luce) + 15%),
        transparent calc(var(--pos-luce) + 30%)
    );
    mask-image: linear-gradient(
        45deg,
        transparent var(--pos-luce),
        #000 calc(var(--pos-luce) + 15%),
        transparent calc(var(--pos-luce) + 30%)
    );

    /* Animazione continua ogni 3 secondi */
    animation: passaLuce 3s infinite ease-in-out;
}

.img_luce2 {
    animation-delay: 0.3s;
}
.img_luce3 {
    animation-delay: 0.6s;
}

@property --pos-luce {
    syntax: "<percentage>";
    inherits: false;
    initial-value: -50%;
}
@keyframes passaLuce {
    0% {
        --pos-luce: -50%; /* Parte fuori dallo schermo in basso a sinistra */
    }
    96%,
    100% {
        --pos-luce: 130%; /* Arriva in alto a destra e si ferma un attimo prima di ripartire */
    }
}

/* 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: 120px;
    height: 110px;
    object-fit: cover;
}
.app_header_tools {
    text-align: right;
}

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

.testo_intro button {
    margin-top: 0;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
}

/* modal */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.modal-open {
    display: flex;
}
.modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 11, 29, 0.7);
}
.modal_dialog {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--dark);
    border-radius: 12px;
    padding: 30px 24px 24px;
    max-width: 500px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal_dialog h3 {
    padding-right: 30px;
    padding-bottom: 10px;
    color: var(--dark-light);
}
.modal_dialog h5 {
    color: var(--green);
    margin-top: 10px;
}
.modal_dialog table {
    margin: 5px 0;
    min-width: 200px;
}
.modal_dialog th {
    color: var(--dark-light);
}
.modal_close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    color: var(--dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.modal_close:hover {
    color: var(--yellow);
}
.modal_content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}
.modal_content p {
    margin-bottom: 10px;
}
body.modal-body-lock {
    overflow: hidden;
}

/* sfide mondiali */

.sfide_mondiali_container {
    padding-bottom: 40px;
}

.sfide_mondiali_statusbar_container {
    width: 100%;
    padding: 0 10px;
}
.sfide_mondiali_statusbar_text {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
}
.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;
    box-shadow: inset 0 0 0 2px #45576e;
    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: 0;
    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);
    white-space: nowrap;
    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;
    cursor: grab;
    width: 100%;
    height: auto;
    min-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 2px solid transparent;
    box-shadow: 2px 2px 8px #00000045;
    min-height: 200px;
    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(--white);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--yellow);
    z-index: 1;
    width: 93%;
}

.sm_mission_current .sm_mission_item_title {
    color: var(--yellow);
}

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

.sm_mission_item_description p:first-child {
    font-size: 18px;
}
.sm_mission_item_description p:nth-child(2) {
    color: var(--yellow);
    font-size: 21px;
    margin-bottom: 2px;
}

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

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

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

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

.swiper-pagination.swiper-pagination .swiper-pagination-bullet {
    background-color: #929292;
}

.swiper-pagination.swiper-pagination
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: var(--yellow);
}

.sm_mission_current {
    position: relative;
}
.sm_mission_current:after {
    content: "OGGI";
    position: absolute;
    width: 50px;
    height: 26px;
    top: -15px;
    right: 10px;
    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;
    border-radius: 0 5px 5px 5px;
    box-shadow: 4px 4px 4px #00000045;
}
.sm_mission_item_title:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0px 13px 10px;
    border-color: transparent transparent #e0e0e0 transparent;
    transform: rotate(0deg);
    top: -15px;
    right: 60px;
    display: none;
}
.sm_mission_current .sm_mission_item_title:before {
    display: block;
}

.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);
}

.sm_mission_passata {
    opacity: 0.5;
}

.sm_mission_completed {
    opacity: 1;
    background:
        linear-gradient(180deg, #198662, #08122c) padding-box,
        var(--oro-gradient) border-box;
}

.sm_mission_completed:after {
    content: "COMPLETATA";
    position: absolute;
    width: 90px;
    height: 26px;
    top: -15px;
    right: 10px;
    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;
    border-radius: 0 5px 5px 5px;
    box-shadow: 4px 4px 4px #00000045;
}
.sm_mission_completed .sm_mission_item_title:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0px 0px 13px 10px;
    border-color: transparent transparent #e0e0e0 transparent;
    transform: rotate(0deg);
    top: -15px;
    right: 100px;
    display: none;
}
.sm_mission_completed .sm_mission_item_title:before {
    display: block;
}

.sm_mission_completed .sm_mission_item_icon {
    display: block;
    width: 34px;
    height: 34px;
    background: url(check.svg) no-repeat center;
    background-size: contain;
}

.sm_mission_skipped .sm_mission_item_icon {
    display: block;
    width: 34px;
    height: 34px;
    background: url(x.svg) no-repeat center;
    background-size: contain;
}

/* fine sfide mondiali */

/* Caccia al codice */

.caccia_al_codice_container {
    padding-bottom: 50px;
}

.combinazione_vincente_cnt {
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.combinazione_vincente_testi {
    text-align: center;
    max-width: 600px;
    margin: 5px auto;
}

.montepremi {
    width: 260px;
    margin: -30px auto 0 auto;
}
.montepremi img, .montepremi_quiz img {
    width: 100%;
    height: auto;
}

.montepremi_quiz {
    width: 260px;
    margin: 0 auto 0 auto;
}

.biglietto_vincente {
    position: relative;
    margin: 10px auto;
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 0;
    border-radius: 5px;
    border: 3px solid transparent;
    box-shadow: 2px 2px 8px #00000045;
    min-width: 280px;
    background:
        linear-gradient(180deg, #243561, #08122c) padding-box,
        var(--oro-gradient) border-box;
}

.biglietto_vincente_header {
    padding: 5px;
    text-align: center;
    background: url(bg_oro.jpg) no-repeat top;
    background-size: cover;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}
.biglietto_vincente_header h6 {
    color: var(--white);
    font-weight: 600;
}

.biglietto_vincente_numbers {
    display: flex;
    gap: 17px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.numbers_col {
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: center;
}
.numbers_col h6 {
    color: var(--white);
    font-size: 13px;
    margin-bottom: 5px;
}
.numbers_row {
    display: flex;
    gap: 4px;
}

.numero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 37px;
}

.numero span {
    width: 32px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    opacity: 0.5;
}
.numero p {
    font-size: 10px;
    color: var(--white);
    text-align: center;
    margin-top: 5px;
}

.miei_biglietti h4 {
    color: var(--white);
}

.miei_biglietti {
    width: 100%;
}

.miei_biglietti p {
    font-style: italic;
    color: var(--yellow);
    padding: 10px 0;
}

.filtri {
    width: 100%;
}

.filtri ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100vw;
    margin: 10px 0 10px calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filtri ul::-webkit-scrollbar {
    display: none;
}

.filtri ul li {
    flex-shrink: 0;
}

.filtri ul li a {
    display: block;
    font-family: var(--font-h);
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 99px;
    border: 2px solid var(--white);
    text-transform: uppercase;
    opacity: 0.5;
}

.filtri ul li.active a {
    opacity: 1;
    border: 2px solid transparent;
    background:
        linear-gradient(180deg, var(--green), var(--green)) padding-box,
        var(--oro-gradient) border-box;
}

.ticket {
    /* max-width: 280px; */
    border-radius: 0 0 5px 5px;
    border: 3px solid transparent;
    background:
        linear-gradient(180deg, #eaeaea, #eaeaea) padding-box,
        var(--oro-gradient) border-box;
    box-shadow: 4px 4px 4px #00000045;
}

.ticket_header {
    padding: 5px;
    font-size: 12px;
    text-align: center;
    background: linear-gradient(90deg, #243561, #000000);
}

.ticket_numbers {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 10px 5px;
    position: relative;
}

.ticket_numbers:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
    width: 70px;
    height: 76px;
    background: url(pallone_eurobet.png) no-repeat bottom right;
    background-size: contain;
}

.ticket_number {
    background-color: #cbcbcb;
    border: 1px solid var(--dark-light);
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-h);
    color: var(--dark-light);
    padding: 10px 10px;
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

/* Fine Caccia al codice */

/* Inizio Quiz Battle */

.quiz_battle_container {
    padding-bottom: 50px;
}

.quiz_main_cnt {
    display: flex;
    gap: 1%;
    width: 100%;
    /* align-items: start; */
    justify-content: start;
}

.quiz_cnt {
    width: 64%;
    min-width: 64%;
    max-width: 64%;
    border: 3px solid transparent;
    border-radius: 3px;
    background:
        linear-gradient(180deg, #243561, #08122c) padding-box,
        var(--oro-gradient) border-box;
    box-shadow: 4px 4px 4px #00000045;
}

#quiz_play_area {
    display: flex;
    flex-direction: column;
}

.quiz_header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: space-around;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    padding: 20px;
    background: url(background.jpg) no-repeat center center;
    background-size: cover;
    position: relative;
}
.quiz_header:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: transparent;
    background-image: var(--oro-gradient);
    background-position: bottom;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.giorno_quiz {
    font-family: var(--font-h);
    font-size: 28px;
    color: var(--yellow);
    text-align: center;
}

.squadra {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
}

.squadra_logo {
    width: 60px;
    height: 60px;
}
.squadra_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.squadra_nome {
    font-family: var(--font-h);
    font-size: 24px;
    font-weight: 700;
    margin-top: 5px;
    text-align: center;
}

.quiz_domanda {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.quiz_domanda-hidden {
    display: none;
}

.quiz_empty_state {
    padding: 40px 20px;
    text-align: center;
    font-family: var(--font-h);
    font-size: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.quiz_empty_state .muted {
    opacity: 0.7;
    margin-top: 10px;
}

.quiz_completed-hidden {
    display: none;
}

.quiz_completed_state {
    padding: 60px 20px;
    text-align: center;
    font-family: var(--font-h);
    font-size: 24px;
    font-weight: 700;
    color: var(--yellow);
}

.quiz_domanda_dual_numeric {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 520px;
    margin: 20px auto;
}

.quiz_dual_numeric_field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-h);
    font-weight: 600;
}

.quiz_dual_numeric_label {
    text-align: center;
}

.quiz_dual_numeric_stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.quiz_dual_numeric_btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    font-family: var(--font-h);
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.8;
}

.quiz_dual_numeric_btn-up {
    padding-bottom: 2px;
}

.quiz_dual_numeric_btn-down {
    padding-bottom: 4px;
}

.quiz_dual_numeric_btn:hover:not(:disabled) {
    border-color: var(--yellow);
    color: var(--yellow);
    opacity: 1;
}

.quiz_dual_numeric_btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quiz_dual_numeric_input {
    width: 72px;
    padding: 12px 8px;
    border-radius: 99px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-h);
    font-size: 21px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    border: 1px solid transparent;
    background:
        linear-gradient(90deg, var(--dark-light), var(--dark)) padding-box,
        var(--oro-gradient) border-box;
}

.quiz_dual_numeric_input::-webkit-outer-spin-button,
.quiz_dual_numeric_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quiz_dual_numeric_input:focus {
    outline: none;
    border-color: var(--yellow);
}

.numero_domanda strong {
    color: var(--yellow);
}

.quiz_domanda_question {
    font-family: var(--font-h);
    font-size: 28px;
    font-weight: 700;
    margin: 10px auto;
}
.quiz_domanda_question span {
    display: block;
}

.punti_domanda span {
    background-color: var(--yellow);
    padding: 5px 10px;
    color: var(--dark-light);
    border-radius: 5px;
    font-family: var(--font-h);
    font-weight: 700;
    display: block;
}

.quiz_domanda_answers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 200px));
    justify-content: center;
    margin: 20px auto;
    width: 100%;
}

.quiz_answer {
    background-color: transparent;
    color: var(--white);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 99px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    opacity: 0.6;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}
.quiz_answer.selected {
    opacity: 1;
    border: 2px solid transparent;
    background:
        linear-gradient(180deg, var(--green), var(--green)) padding-box,
        var(--oro-gradient) border-box;
}

.quiz_cnt .button {
    align-self: flex-end;
    margin: 20px;
}

.quiz_cnt .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.quiz_classifica {
    width: 35%;
    min-width: 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    border: 3px solid transparent;
    background:
        linear-gradient(180deg, #243561, #08122c) padding-box,
        var(--oro-gradient) border-box;
    box-shadow: 4px 4px 4px #00000045;
}

.quiz_classifica .classifica_tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid var(--white);
}

.quiz_classifica .classifica_tabs a {
    padding: 10px 5px;
    display: block;
    border-radius: 0 2px 0 0;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 18px;
}
.quiz_classifica .classifica_tabs a:first-child {
    border-radius: 2px 0 0 0;
}
.quiz_classifica .classifica_tabs a.tab_sel {
    background: var(--yellow);
    color: var(--dark-light);
}

.quiz_completed_gia_inviato {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    min-height: 200px;
    height: 100%;
}

.quiz_completed_gia_inviato h4::before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background: url("check.svg") no-repeat center center;
    background-size: contain;
    margin: 0 auto;
}

.tab_classifica {
    padding: 10px;
}

.classifica_tipo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.class_tab {
    width: 50%;
    padding: 7px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--font-h);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--white);
    border-radius: 0 99px 99px 0;
}
.class_tab:first-child {
    border-radius: 99px 0 0 99px;
    border-right: none;
}
.class_tab.class_tab_sel {
    color: var(--yellow);
}

.switch_settimana {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 10px 0 10px;
}
.switch_settimana span {
    font-family: var(--font-h);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--yellow);
}

.arrow {
    width: 25px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
}
.arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.arrow_next {
    transform: scaleX(-1);
}

.classifica_settimana {
    padding-top: 10px;
}

.classifica_settimana ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.classifica_settimana ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 5px;
}
.classifica_settimana ul li span {
    display: block;
    font-size: 14px;
}

.classifica_settimana ul li .score {
    margin-left: auto;
}
.classifica_settimana ul li .name {
    text-transform: uppercase;
}
.classifica_settimana ul li.mio_utente {
    color: var(--yellow);
    font-weight: bold;
}

.classifica_settimana ul li.quiz_leaderboard_empty {
    justify-content: center;
    color: var(--white);
    opacity: 0.8;
}

.tab_miei_punti {
    padding: 10px;
}

.no_points_summary {
    text-align: center;
    color: var(--white);
    opacity: 0.8;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.quiz_points_summary {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quiz_points_summary li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.quiz_points_summary li .score {
    margin-left: auto;
    color: var(--yellow);
    font-weight: 600;
}

.quiz_points_summary li .name {
    text-transform: uppercase;
    font-size: 14px;
}

.switch_settimana .arrow {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch_settimana .arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.quiz_user_score {
    margin-top: 8px;
    color: var(--yellow);
}

/* Fine Quiz Battle */

@media (max-width: 768px) {
    :root {
        --font-size: 14px;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 22px;
    }
    h4 {
        font-size: 20px;
    }
    h5 {
        font-size: 18px;
    }
    h6 {
        font-size: 16px;
    }

    #main_container.optin_accepted_false {
        max-height: 600px;
    }

    .app_header_container {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 0 10px;
    }

    .button {
        font-size: 14px;
    }
    .app_header_tools .button {
        max-width: 100px;
        white-space: normal;
        padding: 5px 10px;
    }
    .app_header_logo {
        text-align: center;
    }

    .homepage_items {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .homepage_header_inner h1{font-size: 48px; letter-spacing: normal;}

    .homepage_item_image_button {
        width: 70%;
        max-width: 250px;
    }

    .sfide_mondiali_progressbar_step_bonus {
        font-size: 18px;
    }
    .sfide_mondiali_progressbar_step_requirements {
        font-size: 10px;
        white-space: break-spaces;
    }

    .sfide_mondiali_progressbar_cursor {
        top: calc(var(--progressbar-size) * -0.55);
        right: calc(var(--progressbar-size) * -0.95);
        width: calc(var(--progressbar-size) * 2);
        height: calc(var(--progressbar-size) * 2);
    }

    .sfide_mondiali_progressbar_step_icon {
        height: 45px;
    }

    .mission_carousel .swiper-slide.swiper-slide-active {
        transform: scale(1.08);
    }
    .sfide_mondiali_progressbar_steps {
        height: calc(var(--progressbar-size) * 3);
    }

    .sfide_mondiali_progressbar_cnt {
        padding-bottom: 0;
    }

    .testo_intro {
        margin: 0 auto 20px auto;
    }

    .sfide_mondiali_statusbar_text {
        text-align: center;
        font-size: 16px;
        margin-top: 10px;
    }

    .montepremi {
        margin: -15px auto 0 auto;
    }

    .quiz_main_cnt {
        flex-direction: column;
        gap: 20px;
    }
    .quiz_cnt,
    .quiz_classifica {
        width: 100%;
        min-width: 100%;
    }
    .giorno_quiz {
        font-size: 21px;
    }
    .squadra_nome,
    .quiz_answer {
        font-size: 18px;
    }
    .quiz_domanda_question {
        font-size: 21px;
    }
    .punti_domanda span {
        font-size: 12px;
    }
    .squadra_logo {
        width: 50px;
        height: 50px;
    }

    .filtri ul li a {
        font-size: 14px;
    }
}
