/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
	font-family:Arial, Helvetica, sans-serif; 
  color: #222;
  font-size:1em;
  line-height: 1.4;
}


body{font-size:0.6em}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
   body{overflow:hidden; }
   a{text-decoration:none; color:#fff}
.sel{color:#fff!important}


#slider_hp{position:absolute; width:100%; top:0px; left:0px;}
#slider_hp div{position:relative; width:100%; height:100%; cursor:grab;}


#slider{position:absolute; width:100%; top:0px; left:0px;}
#slider div{position:relative; width:100%; height:100%; cursor:grab;}
   
#main {position:fixed; z-index: 2; height: 100%;overflow-y: auto;  width:100%;  -webkit-overflow-scrolling: touch;  padding: 0;  -webkit-backface-visibility: hidden;  backface-visibility: hidden;  -webkit-transition: -webkit-transform 0.7s;  -moz-transition: -moz-transform 0.7s;  transition: transform 0.7s;  -webkit-transition-timing-function: cubic-bezier(0.91, 0.01, 0.6, 0.99);  -moz-transition-timing-function: cubic-bezier(0.91, 0.01, 0.6, 0.99);  transition-timing-function: cubic-bezier(0.91, 0.01, 0.6, 0.99);background:#fff; box-sizing:border-box;  }

#menu_box { position: fixed;  z-index: 1;  top: 0;  left: 0;  height: 100%;  width: 100%;  background:#333;  padding:0px;  box-sizing:border-box; overflow-y: scroll;}

#flip{position:absolute; top:0; left:0; width:100%; height:100%; z-index:4; visibility:hidden; cursor:pointer; background:rgba(0,0,0,0.3)}
#flip.active{visibility:visible}
#progetto{position:absolute; bottom:0; line-height:20px; width:100%; padding:0px 20px; box-sizing:border-box; text-align:center; overflow:hidden; height:20px; text-transform:uppercase; background:#000; color:#fff}

#menu{float:left; width:100%; padding:40px 0px; min-height:100%; position:relative; box-sizing:border-box; font-size:0.8em }

.fondo_menu{float:left; width:100%; line-height:40px; padding:0px 20px; color: #fff; font-size:1.2em; font-weight:normal; box-sizing:border-box; border-top: 1px solid #3a3a3a; letter-spacing:0.15em;}
.cat{float:left; width:100%; line-height:40px; padding:0px 20px; color: #fff; font-size:1.2em; font-weight:normal; box-sizing:border-box; border-top: 1px solid #3a3a3a; letter-spacing:0.15em;}
.no_border{border:none}

#design{position:absolute; bottom:0; left:0; line-height:20px; color:#fff; padding:0 20px; box-sizing:border-box; color:#000;}
#design a{color:#000;}








	.nav {
    float: left;
    width: 100%;
	list-style:none;
	margin:0; padding:0;
	
	
}
.nav li a {
    display: block;
    padding: 10px 30px;
    border-top: 1px solid #3a3a3a;
    text-transform:uppercase;
    text-decoration: none;
    color: #aaa;
	letter-spacing:0.15em;
}
.nav li a:hover, #nav li a.active {
    
    color: #FFF!important;
}

.active {
    
    color: #FFF!important;
}

.nav li ul {
    display: none; 
	list-style:none;
	margin:0; 
	padding-left:0px
}
.nav li ul li a {
    padding: 10px 40px; 
}

.sel a{ 
    color:#FFF!important;
	}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

#header{position:absolute; top:0px; left:0px; width:auto; height:40px;  z-index:999; }
#logo{position:relative; top:12px; left:45px;}
#logo img{height:17px;}



#but_menu {
 position:absolute; top:0px; left:0px;
 
  height: 40px;
  width: 40px;
  background:rgba(0,0,0,0);
  /* image replacement */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  -webkit-transition: -webkit-transform 0.5s;
  -moz-transition: -moz-transform 0.5s;
  transition: transform 0.5s;
}
#but_menu .menu-icon {
  /* icon created in CSS */
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: #cc0000;
}
#but_menu .menu-icon::before, #but_menu .menu-icon:after {
  /* upper and lower lines of the menu icon */
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.5s, width 0.5s, top 0.3s;
  -moz-transition: -moz-transform 0.5s, width 0.5s, top 0.3s;
  transition: transform 0.5s, width 0.5s, top 0.3s;
}
#but_menu .menu-icon::before {
  -webkit-transform-origin: right top;
  -moz-transform-origin: right top;
  -ms-transform-origin: right top;
  -o-transform-origin: right top;
  transform-origin: right top;
  -webkit-transform: translateY(-6px);
  -moz-transform: translateY(-6px);
  -ms-transform: translateY(-6px);
  -o-transform: translateY(-6px);
  transform: translateY(-6px);
}
#but_menu .menu-icon::after {
  -webkit-transform-origin: right bottom;
  -moz-transform-origin: right bottom;
  -ms-transform-origin: right bottom;
  -o-transform-origin: right bottom;
  transform-origin: right bottom;
  -webkit-transform: translateY(6px);
  -moz-transform: translateY(6px);
  -ms-transform: translateY(6px);
  -o-transform: translateY(6px);
  transform: translateY(6px);
}

#but_menu svg {
  position: absolute;
  top: 0;
  left: 0;
}

.navigation-is-open #but_menu {
  /* rotate trigger when navigation becomes visible */
  -webkit-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}
.navigation-is-open #but_menu .menu-icon::after,
.navigation-is-open #but_menu .menu-icon::before {
  /* animate arrow --> from hamburger to arrow */
  width: 50%;
  -webkit-transition: -webkit-transform 0.5s, width 0.5s;
  -moz-transition: -moz-transform 0.5s, width 0.5s;
  transition: transform 0.5s, width 0.5s;
}
.navigation-is-open #but_menu .menu-icon::before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.navigation-is-open #but_menu .menu-icon::after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}


.hidden {
  display: none !important;
}


 #tabella{position:absolute; width:100%; height:100%; top:0px; left:0px; display:table; padding:50px; box-sizing:border-box; font-size:1.2em}
  #cella_tabella{display:table-cell; vertical-align:middle;}
  #contenuto{float:left; width:100%; max-width:960px;}
#tabella a{color:#000;}







@media only screen and (max-width: 960px) {
	
	#tabella{padding:10px;}
	
	#logo{position:relative; top:14px; left:45px;}
#logo img{height:12px;}
  #progetto{font-size:0.5em}

	}


/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}


	