/* CSS Document — div_template.css */

@media screen and (max-width: 767px) {
	div#MenuInfo_Box {
		display: none;
	}

	/* Accedi / Registrati visibili sotto il logo (stessa riga, stessi bottoni del desktop) */
	div#LoginButton {
		display: block;
		float: none;
		width: 100%;
		clear: both;
		text-align: center;
		padding: 6px 10px 14px;
		box-sizing: border-box;
	}
}

@media screen and (min-width: 768px) {
	div#MenuInfo_Box {
		float: left;
		padding-top: 25px;
	}
	div#LoginButton {
		float: right;
		text-align: right;
		padding-top: 42px;
		padding-right: 30px;
	}
}


/* PRIMA RIGA DEL TEMPLATE */
@media screen and (max-width: 767px) {
	div#TemplateTop_Box {
		display: none;
	}
	div#SocialIco_Box {
		display: none;
	}
}

@media screen and (min-width: 768px) {
	div#TemplateTop_Box {
		height: 42px;
		background-color: #ffffff;
		border-bottom: 1px solid #dfe6f5;
	}
	div#TemplateTop_Pad {
		padding: 5px;
	}
	div#SocialIco_Box {
		float: left;
		width: 50%;
		text-align: left;
	}
	div#SocialIco_Pad {
		padding: 0px 0px 0px 0px;
	}
	div#Login_Box {
		float: right;
		width: 40%;
		text-align: right;
		height: 60px;
	}
	div#Login_Pad {
		padding: 0px 0px 0px 0px;
	}
}


/* SECONDA RIGA DEL TEMPLATE */
@media screen and (max-width: 767px) {
	div#LogoRow {
		padding-top: 55px;
		padding-left: 10px;
		background-color: #ffffff;
		height: 120px;
		margin-bottom: 10px;
	}
	div#TemplateLogo_Box {
		width: 100%;
		padding-left: 0px;
		padding-top: 0px;
		text-align: center;
		float: left;
	}
	.Logo {
		width: 80%;
	}
	div#TemplateRicerca_Box {
		display: none;
	}
}

@media screen and (min-width: 768px) {
	div#LogoRow {
		padding-top: 0px;
		padding-left: 20px;
		background-color: #ffffff;
		height: 100px;
		margin-bottom: 10px;
		box-shadow: 0 1px 0 #dfe6f5;
	}
	div#TemplateLogo_Box {
		width: 20%;
		padding-top: 30px;
		padding-right: 35px;
		text-align: left;
		float: left;
	}
	.Logo {
		width: 100%;
	}
	div#TemplateRicerca_Box {
		float: right;
		text-align: right;
		padding-top: 43px;
		padding-right: 10px;
	}
}


@media screen and (min-width: 768px) {
	div#HomeBottomFlash_Box {
		background-color: #f5f8ff;
		height: 125px;
		padding: 20px 20px;
		text-align: left;
	}
	div#HomeBottomFlash_Pad {
		height: 125px;
		vertical-align: middle;
		font-size: 1rem;
		text-align: left;
		width: 50%;
		float: left;
	}
}


@media screen and (min-width: 768px) {

	.InfoButton_Box {
		float: left;
		color: #2d3a52;
		margin-top: 0px;
		margin-left: 10px;
		padding: 0px 0px 0px 0px;
		text-align: center;
		transition: color 0.2s ease;
	}

	.InfoButton_Pad {
		padding: 20px 22px 20px 22px;
		color: #2d3a52;
		font-size: 0.93rem;
		font-weight: 600;
		font-family: 'Outfit', Arial, sans-serif;
		letter-spacing: 0.01em;
		border-bottom: 2px solid transparent;
		transition: color 0.2s ease, border-bottom-color 0.2s ease;
	}

	.InfoButton_Pad:hover {
		color: #022363;
		border-bottom: 2px solid #3399FF;
		border-top: none;
		border-left: none;
		border-right: none;
		border-radius: 0;
		background: transparent;
		-webkit-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		-moz-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		-o-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		transition: color 0.2s ease, border-bottom-color 0.2s ease;
	}
}


