﻿#Header, #Footer {
    width: 100%;
}

#Footer {
    margin: 10px 0 0 0;
    position: absolute;
    bottom: 0;
    clear: both;
}

.headRight {
    float: right;
    position: relative;
    top: 11px;
    margin-right: 8px;
}

.contenitoreHeader {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 5px 0 5px 0;
    /*----flexbox-----*/
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Chrome */
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between; /*center;*/
    align-items: center; /**/
}

.headCol1Left {
    width: 19%;
    /*margin-top:35px;*/
    margin-left: 10px;
}

.headCol2Right {
    width: 79%;
    text-align: right;
    /*margin-top: 5px;*/
    margin-right: 10px;
    padding-top: 5px;
    line-height: 26px;
}

/*.headCol2Right span:last-child 
{
    line-height:normal;
}*/

.contenitoreFooter {
    width: 100%;
    /*height: 250px;*/
    background-color: #0A0A0A; /*#646464;*/
    color: #FFFFFF;
    padding: 20px 10% 20px 10%;
    /*----flexbox-----*/
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Chrome */
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between; /*center;*/
    /*align-items: center;*/
}

.contenitoreFooter p 
{
    margin-bottom: 5px;
}
.footCol1Left, .footCol2Left, .footCol3Left {
    margin-right: 10px;
}

.footCol1Left {
    width: 26%;
}

.footCol2Left {
    width: 26%;
}

.footCol3Left {
    width: 20%;
}

.footCol4Right {
    width: 20%;
    text-align: right;
}

    .footCol4Right a {
        display: inline-block;
    }

.footLoghi {
    margin-top: 30px;
    width: 100%;
    /*----flexbox-----*/
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Chrome */
    display: flex;
    /*-webkit-flex-wrap: wrap;
    flex-wrap: wrap;*/
    justify-content: flex-end; /*center;*/
    /*align-items: center;*/
}

    .footLoghi p {
        margin: 5px 5px 0 5px;
        width: 115px;
        text-align: center;
    }

    .footLoghi img {
        min-width: 80px;
    }

    .footLoghi span {
        width: 115px;
        text-align: center;
        display: block;
        font-size: 1em;
    }

@media screen and (max-width: 1590px) {
    .footLoghi p, .footLoghi span {
        width: 100px;
    }
}

@media screen and (max-width: 1500px) {
    .footCol1Left, .footCol2Left, .footCol4Right {
        width: 24%;
    }
}

@media screen and (max-width: 1245px) {
    .footCol1Left, .footCol2Left {
        width: 26%;
    }

    .footCol4Right {
        width: 16%;
        min-width: 145px;
    }

        .footCol4Right img {
            margin: 0 5px 5px 0;
        }
}

@media screen and (max-width: 1120px) {
    .contenitoreFooter 
    {
        padding: 20px 5% 20px 5%;
    }
}

@media screen and (max-width: 1020px) {
    .headCol2Right 
    {
        width: 78%;
    }
    
    .footLoghi p, .footLoghi span
    {
        width: 60px;
    }
    .footLoghi p span 
    {
        font-size: 12px !important;
    }
    .footLoghi img {
        min-width: 40px !important;
        width: 100% !important;
    }
}

@media screen and (max-width: 850px) {
    .footCol3Left {
        clear: right;
        float: right;
        width: 25%;
        margin-right: 3px;
    }

    .footCol1Left, .footCol2Left {
        width: 35%;
        margin-right: 3px;
    }

    .footCol4Right {
        float: none;
        clear: both;
        width: 100%;
        /*----flexbox-----*/
        display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox; /* TWEENER - IE 10 */
        display: -webkit-flex; /* NEW - Chrome */
        display: flex;
        /*-webkit-flex-wrap: wrap;
        flex-wrap: wrap;*/
        justify-content: center; /*center;*/
        align-items: center;
    }

    .footLoghi {
        margin-top: 0;
    }
}

@media screen and (max-width: 800px) 
{
    .headCol1Left {
        margin-top:38px;
    }

    .headCol2Right span:nth-child(1), .headCol2Right span:nth-child(7) {
        font-size: 16px !important; /*22px;*/
    }
    .headCol2Right span:nth-child(3), .headCol2Right span:nth-child(5) {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 730px) 
{
    .headCol1Left, .headCol2Right 
    {
        width: 100%;
        text-align: center !important;
        margin-right: 0;
        margin-left: 0;
        margin-top: 5px;
    }
    .headCol1Left img 
    {
        max-width: 160px !important;
    }
    /*.headCol2Right span 
    {
        font-size: 18px;
        text-align: center !important;
    }*/
}

@media screen and (max-width: 660px) {
    .footCol1Left {
        width: 65%;
    }

    .footCol2Left {
        width: 30%;
    }

    .footCol3Left {
        width: 30%;
        float: left;
        margin-top: 10px;
    }

    .footCol4Right {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        width: 50%;
    }

    .footLoghi {
        margin-top: 20px;
    }
}

@media screen and (max-width: 620px) {
    .footCol1Left {
        width: 50%;
    }

    .footCol2Left {
        width: 45%;
    }

    .footCol4Right {
        justify-content: flex-start;
        width: 45%;
    }
}

@media screen and (max-width: 550px) {
    .footCol4Right {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .footLoghi {
        justify-content: center;
        margin-top: 10px;
    }
    
    .footCol3Left 
    {
        width: 100%;
        justify-content: center;
    }

    .footCol3Left p
    {
        display: inline-block;
        margin-bottom: 3px;
    }
    
    .footCol3Left p:first-child, .footCol3Left p:nth-child(2)
    {
        text-align: center;
        display: block;
    }
    
    .footCol3Left p:first-child 
    {
         margin-bottom: 5px;
    }
    
    .footCol3Left p:nth-child(3) 
    {
        float: left;
    }
    .footCol3Left p:nth-child(4) 
    {
        float: right;
    }
    
    .headCol1Left img 
    {
        max-width: 120px !important;
    }
    /*.headCol2Right span 
    {
        font-size: 16px;
    }*/
    .headCol2Right span:nth-child(1), .headCol2Right span:nth-child(7) {
        font-size: 14px !important; /*22px;*/
    }

    .headCol2Right span:nth-child(3), .headCol2Right span:nth-child(5) {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 475px) {
    .headCol2Right span:nth-child(3), .headCol2Right span:nth-child(5) {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 460px) 
{
    .footCol3Left p:nth-child(3), .footCol3Left p:nth-child(4)
    {
        text-align: center;
        display: block;
        float:none;
    }
}

@media screen and (max-width: 425px) {
    .footCol1Left, .footCol2Left, .footCol3Left {
        float: none;
        clear: both;
        width: 100%;
        text-align: center;
    }

    .footCol4Right img {
        margin: 0 5px 5px 0;
        /*height: 25px;*/
        width: auto;
    }
    
    .footCol3Left 
    {
        margin-top: 0;
    }

    .footLoghi img {
        min-height: 62px;
    }
    
    .footLoghi p, .footLoghi span 
    {
        width: 100px;
    }

    .headCol2Right span:nth-child(3), .headCol2Right span:nth-child(5) {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 400px) {
    .headCol1Right {
        float: none;
        margin: 0 auto;
        text-align: center;
    }

        .headCol1Right span {
            font-size: 20px;
        }
}

@media screen and (max-width: 380px) 
{
    .headCol1Left img 
    {
        max-width: 100px !important;
    }
    .headCol2Right span 
    {
        font-size: 14px;
    }
}
