﻿

section.fascia-rosso {
    background-color: #043474!important;
}

#mainheader .logo-text {
    padding-left: 20px;
}

#mainheader .logo-text .h5, #mainheader .logo-text h5 {
    margin: 0;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
	color: #16a085;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";	
	font-style: italic;
	font-variant: normal;
	padding-left: 3px;
}

#mainheader.ridotto .logo-text .h5, #mainheader.ridotto .logo-text h5 {
    margin-top: 13px;
    font-size: .7em;
    line-height: 1.2em;
	color: #16a085;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
	font-style: italic;
	font-variant: normal;
}

@media (max-width: 767px) {
	#mainheader .logo-text .h5, #mainheader .logo-text h5 {
		margin: 0;
		font-size: .722222em;
		line-height: 1.2em;
	}
}

#mainheader .logo-text .h1, #mainheader .logo-text h1 {
    height: 64px;
	padding: 0px;
	margin-top: -20px;
	margin-bottom: -4px;
}

@media (max-width: 991px) {
	#mainheader .logo-text .h1, #mainheader .logo-text h1 {
		height: 30px;
		padding: 0px;
		margin-top: 0px;
	}
}

@media (max-width: 767px) {
	#mainheader .logo-text .h1, #mainheader .logo-text h1 {
		height: 16px;
		padding: 0px;
		margin-top: 0px;
	}
}

#mainheader.ridotto .logo-text .h1, #mainheader.ridotto .logo-text h1 {
    height: 5px;
	margin-top: 0px;
}

.customHr {
    width: 95%
    font-size: 1px;
    color: rgba(0, 0, 0, 0);
    line-height: 1px;

    background-color: grey;
    margin-top: -6px;
    margin-bottom: 10px;
}

.box-shadow1 {
	box-shadow: 3px 3px 10px 0 #888888;
}

.box-shadow2 {
	box-shadow: 0 2px 4px 0 #bdbdbd;
}

.icon-bar{background-color:black !important;}

