header, footer {
    background-color: #231f20;
}

.motogp-display, .motogp-text {
	font-family: "Roboto Condensed", sans-serif;
}

.border-red-motogp {
	border-color: #ed1c24;
}

.red-motogp {
	color: #ed1c24;
}

.red-motogp:hover {
	color: #ed1c24;
}

.bck-red-motogp {
	background-color: #ed1c24;
}

.bck-red-motogp:hover {
	background-color: rgba(237, 28, 36, 0.7)
}

.border-motogp {
  border-color: #ffc266;
}

.subtitle-motogp {
    font-size: 1.75rem;
    line-height: 1.75rem;
}

.text-motogp {
    /*font-size:1.5rem;*/
    font-size: calc(1.275rem + .3vw);
}

.btnfixsize {
    width: 43.9vw;
    Height: 11.6vw;
}

#partecipate {
    background-position: top left;
    Background-color:#fff;
}

#race {
  font-size: calc(1.275rem + .3vw);
}

#partecipatebtn {
    witdh: 116px;
}

.navbar-toggler-icon {
    background-size:140%;
}

@media screen and (min-width:992px) {
    #menu {
        font-weight: bold;
        font-size: 1.2rem;
    }
    #partecipate: {
        background-size: 36%;
    }
    
    #partecipatebtn {
        witdh: auto;
    }
    
    /* Titolo to participate */
    #saveform > div:nth-child(1) > div > h1: {
    font-size: 1.75rem;
    margin-top: 1rem!important;
    margin-bottom: 0!important;
    }
}

/* evidenziazione voce menu partecipa */
#navbarSupportedContent > ul > li.nav-item.bg-white {
  Width: 116px;
}

@media screen and (min-width:992px) {
  /* evidenziazione voce menu partecipa */
  #navbarSupportedContent > ul > li.nav-item.bg-white {
      Width: inherit;
  }
}

@media screen and (max-width:992px) {
  	.h1-motogp { 
		font-size: 5.1vw;
		letter-spacing: 0.1vw;
	}
}
.btn-dark {
 color: #c0a144
}

.fs-1 {
 Font-size: 3.8vw !important;
}

/* Home page layout */
.home-saveform {
    margin-top: 265px;
}

.home-container-800 {
    max-width: 800px;
    width: 74.874vw;
    margin: auto;
}

.home-findwinner {
    font-size: 4vw;
    margin-top: 1vw;
}

.home-pilot-wrap {
    max-width: 46.418vw;
    min-width: 211px;
}

.home-pilot-select {
    margin-top: 3vw !important;
    padding:2.422vw;
}

.home-answerthequiz {
    margin-top: 5.8vw !important;
    letter-spacing: 0.2vw;
}

.home-question-text {
    font-size: 3.8vw;
    margin-top: 1.7vw;
    line-height: 5.1vw;
}

.home-answer-radio {
    font-size: 4.1vw;
}

.home-answer-label {
    width: 86%;
    font-size: 3.22vw;
    margin-top: 0.8vw;
}

.home-loginarea {
    margin-top: 4vw !important;
}

.home-loginarea.is-hidden {
    display: none;
}

.home-loginarea.is-visible {
    display: block;
}

.home-logoutarea.is-hidden {
    display: none;
}

.home-logoutarea.is-visible {
    display: block;
}

.home-btn-row {
    margin-top: 0.75rem;
}

.home-form-bg {
    background-color: #fefaee;
}

.home-form-row {
    margin-bottom: 2rem;
}

.home-form-row-first {
    margin-bottom: 2rem;
    margin-top: 6.5vw !important;
    padding-top: 6vw !important;
}

.home-label-col {
    width: 165px;
}

.home-input-wide {
    background-color: transparent;
    width: 59.031vw;
    height: 6.559vw;
}

.home-terms-label {
    font-size: 2vw;
}

.home-form-actions {
    padding-bottom: 4vw;
}

/* =========================================================================
   DESKTOP layout (992px+) — pixel-perfect match to demo1desk.jpg (1199x2148)
   ========================================================================= */
