/* --------------------------------------------------
KW Bootstrap Theme v0.4 (Bootstrap 5) customised for Narrandoitalia.it
author: kwaaui.com
COLOURS
name: #000000; rgb(0, 0, 0);
text: #333; rgb(51, 51, 51);
links: #eee; rgb(238, 238, 238);
-------------------------------------------------- */

:root {
--primary: #191919;
--primary-rgb: 25,25,25;
--light: #E6E6E6;
--light-rgb: 230, 230, 230;
--azzurro: #0435FB;
--azzurro-rgb: 10,54,175;
--animate-delay: 0.5s;
--link:#768086;
--link-hover:#000E28;
--link-hover-rgb:0,14,40;
}

/* Fonts ---------------------------------------- */

/*
@font-face {
	font-family: "Cooper Hewitt";
	src: url(./fonts/CooperHewitt-Light.woff);
	font-weight: 300;
	font-style: normal;
}
@font-face {
	font-family: "Cooper Hewitt";
	src: url(./fonts/CooperHewitt-LightItalic.woff);
	font-weight: 300;
	font-style: italic;
}
@font-face {
	font-family: "Cooper Hewitt";
	src: url(./fonts/CooperHewitt-Book.woff);
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: "Cooper Hewitt";
	src: url(./fonts/CooperHewitt-BookItalic.woff);
	font-weight: 400;
	font-style: italic;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url(./fonts/CooperHewitt-Bold.woff);
  font-weight: 700;
  font-style: normal;
}
@font-face {
	font-family: "Cooper Hewitt";
	src: url(./fonts/CooperHewitt-BoldItalic.woff);
	font-weight: 700;
	font-style: italic;
}
 */