@media screen and (min-width: 768px) {

	div#MobileMenu {
		display: none;
	}

	/***************** Div della parte centrale del template *********************/
	div#HomeMainCategories_Box {
		font-size: 1.2em;
		height: 65px;
		text-align: right;
		color: #FFFFFF;
	}
	div#HomeMainCategories_Pad {
		padding: 18px 0px 5px 0px;
	}

	/***************** Colonna sinistra + contenuto (affiancati) *********************/
	div#TemplateColSX_Box {
		width: var(--sidebar-width-pct, 16%);
		min-height: 350px;
		float: left;
		box-sizing: border-box;
		background: linear-gradient(180deg, var(--color-bg-sidebar-start, #f6f9fd) 0%, var(--color-bg-sidebar-end, #eef3fb) 100%);
		text-align: left;
		border-right: 1px solid var(--color-sidebar-border, #dfe6f5);
		box-shadow: 1px 0 0 rgba(255, 255, 255, 0.8) inset;
	}

	div#TemplateColSX_Pad {
		padding: var(--space-sm, 8px) var(--space-md, 16px) var(--space-lg, 24px);
	}

	/* Colonna contenuto a destra del catalogo libri */
	div#TemplateColDX_Box {
		float: left;
		width: calc(100% - var(--sidebar-width-pct, 16%));
		min-width: 0;
		overflow: visible;
		box-sizing: border-box;
		background-color: var(--color-bg-muted, #f8fafd);
	}

	div#VerticalMenu_Box {
		text-align: center;
		width: 90%;
	}

	div#VerticalMenu_Pad {
		padding: 15px 0px 30px 0px;
	}

	div#TemplateMain_Box {
		width: 100%;
		text-align: left;
		float: left;
		min-height: 350px;
	}

	div#TemplateMain_Pad {
		padding: var(--space-lg, 24px) var(--space-xl, 32px) var(--space-xl, 32px);
		max-width: var(--content-max, 1440px);
		box-sizing: border-box;
	}

	/***************** Footer *********************/
	div#TemplateBottom_Box {
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(21, 101, 192, 0.95) 100%),
		            url('/StyleSheet/img/logo.png') center center / cover no-repeat;
		background-blend-mode: overlay;
		vertical-align: top;
		color: #FFFFFF;
		font-size: 1.1em;
		text-align: left;
		box-shadow: 0 -4px 20px rgba(2, 35, 99, 0.25);
		position: relative;
		overflow: hidden;
	}

	div#TemplateBottom_Box::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.92) 0%, rgba(21, 101, 192, 0.88) 100%);
		z-index: 0;
	}

	div#TemplateBottom_Box > * {
		position: relative;
		z-index: 1;
	}

	div#TemplateBottom_Pad {
		padding: 60px 30px 50px 30px;
		position: relative;
		z-index: 1;
	}


	/*/////////////// BOTTOM //////////////////////////////////////////////*/

	div#InfoBottom_Box {
		color: #FFFFFF;
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(21, 101, 192, 0.95) 100%),
		            url('/StyleSheet/img/logo.png') center center / cover no-repeat;
		background-blend-mode: overlay;
		min-height: 141px;
		text-align: right;
		font-size: 1.1em;
		line-height: 28px;
		position: relative;
		overflow: hidden;
	}

	div#InfoBottom_Box::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.92) 0%, rgba(21, 101, 192, 0.88) 100%);
		z-index: 0;
	}

	div#InfoBottom_Box > * {
		position: relative;
		z-index: 1;
	}

	div#InfoBottom_Pad {
		padding: 50px 20px 0px 5px;
		position: relative;
		z-index: 1;
	}

	div#LeftBottom_Box {
		width: 33%;
		font-size: 1em;
		font-weight: normal;
		color: #FFFFFF;
		float: left;
		min-height: 240px;
		line-height: 28px;
		text-align: left;
	}

	div#LeftBottom_Box img {
		max-width: 200px;
		height: auto;
		filter: brightness(1.1);
		margin-bottom: 15px;
	}

	div#LeftBottom_Box a {
		color: #FFFFFF;
		text-decoration: none;
		transition: color 0.3s ease;
	}

	div#LeftBottom_Box a:hover {
		color: #90caf9;
	}

	div#LeftBottom_Pad {
		padding: 20px 20px 25px 0px;
	}

	div#MiddleBottom_Box {
		width: 40%;
		font-size: 15px;
		font-weight: normal;
		color: #FFFFFF;
		line-height: 28px;
		float: left;
		text-align: left;
	}

	div#MiddleBottom_Box strong {
		font-size: 1.1em;
		font-weight: 600;
		color: #FFFFFF;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		display: block;
		margin-bottom: 15px;
		padding-bottom: 10px;
		border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	}

	div#MiddleBottom_Box a {
		color: #FFFFFF;
		text-decoration: none;
		transition: color 0.3s ease;
	}

	div#MiddleBottom_Box a:hover {
		color: #90caf9;
	}

	div#MiddleBottom_Box img {
		vertical-align: middle;
		margin-right: 8px;
		filter: brightness(0) invert(1);
		opacity: 0.9;
	}

	div#MiddleBottom_Pad {
		padding: 20px 0px 25px 25px;
	}

	div#RightBottom_Box {
		font-size: 15px;
		font-weight: normal;
		color: #FFFFFF;
		text-align: left;
		line-height: 28px;
		float: left;
	}

	div#RightBottom_Box strong {
		font-size: 1.1em;
		font-weight: 600;
		color: #FFFFFF;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		display: block;
		margin-bottom: 15px;
		padding-bottom: 10px;
		border-bottom: 2px solid rgba(255, 255, 255, 0.3);
	}

	div#RightBottom_Box a {
		color: #FFFFFF;
		text-decoration: none;
		transition: color 0.3s ease;
	}

	div#RightBottom_Box a:hover {
		color: #90caf9;
	}

	div#RightBottom_Box img {
		vertical-align: middle;
		margin-right: 8px;
		filter: brightness(0) invert(1);
		opacity: 0.9;
	}

	div#RightBottom_Pad {
		padding: 20px 0px 25px 25px;
	}

	div#SoftwarePoint {
		width: 85%;
		margin-right: auto;
		margin-left: auto;
		text-align: right;
		padding: 20px 0;
		color: rgba(255, 255, 255, 0.7);
		font-size: 0.85em;
		border-top: 1px solid rgba(255, 255, 255, 0.18);
		margin-top: 30px;
	}

}


