/********************************************************************************* 
    font
*********************************************************************************/

@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);

* {
    font-family: 'Raleway', sans-serif;
}

/********************************************************************************* 
    color
*********************************************************************************/

:root {
    --danger: #f00;
    --danger_hover: rgb(160, 0, 0);
}

/********************************************************************************* 
    general
*********************************************************************************/

/* background */
.metal-bg {
    background: url('../img/bg/metal_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
}

/* filter */
.grayscale {
    filter: grayscale(100%);
}

/* input */
.form-control:focus,
.form-check-input:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, .25);
}

.form-check label {
    font-size: .9rem;
}

.form-check-input:checked {
    background-color: var(--danger);
    border-color: var(--danger);
}

/* color */
.text-danger {
    color: var(--danger) !important;
}

.bg-danger,
.btn-outline-danger:hover {
    background: var(--danger) !important;
}

.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

.btn-danger:hover {
    background: var(--danger_hover) !important;
    border-color: var(--danger_hover) !important;
}

.border-danger {
    border-color: var(--danger) !important;
}

.btn-outline-danger,
.btn-outline-danger:hover {
    border-color: var(--danger) !important;
}


/* box black */
.box_black {
    background: rgba(0, 0, 0, 0.6);
}

/* margini negativi */
.mt--4 {
    margin-top: -4rem;
}

/* bottone back */
.back_button {
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 4;
    cursor: pointer;
}

/* bottone aggiungi al preventivo */
.btn-arrow::before,
.btn-arrow::after {
    content: '';
    position: absolute;
    background: url(../img/redline.png);
    width: 135px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
}

.btn-arrow::before {
    top: -8px;
    left: -10px;
}

.btn-arrow::after {
    bottom: -8px;
    right: -10px;
    transform: rotate(180deg);
}

.btn-arrow:hover {
    color: var(--danger);
}

.btn-arrow:active {
    border: 0 !important;
}

/* text */
.small-text {
    font-size: .8rem;
}

/* image table */
.product-detail-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* linea rossa */
div.linearossa {
    width: 100%;
    height: 2px;
    background: var(--danger);
}

/* bottoni */
a.bottone span {
    color: #222;
    font-size: .8rem;
}

a.bottone div.image {
    background-image: url('../img/buttons/bottone.png');
    width: 166px;
    height: 166px;
    background-position: center;
    background-size: cover;
}

a.bottone:hover div.image {
    background-image: url('../img/buttons/bottone_pressed.png');
}

/* bottone isri */
a.bottone div.image.isri {
    background-image: url('../img/buttons/bottone_isri.png');
}

a.bottone:hover div.image.isri {
    background-image: url('../img/buttons/bottone_isri_pressed.png');
}

/********************************************************************************* 
    navabar
*********************************************************************************/

/* logo */
.navbar-brand img {
    height: 60px;
}

.partners img {
    height: 45px;
}

/* lingue */
.languages a img {
    height: 20px;
}

.languages a.active {
    opacity: 1 !important;
}

/* link */
nav:not(.bg-dark) .nav-link {
    border-bottom: 2px solid #fff;
}

nav.bg-dark .nav-link {
    border-bottom: 2px solid rgb(33, 37, 41);
}

.nav-link.active,
.nav-link:not(.ip):hover {
    border-color: var(--danger) !important;
}

.social-icon img {
    height: 32px;
}

/********************************************************************************* 
    slider
*********************************************************************************/

/* slider */
#slider .carousel-item,
.carousel-item img:not(.slider-text-box img) {
    height: 400px;
}

#slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .3);
}

.carousel-item img:not(.slider-text-box img) {
    object-fit: cover;
    object-position: center;
}

/* indicators and arrows */
#slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* text */
.slider-text-box img {
    width: 35%;
}

.slider-text-box h3 {
    background-color: rgba(0, 0, 0, 0.4);
}

/********************************************************************************* 
    footer
*********************************************************************************/

footer p {
    font-size: .9rem;
}

.pedice {
    font-size: .8rem;
}

/********************************************************************************* 
    pagina contatti
*********************************************************************************/

.contact-info p,
.contact-info a {
    font-size: .8rem;
}

/********************************************************************************* 
    pagina prodotti
*********************************************************************************/

.single-product-card img {
    height: 200px;
    object-fit: contain;
}

.list-filter {
    overflow-y: scroll;
    max-height: 600px;
}

@media only screen and (max-width: 575px) {
    .list-filter {
        overflow-y: scroll;
        height: 400px;
    }
}

@media only screen and (max-width: 500px) {
    .list-filter {
        overflow-y: scroll;
        height: 250px;
    }
}

/********************************************************************************* 
    single prodotto
*********************************************************************************/

.related-products p,
.related-products small {
    font-size: .8rem !important;
}

.related-scroll {
    height: 740px;
    overflow-y: scroll
}

@media screen and (max-width: 991px) {
    .related-scroll {
        height: auto;
        overflow-y: auto
    }
}

/********************************************************************************* 
    pagina news
*********************************************************************************/

.news img {
    min-height: 350px;
    object-fit: contain;
}

/********************************************************************************* 
    pagina carrello
*********************************************************************************/

.cart-image img {
    height: 80px;
    object-fit: contain;
}

/********************************************************************************* 
    lista categorie pagina prodotti
*********************************************************************************/

#j-collapse-cat-list .is-active {
    border-color: var(--danger) !important;
}

#j-collapse-cat-list li {
    min-height: 41px;
}

#j-collapse-cat-list a:hover {
    color: var(--danger) !important;
}

#j-collapse-cat-list .o-cat-list__item__icon:hover {
    background-color: var(--danger);
    color: #fff !important;
}

.o-cat-list__item__icon svg {
    transition: all 1s ease-in-out;
}

.o-cat-list__item__icon[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.o-cat-list__item:nth-child(-n+5) a {
    font-weight: bold;
}

@media only screen and (max-width: 991px) {
    .mt--4 {
        margin-top: 3rem !important;
    }

    .cart-settings-button {
        position: relative !important;
        text-align: right !important;
    }
}

/********************************************************************************* 
    loader
*********************************************************************************/

.loader {
    width: 80px;
    height: 80px;
}

.loader div {
    animation: loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}

.loader div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    margin: -4px 0 0 -4px;
}

.loader div:nth-child(1) {
    animation-delay: -0.036s;
}

.loader div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.loader div:nth-child(2) {
    animation-delay: -0.072s;
}

.loader div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.loader div:nth-child(3) {
    animation-delay: -0.108s;
}

.loader div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.loader div:nth-child(4) {
    animation-delay: -0.144s;
}

.loader div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.loader div:nth-child(5) {
    animation-delay: -0.18s;
}

.loader div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.loader div:nth-child(6) {
    animation-delay: -0.216s;
}

.loader div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.loader div:nth-child(7) {
    animation-delay: -0.252s;
}

.loader div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.loader div:nth-child(8) {
    animation-delay: -0.288s;
}

.loader div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

@keyframes loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#link_to_isri {
    position: absolute;
    bottom: -58px;
    right: 10px;
    height: 58px;
    background-color: orange;
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

#link_to_isri a {
    display: block;
    background-color: white;
}

#link_to_isri img {
    height: 40px;
}

.navbar-toggler {
    position: absolute;
    right: 10px;
    top: 15px;
}

@media (max-width: 576px) {

    #link_to_isri {
        bottom: -74px;
    }
}