/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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{
    background: white;

   font-family: 'Montserrat', sans-serif;
   overflow-x: hidden;
}
#farmacia{
    background-color: #6da3d2 ;
   /* width: 100%;
    clear: left;
    overflow-y: hidden;*/
    background-image: url(../img/sf-div.png);
    background-repeat: no-repeat;
    background-position: center left;


}
#page{

  background-color: #e1e1e1/*#b7c7d5*/;
}
#farmacia h2{
    font-size: 20px;
    color: white;
    font-weight: 200;
}
.logo{
    margin: 20px auto;
    width: 520px;
    max-width: 100%;
}
.logo > img{
    max-width: 100%;
    margin: auto;
}
.menu{
    text-align: center;
    margin-bottom: 120px;

}
.menu ul{
    width: 863px;
    max-width: 100%;
    margin: 20px auto;
    /*border:solid 1px;*/


}
.menu ul li{
    margin: 10px auto;
    float: left;
    list-style: none;
    color: #334787;
    text-transform: uppercase;
    font-size: 16px;
     padding: 18px;

}
hr{
    background: #7b88b4;
}
.menu ul li a{

    text-decoration: none;
    cursor: pointer;
    font-weight: 100;
        color: #334787;

}
.menu ul li:hover{
    border-bottom: solid #334787 1px;
}
.bg-menu-btn-l{
    background-image: url(../img/sf-btn.png);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: auto;
}

.bg-menu-btn-r{
    background-image: url(../img/sf-btn.png);
    background-position: right top;
    background-repeat: no-repeat;
}
.titolo-sec{
    /*color: #b4cee9 ;*/
    color: #fff;
    text-align: center;
    font-size: 45px;
    padding-bottom: 25px;
  /*  letter-spacing: 3px;*/
  margin-top: 40px;

}
#cerchi-servizi{
    min-height: 400px;
    padding-left: 69px;
}
#cerchi-affitto{
    min-height: 400px;
    padding-left: 60px;
}
#c1{
    background-image: url(../servizi/consulenze.png);
    background-repeat: no-repeat;
    background-position: left top;
    width: 160px;
    height: 121px;
    position: absolute;
    /*left: 191px;*/
    top: 24px;
    left: 260px;
}
#c1:before
		{content: url("../servizi/consulenze_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
#c1:hover{
     background-image: url(../servizi/consulenze_hover.png);
}
#c2{
    background-image: url(../servizi/convenzioni.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 142px;
    height: 129px;
    top: 140px;
    /*left: 166px;*/
    left: 237px;
}
#c2:before
		{content: url("../servizi/convenzioni_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
#c2:hover{
     background-image: url(../servizi/convenzioni_hover.png);
}
#c3{
    background-image: url(../servizi/formazione.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 120px;
    height: 166px;
    top: 174px;
    /*left: 75px;*/
    left: 143px;

}
#c3:before
		{content: url("../servizi/formazione_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
 #c3:hover{
     background-image: url(../servizi/formazione_hover.png);
}
#c4{
    background-image: url(../servizi/servizio-inventari.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 120px;
    height: 157px;
    /*top: 162px;
    left: -60px;*/
    top: 166px;
    left: 15px;
}
#c4:before
		{content: url("../servizi/servizio-inventari_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
 #c4:hover{
     background-image: url(../servizi/servizio-inventari_hover.png);
}
#convegni{
    background-image: url(../img/2.png);
    background-repeat: no-repeat;
    background-position: center left;
}
#contatti{
    background-image: url(../img/4.png);
    background-repeat: no-repeat;
    background-position: center left;
        background-color: #445768;
}
#contatti a{
  color: #fff;
}
#farmacia p{
    color: #fff ;
    font-size: 19px;
    margin-top: 20px;

}
#convegni p, #chisiamo p{
    color: #334787 ;
    font-size: 19px;
    /*margin-top: 20px;*/
}

