/*!
 * FIle CSS per classi CUSTOM 
 * Da utilizzare per aggiungere classi una volta online o per cose che non modificanno Bootstrap
 * 
 */

/* EXTRA 
--------------------------------------------------*/

:root {
    --height-menu: 105px;
}

.bg-success {
    background-color:rgb(3 113 28) !important;
}

.text-success {
    color:#03711c !important;
}

.bg-ligthgray, .bg-lightgray {
    background: #f7f7f7;
}

.bg-lightgray .text-primary {
    color: #06527A!important;
}

.text-primary {
    color: #067ab7 !important;
}

.text-primary-light {
    color: #34B6F9!important;
}

.bg-secondary {
    background-color: #041b3b !important;
}

ul.bontempi, ol.bontempi, dl.bontempi {
    padding-left:4%!important;
}

.side-menu a {
    color: black !important;
    cursor: pointer;

    &:hover {
        color: var(--bs-primary) !important;
    }
}

@media (max-width: 564px) {
    .sticky-top {
        position: relative;
    }

    :root {
        --height-menu: 0;
    }
}

html {
    scroll-timeline: --page-scroll block;
}

@keyframes grow-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

#progress {
    position: fixed;
    left: 0;
    top: var(--height-menu);
    width: 100%;
    height: 0.5em;
    background: var(--bs-secondary);

    transform-origin: 0 50%;
    animation: grow-progress auto linear;
    animation-timeline: --page-scroll;
    z-index: 2;
}

.search-icon {
    color: white;
    font-size: 1.2rem;
    margin-left: 5px;
}

/* FONT 
--------------------------------------------------*/

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(/sites/default/files/fonts/Inter/Inter-VariableFont_opsz,wght.ttf);
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url(/sites/default/files/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf);
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(/sites/default/files/fonts/Nunito_Sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf);
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
}

body {
    font-family: 'Inter', sans-serif;
}

.alt-font {
    font-family: 'Nunito Sans', sans-serif;
}

/* HEADER 
--------------------------------------------------*/

/* animate */

header {
    transition: all 1s;
    position: static;
    z-index: 99;
    background-color: white;
    padding: 1rem 0;
}

header.animate-fade-in {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
    transform: translateY(-10px);
    animation: header-animation 1s ease forwards;
}

@keyframes header-animation {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0);
    }
}

/* transparent */

.transparent-header {
    position: fixed;
    width: 100%;
}

.transparent-header nav {
    background: transparent !important;
}

/* animate-transparent */

.animate-transparent-header {
    position: absolute;
    width: 100%;
}

.animate-transparent-header nav {
    background: transparent !important;
}

.animate-transparent-fade-in {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
    transform: translateY(-10px);
    animation: header-animation 1s ease forwards;
    background: var(--bs-primary);
}

/* MENU 
--------------------------------------------------*/

/* Mega menu */

.nav-button {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.5s;
    border-radius: 0 !important;
    text-decoration: none;
    text-transform: uppercase;

    background-color: var(--bs-primary);

    position: absolute;
    right: 0;
}

@media (max-width: 1200px) {
    .nav-button {
        position: relative;
    }
}

.nav-button .tbm-link {
    padding: 10px 20px;
}


.tbm {
    background-color: transparent !important;
}

.tbm-item:not(.nav-button) {
    background-color: white;
    border: none;
}

.tbm-link.level-1:hover {
    background-color: inherit;
    color: var(--bs-primary);
}

.nav-button:hover {
    transition: all 0.5s;
    filter: brightness(0.8);
}

.nav-button a {
    color: #ffffff !important;
}

.tbm-group-container {
    border: none;
}



.tbm-button{
    border: none;
    background-color: transparent;
    margin-bottom: 0;
    margin-top: 1rem;
}

.tbm-button-container span {
    height: 4px;
}

.tbm.tbm--mobile .tbm-item {
    border: none;
}

.tbm.tbm--mobile .tbm-submenu-toggle {
    background: transparent;
}

.text-menu {
    text-transform: uppercase;
    font-weight: bold;
}


/* HOME 
--------------------------------------------------*/

/* WhatsApp */

.whatsapp-container {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    position: fixed;
}

.whatsapp-item {
    background-color: #079305;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.whatsapp-item i {
    font-size: 25px;
    color: #ffffff;
}

.whatsapp-container a {
    text-decoration: none !important;
}


/* Carousel */

#carousel-home-1,
#carousel-home-1 .carousel-child,
#carousel-home-1 .carousel-child img {
    height: 100vh;
    width: 100%;
}

#carousel-home-1 .carousel-child {
    position: relative;
    overflow: hidden;
}

