#sotto-testata {
    width: 100%;
    background-color: #fff;
    color: #000;
    padding-top: 20px;
    padding-bottom: 20px;
}

#sotto-testata a {
    color: #000;
}

#sotto-testata .square {
    background: #822433 !important;
    color: #fff !important;
}

.perchesapienza > div {
    background-color: #999999;
    background-image: url("../images/perche.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: auto 100%;
    
    padding: 15px;
}

.perchesapienza > div h1 {
    color: #fff;
    font-size: 30px;
    line-height: 100%;
    font-weight: 300 !important;
    margin: 0;
    padding: 0;
}

.perchesapienza > div h1 a, .perchesapienza > div h1 a:hover {
    color: #fff !important;
}

@media only screen and (max-width : 767px) {
    .square img {
        max-height: 80%;
    }
    .perchesapienza > div h1 {
        margin-top: 20%;
    }
}

@media only screen and (min-width : 768px) and (max-width : 991px) {
    .perchesapienza > div {
        margin-top: 20px;
    }
    
    .perchesapienza > div h1 {
        margin-top: 10%;
    }
}

@media only screen and (min-width : 992px) and (min-width : 768px) {
    .perchesapienza > div h1 {
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0 0 15px 25px;
    }
}

.cerca-corso {
    margin-top: 20px;
    background: #dadada;
    padding: 9px;
    box-shadow: inset 1px 1px 2px 0px rgba(0,0,0,0.6);
}

.cerca-corso input[type=search] {
    font-weight: 300;
    font-size: 30px;
    width: 100%;
    height: 100%;
    padding: 10px 15px;
    color: #666666;
    border: none;
    box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.6);
}

.cerca-corso input[type=search]::-webkit-input-placeholder {
    color: #666666;
}
.cerca-corso input[type=search]:-moz-placeholder {
    color: #666666;
}
.cerca-corso input[type=search]::-moz-placeholder {
    color: #666666;
}
.cerca-corso input[type=search]:-ms-input-placeholder {
    color: #666666;
}

.cerca-corso input[type=submit] {
    background: url("../images/cerca.png");
    border: 0;
    height: 50px;
    width: 50px;
    display: block;
    position: relative;
    float: right;
    margin: -55px 20px 0 0;
}