#convegni .titolo-sec, #contatti .titolo-sec{
    color: #334787;
}
section > .container > .clearfix > div{
    padding-bottom: 50px;
}
#chisiamo{
  /* background-color: rgba(174, 207, 236, 0.45);*/
    /*background-color: #def0f9; */
    background-image: url(../img/3.png);
    background-repeat: no-repeat;
    background-position: center left;
    background-color: rgb(203, 231, 255);

}
#contatti h3, #contatti p{
    color: #6da3d2 ;
    font-size: 19px;
}
#contatti h3{
    font-size: 22px;
}
.news{
    display: block;
    padding: 5px;
    color: #334787!important;
}
.news p{
  font-size: 18px !important;
}
.news p:first-of-type{
  text-align: justify;
}
.pagina-interna .news h1{
    font-size: 22px;
    margin-top: 40px;
    background: #aacddf;
    padding: 3px;
}
#page h2{
    color: #334787!important;
    font-size: 23px;
    margin-bottom: 20px;
    margin-top: 0px;
    background: #aacddf;
    padding: 3px;

    border-bottom: dotted 1px #ccc;
}
.navline{
    padding: 5px;
    font-size: 19px;

}
#map{
    min-height: 400px;
    width: 100.8%;


}
.custom-bg{
        /*background: #a6b9c3;*/
    background: #b1c2cb;
}
.custom-bg2{
        /*background: rgb(209, 215, 218);*/

}
.custom-bg2 h1{
    color:#334787!important;
}
.foto p{
  font-size: 13px;
}
footer{
    background-color: #445768;
    min-height: 200px;
    padding-top: 40px;
      padding-bottom: 40px;

}
footer p{
  color: #fff !important;
}
footer a{

  color: #ccc
}
footer a:hover{
  color: white;
}
footer ul{
  -webkit-padding-start: 20px;

}

footer ul li {
  list-style:unset;
color: #fff !important;
}
footer h5{
  color: #fff;
  padding:0;
  margin:0;
  margin-bottom: 10px;
}
#logo-footer{
  max-width: 500px;
  width: 200px;
  margin-bottom: 10px;
  background-color: #fff;
}
form{
   /* margin-bottom: 130px;*/
    clear: left;
}
p{
    color: #334787;
}
.data{
  /*margin-top: 21px;*/
  padding: 5px;
}
/*.data:first-of-type{
  margin-top: 7px;

}*/
.bottom{
    background-color: #354252;
}
#canvas-linee{
    position: absolute;
}
#c1-affitto{
    background-image: url(../servizi/affitto-uffici.png);
    background-repeat: no-repeat;
    background-position: left top;
    width: 160px;
    height: 121px;
    position: absolute;
    left: 251px;
    top: 24px;
}
#c1-affitto:before
		{content: url("../servizi/affitto-uffici_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
#c1-affitto:hover{
     background-image: url(../servizi/affitto-uffici_hover.png);
}
#c2-affitto{
    background-image: url(../servizi/affitto-sale.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 142px;
    height: 129px;
    top: 140px;
    left: 226px;
}
#c2-affitto:hover{
     background-image: url(../servizi/affitto-sale_hover.png);
}
#c3-affitto{
    background-image: url(../servizi/temporary-office.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 120px;
    height: 166px;
    top: 174px;
    left: 138px;

}
#c3-affitto:before
		{content: url("../servizi/temporary-office_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
 #c3-affitto:hover{
     background-image: url(../servizi/temporary-office_hover.png);
}
#c4-affitto{
    background-image: url(../servizi/coworking.png);
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    width: 120px;
    height: 157px;
    top: 166px;
    left: 8px;
}
#c4-affitto:before
		{content: url("../servizi/coworking_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
 #c4-affitto:hover{
     background-image: url(../servizi/coworking_hover.png);
}
#c1-mobile{
      margin-left: -1px;
      margin-top: -22px;
}
#c2-mobile{
      top: 97px;
      left: 191px;
}
#c3-mobile{
    top: 151px;
    left: 122px;
}
#c4-mobile{
    top: 162px;
    left: -4px;
}
.nav-toggle{

    text-decoration: none;
    text-indent: -999px;
    position: relative;
    overflow: hidden;
    width: 70px;
    height: 55px;
    float: right;
}

