/* BLUE MASTER #13337d */
/* GRAY MASTER #a3a5a4 */
/* AZURE HOVER #008ce7 */

:root {
    --sidera-color: #025D88;
    --sidera-dark-color: #014a73;
    --link-color: #44a7cf;
    --dark-gray-color: #141414;
    --hover-color: #44a7cf;
}

body {
	background-color: var(--sidera-color);
	background-image: url(../images/background.png);
    background-size: 66%;
    background-repeat: repeat-x;
    background-position: 20% -12em;
	padding: 0 2em 2em 2em;
	margin: 0 auto;
	font-family: "Font", "Trebuchet MS";
	color: black;
	max-width: 960px;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	-webkit-text-size-adjust: none;

	position: relative;
}

html {
	margin: 0;
	padding: 0;
}

@font-face {
	font-family: "Font";
	src: url(../fonts/Myriad-Web-Pro.otf) format('opentype'),
		 url(../fonts/Myriad-Web-Pro.ttf) format('truetype'),
		 url(../fonts/Myriad-Web-Pro.eot);
}

@font-face {
	font-family: "Font-Condensed";
	src: url(../fonts/Myriad-Pro.otf) format('opentype'),
		 url(../fonts/Myriad-Pro.ttf) format('truetype'),
		 url(../fonts/Myriad-Pro.eot);
}

p {
	margin: 0.5em 0;
	line-height: 1.2em;
}

a {
	text-decoration: none;
	color: var(--link-color);
}

a:hover {
	text-decoration: underline;
}

h1 {
	color: white;
	font-size: 1.5em;
	margin: 0.5em 0.85em;
}

h2 {
	color: white;
	margin: 0.5em 1em 1em 1em;
	font-size: 1.2em;
	font-weight: normal;
}

h3 {
	color: #434343;
    margin: 0 0 0.5em 0;
}

div.content.padded h1 {
	font-size: 2em;
}

div.content.padded h2 {
	margin: 1em 0;
}

div.sub-content h2 {
	color: #434343;
}

img {
	border: none;
}

ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

fieldset {
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 2em;
}

form label {
	display: inline-block;
	min-width: 100px;
	vertical-align: middle;
	margin: 2px 1em 0 0;
}

form label:after {
	content: ":";
}

form input[type=checkbox] + label {
	width: auto!important;
	min-width: 0;
	cursor: pointer;
}

form input[type=checkbox] + label:after {
	content: none;
}

form input[type=checkbox][disabled=disabled] + label {
	cursor: default;
}

form input[type=text], form input[type=email], form input[type=password], div form select, div.sub-content > div > input {
	background-color: white;
	border: 1px solid #cbcbcb;
	padding: 0.6em;
	color: black;
	font-family: "Font";
}

input[type=submit], button {
	padding: 0.7em 5em 0.6em 5em;
	background-color: var(--sidera-dark-color);
	border: none;
	color: white;
	font-size: 1em;
	font-family: "Font";
	font-weight: bold;
	cursor: pointer;
	
	-webkit-appearance: none !important;
}

body:not(.touch) input[type=submit]:hover, button:hover {
	background-color: var(--hover-color);
}

fieldset > div {
	margin-top: 1em;
}

fieldset input[type=text], fieldset input[type=email], fieldset input[type=password] {
	width: 400px;
	font-size: 1em;
}

form > p {
	line-height: 1.5em;
	text-align: center;
}

.highlight {
	background-color: var(--hover-color);
    color: white;

	-webkit-box-shadow:  0px 0px 6px 0px rgba(255, 255, 255, 0.5);
    box-shadow:  0px 0px 6px 0px rgba(255, 255, 255, 0.5);
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

/* HEADER */

.header {
	padding: 2em;
}

.header img.logo-master {
	max-width: 50%;
	max-height: 42px;
    margin: 4px;
}

.header > a#jump {
	display: none;
}

.header > div {
	text-align: center;
}

/* SUB-MENU */

ul.sub-menu {
    background: none;
    line-height: 2em;
    margin: 0.3em 0.5em;
}

