/* Steve jobs' book */
/*/// css: {width: 405, height: 582}*/

* {
	-webkit-user-select: none;  /* Chrome, Safari, Opera */
	-moz-user-select: none;     /* Firefox */
	-ms-user-select: none;      /* Internet Explorer/Edge */
	user-select: none;          /* Standard */
}
:root {
 --page_interno-width: 405px;
 --page_interno-height: 582px;
  
  /* Applica il coefficiente corretto di scala */
  --scale-width: 1.185185; /* 480 / 405 */
 --scale-height: 1.030927; /* 600 / 582 */
 --scale_duble-width: 1.0444; /* 423 / 405 */
 --page_single_cover-width: calc(var(--page_interno-width) * var(--scale_duble-width)); /* 480px */
 --page_cover-height: calc(var(--page_interno-height) * var(--scale-height)); /* 600px */
 --page_cover-width: calc(var(--page_single_cover-width) * 2); /* 846px */
}
.flipbook-wrapper {
	min-width: var(--page_cover-width);
	position: relative;/* background: blueviolet; */
	height: 100%;
	overflow: hidden;
	padding-right: 3%;
	padding-left: 3%;/* display: flex; */
	align-content: center;
	align-items: center;
	transform: translate3d(0%, 0px, 0px);
	transform: translate3d(-25%, 0px, 0px);
	transform: translate3d(0%, 0px, 0px);
}
@font-face {
	font-family: 'Stempel-Garamond-W01-Roman';
	font-style: normal;
	font-weight: normal;
	src: url('fonts/Stempel-Garamond-W01-Roman.woff') format('woff');
}
body, ul, table, form {
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.animated {
	-webkit-transition: margin-left 0.2s ease-in-out;
	-moz-transition: margin-left 0.2s ease-in-out;
	-o-transition: margin-left 0.2s ease-in-out;
	-ms-transition: margin-left 0.2s ease-in-out;
	transition: margin-left 0.2s ease-in-out;
}
#canvas {
	width: 100%;
	max-width: calc(var(--page_cover-width) + 6%);
	height: 100%;
	margin: 100px auto;
	margin: auto;
	overflow-X: overlay;
	align-items: center;
	align-content: center;
	overflow-y: hidden;
	overflow: hidden;
	position: relative;
}
#book-zoom {
	-webkit-transition: -webkit-transform 1s;
	-moz-transition: -moz-transform 1s;
	-ms-transition: -ms-transform 1s;
	-o-transition: -o-transform 1s;
	transition: transform 1s;
}
.sj-book {
	width: var(--page_cover-width);
	height: var(--page_cover-height);
}
.sj-book h1 {
	font-family: "Stempel-Garamond-W01-Roman";
	font-size: 38px;
	font-weight: lighter;
	margin: 20px 0;
	color: #333;
	-webkit-text-fill-color: #333;
	-webkit-text-stroke-color: white;
	-webkit-text-stroke-width: 0.005em;
}
.sj-book h2 {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #444;
	font-size: 16px;
	letter-spacing: 2px;
	font-weight: 400;
}
.sj-book .book-content {
	font-family: "Stempel-Garamond-W01-Roman";
	font-size: 16px;
	margin: 70px 40px;
}
.sj-book blockquote {
	color: #586078;
	margin: 10px 0;
	font-style: italic;
}
.sj-book blockquote:before {
	content: "\201C";
	color: #333D53;
	font-size: 20px;
}
.sj-book blockquote:after {
	content: "\201D";
	color: #333D53;
	font-size: 20px;
}
.sj-book cite {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 200;
	font-style: normal;
	color: #666;
}
.sj-book .book-content .center-pic {
	margin: 0;
	text-indent: 0;
	text-align: center;
}
.sj-book .zoom-this:hover {
	opacity: 0.9;
	cursor: pointer;
}
.sj-book .book-content p {
	text-indent: 18px;
	margin: 20px 0;
	line-height: 22px;
}
.sj-book .left-pic {
	float: left;
	margin-top: 15px;
	margin-right: 15px;
	margin-bottom: 15px;
}
.animated {
	-webkit-transition: margin-left 0.2s ease-in-out;
	-moz-transition: margin-left 0.2s ease-in-out;
	-o-transition: margin-left 0.2s ease-in-out;
	-ms-transition: margin-left 0.2s ease-in-out;
	transition: margin-left 0.2s ease-in-out;
}
.sj-book .shadow {
	-webkit-transition: -webkit-box-shadow 0.5s;
	-moz-transition: -moz-box-shadow 0.5s;
	-o-transition: -webkit-box-shadow 0.5s;
	-ms-transition: -ms-box-shadow 0.5s;
	-webkit-box-shadow: 0 0 10px #999;
	-moz-box-shadow: 0 0 10px #999;
	-ms-box-shadow: 0 0 10px #999;
	-o-box-shadow: 0 0 10px #999;
	box-shadow: 1px 3px 5px 8px #26232330, 0px 1px 8px 1px #000000b8;
}
.sj-book .page {
	-webkit-box-shadow: 0 0 20px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 0 20px rgba(0,0,0,0.2);
	-ms-box-shadow: 0 0 20px rgba(0,0,0,0.2);
	-o-box-shadow: 0 0 20px rgba(0,0,0,0.2);
	box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.zoom-pic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.2);
	z-index: 999;
}
.zoom-pic img {
	-webkit-box-shadow: 0 0 20px #999;
	-moz-box-shadow: 0 0 20px #999;
	-o-box-shadow: 0 0 20px #999;
	-ms-box-shadow: 0 0 20px #999;
	box-shadow: 0 0 20px #999;
}
.sj-book .p1, .sj-book .p2, .sj-book .terza, .sj-book .quarta {
	background-color: white;
	background-image: url(../pics/cover_esterno.jpg)!important;
	background-size: cover!important;
	background-position: right 0 !important;
}
.sj-book .p1 {
	background-position: 0 0;
}
.sj-book .p1 .side {
	width: 5px;
	height: var(--page_cover-height);
	position: absolute;
	top: 0;
	left: 475px;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #bbb), color-stop(0.5, #ddd), color-stop(1, #bbb));
	background-image: -webkit-linear-gradient(left, #bbb, #ddd, #bbb);
	background-image: -moz-linear-gradient(left, #bbb, #ddd, #bbb);
	background-image: -ms-linear-gradient(left, #bbb, #ddd, #bbb);
	background-image: -o-linear-gradient(left, #bbb, #ddd, #bbb);
	background-image: linear-gradient(left, #bbb, #ddd, #bbb);
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	-o-transform: rotateY(-90deg);
	-ms-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
	-webkit-transform-origin: top right;
	-moz-transform-origin: top right;
	-o-transform-origin: top right;
	-ms-transform-origin: top right;
	transform-origin: top right;
	z-index: 100000;
}
.sj-book-transform div[page="1"] > div, .sj-book-transform div[page="2"] > div {
	overflow: visible !important;
}
.sj-book .depth {
	position: absolute;
	top: 1.1%;
	width: 5%!important;
	height: 98.5%;
	background-size: cover;
	/* background-color: brown; */
	display: flex;
	justify-content: center;
	align-content: center;
	right: 1.8%;
}
.depth .img {
	background-size: cover;
	height: 100%;
	width: 100%;
	position: relative;
	z-index: 1;
	/* background-color: black; */
	background-position: center;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-image: url(../pics/pages-depth.png);
}
.depth.sx {
	left: 1.8%;
}
.sj-book .p2 {
	background-position: left 0 !important;
	background-image: url('../pics/cover_interno.jpg')!important;
}
.sj-book .terza {
	background-position: right 0 !important;
	background-image: url(../pics/cover_interno.jpg) !important;
}
.sj-book .quarta {
	background-position: left 0 !important;
}
.sj-book .hard {
	width: var(--page_single_cover-width);
	height: var(--page_cover-height);
	background-color: white;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	-ms-box-shadow: none;
	box-shadow: none;
}
.sj-book .page-wrapper {
	-webkit-perspective: 2000px;
	-moz-perspective: 2000px;
	-ms-perspective: 2000px;
	perspective: 2000px;
}
.sj-book .own-size {
	width: var(--page_interno-width);
	height: var(--page_interno-height);
	background-color: white;
	overflow: hidden;
}
.sj-book .even {
	background: -webkit-gradient(linear, left top, right top, color-stop(0.95, #fff), color-stop(1, #dadada));
	background-image: -webkit-linear-gradient(left, #fff 95%, #dadada 100%);
	background-image: -moz-linear-gradient(left, #fff 95%, #dadada 100%);
	background-image: -ms-linear-gradient(left, #fff 95%, #dadada 100%);
	background-image: -o-linear-gradient(left, #fff 95%, #dadada 100%);
	background-image: linear-gradient(left, #fff 95%, #dadada 100%);
}
.sj-book .odd {
	background: -webkit-gradient(linear, right top, left top, color-stop(0.95, #fff), color-stop(1, #cacaca));
	background-image: -webkit-linear-gradient(right, #fff 95%, #cacaca 100%);
	background-image: -moz-linear-gradient(right, #fff 95%, #cacaca 100%);
	background-image: -ms-linear-gradient(right, #fff 95%, #cacaca 100%);
	background-image: -o-linear-gradient(right, #fff 95%, #cacaca 100%);
	background-image: linear-gradient(right, #fff 95%, #cacaca 100%);
}
.sj-book .loader {
	background-image: url(../pics/loader.gif);
	width: 22px;
	height: 22px;
	position: absolute;
	top: 280px;
	left: 219px;
}
.sj-book .page-number {
	color: #999;
	width: 100%;
	bottom: 25px;
	position: absolute;
	display: block;
	text-align: center;
	line-height: 30px;
	font-size: 11px;
}
.sj-book .table-contents {
	font-size: 16px;
	width: 300px;
	margin: 80px auto;
	color: #ccc;
}
.sj-book .table-contents li {
	list-style: none;
	line-height: 25px;
}
.sj-book .table-contents span {
	float: right;
}
.sj-book .table-contents a {
	float: left;
	width: 100%;
	clear: both;
	text-decoration: none;
	color: #333;
	margin: 2px 0;
	padding: 0 10px;
}
.sj-book .table-contents a:hover {
	background: #CAD1EE;
	float: left;
	width: 100%;
	clear: both;
	text-decoration: none;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	-o-border-radius: 10px;
	-ms-border-radius: 10px;
	border-radius: 10px;
}
.sj-book .book-content .capital, .sj-book .book-content .no-indent {
	text-indent: 0;
}
.sj-book .capital:first-letter {
	display: block;
	float: left;
	font-size: 300%;
	line-height: 70%;
	margin-right: 6px;
	margin-top: 7px;
	margin-left: 18px;
}
.ie8 .sj-book .even, .ie9 .sj-book .even {
	background-image: url(../pics/gradient-page-left.jpg);
	background-position: right top;
	background-repeat: repeat-y;
}
.ie8 .sj-book .odd, .ie9 .sj-book .odd {
	background-image: url(../pics/gradient-page-right.jpg);
	background-position: left top;
	background-repeat: repeat-y;
}
.own-size.page {
	position: relative;
	overflow: hidden; /* se vuoi evitare sbavature */
}
/* Pagine dispari (odd) -> ombra/gradiente a destra */
.own-size.page.even::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: calc(100% - 50px);
	z-index: 2;
	pointer-events: none;
	/* Esempio di gradiente con tre stop */
	background: linear-gradient(to left, rgb(0 0 0 / 69%) -3%, rgb(0 0 0 / 27%) 7%, rgb(0 0 0 / 10%) 27%, rgb(0 0 0 / 0%) 67%);
}
/* Pagine pari (even) -> ombra/gradiente a sinistra */
.own-size.page.odd::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: calc(100% - 50px);
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to right, rgb(0 0 0 / 56%) 0%, rgb(0 0 0 / 1%) 2%, rgb(255 255 255 / 22%) 7%, rgb(255 255 255 / 0%) 20%);
}
.headlogo {
	background: #ffffff;
	padding-left: 20px;
	padding-right: 20px;
	color: #222;
	max-height: 58px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	z-index: 10000;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
}
img.imglogo {
	max-width: 119px;
	padding: 7px;
	padding-left: 0px;
}
.logo {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-content: center;
	align-items: center;
	/* padding-right: 21px; */
	max-width: 800px;
}
a:hover, a {
	color: #000000;
	font-size: 18px;
	font-family: sans-serif;
	text-decoration: none;
}
html, body, .innerbody {
	width: 100vw;
	height: calc(100% - 25px);
	overflow: hidden;
	box-sizing: border-box;
}
.innerbody {
	width: 100%;
	height: calc(100% - 0px);
	display: flex;
	margin: auto;
	background-image: url(https://www.kasa-store.com/29616-large_default/tavolo-in-legno-fisso-di-skraut-home-adatto-per-living-e-cucina.jpg);
	background-size: auto;
	position: relative;
	box-shadow: 1px 3px 5px 8px #26232330, inset 1px -1px 209px 92px #000000b8;
	padding-top: 58px;
}
/* Barra di navigazione moderna */
.bar_control {
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
	height: 40px;
	bottom: 0;
	/* background: linear-gradient(to right, #292929, #34495e); */
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Arial', sans-serif;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	padding: 5px 10px;
	background-color: #221f1c;
}
/* Contenitore pulsanti */
.tool {
	display: flex;
	align-items: center;
	gap: 10px;
}
/* Pulsanti */
.bt_tool {
	background: #5b4d3e;
	color: white;
	border: none;
	padding: 9px 10px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.3s ease, transform 0.2s ease;
	font-weight: bold;
}
.bt_tool:hover {
	background: #16a085;
	transform: scale(1.1);
}
/* Icone */
.bt_tool i {
	font-size: 18px;
}
.flipbook-wrapper {
	/* left: 0px; */
    /* left: 100px; */
    /*right: calc(100% - 6%);*/
	right: -2000px;
	-webkit-transition: 0.4s ease-in-out;
	-moz-transition: 0.4s ease-in-out;
	-o-transition: 0.4s ease-in-out;
	-ms-transition: 0.4s ease-in-out;
	transition: 0.4s ease-in-out;
	position: relative;
}
.drag-area {
	top: 3%;
	bottom: 3%;
	/* width: calc(100% - 102px); */
	z-index: 100000000;
	/*background: aqua;*/
	position: absolute;
	right: 127px;
	left: 127px;
}
.drag-area_prew, .drag-area_next {
	width: 70px;
	position: absolute;
	top: 91px;
	bottom: 96px;
	z-index: 1000000;/*background: blueviolet;*/
    /* left: 2%; */
}
.odd .drag-area_next {
	right: 0%;
}
.depth .img {
	width: 0;
}
.postit {
	position: absolute;
	width: 50%;
	height: 100%;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
	min-width: 384px;
}
.in_postit {
/* max-width: 406px; */
}
.in_postit img {
	max-width: 352px;
	height: auto;
}
/* Overlay fullscreen */
/* Overlay fullscreen, sopra tutto il resto */
#zoom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none; /* lo mostri con fadeIn */
}
.zoomed .flipbook-wrapper {
	padding: 10%;
	display: flex;
	align-content: flex-start;
	align-items: flex-start;
}
.innerbody.zoomed {
	overflow-x: auto;
	zoom: 1.8;
	overflow-y: auto;
	height: 100vh;
	z-index: 1;
	padding: 0;
	display: block;
	box-sizing: border-box;
}
.innerbody.zoomed #canvas {
	margin: auto !important;
	padding: 0% !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	width: auto;
	height: auto;
	overflow: visible;
 height: calc((var(--page_cover-width)* 1.3));
}
.innerbody.zoomed {
	overflow-x: auto !important;
	overflow-y: auto !important;
	height: 100vh !important;
	z-index: 100 !important;
	position: relative !important;
	touch-action: pan-x pan-y !important; /* Consente lo scrolling ma non il pinch zoom aggiuntivo */
}
/* Quando in modalità zoom, disabilita eventi touch sulle aree di trascinamento */
.innerbody.zoomed .drag-area, .innerbody.zoomed .drag-area_next, .innerbody.zoomed .drag-area_prew {
	pointer-events: none !important;
}
/* Imposta un puntatore che indica la possibilità di interazione durante lo zoom */
.innerbody.zoomed #canvas {
	cursor: move !important;
}
/* Bottone per uscire dallo zoom */
#exit-zoom {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 9999;
	padding: 8px 15px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border: none;
	border-radius: 5px;
	font-weight: bold;
	font-family: Arial, sans-serif;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
/* Impedisci la selezione di testo durante il trascinamento */
.no-select {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
    /*body.zoomed #zoom-overlay {
      display: block;
    }*/
