/*
==========================================================
 Giocoscuola - Il Milionario 3.0
 CSS COMPLETO
==========================================================
*/

/*=========================================================
 RESET
=========================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/*=========================================================
 BODY
=========================================================*/

body{

    font-family:Arial,Helvetica,sans-serif;

    background:#eef5fb;

    color:#222;
}


/*=========================================================
 CONTENITORE GENERALE
=========================================================*/

#contenitore{

    width:100%;

    margin:0 auto;
}


/*=========================================================
 CONTENITORE GIOCO
=========================================================*/

#contenitoregioco{

    width:min(1400px,96%);

    margin:25px auto;

    background:#ffffff;

    border-radius:16px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.15);

    padding:30px;
}


/*=========================================================
 TITOLI
=========================================================*/

h2{

    text-align:center;

    color:#005baa;

    font-size:40px;

    margin-bottom:25px;
}


h3{

    color:#005baa;

    text-align:center;

    margin-bottom:20px;

    font-size:26px;
}


.sottotitolo{

    text-align:center;

    color:#666;

    margin-bottom:10px;
}


/*=========================================================
 HEADER
=========================================================*/

.header{

    width:min(1400px,96%);

    margin:15px auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    position:relative;

    min-height:90px;
}


.header > a{

    display:block;

    flex:0 0 auto;
}


.header > a img{

    display:block;

    max-height:90px;

    width:auto;
}


/*=========================================================
 PULSANTE MENU SMARTPHONE
=========================================================*/

#btnMenu{

    display:none;

    width:50px;

    height:50px;

    padding:0;

    margin:0 10px 0 auto;

    flex:0 0 50px;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:6px;

    background:#f7941d;

    border:none;

    border-radius:8px;

    cursor:pointer;
}


#btnMenu span{

    display:block;

    width:28px;

    height:4px;

    margin:0;

    padding:0;

    flex:0 0 4px;

    background:#ffffff;

    border-radius:3px;
}


/*=========================================================
 MENU PRINCIPALE
=========================================================*/

#menuGiocoscuola{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:10px;

    margin-left:auto;
}


#menuGiocoscuola > a,
.gc-dropdown-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    padding:10px 16px;

    border:none;

    border-radius:8px;

    background:transparent;

    color:#005baa;

    font-family:inherit;

    font-size:18px;

    font-weight:bold;

    text-decoration:none;

    cursor:pointer;

    transition:.25s;
}


#menuGiocoscuola > a:hover,
.gc-dropdown-btn:hover{

    background:#005baa;

    color:#ffffff;
}


/*=========================================================
 TENDINA MATERIALI DELLE LEZIONI
=========================================================*/

.gc-dropdown{

    position:relative;

    display:block;
}


.gc-dropdown-btn{

    gap:7px;
}


.gc-freccia{

    font-size:11px;

    transition:transform .2s ease;
}


.gc-dropdown-menu{

    display:none;

    position:absolute;

    top:100%;

    left:50%;

    transform:translateX(-50%);

    width:270px;

    margin-top:5px;

    padding:8px 0;

    background:#ffffff;

    border-radius:10px;

    box-shadow:
        0 6px 18px rgba(0,0,0,.18);

    z-index:2000;
}


.gc-dropdown.aperto .gc-dropdown-menu{

    display:block;
}


.gc-dropdown.aperto .gc-freccia{

    transform:rotate(180deg);
}


.gc-dropdown-menu a{

    display:block;

    width:100%;

    padding:10px 15px;

    color:#005baa;

    background:#ffffff;

    text-decoration:none;

    font-size:16px;

    font-weight:bold;

    text-align:left;

    white-space:nowrap;
}


.gc-dropdown-menu a:hover{

    background:#eef5fb;

    color:#005baa;
}


/*=========================================================
 BANNER
=========================================================*/

#headerGiocoscuola{

    width:min(1400px,96%);

    margin:15px auto;

    text-align:center;
}


#headerGiocoscuola img{

    width:100%;

    border-radius:16px;

    box-shadow:
        0 6px 20px rgba(0,0,0,.18);
}

/*=========================================================
 SETUP QUIZ
=========================================================*/

#setupQuiz{

    margin-bottom:30px;
}


.panel{

    background:#ffffff;

    border:3px solid #005baa;

    border-radius:16px;

    padding:25px;

    box-shadow:
        0 6px 20px rgba(0,0,0,.10);
}