ul.sub-menu > a {
	display: inline-block;
}

ul.sub-menu > a > li {
	display: inline;
	border-right: 1px solid #a7a7a7;
    padding: 0 1em;
	line-height: 2em;
}

ul.sub-menu > a:last-child > li {
	border-right: none;
}

/* FOOTER */

.footer {
	background-color: var(--dark-gray-color);
	position: relative;
	min-height: 1em;
	padding: 1.5em 0;
	font-size: 0.7em;
	font-weight: bold;
	text-align: center;
	color: gray;
	clear: both;
	border-radius: 0 0 2em 2em;
}

.footer > a {
	color: white;
	cursor: pointer;
}

a.up {
	display: block;
	background-position: center;
	background-repeat: no-repeat;
	width: 50px;
	height: 50px;
	background-color: rgba(20,20,20,0.5);
	position: fixed;
	text-align: center;
	bottom: 15px;
	right: 15px;
	cursor: pointer;

	-webkit-border-radius: 0.2em;
	border-radius: 0.2em;
}

a.up > img {
	width: 60%;
	margin-top: 30%;
}

/* CONTENT */

div.content {
}

div.content.padded {
    padding: 2em 10%;
    background-position-y: 0;
}

div.content > div.rapid-links {
	float: right;
	margin-top: -3em;
}

div.content > div.rapid-links > a {
	color: white;
	background-color: var(--dark-gray-color);
    padding: 0.7em 1em 0.6em 1em;
    font-weight: bold;
}

body:not(.touch) div.content > div.rapid-links > a:hover {
	background-color: var(--hover-color);
    text-decoration: none;
}

/* SUB CONTENT */

div.sub-content > div > input:not([type=checkbox]) {
    float: right;
    width: 200px;
    line-height: 1em;
    padding-left: 26px;
    background-image: url(../images/icons/shared/search_dark.png);
    background-repeat: no-repeat;
    background-position: 6px 6px;
}

div.sub-content {
	background-color: white;
    padding: 2em;
	border-radius: 1em 1em 0 0;
}

div.sub-content > ul {
	padding: 0;
	margin: 0;
}

div.sub-content > ul li {
	position: relative;
	border: 1px solid white;
	padding: 0.5em;
	cursor: pointer;
}

div.sub-content > div.sort-buttons {
	font-size: 0.8em!important;
    margin-bottom: 1em;
}

div.sub-content > div.sort-buttons > ul {
	display: inline-block;
	margin: 0 0.5em;
}

div.sub-content > div.sort-buttons > ul > li {
	display: inline-block;
	padding: 0.5em;
	padding-bottom: 0.3em;
	margin-right: 0.3em;
	cursor: pointer;
}

body:not(.touch) div.sub-content > div.sort-buttons > ul > li:not(.active):hover {
    background-color: rgba(0,0,0,0.05);
}

div.sub-content > div.sort-buttons > ul > li.active {
    background-color: #a3a5a4;
    color: white;
	padding-left: 22px;
}

div.sub-content > div.sort-buttons > ul > li.asc {
	background-image: url(../images/icons/shared/asc.png);
	background-repeat: no-repeat;
	background-position: 5px 8px;
}

div.sub-content > div.sort-buttons > ul > li.desc {
	background-image: url(../images/icons/shared/desc.png);
	background-repeat: no-repeat;
	background-position: 5px 9px;
}

a.back > li {
	background-image: url(../images/icons/shared/back_pass.png);
	background-repeat: no-repeat;
	background-position: 0.5em top;
	padding-left: 1.5em!important;
	font-weight: bold;
}

/* LANGUAGES */

ul#languages_list {
    position: absolute;
    width: 5em;
    bottom: 0;
    right: 0;
    padding: 0.85em;
    cursor: pointer;
    margin: 0;
    text-align: left;
    font-size: 1.2em;
    border: 1px solid rgba(0,0,0,0);
    border-radius: 0 0 2em;
}

