﻿/* 
 * HTML5 ✰ Boilerplate
 *
 * 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.
 *
 * Detailed information about this CSS: h5bp.com/css
 * 
 * ==== Normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

footer, header, {display: block;}
[hidden] {display: none;}

/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 2. Force vertical scrollbar in non-IE
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html {font-size: 115%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}

body {margin: 0; line-height: 1.231;}

/* 
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate
 * Also: hot pink! (or customize the background color to match your design)
 */

::-moz-selection {background: #3AC3E0; color: #fff; text-shadow: none;}
::selection {background: #3AC3E0; color: #fff; text-shadow: none;}


/* =============================================================================
   Links
   ========================================================================== */

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active {outline: 0;}


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] {border-bottom: 1px dotted;}

b, strong {font-weight: bold;}

blockquote {margin: 1em 40px;}

dfn {font-style: italic;}

hr {display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0;}

ins {background: #ff9; color: #333; text-decoration: none;}

mark {background: #ff0; color: #333; font-style: italic; font-weight: bold;}

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp {font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em;}

/* Improve readability of pre-formatted text in all browsers */
pre {white-space: pre; white-space: pre-wrap; word-wrap: break-word;}

q {quotes: none;}
q:before, q:after {content: ""; content: none;}

small {font-size: 85%;}

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sup {top: -0.5em;}
sub {bottom: -0.25em;}


/* =============================================================================
   Lists
   ========================================================================== */



/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e 
 */

img {border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle;}

/*
 * Correct overflow not hidden in IE9 
 */

svg:not(:root) {overflow: hidden;}


/* =============================================================================
   Figures
   ========================================================================== */

figure {margin: 0;}


/* =============================================================================
   Forms
   ========================================================================== */

form {margin: 0;}
fieldset {border: 0; margin: 0; padding: 0;}

/* Indicate that 'label' will shift focus to the associated form element */
label {cursor: pointer;}

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend {border: 0; *margin-left: -7px; padding: 0;}

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */



/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */



/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */



/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */



/*
 * Consistent box sizing and appearance
 */



/* 
 * Remove inner padding and border in FF3/4: h5bp.com/l 
 */



/* 
 * 1. Remove default vertical scrollbar in IE6/7/8/9 
 * 2. Allow only vertical resizing
 */



/* Colors for form validity */



/* =============================================================================
   Tables
   ========================================================================== */



/* ==== Non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir {display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr;}
.ir br {display: none;}

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden {display: none !important; visibility: hidden;}

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden {border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;}

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus {clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto;}

/* Hide visually and from screenreaders, but maintain layout */
.invisible {visibility: hidden;}

/* Contain floats: h5bp.com/q */ 
.clearfix:before, .clearfix:after {content: ""; display: table;}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;}

/* ==== Print styles =======================================================
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * {background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important;} 
  /* Black prints faster: h5bp.com/s */
  a, a:visited {text-decoration: underline;}
  a[href]:after {content: " (" attr(href) ")";}
  abbr[title]:after {content: " (" attr(title) ")";}
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {content: "";}  /* Don't show links for images, or javascript/internal links */
  pre, blockquote {border: 1px solid #999; page-break-inside: avoid;}
  thead {display: table-header-group;} /* h5bp.com/t */
  tr, img {page-break-inside: avoid;}
  img {max-width: 100% !important;}
  @page {margin: 0.5cm;}
  p, h2, h3 {orphans: 3; widows: 3;}
  h2, h3 {page-break-after: avoid;}
}

/* == Fine HTML5 ✰ Boilerplate == */

/* == Stili di base - Mobile first ===== */
  
body {
 background-image: url(../Image/sfondo_sp.jpg); 
 background-color:#AABDC3;
 /*background-color:Fuchsia; */
 background-repeat:repeat-x; 
 font-size: 100%;
 font-family: Lucida Grande, Optima-Regular, Verdana, sans-serif;
 color: #333;
 margin: 0;
 padding: 0;
}

a {
  text-decoration: none;
}

p {
 font-size: 0.875em;
 margin: 0 0 0.35em 0;
}

p a:hover {
 
 text-decoration: underline;
}

.Arancio 
{
  color: #DC4E1C;
    }

.Azzurro {
 color: #3B738A;
 }

#container {
 width: 95%;
 margin: 0 auto;
 padding: 0;
}

header {
 width: 100%;
 
}

#content {
 width: 100%;
 margin-top: 0px;
 margin-bottom: 1em;
 background-color: #dce0e1;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 border-radius: 10px;
 behavior: url(assets/ie-css3.htc);
}

