﻿
/* Fonts */


/* Variables */
:root {
    --color-sand: #a8956c;
    --color-red: #b00019;
    --color-yellow: #ffe13e;
    --color-blue: #001378;
    --dark-blue: #132352;
}


/* GENERICHE */
/*body {
    background: url(../images/bg-wood.png) center/cover no-repeat !important;
    font-family: 'DINPro' !important;
}*/

#logoTitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 26%;
    top: 5%;
}



/* HOMEPAGE */

/* FORM */
.form-control {
    /*border-radius: 0;
    background-color: #fff;
    border: 1px solid var(--color-blue);*/
}
.form-control:focus,
.form-select:focus {
   /* color: #285489;
    background-color: #fff;
    border-color: var(--color-blue);
    outline: 0;
    box-shadow: 0 0 0 5px rgba(40, 84, 137, 0.5);*/
}
.wrap-select select.form-select {
    /*color: var(--color-blue) !important;
    background-color: #fff;
    border: 1px solid var(--color-blue);
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23001378' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    cursor: pointer;*/
}
.wrap-select select.form-select option {
   /* color: var(--color-blue) !important;
    background-color: rgba(40, 84, 137, 0.1);*/
}
.form-floating label {
    color: white !important;
}

.form-floating>.form-select~label::after {
    /*background-color: rgba(40, 84, 137, 0.1);;*/
}

.form-floating>.form-control:focus~label::after,
.form-floating>.form-select:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after {
    /*background-color: rgba(40, 84, 137, 0.1);*/
}

.form-check-input, .form-check input {
    /*background-color: #fff;
    border: 1px solid var(--color-blue);
    border-radius: 0 !important;*/
} 
.form-check-input:checked[type=checkbox], .form-check input:checked[type=checkbox] {
    /*background-color: var(--color-blue);
    border: 1px solid var(--color-blue);*/
}
    .form-check-input:focus, .form-check input:focus {
        border-color: white;
        box-shadow: 0 0 0 5px #dc3545;
    }

/* Change Autocomplete styles in webkit*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    background-color: #dc3545 !important;
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0 50px #dc3545 inset !important;
   /* padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;*/
}

/* Placeholders */
::placeholder,
.form-control::placeholder {
    color: white !important;
    opacity: 1;  
}


/* CARICA RICETTA */
main.carica section.ricetta .form-floating>label {
    font-size: 1.15rem;
}

/*main.carica section.ricetta .preview {
    background-image: none;
    background-color: #fff;
    border: 1px solid var(--color-blue);
}*/





/* SCONTRINO /RICEVUTA */
section.scontrino h1.btn {
    cursor: auto;
}

    section.scontrino h1.btn:hover {
        cursor: auto;
        background-color: var(--color-red);
        border-color: var(--color-red);
    }

a.outline-none:focus,
a.outline-none:focus-visible,
a.outline-none:active
{
    outline: none !important;
    outline-color: transparent !important;
    border: none !important;
}



/* PAGINE DI CORTESIA */
.btn.btn-h1,
main.grazie h1,
main.grazie .h1 {
    font-size: clamp(26px, 4vw, 75px) !important;
}




/* ------------------- */
/*    MEDIA QUERIES    */
/* ------------------- */

/* Decreasing */
@media screen and (max-width: 1199px) {
    main.home section.come-partecipare .container-cucino .row.bg-placca .col-12:nth-child(2)::after {      
        background-image: none !important ;
    }
    .row.bg-placca {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media screen and (max-width: 991px) {
    #logoTitle {
        width: 40%;
    }   

    main.home section.come-partecipare .container-lievital .row.bg-placca .col-12:nth-child(2)::after {      
        background-image: none !important ;
    }

    main.dashboard .max-content {
        margin-bottom: 5rem;
    }

    main.dashboard .img-carica {
        max-height: 140px;
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
    }

    main.dashboard .img-carica.ricette {
        transform: translateX(-15%);
    }
}

@media screen and (max-width: 767px) {
    .spacer-100 {
        height: 50px;
    }
    main.premi .imgWrap .coppa {
        display: none;
    }

    main.premi .imgWrap .premio {
        width: 60%;
    }
    main.premi .imgWrap .premio-guzzini {
        width: 80%;
        margin-left: 0;
    }

    main.home section.come-partecipare .btn.btn-lg {
        display: flex;
        justify-content: center;
        align-items: center;    
        width: 90%;
        margin: 0 auto;
        height: 1.2em;
        max-width: 350px;
    }
    
    main.home section.come-partecipare .btn.btn-lg .h2 {
        font-size: 24px;
        margin-bottom: 0;
    }
}


/* Growing */
@media screen and (min-width: 992px) {
    main.home section.come-partecipare .row.bg-placca .col-12:not(:last-child)::after {
        content: '';
        width: 18%;
        height: auto;
        aspect-ratio: 1 / 1;
        position: absolute;
        right: 0;
        top: 25%;
        background: url(../images/double-arrow.png) center/contain no-repeat;
        transform: translateX(50%);
    }
}

@media screen and (min-width: 992px) {
    #acquistoLievital {
        width: 86%;
    }
    #acquistoCucino {
        width: 92%;
    }

    main.home section.come-partecipare .row.bg-placca img {
        width: 75% !important;
    }
}

@media screen and (min-width: 992px) {
    #acquistoLievital {
        width: 86%;
    }
    #acquistoCucino {
        width: 92%;
    }

    main.home section.come-partecipare .row.bg-placca img {
        width: 75% !important;
    }
}

/*@media screen and (min-width: 1200px) {
    section.ricetta .form-control.textarea {
        height: 10rem;
    }

    main.dashboard .img-carica {
        left: -2rem;
    }
}*/

@media screen and (min-width: 1440px) {
   /* .container-lievital {
        width: 90%;
        max-width: 1500px;
    }
    .container-cucino {
        width: 95%;
        max-width: 1720px;
    }*/
    p.div-larger {
        width: 136%;
        margin-left: -18% !important;
    }
}

@media screen and (min-width: 1700px) {
    main.premi .container {
        max-width: 1600px !important;
    }  
}