ul#languages_list:hover {
	background-color: var(--dark-gray-color);
}

ul#languages_list > a {
	text-decoration: none;
}

ul#languages_list li {
	color: white;
	display: none;
	font-size: 0.8em;
}

ul#languages_list:hover li {
	display: block;
}

ul#languages_list li:hover {
	background-color: var(--hover-color);
	color: black;
}

ul#languages_list li.active {
	display: block;
}

ul#languages_list li > img {
	width: 18px;
	vertical-align: middle;
	padding: 0 0.2em;
}

/* COMMON */

p.description {
	color: #454545;
	font-size: 0.8em;
}

span.star {
	color: #454545;
}

p.star {
	color: #454545;
	font-size: 0.8em;
	margin-top: 1em;
	clear: both;
	text-align: left;
}

input[type=text].with-error, input[type=email].with-error, input[type=password].with-error, input[type=file].with-error, div.with-error {
	background-color: rgba(255,0,0,0.5);
	border-color: rgba(255,0,0,0.7);
}

input[type=checkbox] {
	vertical-align: middle;
}

input[type=checkbox].with-error + label {
	background-color: rgba(255,0,0,0.5);
	border: 1px solid rgba(255,0,0,0.7);
	padding-left: 0.3em;
	padding-right: 0.3em;
}

p.error, p.success, p.info, p.warning {
	text-align: left;
	padding: 0.3em 0.5em;
	line-height: 1.5em;
	font-size: 16px; /* compaiono in div con diversi font-size */
	border: none;
	color: white;
    margin: 1em;
}

p.success {
	background-color: #16aa15;
}

p.error {
    background-color: #ad1100;
}

p.error a {
	color: #ffcc00;
}

p.info {
	background-color: #2585BB;
}

p.info a {
	color: white;
	text-decoration: underline;
}

p.warning {
	background-color: #c9a319;
	color: #7d5313;
}

p.warning a {
	color: white;
}

p.date {
	color: #454545;
	margin: 0;
	clear: both;
	font-size: 0.8em;
}

div#notes {
	background-color: #ededed;
	color: #454545;
	padding: 0.5em;
	font-size: 0.9em;
}

div#notes > p {
	margin: 0;
	font-weight: bold;
}

div#notes > ul {
	margin: 0;
	padding: 0;
	padding-left: 1em;
}

div#notes > ul > li {
	list-style-type: disc;
	padding-top: 0.2em;
}

/* LINKS */

ul.links {
	margin-top: -0.3em;
	float: right;
	padding: 0;
}

ul.links > a {
	position: relative;
	display: inline-block;
	color: white;
	font-family: "Font";
	max-width: 110px;
}

ul.links li {
	display: inline-block;
}

ul.links > div#current_user {
	display: inline-block;
	vertical-align: top;
	padding-top: 19px;
	text-align: right;
}

ul.links > div#current_user > p, ul.links > div#current_user > a {
	margin: 0;
	font-size: 0.9em;
}

ul.links img {
	height: 32px;
	margin: 10px 10px;
	float: left;
	filter: invert(1);
}

ul.links p {
    display: inline-block;
    margin-top: 11px;
    width: 3em;
    line-height: 1em;
}

/* USER SESSION */

div.account_session {
	margin-top: 1em;
}

div.user_session {
	background-color: white;
	padding: 2em;
	border-radius: 1em 1em 0 0;

    -webkit-box-shadow: 0 -20px 80px 0 rgba(0, 0, 0, 0.4);
    box-shadow: 0 -20px 80px 0 rgba(0, 0, 0, 0.4);
}

div.user_session fieldset label {
	color: var(--sidera-color);
	width: 15%;
	display: block;
	float: left;
	line-height: 2.2em;
	clear: both;
	cursor: pointer;
	font-weight: bold;
}

div.user_session fieldset input {
	width: 20em;
	font-size: 1em;
}

div.user_session form > input[type="checkbox"] {
	margin-top: 4px;
}

div.user_session form > input[type="checkbox"] + label {
	font-size: 0.9em;
	display: inline;
    vertical-align: -1px;
}

