/*! 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: #43331b;
    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.
 
 #43331b
 
 */

::-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
   ========================================================================== */

a{color:#48423e;}
h2{color:#48423e;}
p{margin:0;}

a{text-decoration:none; color:#43331b}

.indi{float:left; width:100%; line-height:30px; text-align:right; font-size:0.8em}



header{float:left; width: 100%;
  height: auto;
  padding:0px;
  z-index: 99; 
  background:#e8e3df; border-bottom:1px solid #43331b; text-aling:center}

#hmenu{position:relative; float:left;  width:100%; left:0px; z-index:999}

.bloccata header{background:#fdfed8;-webkit-box-shadow: 0px 5px 5px 0px rgba(50, 50, 50, 0.4);
-moz-box-shadow:    0px 5px 5px 0px rgba(50, 50, 50, 0.4);
box-shadow:         0px 5px 5px 0px rgba(50, 50, 50, 0.4);}



#logo{width:450px; height:auto; margin:0 auto;}
#logo img{width:450px;}
nav{float:left; width:100%; list-style:none; margin:0; padding:0; line-height:60px;}
nav ul{list-style:none; margin:0;padding:0; width:100%; text-align:center}
nav ul li {display:inline-block; margin:0px 5px; line-height:40px;  padding:0 10px; font-size:0.8em}
nav ul li:hover, nav ul li.current{background:#43331b; color:#fff;}
nav ul li:hover a, nav ul li.current a{color:#fff;}


#richiedi_info a{float:left; width:100%; margin:0px 0px 20px 0px; line-height:40px; background:#43331b; color:#fff; text-align:center }
#linkone a{float:left; width:100%; margin:0px 0px 20px 0px; line-height:40px; background:#43331b; color:#fff; text-align:center }


.menu_mobile{display:none}	
#nav_mobile{position:fixed; top:0; left:-10000000px; width:100%; height:100%; background:#efefef; overflow:scroll; z-index:7; display:none}
nav{display:block}


#hp{position:fixed; top:0; left:0; width:100%; height:100%; display:table;}
#fascia_hp{width:100%; text-align:center; display:table-cell; vertical-align:middle; }
#contenuto_fascia{float:left;; width:100%; margin:0 auto; height:auto; padding:50px 0px 20px 0px; background:rgba(255,255,255,0.9) }


.indi-hp p{float:left; width:100%; text-align:center; margin-top:10px;font-family: 'Oswald', sans-serif, Arial;
	font-weight:300;}


.navigazione-hp{float:left; width:100%; text-align:center; margin:30px 0px; padding:0;}
.navigazione-hp li{display:inline-block; margin:0px; font-size:0.9em }
.navigazione-hp li a{padding:5px 10px }
.navigazione-hp li a:hover, .navigazione-hp li a.current{background:#43331b; color:#fff;}






#testata{position:fixed; top:0; left:0; width:100%; padding:20px 0px; text-align:center; height:auto; margin-top:30px;}
#testata img{height:80px;}

#principale{float:left; width:100%; height:auto; min-height:0; margin-top:40px}


#gallery_hp{float:left; width:100%; height:auto; border-top:3px solid #43331b; border-bottom:3px solid #43331b; }
#gallery_hp .gallery {
    width: 100%;
    height: 620px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
	float:left; position:relative;
	display:table;
}

#gallery_hp .gallery .mess{
    width: 100%;
	display:table-cell;
	vertical-align:middle;
	text-align:center;
	color:#43331b;
	font-size:2.6em;
	font-weight:700;
	 padding:0px 60px;
	 
}


.item img{float:left; width:100%; margin-bottom:20px;}

.blocco{flaot:left; position:relative; width:100%; height:300px; border:1px solid #43331b; box-sizing:border-box; display:table; background-position:center center; background-size:cover}
.blocco:hover .sfondo_blocco{opacity:1}
.sfondo_blocco{position:absolute; top:0; left:0; width:100%; height:100%; opacity:0.7; background-position:center center; background-size:cover;z-index:0}
.blocco_cont{position:relative; display:table-cell; vertical-align:middle;text-align:center; padding:20px; box-sizing:border-box; z-index:999}


.blocco_elenco{flaot:left; position:relative; width:100%; height:300px; border:1px solid #43331b; box-sizing:border-box; display:table; background-position:center center; background-size:cover}
.blocco_elenco:hover .sfondo_blocco{opacity:1}
.sfondo_blocco_elenco{position:absolute; top:0; left:0; width:100%; height:100%; opacity:1; background-position:center center; background-size:cover;z-index:0}



footer{float:left; width:100%; height:auto; margin:10px 0px 0px 0px;  background:#e8e3df; }
.footer_box{ padding:20px 0px}
.address{float:left; width:100%; text-align:center;line-height:20px; font-size:0.9em}
.social{float:right;}

#powered{float:left; width:100%; height:30px; line-height:30px; text-align:center; font-size:0.7em}


#footer_hp{position:absolute; bottom:0; left:0; width:100%; padding:20px 0px; z-index:99; color:#fff;}


.desc_elenco{float:left; width:100%;}
.desc_elenco .row{float:left; width:100%; margin:0;}
.nome_apt{float:left; line-height:40px; font-size:1.5em}
.blocco_dettagli{float:right; line-height:40px;}
.dettaglio_apt{float:left; margin-left:10px; display:block; text-decoration:none;  }
.dettaglio_apt img{margin-right:5px}
.prezzo{float:left; line-height:40px; margin-bottom:10px;}
.row-dettagli{float:left; width:100%;margin-bottom:20px;}

#gallery_hp .gallery {
    width: 100%;
    height: 620px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
	float:left; position:relative;
	display:table;
}


#gallery_hp .dettagli {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
	float:left; position:relative;
	display:table;
}


.lista_servizi{float:left; width:100%; margin:0 0 20px 0; padding:0; list-style:none}
.lista_servizi li{float:left; width:100%; margin:0; padding:0; line-height:40px; border-top:1px solid #43331b;}
.lista_servizi li:last-child{border-bottom:1px solid #43331b;}
.blocco_paginatore{float:left; width:100%; margin:0px 0px 20px 0px;}

.paginato{float:left; width:33.333%}
.testata_apt{ line-height:40px;}
.mappa{float:left; width:100%; background:#43331b; color:#fff; text-align:center; line-height:40px;}

.fotodettagli{float:left; width:100%; height:auto;margin-bottom:20px;}
.fotodettagli img{float:left; width:100%; height:auto;}


#scheda p{float:left; width:100%; margin-bottom:20px;}
#scheda h3{float:left; width:100%; margin-bottom:10px;}

iframe{float:left; width:100% !important; height:450px; margin-bottom:20px;}

#map { float:left; width:100%; height:400px; margin-bottom:20px}

.denominazione{font-size:1.6em;}

.risposta{float:left; width:100%; margin:50px 0px}
.linkbutton{display:block; margin:40px auto 20px auto; width:200px; background:#43331b; color:#fff; line-height:60px; text-transform:uppercase; font-weight:400}
.form-input{float:left; background:#fff; color:#43331b; margin:0; padding:0 10px; height:40px; line-height:40px; box-sizing:border-box; width:100%; border:1px solid #43331b;}
.form-alto{float:left; background:#fff; color:#43331b; margin:0; padding:0 10px; height:auto; line-height:40px; box-sizing:border-box; width:100%; border:1px solid #43331b;}
.lunga{float:left; width:100%;  margin-bottom:10px;}
label{float:left; margin-right:20px; line-height:40px; font-size:1.4em}
input[type=checkbox] {float:left; line-height:40px; margin:5px 10px 0px 0px;}
.valida label{float:left; font-size:0.9em; line-height:20px;}

#scheda_riepi a{float:left; width:100%; margin:0px 0px 20px 0px; line-height:40px; background:#43331b; color:#fff; text-align:center }


.news{float:left; width:100%; padding:5px 10px 5px; box-sizing:border-box;  margin:5px 0px;background:#e8e3df; font-size:0.8em}
.news .immagine{float:left; width:10%;}
.news .immagine img{float:left; width:90%;}
.news .descrizione{float:left; width:90%;}
.news .data{float:left; width:100%;}
.news .testo{float:left; width:100%; font-size:1.5em}
.news .allega{float:left; width:100%; margin:5px 0px 0px 0px; text-align:right}

	

@media only screen and (min-width: 0px) and (max-width: 969px) {
.fix-top{margin-top:20px!important;}	
.footer_box .address{float:left; width:100%; text-align:center}
.footer_box .social{float:right; width:100%; text-align:center; margin-top:20px;}

#scheda h3{text-align:center}



#hmenu{position:fixed; top:0; left:0; width:100%; z-index:9999; background:rgba(255,255,255,0.9)}
header{background:none}	
nav{display:none}
.menu_mobile{display:block; float:right; margin:15px 0px;}	

#nav_mobile{position:fixed; top:0; left:-100000px; width:100%; height:100%; background:#efefef; overflow:scroll; z-index:5; display:block;}
#nav_mobile ul{position:absolute; top:0px; left:0; margin:0; padding:120px 0px 20px 0px; list-style:none; width:100%; }
#nav_mobile ul li{float:left;   margin:0px; width:100%;  margin-bottom:1px; text-align:center}
#nav_mobile ul li a{float:left;   margin:0px; width:100%;  line-height:50px;}

#principale{float:left; width:100%; margin-top:100px}


.news{float:left; width:100%; padding:5px; }
.news .immagine{float:left; width:100%;}
.news .immagine img{float:left; width:20%;}
.news .descrizione{float:left; width:100%;}
.news .data{float:left; width:100%;}
.news .testo{float:left; width:100%; font-size:1.5em}
.news .allega{float:left; width:100%; margin:5px 0px 0px 0px}


.fix-top{margin-top:20px!important;}	
.lista_servizi li{text-align:center}
.testata_apt{text-align:center; line-height:40px;}


.navigazione-hp{float:left; width:100%; text-align:center; margin:20px 0px 0px 0px; padding:0;}
.navigazione-hp li{float:left; width:100%; margin:0 0 30px 0; padding:0; text-align:center }

.logo-hp img{float:left; width:50%; margin:0 25%;}


#logo{float:left; width:220px; height:auto; margin:0px auto;}
#logo img{width:220px;}


#hp{position:fixed; top:0; left:0; width:100%; height:100%; overflow:scroll}
#fascia_hp{float:left; width:100%; height:auto; display:block; }


}

/* ==========================================================================
   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;
    }
}