.barraQuiz{

    display:flex;

    justify-content:center;

    align-items:flex-end;

    gap:25px;

    flex-wrap:wrap;

    margin-top:20px;
}


.campo{

    display:flex;

    flex-direction:column;

    min-width:280px;
}


.campo label{

    margin-bottom:8px;

    color:#005baa;

    font-size:18px;

    font-weight:bold;
}


.campo select{

    padding:12px;

    font-size:18px;

    border:2px solid #005baa;

    border-radius:8px;

    background:#ffffff;
}


/*=========================================================
 PULSANTI
=========================================================*/

button,
input[type="button"]{

    background:#f7941d;

    color:#ffffff;

    border:none;

    border-radius:10px;

    padding:12px 22px;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

    box-shadow:
        0 4px 12px rgba(0,0,0,.18);
}


button:hover,
input[type="button"]:hover{

    background:#e67e00;

    transform:translateY(-2px);
}


button:disabled,
input[type="button"]:disabled{

    background:#bdbdbd;

    cursor:default;

    transform:none;

    box-shadow:none;
}


/*=========================================================
 SELECT
=========================================================*/

select{

    outline:none;

    transition:.25s;
}


select:focus{

    border-color:#f7941d;

    box-shadow:
        0 0 10px rgba(247,148,29,.35);
}

/*=========================================================
 AREA GIOCO
=========================================================*/

#areaGioco{

    display:flex;

    gap:30px;

    align-items:flex-start;

    margin-top:30px;

    background:#005baa;

    border-radius:20px;

    padding:25px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.20);
}


/*=========================================================
 COLONNA QUIZ
=========================================================*/

#zonaQuiz{

    flex:1;

    background:#1d75bc;

    padding:20px;

    border-radius:18px;
}


.logoQuiz{

    text-align:center;

    margin-bottom:25px;
}


.logoMilionario{

    width:220px;

    max-width:90%;

    height:auto;

    transition:.3s;
}


.logoMilionario:hover{

    transform:scale(1.03);
}


/*=========================================================
 DOMANDA
=========================================================*/

textarea.domanda{

    width:100%;

    min-height:120px;

    resize:none;

    padding:18px;

    font-size:22px;

    font-weight:bold;

    text-align:center;

    color:#003366;

    background:#fff8dc;

    border:3px solid #f7941d;

    border-radius:12px;

    margin-bottom:25px;
}


/*=========================================================
 RISPOSTE
=========================================================*/

.risposte{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

    margin-top:25px;
}


.risposta{

    display:flex;

    align-items:center;

    background:#ffffff;

    border:3px solid #f7941d;

    border-radius:14px;

    overflow:hidden;
}


.btnRisposta{

    width:70px;

    height:100%;

    border-radius:0;

    font-size:28px;

    font-weight:bold;

    flex-shrink:0;
}


.btnRisposta:hover{

    transform:scale(1.08);
}


.risposta input{

    border:none;

    padding:15px;

    width:100%;

    font-size:18px;

    font-weight:bold;

    background:#ffffff;
}


.risposte input[type="text"]:hover{

    background:#fffdf2;
}


/*=========================================================
 AIUTI
=========================================================*/

.aiuti{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    margin-top:20px;
}
/*=========================================================
 SCALA PREMI
=========================================================*/

#zonaPremi{

    width:300px;

    background:#1d75bc;

    padding:20px;

    border-radius:18px;
}


.listaPremi{

    width:100%;

    height:520px;

    border:3px solid #005baa;

    border-radius:12px;

    padding:10px;

    font-size:18px;

    font-weight:bold;

    background:#003366;

    color:#ffffff;

    box-shadow:
        inset 0 0 12px rgba(255,255,255,.15);
}


.listaPremi option{

    padding:8px;
}


.listaPremi option:checked{

    background:#ffcc00;

    color:#003366;

    font-weight:bold;
}


/*=========================================================
 FOOTER
=========================================================*/

#footer{

    width:min(1400px,96%);

    margin:30px auto;

    background:#005baa;

    color:#ffffff;

    border-radius:16px;

    box-shadow:
        0 6px 18px rgba(0,0,0,.15);
}


.footerInterno{

    padding:25px;

    text-align:center;

    line-height:1.8;
}


#footer a{

    color:#ffffff;

    text-decoration:none;

    font-weight:bold;
}


#footer a:hover{

    text-decoration:underline;
}

/*=========================================================
 RESPONSIVE TABLET
=========================================================*/