div.user_session form > a {
	display: block;
	margin: 1em 0;
	font-size: 0.9em;
	color: var(--link-color);
}

div.user_session form input[type=submit] {
	border: 1px solid white;
}

body:not(.touch) div.user_session form input[type=submit]:hover {
	background-color: var(--hover-color);
}

/* RESET PASSWORDS */

div.reset_passwords > h3 {
    padding-bottom: 0.5em;
	border-bottom: 1px solid #C0C0C0;
}

div.sent_reset_password > h3 {
	background-image: url(../images/icons/shared/tick-blue.png);
	background-repeat: no-repeat;
    background-position: left top;
    background-size: 2em;
	padding-left: 50px;
	line-height: 2em;
	border-bottom: 1px solid #C0C0C0;
}

div.sent_reset_password > h4 {
	background-image: url(../images/icons/emailer/email.png);
	background-repeat: no-repeat;
	padding-left: 2em;
	font-size: 1.2em;
}

/* FORM RESET PASSWORD */

form.form_reset_password fieldset label {
	width: 25%;
	display: block;
	float: left;
	line-height: 2em;
	clear: both;
	cursor: pointer;
}

form.form_reset_password fieldset input[type=email] {
	width: 50%;
}

/* USERS */

div.users div.image img {
    max-width: 2.2em;
    max-height: 2.2em;
    margin-right: 1em;
    cursor: pointer;
    padding: 6px;
    background: var(--sidera-dark-color);
	float: left;
}

div.users p.name {
	font-size: 1.2em;
	margin: 0;
	color: var(--hover-color);
}

div.users > ul > li {
	padding-bottom: 0;
}

div.users > ul > li:hover {
    background-color: rgba(0,0,0,0.05);
}

div.users > ul > li.new {
	line-height: 3.2em;
    color: var(--hover-color);
    padding-bottom: 0.2em;
}

div.users > ul > li p.date {
    margin-top: 1em;
    margin-bottom: 0.2em;
}

div.users > ul#list-users > div#loading, div.friendships > ul#list-friendships > div#loading {
	min-height: 5em;
    background-image: url(../images/icons/shared/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2em;
}

/* ACCOUNT */

a.avatar > img {
    margin: 0 1em 0 1.3em; 
    float: left;
    width: 3em;
    height: 3em;
}

a.avatar + h1 + h2 {
}

div.account.sub-content {
	padding-bottom: 0.3em;
}

div.account a:hover span {
	text-decoration: underline;
}

div.account > div {
    margin-bottom: 1em;
}

div.account div.profile-actions {
    float: left;
    width: 50%;
}

div.account div.domotic-services {
    display: inline-block;
    width: 50%;
}

div.account .square-link, div.user .square-link {
    background-color: var(--sidera-dark-color);
	width: 1.5em;
    height: 1.5em;
    padding: 0.5em;
    vertical-align: middle;
    margin-right: 0.5em;
}

div.user ul li.red {
	color: #af0000;
}

div.user ul li.red .square-link {
	background-color: #af0000;
}

div.account ul li, div.user ul li {
	margin: 0.5em 0;
}

div.account ul li span, div.user ul li span {
    display: inline-block;
    width: 80%;
    vertical-align: middle;
}

div.account ul li:hover span, div.user ul li:hover span {
    text-decoration: underline;
}

div.account div.company-online ul {
    display: block;
}

div.account div.company-online .square-link {
	background: none;
	width: 2.5em;
	height: 2.5em;
	padding: 0;
}

div.account div.company-online ul li {
	display: inline-block;
	margin: 0.5em 2em 0.5em 0;
}

div.account div.company-online ul li span {
	width: auto;
}

div.account div.company-online ul:nth-of-type(2) li {
	margin-right: 0.95em;
}

div.account > p {
    font-size: 0.7em;
    margin: 2em 0 0 0;
    text-align: right;
}

div.account > p > a:nth-of-type(1) {
	color: #af0000;
}