.btn-BIANCO{color:#7b1b02;background-color:white;box-shadow: 3px 3px 10px 0 #888888;}
/*.btn-BIANCO.focus,.btn-BIANCO:focus{color:#fff;background-color:#a91419;border-color:#4e090c}*/
.btn-BIANCO:hover{color:#fff;background-color:#7b1b02;border-color:#891014;box-shadow: 0 2px 4px 0 #bdbdbd;}

.btn-GRANATA{color:#fff;background-color:#7b1b02;box-shadow: 3px 3px 10px 0 #888888;}
/*.btn-GRANATA.focus,.btn-BIANCO:focus{color:#fff;background-color:#a91419;border-color:#4e090c}*/
.btn-GRANATA:hover{color:#7b1b02;background-color:white;border-color:#891014;box-shadow: 0 2px 4px 0 #bdbdbd;}

@media only screen and (min-width:767px) and (max-width:1279px){
	b.ridimen{font-size:22px;}/*i 3 pulsantoni*/
}

@media (max-width:450px){
	b.ridimen{font-size:18px;}
}

@media only screen and (min-width:991px) and (max-width:1224px){
	b.ridimens{font-size:18px;}
}

.bloccocarousel{min-height:400px;}

@media (max-width:991px){
	.txtcaro{margin-top:-70px;}
	.bot20{margin-bottom:50px;}
}

@media (max-width:991px){
	#myCarousel{min-height:600px;}
}

.btn-BIANCOBORDO{background-color:white;border-color:#7b1b02;box-shadow: 3px 3px 10px 0 #888888;font-weight: bold;}
/*.btn-BIANCOBORDO.focus,.btn-BIANCOBORDO:focus{color:#fff;background-color:#a91419;border-color:#4e090c}*/
li.btn-BIANCOBORDO:hover{border-top:3px solid #7b1b02;border-bottom:3px solid #7b1b02;box-shadow: 0 2px 4px 0 #bdbdbd;}

.leggitutto{
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
box-shadow: 0 2px 4px 0 #bdbdbd;
font-size:20px;
}

.itemx{
	text-align:justify;
	padding-top:5px;
	font-size:15px;
}

.datex{
	font-size:15px;
}

.contatti p{color:#a5abb0; text-align:center;}

@media only screen and (min-width:990px) and (max-width:1030px){
	.contatti p{font-size:14px;}
}

.contatti a{color:#FFF;}

.contactform textarea, .contactform input{
	padding: 1em;
    margin-bottom: 1em;
    outline: none;}
	

.webkit-box14 {
    overflow: hidden;
    display: -moz-box;
    display: -webkit-box;
    -moz-box-clamp: 14;
    -webkit-line-clamp: 14;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
	
	position:relative; 
	line-height:25px; /* una riga per mozzilla*/
	height:350px; /* quattordici righe per mozzilla*/
}

.webkit-box8 {
    overflow: hidden;
    display: -moz-box;
    display: -webkit-box;
    -moz-box-clamp: 8;
    -webkit-line-clamp: 8;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
	
	position:relative; 
	line-height:25px; /* una riga per mozzilla*/
	height:200px; /* sette righe per mozzilla*/
}

.webkit-box3 {
    overflow: hidden;
    display: -moz-box;
    display: -webkit-box;
    -moz-box-clamp: 3;
    -webkit-line-clamp: 3;
    -moz-box-orient: vertical;
    -webkit-box-orient: vertical;
	
	position:relative; 
	line-height:25px; /* una riga per mozzilla*/
	height:75px; /* tre righe per mozzilla*/
}


.navx {
    width: 320px;
    min-width: 320px;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    right: -320px;
    padding: 15px 20px;
    -webkit-transition: left 0.3s;
    -moz-transition: left 0.3s;
    transition: left 0.3s;
    background: #16a085;
    z-index: 2000;
}


.navx-toggle {
    position: absolute;
    right: 320px;
    top: 1em;
    padding: 0.5em;
    background: inherit;
    color: #dadada;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
    z-index: 2001;
    -webkit-transition: color .25s ease-in-out;
    -moz-transition: color .25s ease-in-out;
    transition: color .25s ease-in-out;
}

.navx-toggle:after {
    content: '\2630';
    text-decoration: none;
}

.navx-toggle:hover {
    color: #f4f4f4;
}

[id='navx-toggle'] {
    position: absolute;
    display: none;
}

[id='navx-toggle']:checked ~ .navx > .navx-toggle {
    left: auto;
    right: 2px;
    top: 1em;
}


[id='navx-toggle']:checked ~ .navx {
    right: 0;
    box-shadow:-4px 0px 20px 0px rgba(0,0,0, 0.5);
    -moz-box-shadow:-4px 0px 20px 0px rgba(0,0,0, 0.5);
    -webkit-box-shadow:-4px 0px 20px 0px rgba(0,0,0, 0.5);
    overflow-y: auto;
}


[id='navx-toggle']:checked ~ main > article {
    -webkit-transform: translateX(-320px);
    -moz-transform: translateX(-320px);
    transform: translateX(-320px);
}

[id='navx-toggle']:checked ~ .navx > .navx-toggle:after {
    content: '\2715';
}

body {
   /** -webkit-animation: bugfix infinite 1s;*/
}

@-webkit-keyframes bugfix {
    to {
      padding: 0;
    }
}

@media screen and (min-width: 320px) {
    html,
    body {
      margin: 0;
      overflow-x: hidden;
    }
}

@media screen and (max-width: 320px) {
    html,
    body {
      margin: 0;
      overflow-x: hidden;
    }
    .navx {
      width: 100%;
      box-shadow: none
    }
}

.navx h2 {
    width: 90%;
    padding: 0;
    margin: 10px 0;
    text-align: center;
    text-shadow: rgba(255, 255, 255, .1) -1px -1px 1px, rgba(0, 0, 0, .5) 1px 1px 1px;
    font-size: 1.3em;
    line-height: 1.3em;
    opacity: 0;
    transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -webkit-transform: scale(0.1, 0.1);
    transform-origin: 0% 0%;
    -ms-transform-origin: 0% 0%;
    -moz-transform-origin: 0% 0%;
    -webkit-transform-origin: 0% 0%;
    transition: opacity 0.8s, transform 0.8s;
    -ms-transition: opacity 0.8s, -ms-transform 0.8s;
    -moz-transition: opacity 0.8s, -moz-transform 0.8s;
    -webkit-transition: opacity 0.8s, -webkit-transform 0.8s;
}

.navx h2 a {
    color: #dadada;
    text-decoration: none;
    text-transform: uppercase;
}


[id='navx-toggle']:checked ~ .navx h2 {
    opacity: 1;
    transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
}


.navx > ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navx > ul > li {
    line-height: 2.5;
    opacity: 0;
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    -webkit-transition: opacity .5s .1s, -webkit-transform .5s .1s;
    -moz-transition: opacity .5s .1s, -moz-transform .5s .1s;
    -ms-transition: opacity .5s .1s, -ms-transform .5s .1s;
    transition: opacity .5s .1s, transform .5s .1s;
}

[id='navx-toggle']:checked ~ .navx > ul > li {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

.navx > ul > li:nth-child(2) {
    -webkit-transition: opacity .5s .2s, -webkit-transform .5s .2s;
    transition: opacity .5s .2s, transform .5s .2s;
}

.navx > ul > li:nth-child(3) {
    -webkit-transition: opacity .5s .3s, -webkit-transform .5s .3s;
    transition: opacity .5s .3s, transform .5s .3s;
}

.navx > ul > li:nth-child(4) {
    -webkit-transition: opacity .5s .4s, -webkit-transform .5s .4s;
    transition: opacity .5s .4s, transform .5s .4s;
}

.navx > ul > li:nth-child(5) {
    -webkit-transition: opacity .5s .5s, -webkit-transform .5s .5s;
    transition: opacity .5s .5s, transform .5s .5s;
}

.navx > ul > li:nth-child(6) {
    -webkit-transition: opacity .5s .6s, -webkit-transform .5s .6s;
    transition: opacity .5s .6s, transform .5s .6s;
}

.navx > ul > li:nth-child(7) {
    -webkit-transition: opacity .5s .7s, -webkit-transform .5s .7s;
    transition: opacity .5s .7s, transform .5s .7s;
}

.navx > ul > li > a {
    display: inline-block;
    position: relative;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    color: #dadada;
    width: 100%;
    text-decoration: none;

    -webkit-transition: color .5s ease, padding .5s ease;
    -moz-transition: color .5s ease, padding .5s ease;
    transition: color .5s ease, padding .5s ease;
}

.navx > ul > li > a:hover,
.navx > ul > li > a:focus {
    color: white;
    padding-left: 15px;
}

.navx > ul > li > a:before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    -webkit-transition: width 0s ease;
    transition: width 0s ease;
}

.navx > ul > li > a:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: #3bc1a0;
    -webkit-transition: width .5s ease;
    transition: width .5s ease;
}

.navx > ul > li > a:hover:before {
    width: 0%;
    background: #3bc1a0;
    -webkit-transition: width .5s ease;
    transition: width .5s ease;
}

.navx > ul > li > a:hover:after {
    width: 0%;
    background: transparent;
    -webkit-transition: width 0s ease;
    transition: width 0s ease;
}

.mask-content {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
}

[id='navx-toggle']:checked ~ .mask-content {
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity .5s, visibility .5s;
    transition: opacity .5s, visibility .5s;
}

h5, .h5{
font-size: .9em;
}

#mainheader.ridotto .logo-img {
    padding-top: 8px;
}

#mainheader.ridotto .logo-text {
    vertical-align: middle;
}