#carousel-home-1 .carousel-child img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
}

#carousel-home-1 .carousel-child .text-block {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;

    height: 100%;
}

.tag-field {
    column-gap: 10px;
}

.tag-field div {
    margin: 0 !important;
}

.tag-field li a {
    display: block;
    padding: 5px 15px !important;
    background-color: var(--bs-gray-300);
    border-radius: 50px;
}

/*  */

.bg-darkgray {
    background-color: var(--bs-gray-900);
}

/* colori sezioni */

:root {
    --idraulici: #6A97BE;
    --elettrici: #7A8EEF;
    --fotovoltaici: #079305;
    --condizionamento: #E22C0C;
    --sicurezza: #E76407;
    --manutenzione: #252525;
}

.bg-idraulici {
    background-color: #6A97BE;
}

.bg-elettrici {
    background-color: #7A8EEF;
}

.bg-fotovoltaici {
    background-color: #079305;
}

.bg-condizionamento {
    background-color: #E22C0C;
}

.bg-sicurezza {
    background-color: #E76407;
}

.bg-manutenzione {
    background-color: #252525;
}

.riga-blu {
    border-bottom: solid 10px var(--bs-primary);

}

.riga-secondary {
    border-bottom: solid 10px var(--bs-secondary);

}

.riga-blu-sottile {
    border-bottom: solid 5px var(--bs-primary);

}

.riga-lato {
    border-right: solid 10px var(--bs-primary);

}

.riga-idraulici {
    border-bottom: solid 5px var(--idraulici);

}

.riga-elettrici {
    border-bottom: solid 5px var(--elettrici);

}

.riga-fotovoltaici {
    border-bottom: solid 5px var(--fotovoltaici);

}



.riga-condizionamento {
    border-bottom: solid 5px var(--condizionamento);

}

.riga-sicurezza {
    border-bottom: solid 5px var(--sicurezza);

}

.riga-manutenzione {
    border-bottom: solid 5px var(--manutenzione);

}

.freccia-blu {
    color: var(--bs-primary);

}

.freccia-idraulici {
    color: var(--idraulici);

}

.freccia-elettrici {
    color: var(--elettrici);

}

.freccia-fotovoltaici {
    color: var(--fotovoltaici);

}

.freccia-condizionamento {
    color: var(--condizionamento);

}

.freccia-sicurezza {
    color: var(--sicurezza);

}

.freccia-manutenzione {
    color: var(--manutenzione);

}




.riga-fotovoltaici-top {
    border-top: solid 5px var(--fotovoltaici);

}

.riga-idraulici-top {
    border-top: solid 5px var(--idraulici);

}

.riga-elettrici-top {
    border-top: solid 5px var(--elettrici);

}



.riga-condizionamento-top {
    border-top: solid 5px var(--condizionamento);

}

.riga-sicurezza-top {
    border-top: solid 5px var(--sicurezza);

}

.riga-manutenzione-top {
    border-top: solid 5px var(--manutenzione);

}


/*
--------------------------------------------------*/

.cover-img::after {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0, 0.3);
    z-index: -1;
}

/* b-training landing page */

.bg-landing
{
   background-color: #FF3B30 !important;
}

.text-landing
{
 color: #FF3B30 !important;
}

.bg-landing-blue
{
   background-color: #505EA8 !important;
}

.text-landing-blue
{
 color: #505EA8 !important;
}

.bg-landing-green
{
   background-color: #4EAE33 !important;
}

.text-landing-green
{
 color: #4EAE33 !important;
}

.bg-landing-purple
{
   background-color: #9F4795 !important;
}

.text-landing-purple 
{
 color: #9F4795 !important;
}


.button-landing, a.button-landing {
   background-color: white;
	color: #FF3B30;
	padding: 10px;
	text-transform: uppercase;
	text-decoration: none;
}

.button-landing-red, a.button-landing-red {
   background-color: #FF3B30;
	color: white;
	padding-top: 15px;
	padding-bottom: 15px;
	padding-left: 25px;
	padding-right: 25px;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	font-weight: 600;
}

.button-landing-red:hover, a.button-landing-red:hover {
   background-color: transparent;
	color: #FF3B30;
	padding-top: 15px;
	padding-bottom: 15px;
	padding-left: 25px;
	padding-right: 25px;
	text-transform: uppercase;
	text-decoration: none;
	border: solid 2px #FF3B30;
	border-radius: 0;
	font-weight: 600;
}

        .card-custom {
            border-radius: 12px;
            text-align: center;
            padding: 20px;
        }
        .card-custom img {
            width: 100px;
            height: auto;
        }