/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Buttons
# Alignments
# Clearings
# Debug
# Medis Queries	
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
}

article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

[hidden], template {
    display: none;
}

a {
    /* background-color: transparent; */
}

a:active, a:hover {
    outline: 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

b, strong {
    font-weight: bold;
}

dfn {
    font-style: italic;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

mark {
    background: #ff0;
    color: #000;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

figure {
    margin: 1em 40px;
}

hr {
    box-sizing: content-box;
    height: 0;
}

pre {
    overflow: auto;
}

code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled], html input[disabled] {
    cursor: default;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input {
    line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
}

legend {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
}

optgroup {
    font-weight: bold;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
html {}

body{
    color: #333;
    font-family: Arial, sans-serif;
    background-color: #ffffff ;
}

h1, h2, h3, h4, h5, h6,   h1 a,
h2 a, h3 a, h4 a, h5 a, h6 a{
    clear: both;    
    color: #003c81;
    line-height: 1.2;
    padding: 0;
    font-weight:bold;
    font-style:normal;
    text-transform:none;
    text-decoration:none;
}

h1 {
    font-size: 48px;
    font-size: 3rem;
}

h2 {
    font-size:34px;
    font-size:2.125rem;
    /*margin-bottom: 20px;*/
    margin-bottom: 0.526em;  
}

h3 {
    font-size:30px;
    font-size:1.875rem;
    margin-bottom: 0.536em;
}

h4 {
    font-size:28px;  
    font-size:1.75rem; 
    /*margin-bottom: 15px;*/
    margin-bottom: 0.536em;
}

h5 {
    font-size:24px; 
    font-size:1.5rem;     
    /*margin-bottom: 12px;*/
    margin-bottom:0.5em;
}

h6 {
    font-size:22px; 
    font-size:1.375rem;  
    /*margin-bottom: 9px;*/
    margin-bottom:0.409em
}

p {
    /*padding: 0 0 20px;*/
    padding: 0 0 0.909em;
    margin: 0;
}
big {
    /*font-size: 125%;*/
    font-size:32px;
    font-size:2rem;
}
small {
    /*font-size: 85%;*/
    font-size:16px;
    font-size: 1rem;
    line-height:1.3em !important; 
    display: block;
	/*letter-spacing: 1px;*/	
}


/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

#page,
#middle,
#header,
.row{
width: 100%;
position: relative;
margin:0;
padding:0;
}
#page{
    /*display:table;*/
    height: auto;/*!!!*/ 
    min-height: 100%;/*!!!*/ 
    height: 100%;   /*!!!*/ 
    background:url('img/page-bkg.jpg') no-repeat center center fixed;
    background-size: cover;   
    overflow: hidden;
    text-align: center;
    margin:0;
    width:100%;
}
.row{
    margin: 30% 0 0;
    padding: 0;
}
.content_wrap{
    position: relative;
    padding: 0 25px;
    margin: 0 auto;
    text-align:left;
}
#header {
    width: 100%;
    position: absolute;
    z-index: 99;
    font-size: 22px;
    font-size: 1.375rem;
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.5);
    height:120px;
    vertical-align:middle;
}
#header .content_wrap{
    height:100%;
    background-image:url('img/gruppo_sanita_amica.png');
    background-repeat:no-repeat;
    background-size:45%;
    background-position: center left;
}
#header .content_wrap div{
    line-height:120px;height:120px;
}    

h2.tel{margin:0;line-height:120px;}

body {}

img {
    height: auto;
    /* Make sure images are scaled correctly. */
    max-width: 100%;
    /* Adhere to container width. */
}

img {border: 0;}

/*--------------------------------------------------------------
# Button
--------------------------------------------------------------*/
.button {
    display: block;
    border-width:2px;
    border-style:solid;
    background-color:rgba(255, 255, 255, 0.8);
    color: #3f4854;
    border-color:#3f4854;
    line-height: 80px !important;
    padding: 0;
    width:300px;
}
.button a{
    display:block;
    width:100%;
    height:100%;
 }   
.button:hover {
    background-color:rgba(255,255,255,0);
    color:#ffffff;
    border-color:#ffffff;
}
.button.cmp{
    background-image:url('img/cmp.png');
    background-repeat:no-repeat;
    background-size:contain;
    background-position: center;
}
.button.officina{
    background-image:url('img/officina25.png');
    background-repeat:no-repeat;
    background-size:contain;
    background-position: center; 
}