@media screen and (min-width: 992px) {
    #partecipate-desktop {
        display: block;
        background: #fff;
        overflow: hidden;
    }

    #desk-saveform {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
        transform-origin: top left;
        background: #fff;
    }

    /* The wrapper container around top section: span full width */
    #partecipate-desktop > form > .home-container-800 {
        max-width: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* H1 "COMPILA I CAMPI QUI SOTTO" — 834x109, right-aligned to viewport */
    #partecipate-desktop .h1-motogp {
        display: flex;
        align-items: center;
        justify-content: left;
        width: 738px;
        height: 109px;
        margin: 0 0 0 auto !important;
        padding: 0 0 0 27px;
        border: 1px solid #000;
        border-right: 0;
        font-size: 22px;
        line-height: 23px;
        letter-spacing: 0.5px;
    }

    #partecipate-desktop .container-h1-motogp {
        margin-top:72px;
    }

    #partecipate-desktop .h1-motogp-bck-it {
        background: url(../img/bandiera-ita.jpg) no-repeat;
        background-position-x: 0%;
        background-position-y: 0%;
        background-size: auto;
        background-size: contain;
        background-position: left center;
        max-width: 291px;
        height: 100%;
        width: 24.27vw
    }

    #partecipate-desktop .h1-motogp-bck-en {
        background: url(../img/bandiera-eng.jpg) no-repeat;
        background-position-x: 0%;
        background-position-y: 0%;
        background-size: auto;
        background-size: contain;
        background-position: left center;
        max-width: 291px;
        height: 100%;
        width: 24.27vw
    }

    /* "PRONOSTICA IL VINCITORE" — centered to viewport */
    #partecipate-desktop .home-findwinner {
        margin: 56px 0 0 !important;
        font-size: 18px;
        line-height: 18px;
        text-align: center;
    }

    /* Pilot select wrapper — full width to allow centering */
    #partecipate-desktop > form > .home-container-800 > .row {
        margin: 0;
    }
    #partecipate-desktop > form > .home-container-800 > .row > .col,
    #partecipate-desktop > form > .home-container-800 > .row > [class^="col-"] {
        padding: 0;
    }
    #partecipate-desktop .home-pilot-wrap {
        max-width: none;
        width: 100%;
        text-align: center;
    }

    /* SELEZIONA VINCITORE select — 253x48, centered */
    #partecipate-desktop .home-pilot-select {
        display: inline-block;
        width: 253px;
        height: 48px;
        margin: 36px auto 0 !important;
        padding: 0 12px;
        font-size: 14px !important;
        letter-spacing: 1px;
    }

    /* "E RISPONDI AL QUIZ..." box — 912x109, LEFT-aligned to viewport */
    #partecipate-desktop .home-answerthequiz {
        display: flex;
        align-items: center;
        justify-content: right;
        width: 810px;
        height: 109px;
        margin: 47px 0 0 0 !important;
        padding: 0 51px 0 0;
        border-left: 0px solid #000;
        border-right: 1px solid #000;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        font-size: 22px;
        line-height: 23px;
        letter-spacing: 0.5px;
    }

    /* Quiz question text — centered */
    #partecipate-desktop .home-question-text {
        margin: 37px 0 0 !important;
        font-size: 18px;
        line-height: 18px;
        text-align: center;
    }

    /* Quiz answers — left-padded block centered visually */
    #partecipate-desktop .home-form-bg ~ * .row,
    #partecipate-desktop > form > .home-container-800 .row.mb-0 {
        justify-content: center;
    }
    #partecipate-desktop .home-form-bg ~ * .col-11,
    #partecipate-desktop > form > .home-container-800 .row.mb-0 > .col-11 {
        max-width: 470px;
        flex: 0 0 470px;
        padding: 0;
        margin-top: 8px !important;
    }
    #partecipate-desktop .home-answer-radio {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }
    #partecipate-desktop .home-answer-label {
        max-width: 440px;
        margin-left: 12px;
        font-size: 15px;
        line-height: 26px;
        margin-top:0px;
    }
    #partecipate-desktop .form-check.d-flex {
        justify-content: flex-start !important;
    }

    /* "SE VUOI ANDARE PIÙ VELOCE (OPZIONALE)" box — 834x109, right-aligned */
    #partecipate-desktop .home-loginarea {
        margin-top: 48px !important;
    }
    #partecipate-desktop #desk-loginarea > .row:first-child {
        margin: 0;
    }
    #partecipate-desktop #desk-loginarea > .row:first-child > .col {
        padding: 0;
    }
    #partecipate-desktop #desk-loginarea > .row:first-child > .col > p:first-child {
        display: flex !important;
        align-items: center;
        justify-content: left;
        width: 815px;
        height: 109px;
        margin: 0 0 0 auto !important;
        padding: 0 0 0 44px;
        border: 1px solid #000;
        border-right: 0;
        font-size: 22px;
        line-height: 23px;
        letter-spacing: 0.5px;
        text-align: center;
        text-transform: uppercase;
    }
    #partecipate-desktop #desk-loginarea > .row:first-child > .col > p:first-child span {
        margin-right: 6px;
    }
    /* "VUOI SALVARE I TUOI DATI…" — centered text below box */
    #partecipate-desktop #desk-loginarea > .row:first-child > .col > p:nth-child(2) {
        margin: 38px 0 0 !important;
        padding: 0;
        font-size: 18px;
        line-height: 20px;
        text-align: center;
        text-transform: uppercase;
    }

    /* "HAI GIÀ UN ACCOUNT?" text */
    #partecipate-desktop #desk-loginarea > .row:nth-child(3) {
        margin: 0 !important;
    }
    #partecipate-desktop #desk-loginarea > .row:nth-child(3) > .col > p {
        margin: 38px 0 0 !important;
        font-size: 16px;
        line-height: 18px;
        text-align: center;
        text-transform: uppercase;
    }

    /* Button rows in loginarea (REGISTRATI / LOGIN) — centered */
    #partecipate-desktop #desk-loginarea > .row:nth-child(2),
    #partecipate-desktop #desk-loginarea > .row:nth-child(4),
    #partecipate-desktop #desk-logoutarea > .row {
        margin: 0 !important;
    }
    #partecipate-desktop #desk-loginarea > .row:nth-child(2) > .col-12 {
        margin: 31px 0 0 !important;
        padding: 0;
        text-align: center;
    }
    #partecipate-desktop #desk-loginarea > .row:nth-child(4) > .col-12 {
        margin: 30px 0 0 !important;
        padding: 0;
        text-align: center;
    }
    #partecipate-desktop #desk-logoutarea {
        margin-top: 90px !important;
    }
    #partecipate-desktop #desk-logoutarea > .row > .col-12 {
        padding: 0;
        text-align: center;
    }

    /* Buttons (REGISTRATI / LOGIN / INVIA) — 252x49, centered */
    #partecipate-desktop .btnfixsize {
        display: inline-block;
        width: 252px;
        height: 49px;
        margin: 0 auto !important;
        font-size: 14px;
        line-height: 49px;
        letter-spacing: 1px;
        padding: 0;
    }
    #partecipate-desktop .d-grid {
        display: block !important;
        text-align: center;
    }

    /* ===== Form section (cream background) ===== */
    #partecipate-desktop .home-form-bg {
        margin-top: 46px;
        padding: 0;
    }
    #partecipate-desktop .home-form-bg .home-container-800 {
        max-width: none;
        width: 100%;
        padding: 64px 0 0;
        margin: 0;
    }
    #partecipate-desktop .home-form-bg .row.justify-content-center {
        margin: 0;
    }

    /* Form rows — fixed width 750px, positioned at left=245 to match image */
    #partecipate-desktop .home-form-row,
    #partecipate-desktop .home-form-row-first {
        margin: 0 0 52px !important;
        padding: 0;
    }
    #partecipate-desktop .home-form-row-first {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    #partecipate-desktop .home-form-row > .d-flex,
    #partecipate-desktop .home-form-row-first > .d-flex {
        width: 750px;
        justify-content: flex-start !important;
        align-items: center;
        gap: 0;
    }

    /* Label column — 154px */
    #partecipate-desktop .home-label-col {
        width: 154px !important;
        flex: 0 0 154px;
    }
    #partecipate-desktop .home-form-bg .fs-2 {
        font-size: 17px !important;
        line-height: 18px;
        text-transform: uppercase;
    }

    /* Input wide — 602x70 */
    #partecipate-desktop .home-input-wide {
        width: 602px;
        height: 70px;
        font-size: 14px;
        border-width: 1px !important;
        padding: 0 16px;
    }

    /* Privacy / marketing rows — 750px wide, positioned at left=245 */
    #partecipate-desktop .home-form-bg > .home-container-800 > .row.justify-content-center > .col-11.mt-4,
    #partecipate-desktop .home-form-bg > .home-container-800 > .row.justify-content-center > .col-11.mb-5 {
        max-width: 600px;
        flex: 0 0 600px;
        width: 600px;
        margin: auto;
        padding: 0;
    }
    #partecipate-desktop .home-form-bg .row.justify-content-center > .col-11.mt-4 {
        margin-top: 32px !important;
    }
    #partecipate-desktop .home-form-bg .row.justify-content-center > .col-11.mb-5 {
        margin-top: 18px !important;
        margin-bottom: 0 !important;
    }
    #partecipate-desktop .home-terms-label {
        font-size: 12px;
        line-height: 14px;
    }

    /* INVIA button row — full width centered, padding-bottom 56 */
    #partecipate-desktop #desk-formgioco {
        padding: 0;
    }
    #partecipate-desktop #desk-formgioco .row {
        margin: 0;
    }
    #partecipate-desktop #desk-formgioco .col-12 {
        margin: 32px 0 0 !important;
        padding: 0 0 56px;
        text-align: center;
    }
}

/* Scale form proportionally between 992 and 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    #desk-saveform {
        transform: scale(calc(100vw / 1199));
    }
    #partecipate-desktop {
        height: calc(2148px * (100vw / 1199));
    }
}

@media screen and (min-width: 1200px) {
    #desk-saveform {
        transform: none;
    }
}

.activemotogp {
    color: #c39945 !important;
}

.concorso-terminato-text {
    padding-left: 180px;
}

@media screen and (max-width: 991.98px) {
    .concorso-terminato-text {
        padding-left: 170px;
    }
}