/*!
 * 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;
}

a {
    text-decoration: none;
}

a h2 {
    text-decoration: none !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: 'Anton SC';
  font-style: normal;
  font-weight: 400;
  src: url(/sites/default/files/fonts/Anton_SC/AntonSC-Regular.ttf);
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-style: normal;
  src: url(/sites/default/files/fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-Regular.ttf);
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-style: normal;
  src: url(/sites/default/files/fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf);
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-style: italic;
  src: url(/sites/default/files/fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-Italic.ttf);
}
@font-face {
 font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-style: italic;
  src: url(/sites/default/files/fonts/Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf);
}


h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Anton SC', sans-serif;
    font-weight: 300;
}

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

.alt-font {
    font-family: 'Anton SC', sans-serif;
}

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

/* animate */

header {
    transition: all 1s;
    position: static;
    z-index: 99;
}

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);
}

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

/* 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-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);

}

.bordi-stondati-diversi {
    border-radius:20px 50px 20px 50px;
}

.bordi-stondati-destra {
    border-radius:0px 20px 50px 0px;
}

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

.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;
}

.rounded-40 {

    border-radius: 40px;
}



.hover-servizi {
    transition: all 0.5s;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-servizi span {
    transition: all 0.5s;
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.hover-servizi:hover span {
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.5s;
}

.hover-servizi p {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: all 0.5s;
}

.hover-servizi:hover p {
    opacity: 1;
    transition: all 0.5s;
}