@media(max-width:1100px){

    #areaGioco{

        flex-direction:column;
    }

    #zonaPremi{

        width:100%;
    }

    .listaPremi{

        height:320px;
    }
}


/*=========================================================
 RESPONSIVE SMARTPHONE
=========================================================*/

@media(max-width:768px){

    /*-----------------------------------------
      CONTENITORE
    -----------------------------------------*/

    #contenitoregioco{

        width:98%;

        padding:18px;
    }


    h2{

        font-size:30px;
    }


    /*-----------------------------------------
      HEADER
    -----------------------------------------*/

    .header{

        width:100%;

        min-height:70px;

        margin:10px 0;

        padding:0 10px;

        display:flex;

        flex-direction:row;

        align-items:center;

        justify-content:space-between;
    }


    .header > a{

        min-width:0;

        flex:1 1 auto;
    }


    .header > a img{

        max-width:100%;

        width:auto;

        max-height:65px;

        height:auto;
    }


    /*-----------------------------------------
      PULSANTE HAMBURGER
    -----------------------------------------*/

    #btnMenu{

        display:flex;

        flex:0 0 50px;

        margin:0 10px 0 auto;
    }


    /*-----------------------------------------
      MENU MOBILE
    -----------------------------------------*/

    #menuGiocoscuola{

        display:none;

        position:absolute;

        top:100%;

        left:0;

        right:0;

        width:100%;

        margin:8px 0 0 0;

        padding:5px;

        flex-direction:column;

        align-items:stretch;

        gap:0;

        background:#ffffff;

        border-radius:10px;

        box-shadow:
            0 8px 18px rgba(0,0,0,.18);

        z-index:2000;
    }


    #menuGiocoscuola.aperto{

        display:flex;
    }


    #menuGiocoscuola > a,
    .gc-dropdown-btn{

        width:100%;

        padding:14px;

        text-align:center;

        justify-content:center;

        border-radius:6px;
    }


    /*-----------------------------------------
      TENDINA MATERIALI SU MOBILE
    -----------------------------------------*/

    .gc-dropdown{

        width:100%;
    }


    .gc-dropdown-menu{

        position:static;

        transform:none;

        width:100%;

        margin:0;

        padding:0;

        box-shadow:none;

        border-radius:6px;

        background:#f5f9fd;
    }


    .gc-dropdown-menu a{

        width:100%;

        padding:12px;

        text-align:center;

        white-space:normal;

        border-bottom:1px solid #dddddd;
    }


    /*-----------------------------------------
      QUIZ
    -----------------------------------------*/

    .barraQuiz{

        flex-direction:column;

        align-items:stretch;
    }


    .campo{

        width:100%;
    }


    .campo select{

        width:100%;
    }


    .risposte{

        grid-template-columns:1fr;
    }


    .risposte button{

        width:100%;

        max-width:90px;
    }


    .aiuti{

        flex-direction:column;
    }


    .aiuti input{

        width:100%;
    }
}

/*=========================================================
 PICCOLI EFFETTI
=========================================================*/

.panel{

    transition:.25s;

    animation:comparsa .35s ease;
}


.panel:hover{

    transform:translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.15);
}


/*=========================================================
 ANIMAZIONE COMPARSA
=========================================================*/

@keyframes comparsa{

    from{

        opacity:0;

        transform:translateY(15px);
    }

    to{

        opacity:1;

        transform:translateY(0);
    }
}


/*=========================================================
 FOCUS
=========================================================*/

textarea:focus,
input:focus,
select:focus{

    outline:none;

    border-color:#f7941d;
}


button:focus,
input:focus,
select:focus,
textarea:focus{

    outline:3px solid #ffcc00;

    outline-offset:2px;
}


/*=========================================================
 SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:12px;
}


::-webkit-scrollbar-track{

    background:#eef5fb;
}


::-webkit-scrollbar-thumb{

    background:#005baa;

    border-radius:10px;
}


/*=========================================================
 SELEZIONE TESTO
=========================================================*/

::selection{

    background:#f7941d;

    color:#ffffff;
}


/*=========================================================
 RESPONSIVE LIM
=========================================================*/

@media(min-width:1600px){

    #contenitoregioco{

        max-width:1600px;
    }


    textarea.domanda{

        font-size:28px;
    }


    .risposte input[type="text"]{

        font-size:22px;
    }


    .listaPremi{

        font-size:22px;
    }
}


/*=========================================================
 FINE CSS
=========================================================*/