#logo {
 float:left;
 margin: 0;
 padding: 0.35em 0;
 margin-left: 0px;
 margin-top: 5px;
 width:54%;
 background-image:url(../Image/logo_mycity_sp.png);
 background-repeat:no-repeat;
 height:120px

}

#logodx {
 float:right;
 margin: 0;
 padding: 0.35em 0;
 margin-right: 0px;
 margin-top: 5px;
 width:45%;
 background-image:url(../Image/logo_gaspari_sp.png);
 background-repeat:no-repeat;
 height:35px;
 background-position:right;
}


.clear {
	clear: both;
	height:1px;
	
}


#logo img, #logodx img,  {max-width: 100%;}

#menu-principale {
 clear:both;

}

.menu_button img, .menu_button_sel img {
 position: relative;
 top: 50%;
 margin-top: -25px; /*altezza dell'immagine diviso 2 */
}



#space1  {
 float:left;
 width: 1px;
 margin-top: 0px;
 height: 35px;

}

#space2 {
 float:left;
 width: 1px;
 margin-top: 0px;
 height: 35px;
}

#space3  {
 float:left;
 /*width: 1px;*/
 margin-top: 0px;
 height: 35px;

}

.menu_button_sel {
 background-image:url(../Image/pulsante_piccolo2.jpg);
 background-repeat:repeat-x;
 text-align: center;
}

.menu_button {
 background-image:url(../Image/pulsante_piccolo1.jpg);
 background-repeat:repeat-x;
 text-align: center;
}

#but_home {
 float:left;
 width: 24%;
 margin-top: 0px;
 height: 35px; 
}

#but_city {
 float:left;
 width: 25%;
 margin-top: 0px;
 height: 35px;
}

#but_filosofia {
 float:left;
 width: 25%;
 margin-top: 0px;
 height: 35px;
}

#but_contatti {
 float:right;
 width: 25%;
 margin-top: 0px;
 height: 35px;
}

div img {
 max-width: 100%;
 height: auto;
}

#main {
 margin-right:5px;
 margin-left:5px;
}

#main_social {
 margin: 40px 10px 5px 10px;

}

#social {
 float:right;
 margin: 40px 3px 20px 3px;
 text-align:right;
}
.seguici
{
    color: #DC4E1C;
    font-weight: bold;
    display: block;
    float: left;
    margin: 5px 5px 0 0;
}  
#facebook {
 float:left;
 width: 31px;
 margin-left:1px;
 margin-right:1px;
}

#twitter {
 float:left;
 width: 31px;
 margin-left:1px;
 margin-right:1px;
}

#linkedin {
 float:left;
 width: 31px;
 margin-left:1px;
 margin-right:1px;
}

#youtube {
 float:left;
 width: 31px;
 margin-left:1px;
 margin-right:1px;
}

#main_testo, #main_testofilosofia, .slide_testo {
 margin: 5px 10px 5px 10px;
 line-height: 20px;
 text-align: justify;

}

#main_telefono {
    text-align:center;
    
}

#main_filosofia {
    text-align:center;
    margin-top:46px; 
}

#secondario {
 display:none;
}

#city {
 margin-left: 10px;
 margin-top: 20px;
 margin-bottom: 0px;
 margin-right: 10px;

}

.city_comune {
 margin-top: 26px;
 margin-bottom: 6px;
 text-align:center; 
}


.city_logo {
 margin-bottom:10px;
 text-align:center;
}


.city_testo {
 text-align: justify;
}

.city_app {
 float:right;
}
div #secondario_city
{
   
}
footer {
 clear: both;
 position:relative;
 /*top: 50%;*/
 width: auto;
 height: 3.0em;
 background-color: #c5d1d4;
 border: 1px solid #c5d1d4;
 -webkit-border-radius: 10px;
 -moz-border-radius: 10px;
 border-radius: 10px;
 margin-bottom: 1em;
 margin-top:0.5em;
 font-size:0.825em;
 behavior: url(assets/ie-css3.htc);
}

div #legale {
	text-align:center;
	/*position:relative;*/
	top:50%;
	margin-top:5px;
}

