* { 
  -moz-box-sizing: border-box; 
  -webkit-box-sizing: border-box; 
   box-sizing: border-box; 
}

body { font-family: Verdana, sans-serif; font-size: 12px; margin: 0px; padding: 0px; background: #333; }

form { margin: 0px; padding: 0px; border: 0px; }

table { border-collapse: collapse; width: 100%; font-size: 12px; }
table td, table th { border: 1px solid #999; padding: 5px; }
table th { background: #ddd; }

img { border: 0px; }

#header { padding: 10px; background: #333; }
#header h1 { margin: 0px; padding: 0px; text-align: center; color: #eee; }
#header img { display: inline-block; vertical-align: middle;}

#control { /*padding: 10px;*/ background: #111; width: 25%; float: left; /*position: fixed; top: 0px; left: 0px;*/ color: #ccc; }

#mainmenu { }
#mainmenu > ul { list-style-type: none; padding: 0px; margin: 0px; }
#mainmenu > ul > li { border-bottom: 1px solid #222; }
#mainmenu > ul > li:first-child { border-top: 1px solid #222; }
#mainmenu > ul > li > a { display: block; width: 100%; padding: 8px; font-weight: bold; }
#mainmenu > ul > li > a:hover { background: #333;}
#mainmenu > ul > li > a.togglelink { float: right; width: auto; text-align: center;}
#mainmenu > ul > li > a.togglelink:hover { background: transparent; }
#mainmenu > ul > li > ul { list-style-type: none; padding: 0px; padding-bottom: 4px; margin: 0px; display: none; }
#mainmenu > ul > li > ul > li > a { display: block; padding: 4px; padding-left: 24px; font-weight: normal; }
#mainmenu > ul > li > ul > li > a:hover { background: #333;}

#control a:link { color: #eee; text-decoration: none; }
#control a:visited { color: #eee; text-decoration: none; }
#control a:hover { color: #0f0; text-decoration: none; }
#control a:active { color: #0f0; text-decoration: none; }

#control > div {
	padding: 10px;
	margin: 10px;
	border: 1px solid #222;
	border-radius: 5px;
	overflow: auto;
}
#control > div > h3 { margin: 0px; padding: 0px; text-align: center; color: #aaa; }

#page { padding: 10px; background: #fff; margin-left: 25%; }
#page h2 { padding: 2px 5px; border-left: 16px solid #090; margin-top: 0px; color: #090; font-weight: bold; }

#page a:link { color: #090; text-decoration: none; }
#page a:visited { color: #090; text-decoration: none; }
#page a:hover { color: #090; text-decoration: underline; }
#page a:active { color: #090; text-decoration: underline; }

.linkb { display: inline-block; background: #393; color: #fff !important; font-weight: bold; padding: 5px; border-radius: 4px; }
.linkb:hover { background: #933; text-decoration: none; }

a.b_orange { background: #fff; color: #ff8f0f !important; padding: 5px; border-radius: 6px; display: inline-block; font-weight: bold; border: 1px solid #ff8f0f; text-decoration: none !important; }
a.b_orange:hover { background: #ff8f0f; color: #fff !important; border: 1px solid #ff8f0f; text-decoration: none !important; }

a.b_list { background: #fff; color: #ff8f0f !important; padding: 5px; border-radius: 6px; display: inline-block; font-weight: bold; border: 1px solid #ff8f0f; text-decoration: none !important; margin-bottom: 5px; }
a.b_list:hover { background: #ff8f0f; color: #fff !important; border: 1px solid #ff8f0f; text-decoration: none !important; }

.error { padding: 5px; border: 2px solid #f00; background: #fcc; border-radius: 4px; color: #f00; margin-bottom: 10px; } 
.success { padding: 5px; border: 2px solid #0f0; background: #cfc; border-radius: 4px; color: #0f0; margin-bottom: 10px; } 
.info { padding: 5px; border: 2px solid #00f; background: #ccf; border-radius: 4px; color: #00f; margin-bottom: 10px; }

.greybox { padding: 5px 10px; margin: 10px 0; border: 2px solid #ccc; background: #ccc; border-radius: 5px; }
.pageblock { padding: 5px 10px; margin: 10px 0; border: 2px solid #ccc; background: #fff; border-radius: 5px; }

.filediv { border: 1px solid #666; padding: 4px; border-radius: 5px; display: inline-block; margin-right: 5px; }

#login { padding: 10px; background: #fff; margin: 20px auto; width: 50%; }

/* for articles/nodes area */
#toolbox { padding: 3px; margin: 0; background: #ccc; }
#writearea { width:100%; height: 80vh; overflow: auto; border: 4px solid #ccc; border-top:0px;}
#testo { width: 49.9%; height:calc(80vh - 4px);}
#writearea #testo { border:0px; margin:0px; padding: 0px;}
#preview { width: 49.9%; padding: 5px; background: #fff; float: right; border-left: 4px solid #ccc; min-height:calc(80vh - 4px); font-size: 14px;}
.modartcont { overflow:auto; width: 100%; clear: right; padding-top: 20px;}
.modartbox { width: 32%; float: left; padding: 20px; background: #ccc; margin-left: 2%;}
.modartboxdouble { width: 66% !important; }
.modartbox:first-child { margin-left: 0; }
.modartbox img { width: 100%; }

#thumbs { margin-top: 10px; width: 100%; overflow: auto; }
#thumbs > div { width: 22%; margin-left: 4%; height: 100px; overflow: hidden; margin-bottom: 10px; float: left; position: relative; }
#thumbs > div:nth-child(4n+1) { margin-left: 0; }
#thumbs > div > img { height: 100%; }
#thumbs > div > span { position: absolute; bottom: 0px; left: 0px; background: white; padding: 2px; }
#thumbs > div > span > a { color: red; text-decoration: none; font-weight: bold; }

.chk_head { font-weight: bold; margin-top: 10px; margin-bottom: 5px; }
.chk_head:first-child { margin-top: 0px; }
.chk_cont { display: inline-block; width: 33%; }

#catbox { background:#ccc; padding:5px; margin-bottom:10px; }
#catlist { display:none; margin-top: 5px; padding-top: 5px; border-top: 1px solid #fff;}

#poimod label { display: inline-block; min-width: 150px; margin-top: 10px; font-weight: bold; }
#poimod input[type="text"] { width: 400px; }
#poimod textarea { width: 75%; height: 300px; margin-bottom: 10px; }
#poimod > fieldset { border: 5px solid #ccc; padding: 10px; margin: 0 0 10px 0; }
#poimod > fieldset > label:first-child { margin-top: 0px; }

#usermod label { display: inline-block; min-width: 150px; margin-top: 10px; font-weight: bold; }
#usermod input[type="text"] { width: 400px; }
#usermod textarea { width: 75%; height: 300px; margin-bottom: 10px; }
#usermod > fieldset { border: 5px solid #ccc; padding: 10px; margin: 0 0 10px 0; }
#usermod > fieldset > label:first-child { margin-top: 0px; }

#winmapcont { width: 240px; border: 1px solid #4b9649; float: right; display: block; background: #4b9649; font-size: 11px; color: #fff; text-align: center; }
#winmap { width: 100%; height: 150px; }

.twocol, .threecol { margin: 0 0 10px 0; overflow: auto; }
.twocol label, .threecol label { width: 25% !important; min-width: 0px !important; }
.twocol input[type="text"], .threecol input[type="text"] { width: 75% !important; }

.twocol div { width: 49%; margin-left: 2%; float: left; }
.twocol div:first-of-type { margin-left: 0; } 
.threecol div { width: 32%; margin-left: 2%; float: left;}
.threecol div:first-of-type { margin-left: 0; } 

.together { border: 5px solid #ccc; padding: 10px; }
.separated div { border: 5px solid #ccc; padding: 10px; }



/* da vecchio stile */

tr.lred td { background: #fcc; }
tr.lblue td { background: #ccf; }
tr.lgreen { background: #cfc; }

#paglog { margin: 100px auto 0px auto; width: 400px; }

.ann { border: 1px solid #D89E1C; padding: 10px; background: #FFDB88; border-radius: 4px; margin: 0 0px 10px 0; }

fieldset legend { font-weight: bold; font-style: italic; }

/* nuovi stili aggiunti per nuova piattaforma */

.setting_checkbox { vertical-align: middle; }