/* Ayrone Catalogo - CSS per catalogo sfogliante */

/* Reset base */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	margin:0; padding:0; border:0; font-size:100%; font:inherit; vertical-align:baseline;
}

html, body, #container-wrap, #container { height:100%; }
#container-wrap { position:absolute; top:0; left:0; }
#container-wrap, #container { min-height:100%; width:100%; background-color:transparent; z-index:0;}

body { 
	line-height:1; 
	letter-spacing:-0.25px; 
	overscroll-behavior:contain;
	background:#ededed;
}

/* Loader */
#loadIndicator {
	width:100%; 
	padding:6px; 
	position:fixed;
	top:0; 
	left:0; 
	margin:auto;
    box-shadow:0 2px 4px rgba(0, 0, 0, 0.3);
    transition:all 1s ease-in .5s;
    opacity:1; 
	z-index:9999;
	background:rgba(0,0,0,0.9);
	color:#fff;
	font-family:"Trebuchet MS", "Lucida Grande", Helvetica, sans-serif;
	text-align:center;
	font-size:15px;
	display:flex;
	align-items:center;
	justify-content:center;
	flex-direction:column;
}

body.loaded #loadIndicator {
	opacity:0;
	transform:translateY(-36px);
	-webkit-transform:translateY(-36px);
	display:none;
}

#loadIndicator img {
	vertical-align:text-bottom; 
	width:24px;
	margin-bottom:10px;
}

#loadIndicator.hidden {
	display:none;
}

/* Container e pagine */
.pages {
	list-style:none outside none;
	padding:0; 
	margin:0 auto;
}

.page, .page-scale-wrap {
	position:relative; 
	float:left; 
	overflow:hidden;
}

.page-scale-wrap { 
	width:595px; 
	height:842px; 
	background: #fff !important; 
	transform:translateZ(0);
}

.pdf-page {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.pdf-page canvas {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	display: block;
}

/* Turn.js styles */
.turn-page-wrapper {
	position: absolute;
	overflow: hidden;
}

.turn-page {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Responsive */
@media all and (max-width:595px) {
	.page-scale-wrap {
		width: 100%;
		height: auto;
	}
	
	.pdf-page canvas {
		width: 100%;
		height: auto;
	}
}

/* Fullscreen */
:-webkit-full-screen { background:#ededed; }
:-moz-full-screen { background:#ededed; }
:-ms-fullscreen { background:#ededed; }

/* Footer barra nera */
#in5footer {
	height: 40px;
	line-height: 40px;
	clear: both;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #000;
	color: #fff;
	font-family: "Trebuchet MS", "Lucida Grande", Helvetica, sans-serif;
	text-align: center;
	font-size: 15px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	z-index: 1000;
	display: table;
}

#in5footer > span {
	display: table-cell;
	vertical-align: middle;
}

#in5footer a {
	text-decoration: none;
	color: #99ccff;
}

#in5footer a:hover {
	color: #fff;
}

/* Barra di navigazione con pagine */
#page-info {
	display: inline-block;
	margin: 0 20px;
}

#page-info span {
	margin: 0 5px;
}

/* Link download PDF */
#download-link {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>') no-repeat center;
	background-size: 24px 24px;
	opacity: 0.8;
	transition: opacity 0.3s;
}

#download-link:hover {
	opacity: 1;
}

/* Frecce laterali per navigazione */
nav#page-nav {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999;
}

nav#page-nav > button {
	display: block;
	position: fixed;
	left: 0;
	top: 50%;
	width: 68px;
	height: 68px;
	margin: -34px 0 0 0;
	text-align: center;
	outline: 0;
	background: url(../images/arrows-slider.svg) no-repeat;
	background-size: 68px 68px;
	opacity: 0.7;
	will-change: transform;
	pointer-events: auto;
	cursor: pointer;
	border: none;
	transition: opacity 0.3s;
}

nav#page-nav > button:hover {
	opacity: 1;
}

nav#page-nav > #backBtn {
	left: 0;
}

nav#page-nav > #nextBtn {
	left: auto;
	right: 0;
	-ms-transform: scaleX(-1);
	-moz-transform: scaleX(-1);
	-webkit-transform: scaleX(-1);
	transform: scaleX(-1);
}

/* Responsive per frecce */
@media all and (max-width: 768px) {
	nav#page-nav > button {
		width: 50px;
		height: 50px;
		margin: -25px 0 0 0;
		background-size: 50px 50px;
	}
}

/* Spazio per il footer */
body {
	padding-bottom: 40px;
}