.Stile1 {
	color: #DC4E1C;
	font-weight: bold;
}

.Stile2 {
	color: #DC4E1C;
	font-weight: bold;
	font-size:2em;
}

.Stile3 {
	color: #DC4E1C;
	font-weight: bold;
	font-size:2.2em;
}

.Stile4 {
    color: #3B738A;
    font-weight: bold;
    font-size: 1em;
}

.Stile5 {
	color: #DC4E1C;
}

#contatti_ImgMail {
    width:40px;
    }
    

#contatti_ImgTel {
    width:40px;
    }
    

#contatti_ImgInd {
    width:40px;
    }
    
#contatti_txtInd {
    margin-bottom:60px;
    }
    
div .contatti {
    
    margin-bottom:48px;
    }

#contatti_1r 
{
    margin-top:60px;
        
    }

#contatti_3r 
{
    margin-bottom:60px;
        
    }


/* Nascondiamo le sezioni che non vogliamo 
visualizzare su smartphone              */

/* == Media queries (breakpoint) ===== */



/* iPad [portrait + landscape] */
@media only screen and (min-width: 768px) {


/* Mostriamo le sezioni prima nascoste */


#space2 {
    display: block;
    float: left;
    height: 45px;
    margin-top: 0px;
    width: 2px;

}

body {
 background-image: url(../Image/sfondo.jpg); 
 font-size: 100%;
 /*background-color:Yellow;*/
}

#secondario {
 display:block;
}

#container {
 position: relative;
 max-width: 960px;
 padding: 0 1.06382978723404%;
 border-bottom: 10px;
}
	
header {
 margin-bottom: 0.625em;
 padding-bottom: 1.25em;

}

#logo {
 float:left;
 margin: 0;
 padding: 0.35em 0;
 margin-left: 25px;
 margin-top:10px;
 width:60%;

}

#logodx {
 float:right;
 margin: 0;
 padding: 0.35em 0;
 margin-right: 10px;
 margin-top: 25px;
 width:33%;

}

#logo 
{
 background-image:url(../Image/logo_mycity.png);
 height:155px
    }

#logodx 
{
 background-image:url(../Image/logo_gaspari.png);
 height:69px;
    }


#space1  {
 float:left;
 width: 2px;
 margin-top: 0px;
 height: 45px;

}

#space3  {
 float:left;
 width: 2px;
 margin-top: 0px;
 height: 45px;

}

.menu_button img, .menu_button_sel img {
 position: relative;
 top: 50%;
 margin-top: -25px; /*altezza dell'immagine diviso 2 */
}

.menu_button_sel {
 background-image:url(../Image/pulsante_grande2.jpg);
 background-repeat:repeat-x;
}

.menu_button {
 background-image:url(../Image/pulsante_grande.jpg);
 background-repeat:repeat-x;
}

#but_home {
 float:left;
 width: 24%;
 margin-top: 0px;
 height: 40px; 
}

#but_city {
 float:left;
 width: 25%;
 margin-top: 0px;
 height: 40px;
}

#but_filosofia {
 float:left;
 width: 25%;
 margin-top: 0px;
 height: 40px;
}

#but_contatti {
 float:right;
 width: 25%;
 margin-top: 0px;
 height: 40px;
}

#main { 
 clear:both;
 margin-bottom:0px;
 margin-left:50px;
 margin-right:50px;
}

#social {
 margin-left:2px;
 margin-right:18px;
}

#facebook {
 width: 35px;

}

#twitter {
 width: 35px;

}

#linkedin {
 width: 35px;

}

#youtube {
 width: 35px;

}

#main_telefono {
 float:left;
 width: 42%;
 margin-top:80px;
}

#main_filosofia {
 float:left;
 width: 40%;
 margin-top:60px;
}


#main_testo {
 float:right;
 width: 55%;
 margin-top:20px;

}

#main_testofilosofia {
 float:right;
 width: 55%;
 margin-top:60px;

}

.slide_testo {
 margin: 25px 10px 5px 10px;

}

div .riga {
 position:relative;
 width: auto;
 height: 4px;
 padding: 0 2%;
 background-color: #A7C2CB;
 border: 1px solid #A7C2CB;
 -webkit-border-radius: 5px;
 -moz-border-radius: 5px;
 border-radius: 5px;
 margin-left: 50px;
 margin-right: 50px;
 behavior: url(assets/ie-css3.htc);
}