/* kwutilities -------------------------------- { */
.absolute {	position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.absolute.top { bottom: auto; }
.absolute.right { left: auto; }
.absolute.bottom { top: auto; }
.absolute.left { right: auto; }
.absolute.center { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.z-0 {z-index: 0;}
.z-n1 {z-index: -1;}
.bg-cover
{
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 50% 50%;
/* 	background-clip: content-box; */
}
/* } --------------------------------------------- */

/* Links */
a, .nav-link { color: var(--link);  text-decoration: none; }
a:focus, a:hover, .nav-link:focus, .nav-link:hover { color: var(--link-hover); }
a:active, .nav-link:active { color: var(--link-hover); text-decoration: none; }

article a {text-decoration: underline;}

/* Base structure */
html,
body {
	min-height: 100vh;
}

body {
	display: -ms-flexbox;
	display: flex;
	font-family: "Rubik", sans-serif;
	font-weight: 400;
	color: #333;
	background-color: #E6E6E6;
/* 	text-shadow: 0 .05rem .03rem rgba(0, 0, 0, .5); */
	box-shadow: inset 0 0 5rem rgba(0, 0, 0, .2);
	text-rendering: geometricPrecision;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

b, strong { font-weight: 700; }
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { color: #424450; font-weight: 700;}
h1, h2 { margin-bottom: 1.5rem; }
/* h1 { font-size: 3rem; } */

main { z-index: 1; margin-bottom: 6rem; animation: show 1.5s; }
article p {text-align: justify; line-height: 1.65;}
iframe { max-width: 100%; }

.btn {
	color: #fff;
	background-color: #000;
	border-color: #000;
}
.btn:focus, .btn:hover
{
	color: #fff;
	background-color: #444;
	border-color: #444;
}
.btn:active {
	color: #fff;
	background-color: #666;
	border-color: #666;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: rgba(0,0,0,.6); }
.cards .card { margin-bottom: 2rem;}
.cards .card-img-overlay { padding: 0; }
.cards .card-header { background-color: rgba(255,255,255,.75);}
/* .cards .card .btn { float: right; } */
.cards .card-body { background-color: rgba(255, 255, 255, .7); }
.cards .card a { text-decoration: none; }
.cards figure.card-img { height: 0; padding-bottom: 70%; margin: 0; }

aside > h3.border-bottom { border-color: rgba(0,0,0,.3) !important; }


/* Header */
.masthead {
	margin-bottom: 2rem;
	z-index: 2;
	background-color: rgba(0, 0, 0, .95);
}

.masthead-brand {
	margin-bottom: 0;
}

.nav-masthead .nav-link {
/* 	padding: .25rem 0; */
	font-weight: 700;
	color: rgba(255, 255, 255, .5);
	background-color: transparent;
	border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
	border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
	margin-left: 1rem;
}

.nav-masthead .active .nav-link {
	color: #fff;
	border-bottom-color: #fff;
}

.navbar { z-index: 3; }
/* .navbar-collapse { text-align: right; } */
.navbar-brand img { margin-right: .5rem }
.navbar-icon {
  position: relative;
  width: 48px;
  height: 48px;
  transition: all 0.25s;
}
.navbar-icon__top-bun,
.navbar-icon__bottom-bun {
  content: '';
  display: block;
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: #fff;
  transform: rotate(0);
  transition: all 0.25s;
}
.navbar-icon:hover [class*="-bun"] {
  background: #999;
}
.navbar-icon__top-bun {
  top: 21px;
  transform: translateY(-3px);
}
.navbar-icon__bottom-bun {
  bottom: 21px;
  transform: translateY(3px);
}
.navbar-toggler[aria-expanded="true"] .navbar-icon {
/*   transform: rotate(-90deg); */
}
.navbar-toggler[aria-expanded="true"] .navbar-icon .navbar-icon__top-bun {
  transform: rotate(45deg) translateY(2px) translateX(1px);
}
.navbar-toggler[aria-expanded="true"] .navbar-icon .navbar-icon__bottom-bun {
  transform: rotate(-45deg) translateY(-2px) translateX(1px);
}

/* Footer */
.mastfoot { z-index: 2; text-align: center;  background-color: #000; color: rgb(255, 255, 255); }

#nav-social .nav-link { padding: .5rem 0.8rem; transition: all .3s ease; color: #eee; }
#nav-social:focus .nav-link, #nav-social:hover .nav-link { opacity: .3; }
#nav-social .nav-link:focus, #nav-social .nav-link:hover { opacity: 1; color: #fff; }
.mastfoot a, .mastfoot a:focus, .mastfoot a:hover { color: #eee; }

/*  Classes */
.spacer { height: 66px; }
body:not(.home) .spacer { margin-bottom: 0 !important; }
.featured-image { max-height: 300px; width: 100vw; overflow: hidden; margin-left: -.75rem; }
.entry-title { margin-top: 1rem; }
.entry-title a { text-decoration: none; }
.entry-content img { height: auto; max-height: 90vh;}
.cat-icon { width: 128px; }
.sub-categories { min-height: 18rem; }
/* Home exceptions */
body.home {
	background: rgb(230,230,230);
	background: radial-gradient(circle, rgba(230,230,230,1) 0%, rgba(145,148,162,1) 100%);
}

.home a,
.home a:focus,
.home a:hover {
	color: #fff;
}
.home .navbar-collapse { text-align: center; }
.home main { margin-bottom: 0; padding: 0; /* height: calc(100vh - 5rem); */ height: 100vh;}
/* .home .mastfoot { color: rgba(255, 255, 255, .5); } */
/*  */

.home .icn { position: absolute; animation-name: fadeInLeft; display: block; font-weight: 700; text-transform: uppercase; }
.home .icn::after {
	display: none;
	position: absolute;
	bottom: -.5rem;
	padding: .125rem .25rem;
	font-size: 2rem;
/* 	line-height: 2em; */
	margin: 0 auto;
	width: 100%;
	text-align: center;
	background: rgba(var(--link-hover-rgb), .5);
}
.home .icn:focus::after, .home .icn:hover::after { display: block; }
.icn img { filter: grayscale(60%) brightness(1.1); transition: all .3s ease; width: 300px; }
.icn:focus img, .icn:hover img { filter: grayscale(0%) brightness(1); }

#icn-itinerari { top: 22%; left: 7%; animation-duration: 2s; animation-delay: 1s; }
#icn-itinerari::after { content: 'itinerari'; }
/* #icn-itinerari img { transform: translateZ(-500px); } */
#icn-accoglienza { bottom: 8%; left: 10%; animation-duration: 2s; animation-delay: 3s; }
#icn-accoglienza::after { content: 'accoglienza'; }
#icn-eccellenze { top: 6%; right: 22%; animation-duration: 2s; animation-delay: 2s; }
#icn-eccellenze::after { content: 'eccellenze'; }
#icn-caccia_al_tesoro { bottom: 18%; right: 4%; animation-duration: 2s; animation-delay: 1.6s;}
#icn-caccia_al_tesoro::after { content: 'caccia al tesoro'; }

/* SCROLL VERSION */
/* #mainScreen { transform: scale(.4) } */
/* ITALIA --------------------------------*/
#italia-svg
{
	width: 200vh;
	height: 150vh;
	animation: fadeIn;
	animation-duration: 3s;
}
#italia-svg > g path {
	transition: all 0.5s ease;
	cursor: pointer;
}
#italia-svg g > path { fill: var(--primary);  opacity: .8;}
#italia-svg g:hover > path { fill: #A2AEBA; }

/* -- kwaaui TAB { */
#kwaauiTab {
	z-index: 21;
	display: block;
	box-sizing: border-box;
	position: fixed;
	bottom: 10px;
	right: 0px;
	margin: 0;
	padding: 0px 0px 0px 16px;
	width: 0px;
	height: 16px;
	overflow: hidden;
	background: url(//www.kwaaui.com/ext/kwaauiTab.png) no-repeat 2px 50%;
	text-align: left;
	background-color: rgba(255,255,255,.4);
	/* border-right: 1px #fff solid; */
	border-radius: 2px 0 0 2px;
	opacity: .4;
	transition: all .15s ease;
	text-shadow: none;
/* 	filter: invert(100%); */
}
#kwaauiTab:hover, #kwaauiTab:active {
	width: 68px;
	margin-left: 0px;
	text-decoration: none !important;
	outline: none !important;
	opacity: 1;
/* 	background-color: rgba(255,255,255,.4); */
}
/* } /kwaaui TAB  */