.nav-toggle:before {
    color: #334787;
    font-family: "responsivenav", sans-serif;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    font-size: 58px;
    text-transform: none;
    position: absolute;
    content: "≡";
    text-indent: 0;
    text-align: center;
    line-height: 42px;
    speak: none;
    width: 100%;
    top: 0;
    left: 0;
}
.nav-toggle{
   /* font-size: 19px;
    margin-bottom: 30px;
    padding: 40px;*/
    /*user-select: none;*/


    text-decoration: none;
    font-size: 18px;
    color: #000;
    /*text-indent: -999px;*/
    position: relative;
    overflow: hidden;
    width: 70px;
    height: 55px;
    /*float: left;*/

}

.nav-toggle.active::before {
    font-size: 34px;
    content: "x";
    line-height: 40px;
}
.nav-collapse li{
    height: 60px;

}
.nav-collapse a {
    color: #fff;
    text-decoration: none;
    width: 100%;
    background: #334787;
    border-bottom: 1px solid white;
    padding: 0.7em 1em;
    font-size: 22px;
    float: left;
    height: 60px;
}

/*#menu-mobile{
    text-align: center;
    text-transform: uppercase;
}
#menu-mobile ul li a{
    font-size: 20px;
    text-align: center;

}*/
.form-control{
    border-color: #6da3d2;
}
.btn{
  white-space: normal !important;
}
.btn-primary{
        background-color: #9aa4ac;
}
.btn-primary:hover {
    color: #fff;
        background-color: #1f729e
  }
  #timbro{
    width: 40%;
  }
  #timbro img{
    width: 100%;
  }
@media(min-width:400px) and (max-width:863px){
  #timbro{
    width: 100%;
  }
  #timbro img{
    width: 100%;
  }

}
@media(min-width:768px) and (max-width:863px){
  .menu ul li {
    padding: 15px;
  }
}
@media(min-width:500px) and (max-width:863px){
    .menu ul li a {
       font-size: 14px;
    }


}
@media(max-width:500px){
    .logo p{

        font-size: 12px;
        text-align: center !important;
    }
    .logo{
        width: 90%;

    }
    #cerchi-servizi{
        padding-left: 20px;
    }
    #c1{
         width: 130px;
         left: 210px;
        top: 28px;
        background-size: contain;
    }
    #c2{
        width: 120px;
        left: 196px;
        top: 130px;
        background-size: contain;
    }
    #c3{
        width: 100px;
        top: 170px;
        left: 121px;
        background-size: contain;
    }
    #c4{
        width: 100px;
        top: 171px;
        left: 10px;
        background-size: contain;
        background-image: url(../servizi/servizio-inventari2.png);
    }
    #c4:before
		{content: url("../servizi/servizio-inventari2_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
    #c4:hover{
        background-image: url(../servizi/servizio-inventari2_hover.png);
    }

    #cerchi-affitto{
        padding-left: 0px;
    }

    #c1-affitto{
        width: 140px;
        background-size: contain;
        left: 190px;
    }
    #c2-affitto{
        width: 126px;
        background-size: contain;
        left: 180px;
        top: 125px;
    }
    #c3-affitto{
        width: 110px;
        background-size: contain;
         background-image: url(../servizi/temporary-office2.png);
        top: 168px;
        left: 107px;

    }
     #c3-affitto:before
		{content: url("../servizi/temporary-office2_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
    #c3-affitto:hover{
        background-image: url(../servizi/temporary-office2_hover.png);
    }
    #c4-affitto:before
		{content: url("../servizi/coworking2_hover.png");
		 width:0;
		 height:0;
		 visibility:hidden;}
    #c4-affitto:hover{
    background-image: url(../servizi/coworking2_hover.png);
    }
    #c4-affitto{
        width: 110px;
        background-size: contain;
        background-image: url(../servizi/coworking2.png);
        left: -10px;
        top: 171px;

    }
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.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:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