div.user fieldset:not(.lapis-logs) > p > span:nth-child(1) {
    min-width: 15em;
    display: inline-block;
}

/* LAPIS LOGS */

fieldset.lapis-logs > p > span:nth-child(1), fieldset.lapis-logs > p > span:nth-child(2) {
	display: inline-block;
	width: 20px;
	margin-right: 0.3em;
}

fieldset.lapis-logs > p > span:nth-child(3) {
	display: inline-block;
	width: 3em;
}

fieldset.lapis-logs > p img {
	width: 100%;
	vertical-align: bottom;
}

/* USER NEWSLETTER */

div.user-newsletter h3 {
	text-align: center;
	margin: 1em 0;
    word-break: break-all;
}

/* USER DATA PROCESSING CONSENTS */

div#terms_of_service {
	overflow-y: scroll;
    border: 1px solid black;
    padding: 1em;
    font-size: 0.9em;
    max-height: 13em;
    margin-bottom: 1em;
}

div#terms_of_service ul {
	list-style-type: disc;
    margin: 0;
    padding: 0 1em;
}

input#user_terms_of_service + label, input#user_newsletter + label {
	display: inline;
}

/* USER DELETE */

div.user-delete form {
	text-align: center;
	padding: 1em 0;
}

div.user-delete input[type="submit"] {
	background-color: #af0000;
}

div.user-delete input[type="submit"]:hover {
	background-color: #ff2929;
}

/* FORM USER */

form.form_user label {
	width: 160px;
}

form.form_user div.terms {
	font-size: 0.8em;
	text-align: justify;
}

form.form_user p.description-avatars {
	margin-top: 1em;
}

form.form_user div.avatars {
	background-color: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.3);
	padding: 0.5em;
	text-align: center;
}

form.form_user div.avatars img {
	width: 50px;
	padding: 0.23em;
	cursor: pointer;
	background-color: #a3a5a4;
}

body:not(.touch) form.form_user div.avatars img:not(.active):hover, body:not(.touch) form.form_user img#current_custom_icon:not(.active):hover {
	background-color: var(--hover-color);
}

form.form_user div.avatars img.active, form.form_user img#current_custom_icon.active {
	background-color: var(--sidera-dark-color);
}

form.form_user img#current_custom_icon {
    max-width: 64px;
    max-height: 64px;
    vertical-align: middle;
    cursor: pointer;
    padding: 6px;
    background: var(--sidera-dark-color);
}

form.form_user input[type=file] {
	margin: 1em;
}

p.signup-warning {
    margin: 0 0 1.5em 0;
}

.grecaptcha-badge {
    bottom: 2em!important;
}

/* FRIENDSHIPS */

div.friendships form {
	display: inline-block;
}

div.friendships form input[type=submit] {
    padding: 0;
    background: none;
    border: none;
    color: #af0000;
    font-family: inherit;
    font-weight: normal;
    font-size: 1em;
}

body:not(.touch) div.friendships form input[type=submit]:hover {
    background: none;
    text-decoration: underline;
}

/* PAGES */

div.page ul {
	list-style-type: inherit;
	padding: 0 1.5em;
}

div.page li {
	margin: 0.3em 0;
}

/* ACCESS DENIED */

div.access_denied > div {
	min-height: 6.5em;
	padding-left: 6.5em;
}

div.access_denied p {
	margin-top: 3em;
}

div.access_denied img {
	max-width: 100px;
	max-height: 100px;
	float: left;
	margin: 2em;
}

/* ERRORE */

div.errors > div {
	min-height: 6.5em;
	padding-left: 6.5em;
}

div.errors p {
	margin-top: 3em;
}

div.errors img {
	max-width: 100px;
	max-height: 100px;
	float: left;
	margin: 2em;
}

/* BORDER RADIUS */

div.content *:not(img, h1, h2, h3, div.user_session, div.sub-content, div.account .square-link, div.user .square-link, form input[type=file], div.sent_reset_password > h4),
p.error, p.success, p.info, p.warning {
    border-radius: 8px;
}