/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a,
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover{
    text-decoration: none;
    color: #4683af/*#859eb3-#4683af-#275522-#6cbd34-#4aa035-#5c789c-#3065b5*/;
}
a:hover {
    color:#bebebe;
}
a:visited {}

a:hover, a:focus, a:active {
    text-decoration: none;
    outline: 0;
}
a:focus {
    outline: 0;
}
/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

a.aligncenter img {
    display: block;
    margin: 0 auto;
}

img.centered {
    display: block;
    margin: 0 auto 20px;
}

img.alignnone{
  margin-bottom: 20px;
}

a.alignnone, img.alignnone {
    margin-bottom: 12px;
}

a.alignleft, a.alignnone, a.alignright {
    max-width: 100%;
}

a.alignnone{
    display: inline-block;
}


a.alignleft, img.alignleft, .wp-caption.alignleft {
    margin: 0 20px 20px 0;
}

a.alignright, img.alignright, .wp-caption.alignright {
    margin: 0 0 20px 20px;
}

a.alignleft, a.alignright {
    border: none;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before, .clear:after, .content_wrap:before, .content_wrap:after, .row:before, .row:after{
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after, .content_wrap:after, .row:after{
    clear: both;
}

/*--------------------------------------------------------------
## Bootstrap Column Classes
--------------------------------------------------------------*/

.five-sixths, .four-sixths, .one-fourth, .one-half, .one-sixth, .one-third, .three-fourths, .three-sixths, .two-fourths, .two-sixths, .two-thirds {
    float: left;
    margin-left: 2.564102564102564%;
    position: relative;
    padding:0;
}

.one-half, .three-sixths, .two-fourths {
    width: 48.717948717948715%;
}

.one-third, .two-sixths {
    width: 31.623931623931625%;
}

.four-sixths, .two-thirds {
    width: 65.81196581196582%;
}

.one-fourth {
    width: 23.076923076923077%;
}

.three-fourths {
    width: 74.35897435897436%;
}

.one-sixth {
    width: 14.52991452991453%;
}

.five-sixths {
    width: 82.90598290598291%;
}

.first {
    clear: both;
    margin-left: 0;
}

 /*--------------------------------------------------------------
## Debug
--------------------------------------------------------------*/
/*div{border:2px solid red;}
div > div{border:2px solid blue;}
div > div > div{border:2px solid lime;}
div > div > div > div{border:2px solid orange;}*/

/*--------------------------------------------------------------
## Media Queries
--------------------------------------------------------------*/
@media only screen and (min-width: 1441px) { 
    .content_wrap{width: 1400px;} 
}

@media only screen and (max-width: 1440px) {
    .content_wrap{width: 1200px;} 
}
 
@media only screen and (max-width: 1024px) {
   #page{
      background-image:url('img/page-bkg_m.jpg');      
    }
    .content_wrap{width: 100%;}
    .button {
        line-height: 40px !important;
        width:200px;
    } 
}
 
@media only screen and (max-width: 768px) {
    html{font-size:13px;}
    #page{
      background-position: -150px center;      
    }
    #header .content_wrap div{height: 80px;line-height: 80px;} 
    h2.tel{line-height:180px;}

  .five-sixths, 
  .four-sixths, 
  .one-fourth, 
  .one-half, 
  .one-sixth, 
  .one-third, 
  .three-fourths, 
  .three-sixths, 
  .two-fourths, 
  .two-sixths, 
  .two-thirds {
      margin: 0;
      width: 100%;
  }

   #header .content_wrap{
       background-size:55%;      
   }
   .row{
        margin: 40% 0 0;   
   }

 }
 
@media only screen and (max-width: 480px) {
   #page{
      background-image:url('img/page-bkg_s.jpg');
      background-position: center center;      
    }
    #header{
       height:80px;      
    }
    #header .content_wrap{
       background-size:65%;      
    }
    h2.tel{
        /*text-shadow: 2px 2px 2px rgba(250, 250, 250, 1);*/
       line-height:80px;
     }

    .row{
        margin: 45% 0 0;   
    }

 }

@media only screen and (max-width : 320px) {
    .button {
        line-height: 50px !important;
        width:270px;
    }
    .row{
        margin: 70% 0 0;   
   }
}