@media screen and (max-width: 767px) {
	div#Slogan_Box {
		display: none;
	}
	div#HomeFlash_Box {
		display: none;
	}
	div#TemplateColSX_Box {
		display: none;
	}
	div#TemplateColDX_Box {
		width: 100%;
		overflow: visible;
	}
	div#TemplateMain_Pad {
		padding: 0px 12px 10px 12px;
	}

	div#TemplateBottom_Box {
		width: 100%;
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(21, 101, 192, 0.95) 100%),
		            url('/StyleSheet/img/logo.png') center center / cover no-repeat;
		background-blend-mode: overlay;
		vertical-align: top;
		color: #FFFFFF;
		font-size: 1.1em;
		text-align: left;
		box-shadow: 0 -4px 20px rgba(2, 35, 99, 0.25);
		position: relative;
		overflow: hidden;
	}

	div#TemplateBottom_Box::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(135deg, rgba(13, 71, 161, 0.92) 0%, rgba(21, 101, 192, 0.88) 100%);
		z-index: 0;
	}

	div#TemplateBottom_Box > * {
		position: relative;
		z-index: 1;
	}

	div#TemplateBottom_Pad {
		padding: 40px 20px 30px 20px;
		position: relative;
		z-index: 1;
	}

	div#LeftBottom_Box {
		display: none;
	}

	div#MiddleBottom_Box {
		display: none;
	}

	div#RightBottom_Box {
		width: 100%;
		font-size: 1em;
		font-weight: 300;
		color: #FFFFFF;
		text-align: right;
		line-height: 26px;
	}

	div#SoftwarePoint {
		width: 100%;
		margin-right: auto;
		margin-left: auto;
		text-align: right;
	}
}


/********** HOME FLASH ***********/
@media screen and (min-width: 768px) {
	.HomeReparto_Box {
		font-weight: normal;
		font-size: 1.1em;
		float: left;
		width: 20%;
		text-align: left;
	}
	.HomeReparto_Box:hover {
		background-color: transparent;
	}
	.FotoReparto {
		overflow: hidden;
		width: 100%;
		max-height: 500px;
		border-radius: 10px;
	}
	.HomeReparto_Pad {
		margin: 8px 8px 8px 8px;
		background-color: #ffffff;
		padding: 18px 16px 12px 16px;
		border-radius: 14px;
		box-shadow: 0 2px 12px rgba(2, 35, 99, 0.07);
		border-top: 3px solid #3399FF;
		transition: box-shadow 0.22s ease, transform 0.22s ease;
	}
	.HomeReparto_Box:hover .HomeReparto_Pad {
		box-shadow: 0 6px 28px rgba(2, 35, 99, 0.13);
		transform: translateY(-3px);
	}
}

@media screen and (max-width: 767px) {
	.HomeReparto_Box {
		font-weight: normal;
		font-size: 1.1em;
		width: 90%;
		margin-right: auto;
		margin-left: auto;
	}
	.FotoReparto {
		overflow: hidden;
		width: 100%;
		max-height: 500px;
		border-radius: 10px;
	}
	.HomeReparto_Pad {
		margin: 8px 8px 8px 8px;
		background-color: #ffffff;
		padding: 14px 12px 10px 12px;
		border-radius: 12px;
		box-shadow: 0 2px 10px rgba(2, 35, 99, 0.07);
		border-top: 3px solid #3399FF;
	}
}

@media screen and (min-width: 1281px) {
	div#SoftwarePoint {
		width: 1280px;
		margin-right: auto;
		margin-left: auto;
	}
}


/********** HOME FLASH SLIDER ***********/
@media screen and (min-width: 768px) {
	div#HomeFlash_Box {
		width: 100%;
		float: left;
	}
	div#HomeFlash_Pad {
		padding: 0px;
	}
}

@media screen and (max-width: 767px) {
	div.HomeFlash span {
		font-size: 1.2em;
		color: #2d3a52;
		position: absolute;
		min-height: 40px;
		bottom: 50px;
		right: 40px;
		width: 45%;
		padding: 20px 0px 10px 0px;
		opacity: 0.85;
		cursor: pointer;
		text-align: center;
		border-radius: 10px;
	}
	div.HomeFlash a:hover span {
		border-top: 5px solid #022363;
		color: #022363;
	}
}

@media screen and (min-width: 768px) {
	div.HomeFlash span {
		font-size: 1.6em;
		color: #ffffff;
		position: absolute;
		min-height: 50px;
		bottom: 80px;
		right: 75px;
		width: 45%;
		padding: 20px 0px 10px 0px;
		background-color: #022363;
		opacity: 0.85;
		cursor: pointer;
		text-align: center;
		border-radius: 10px;
		transition: opacity 0.2s ease;
	}
	div.HomeFlash a:hover span {
		opacity: 1;
		border-top: 4px solid #3399FF;
	}
}
