/*
Theme Name: LTA Online
Template: hello-elementor
Author: Kotuko Srl
Author URI: https://kotuko.it
Description: Child theme generated from Hello Elementor Theme v3.0.1
Version: 3.0.1.1707831306
Updated: 2024-02-13 14:35:06
*/

/************* GLOBALS **************/

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
/* Track */
::-webkit-scrollbar-track {
	background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
	background: #26398d;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #26398d;
}

/* Effetto hover sui link nel testo */
p > a {
    position: relative;
}

p > a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--e-global-color-secondary);
    opacity: 1;
    transition: width 300ms ease-in-out;
    transform: scaleX(0);
    transform-origin: left;
}

p > a:hover:after {
    width: 100%;
    transform: scaleX(1);
}

/* HEADING */
.single-product-list h1 {
    font-size: clamp(18px, 1.5rem, 1.8rem) !important;
}

/*********************** MENU */
header nav.elementor-nav-menu--main > ul > li.current-menu-ancestor > a {
	color: var(--e-global-color-secondary) !important;
}

header nav.elementor-nav-menu--main > ul > li > a + ul {
    margin-top: 35px !important;
}

header nav.elementor-nav-menu--main ul li a + ul {
    box-shadow: 0px 5px 10px rgba(0,0,0,0.1);
}

header nav.elementor-nav-menu--main ul li a + ul li {
    background-color: #fff;
}

header nav.elementor-nav-menu--main ul:last-of-type li a.elementor-sub-item {
    transition: 300ms ease-in-out;
}

header nav.elementor-nav-menu--main ul:last-of-type li a.elementor-sub-item:hover {
    color: var(--e-global-color-secondary) !important;
}

/************************ Product List *************************/
.product-list-main-content {
    position: relative;
}

@media (min-width: 768px) {
	.product-list-main-content .sidebar {
		position: sticky;
		top: calc(100px + 2rem);
		left: 0;
	}
}

/* Product List Menu */
#sidebar-menu nav > ul > li > a {
   font-size: 1.05rem;
}

#sidebar-menu nav > ul > li > a.has-submenu.highlighted + ul {
   display: none !important;
}

#sidebar-menu nav > ul > li.current-menu-item > a {
	color: var(--e-global-color-secondary);
	background-color: #f0f0f1;
}

#sidebar-menu nav > ul > li a:hover {
	color: var(--e-global-color-secondary);
}

/* Rimuovo bordo di default all'hover delle voci di primo livello */
#sidebar-menu nav > ul > li a:after {
	opacity: 0 !important;
}

/* Aggiungo bordo sulla voci di primo livello attiva */
#sidebar-menu nav > ul > :is(li.current-product-list-ancestor, li.current-menu-item) a:after {
	background-color: var(--e-global-color-secondary);
	height: 2px;
	opacity: 1 !important;
}

#sidebar-menu nav > ul > :is(li.current-product-list-ancestor, li.current-menu-item) a + ul.sub-menu {
    display: block !important;
	position: relative !important;
	width: 100% !important;
}

#sidebar-menu nav > ul > li:not(.current-menu-item) > a + ul {
	display: none !important;
}

#sidebar-menu nav ul li.has-submenu ul li.current-menu-item > :is(a, a:hover, a:active, a:focus, a:focus-visible),
#sidebar-menu nav ul li.has-submenu ul li:hover > :is(a, a:hover, a:active, a:focus, a:focus-visible) {
    background-color: transparent;
    color: var(--e-global-color-secondary);
	font-size: 1rem;
}

/* 2* Livello */
#sidebar-menu nav ul li.has-submenu ul {
    padding-block: 0.5rem;
}

/* 3° Livello */
#sidebar-menu nav ul li ul li.has-submenu ul {
    padding-block: 0 0.5rem;
    padding-left: 0.5rem;
    border-bottom: 2px solid #2563eb;
    margin-bottom: 0.5rem;
}

#sidebar-menu nav ul li.has-submenu ul li a {
    padding: 0.3rem 1rem;
	transition: 200ms ease-in-out;
}

#sidebar-menu nav ul li.has-submenu ul li a:hover {
    transform: translateX(2px);
}

#sidebar-menu nav ul li.has-submenu ul li a:before {
    content: '>';
    position: relative;
    width: 10px;
    height: 100%;
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: auto;
}

/* Lista prodotti */
.product-list-children {
	display: grid;
	gap: 1rem;
	justify-content: start;
	align-items: start;
	justify-items: start;
	grid-template-columns: repeat(3, 1fr);
	max-width: 100%;
}

.product-list-children .child {
	width: 100%;
    max-width: 100%;
    transition: 100ms ease-in-out;
    background-color: #f2f2f2;
    padding: 0.5rem 1rem;
}

.product-list-children .child:hover {
	cursor: pointer;
}

/*
.product-list-children .child img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none;
}*/

.product-list-children .child h4 {
    font-weight: 600;
	font-size: 0.95rem;
    color: var(--e-global-color-text);
	line-height: 1.2;
	margin: 0;
	transition: 200ms linear;
}

.product-list-children .child a:hover h4 {
	color: var(--e-global-color-secondary);
}

.product-list-children .child h4:before {
    content: '>';
	position: relative;
	font-size: 1.3rem;
	margin-right: 8px;
}

.product-list-children .child h4:hover {
    transform: translateX(2px);
}

/*** RESPONSIVE** */
@media (max-width: 1200px) {
	.product-list-children {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.product-list-children {
		gap: 1.5rem;
	}
	.product-list-children .child {
		width: calc(100% - 0.5rem);
		max-width: calc(100% - 0.5rem);
	}
	.product-list-children .child h4 {
		font-size: 1rem;
		line-height: 1.1;
	}
}

@media (max-width: 480px) {
	.product-list-children {
		grid-template-columns: repeat(1, 1fr);
		gap: 1rem;
	}
	.product-list-children .child {
		width: 100%;
		max-width: 100%;
	}
}

/* Product list table */
.product-list-table :is(table, table thead, table tbody) {
	overflow: hidden;
}

/* Per permettere all'avviso 'Registrati per scaricare' di uscire dalla colonna */
.product-list-table table tr td:last-child {
	overflow: visible;
}

a.disabled {
    position: relative;
}

a.disabled .fa-file-pdf:after {
	content: 'Please login';
    transition: 300ms linear;
    opacity: 0;
	z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    transform: translate(-50%, -50%);
	padding: 0.5rem 1rem;
    text-wrap: wrap;
    font-family: 'Roboto';
    font-size: 0.7rem;
    line-height: 1.1;
    font-weight: 400;
    color: #fff;
    background-color: #02224b;
    border-radius: 100vmax;
}

a.disabled:hover .fa-file-pdf:after {
	opacity: 1;
}

@media (max-width: 767px) {
	a.disabled .fa-file-pdf:after {
		left: unset;
		right: -0.25rem;
		transform: translateY(-50%);
	}
}