.slide {
 margin-left: 52px;
 margin-top: 36px;
 margin-bottom: 0px;
 margin-right: 52px;
}

.city_slide {
 margin-left: 52px;
 margin-top: 20px;
 margin-bottom: 0px;
 margin-right: 52px;
}

.slide_logo {
 float:left;
 width: 17%;
}


.slide_testo {
 float:left;
 margin: 4px 15px 4px 15px;
 width: 28%;
 text-align:left;
}

.city_logo {
 float:left;
 margin-bottom:25px;
 width: 20%;
}

#city {
 margin-left: 60px;
 margin-top: 7px;
 margin-bottom: 6px;
 margin-right: 50px;

}

.city_comune {
 margin-left: 60px;
 margin-top: 40px;
 margin-bottom: 6px;
 margin-right: 50px;
 text-align:left;

}


.city_testo {
 float:left;
 margin: 4px 20px 0px 0px;
}

.city_app {
 float:right;
}

footer {
 font-size: 15px;
 height: 2.5em;
}

div #legale {
	text-align:center;
	position:relative;
	top:20%;
	margin-top:0px;
}

#contatti_ImgMail {
    float:left;
    width:40px;
    }
    
#contatti_txtMail {
    float:left;
    }

#contatti_ImgTel {
    float:left;
    width:40px;
    }
    
#contatti_txtTel {
    float:left;
    }


#contatti_ImgInd {
    float:left;
    width:40px;
    }
    
#contatti_txtInd {
    float:left;
    margin-bottom:60px;
    }
    
div .contatti {
    
    margin-left:30px; 
    margin-bottom:48px;
    }
    
}    
/* -----------------------------------
IPAD LANDSCAPE + NETBOOK
------------------------------------ */
@media only screen and (min-width: 1024px){
	

#container {max-width: 980px;}

body 
{
    /*background-color:Blue;*/
    }

#space1  {
 float:left;
 width: 3px;
 margin-top: 0px;
 height: 45px;

}

#space2 {
 float:left;
 width: 3px;
 margin-top: 0px;
 height: 45px;
}

#space3  {
 float:left;
 width: 3px;
 margin-top: 0px;
 height: 45px;

}

div #legale {
	text-align:center;
	position:relative;
	top:50%;
	margin-top:-7px;
}

#logo 
{
 background-image:url(../Image/logo_mycity.png);
 height:155px
    }

#logodx 
{
 background-image:url(../Image/logo_gaspari.png);
 height:69px;
    }

#social {
 margin-left:2px;
 margin-right:17px;
}

#facebook {
 width: 35px;
 margin-left:2px;
 margin-right:2px;
}

#twitter {
 width: 35px;
 margin-left:2px;
 margin-right:2px;
}

#linkedin {
 width: 35px;
 margin-left:2px;
 margin-right:2px;
}

#youtube {
 width: 35px;
 margin-left:2px;
 margin-right:2px;
}

}


/* -----------------------------------
DESKTOP
------------------------------------ */
@media only screen and (min-width: 1200px) {
	
#container {max-width: 980px;}

body 
{
    /*background-color:Green;*/
    }

}
/* tablet [portrait + landscape] */
@media screen and (max-width: 980px) 
{
    #secondario
    {display:none;}
}

/* iPhone [portrait + landscape] */
@media screen and (max-width: 480px) {
        
  
    
#but_home {
 min-width:50%;
}

#but_city {
 float:right;
 min-width:49%;
}

#space2 {
 display:none;
    }

#but_filosofia {
 margin-top: 2px;
 min-width:50%;
}

#but_contatti {
 margin-top: 2px;
 min-width:49%;
}

#main_telefono {
    
    margin-top:30px; 
}

#social {

 width: 53%;
 margin-top: 0px;
 margin-right: 5px;
}

#facebook {
 margin-top: 0px;
}

#twitter {
 margin-top: 0px;
}

#linkedin {
 margin-top: 0px;
}

#youtube {
 margin-top: 0px;
}

#main_filosofia {
    
    margin-top:30px; 
}

.city_comune 
{
    margin-top:30px;
    }

#contatti_1r 
{
    margin-top:30px;       
    }
footer {
 font-size:0.825em;

}
.city_testo 
{
    margin-left:7%
}
}
@media screen and (max-width: 320px) {
    footer {
        height: 4.0em;
        font-size: 0.675em;
    }
}
