/**
 * @file
 * Subtheme specific CSS.
 */
/*
-------------------------------------------------------------------- RULES
*/
#page, #main-wrapper, .region-primary-menu .menu-item a.is-active, .region-primary-menu .menu-item--active-trail a {
    background: transparent !important;
}
.bg-light {
    background-color: #F3F3F3;
}
.bg-carbon {
    background-color: #212324;
    background: url(../images/carbon-bg.jpg) repeat !important;
}
.bg-alpha-dark,
.node-type-pagina_galleria .node__content .field--name-body {
    background-color: rgb(0 0 0 / 60%);
    padding: 25px;
    color: #FFFFFF;
    box-shadow: 0px 0px 10px #373737;
    border-radius: 20px;
}

/* 1. Rimuovi eventuali sfondi neri dal campo stesso se non li vuoi più lì */
.trigger-dark-mode {
    background: transparent;
}

/* 2. Il trucco magico: se il trigger esiste, colora il body */
body:has(.trigger-dark-mode) {
    background-color: #1a1a1a !important; /* Il colore scuro che desideri */
    color: #ffffff; /* Testo bianco per tutta la pagina */
}

/* 3. Gestione Home Page o pagine senza testo */
/* Se .trigger-dark-mode NON esiste (come in Home), 
   il body rimarrà col suo colore di default */



.linear-bg {
    background: #7A1616;
    background: linear-gradient(150deg,rgba(122, 22, 22, 1) 1%, rgba(229, 41, 36, 1) 100%);
}
.text-dark .content {
    color: #212324;
}
#page p,
#page li:not(.nav-item):not(.dropdown-item) {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    white-space: normal;
}
body li {
    font-family: 'Urbanist', sans-serif;
}
.text-big {
    font-size: 3.355em;
}
.field a,
.bg-alpha-dark a {
    text-decoration: none;
    color: #C4161D;
    font-weight: 700;
    letter-spacing: 0.5px;
}
strong {
    letter-spacing: 0.5px;
}
.overline {
    word-break: break-all;
    letter-spacing: 10px;
}
/*
-------------------------------------------------------------------- MENU
*/
.navbar-brand img {
    max-height: 4rem;
}
@media (max-width: 992px) {
    .navbar-brand img {
        max-height: 3rem;
    }
}
#navbar-main {
    background-color: #212324 !important;
}
.text-light a.nav-link {
    color: #FFFFFF !important;
    font-family: "Exo 2";
    font-weight: 500;
    text-transform: uppercase;
}
.text-dark a.nav-link {
    color: #363636 !important;
    font-family: "Exo 2";
    font-weight: 500;
    text-transform: uppercase;
}
a.nav-link.active {
    color: #C4161D !important;
}
.language-switcher-language-url .links {
    /*    justify-content: end;*/
    font-size: 20px;
}
.language-switcher-language-url .links span {
    padding: 2px;
    position: relative;
}
.language-switcher-language-url .links span a {
    color: #fff;
    text-decoration: none;
}
.language-switcher-language-url .links span a.is-active {
    color: #C4161D;
    text-decoration: none;
}

.navbar-toggler {
    border: 0;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-item.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #C4161D;
    border-radius: 0;
    color: #fff;
}
.nav-item.dropdown.show .dropdown-menu.show {
    display: block;
}
.dropdown-menu {
    transition: opacity 0.2s ease;
}
.dropdown-menu.show {
    opacity: 1;
}
.dropdown-item a {
    padding: 5px;
    border-radius: 5px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.7px;
}
li.dropdown-item.active {
    background: none;
}
li.dropdown-item.active a {
    color: #222324 !important;
    font-weight: 600;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #C4161D;
    transition: all 0.2s;
}
.dropdown-menu .dropdown-item:hover a {
    color: #000;
}
@media (min-width:992px) {
    .region.region-primary-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
    .nav-item.dropdown > a.dropdown-toggle {
        cursor: pointer;
        pointer-events: auto !important;
    }
}
@media (max-width: 991px) {
    .nav-item.dropdown .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background: none;
        border: none;
        box-shadow: none;
    }

    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 10px 20px;
    }
    li.dropdown-item.active a {
        color: #C4161D !important;
        font-weight: 600;
    }
}
/*
-------------------------------------------------------------------- BREADCRUMB
*/
.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
}
.breadcrumb-item::before {
    color: #fff !important;
}
ol.breadcrumb {
    justify-content: center;
    font-weight: 500;
    background: transparent;
}
.breadcrumb-item.active {
    color: #C4161D;
}
/*
-------------------------------------------------------------------- SWIPER
*/
.swiperuno {
    width: 100%;
    /*    height: auto;*/
    height: calc(100vh - 250px);
}
.swiperuno .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}
.swiperdue {
    position: relative;
    overflow: hidden;
}
.swiper-scrollbar {
    background: #ffffff!important;
}
.swiper-scrollbar-drag {
    background: #C4161D!important;
}
@media (max-width: 1023px) {
    /* Nascondiamo le frecce */
    .swiperuno .swiper-button-next,
    .swiperuno .swiper-button-prev {
        display: none !important;
    }
    /* Mostriamo i pallini */
    .swiperuno .swiper-pagination {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    /* Mostriamo le frecce */
    .swiperuno .swiper-button-next,
    .swiperuno .swiper-button-prev {
        display: flex !important;
    }
    /* Nascondiamo i pallini */
    .swiperuno .swiper-pagination {
        display: none !important;
    }
}
/*
-------------------------------------------------------------------- BOTTONI
*/
div.buttonRed {
    margin: 2rem 0;
}
.pager__item a,
span.buttonRed,
.form-submit .buttonRed,
a.buttonRed,
btn.buttonRed,
div.buttonRed a,
.webform-button--submit {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    background: #C4161D;
    color: #ffffff;
    padding: 14px 19px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    border: 0;
}
.pager__item:hover a,
.form-submit .buttonRed:hover,
a.buttonRed:hover,
btn.buttonRed:hover,
div.buttonRed:hover a,
.webform-button--submit:hover,
.btn-primary:hover {
    background-color: #971218;
}
.btn-primary {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    background: #1616166b;
    color: #ffffff;
    padding: 14px 19px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 0;
    border: 2px solid #C4161D;
}
.emphasis {
    font-family: 'Urbanist', sans-serif;
    background: #1616166b;
    color: #ffffff;
    padding: 7px 9px;
    text-decoration: none;
    text-transform: none;
    font-weight: 400;
    border-radius: 0;
    border: 0;
    text-wrap: nowrap;
}
/*
-------------------------------------------------------------------- HOMEPAGE

-------------------------------------------------------------------- SLIDER
*/
.slidecta {
    position: absolute;
    top: 22vh;
    left: 0;
    right: 0;
}
.slidecta .buttonRed {
    position: relative;
    align-items: center;
    justify-content: left;
    display: flex;
}
.swiperuno .swiper-slide {
    position: relative;
}

.swiperuno .swiper-slide img {
    filter: brightness(0.85);
}
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    color: #fff;
}
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    color: #fff;
}
.overlayhome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #00000085 0%, #25252554 40%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}
.slidecta {
    z-index: 2;
}
.swiper-slide {
    position: relative;
}
@media (max-width: 768px) {
    .text-big {
        font-size: calc(1.325rem + .9vw);
    }
}

/*
-------------------------------------------------------------------- BLOCCHI HOME
*/
.blockhome {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #00000095;
    background-blend-mode: overlay;
    background-repeat: no-repeat;
}
.blockhome .buttonRed {
    margin-top: auto;
}
.services {
    padding: 3rem;
    border-style: solid;
    border-color: #707070;
    border-top-width: 0.2px;
    border-right-width: 0.1px;
    border-bottom-width: 0.2px;
    border-left-width: 0.1px;
}
section.row.region.region-featured-top {
    border-top: solid 30px #C4161D;
}
.services a,
.services2 a {
    text-decoration: none;
}
#block-doktorbike-richiediunpreventivo .content {
    color: #FFFFFF;
    margin: 3rem 3rem;
}
#block-doktorbike-richiediunpreventivo .content h4 a::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-left: 8px;
    vertical-align: middle;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 91'><rect width='104' height='91' fill='%23c4181e'/><path d='M72.5,29.09c0-1.88-1.53-3.41-3.42-3.42l-27.33-.17h0c-1.89-.03-3.44,1.47-3.47,3.36-.03,1.89,1.47,3.44,3.36,3.47.04,0,.08,0,.12,0h19l-28.26,28.33c-1.35,1.33-1.37,3.5-.04,4.85s3.5,1.37,4.85.04c.01-.01.03-.03.04-.04l28.32-28.33v19.07c0,1.88,1.53,3.41,3.42,3.42h0c1.88,0,3.41-1.53,3.42-3.42v-27.16Z' fill='%23fff'/></svg>") no-repeat center;
    background-size: contain;
}
.blockhome p a {
    color: #fff;
    font-weight: 600;
    margin: 0 10px;
    padding: 3px;
    letter-spacing: 1px;
}
.blockhome p a:first-child {
    margin-left: 0;
}
.blockhome .field--name-field-icona-blocco-home img {
    max-height: 120px;
    width: auto;
}
.icotext  {
    gap: 15px;
    align-items: center;
}
@media (max-width: 992px) {
    .blockhome {
        padding: 2rem 1rem;
        gap: 0.86rem;
    }
    a.buttonRed, btn.buttonRed, div.buttonRed a {
        letter-spacing: 0;
    }
    div.buttonRed {
        margin: 25px 0 25px 0;
    }
}

@media (min-width: 992px) {
    .blockhome {
        padding: 2rem;
        gap: 0.86rem;
    }
    a.buttonRed, btn.buttonRed, div.buttonRed a {
        letter-spacing: 3px;
    }
    div.buttonRed {
        /*        margin: 0;*/
    }
}
/*
-------------------------------------------------------------------- CONSIGLI E AVVISI
*/
.view-header {
    color: #000;
}
.highlight p {
    color: #ff6369;
    font-weight: 900;
    margin: 0;
}
span.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 1;
    background: #fff;
}
span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #C4161D;
}
.views-row.swiper-slide {
    padding: 20px;
    border-style: dashed;
    border-width: 0px;
    border-color: #666666;
    margin-bottom: 20px;
}
.card-title {
    margin-top: 20px;
}
.card-body .buttonRed {
    border-radius: 0.375rem 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
}
.consigli-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 420px;
    position: relative;
}
.consigli-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
.consigli-card-header {
    padding: 20px 20px 15px;
    flex-shrink: 0;
}
.consigli-card-header h4 {
    margin: 25px 0 0;
}
[class^="badge-"] {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px 0 0 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: #C4161D;
    position: absolute;
    top: 0;
    left: 0;
    color: #FFF;
}
.consigli-card-body {
    padding: 20px;
    padding-bottom: 60px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    color: #000;
}
.consigli-card-body::-webkit-scrollbar {
    width: 5px;
}
.consigli-card-body::-webkit-scrollbar-track {
    background: transparent;
}
.consigli-card-body::-webkit-scrollbar-thumb {
    background: #C4161D;
    border-radius: 3px;
}
.consigli-card-body::-webkit-scrollbar-thumb:hover {
    background: #C4161D;
}
.consigli-card-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, #fff 60%, transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.consigli-card.has-scroll .consigli-card-fade {
    opacity: 1;
}
.consigli-card-body p {
    margin-bottom: 15px;
}
.consigli-card-body p:last-child {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .consigli-card {
        height: 380px;
        margin: 0 10px;
    }
    .views-row.swiper-slide {
        padding: 10px;
    }
    .consigli-card-header {
        padding: 15px 15px 10px;
        margin-top: 30px;
    }

    .consigli-card-header h4 {
        margin: 8px 0 0;
    }
    .consigli-card-body {
        padding: 15px;
        padding-bottom: 50px;
    }
    [class^="badge-"] {
        padding: 4px 10px;
    }
}

@media (max-width: 375px) {
    .consigli-card {
        height: 360px;
        margin: 0 5px;
    }

    .consigli-card-header {
        padding: 12px 12px 8px;
    }

    .consigli-card-body {
        padding: 12px;
        padding-bottom: 45px;
    }
}
.consigli-card-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.consigli-card.has-scroll .consigli-card-fade {
    opacity: 1;
}

/* Mobile - sfumatura più evidente */
@media (max-width: 768px) {
    .consigli-card-fade {
        height: 60px;  /* Ancora più alta */
        background: linear-gradient(to top, white 20%, transparent);
    }

    .consigli-card.has-scroll .consigli-card-fade::before {
        content: '⌄';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
        color: #999;
        animation: bounce 2s infinite;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}
/*
--- GOOGLE REVIEWS 
*/
@media (min-width: 768px) {
    .review-container .review-rating {
        display: block;
    }
    .review-container .review-date {
        margin-left: 0;
    }
}


/*
-------------------------------------------------------------------- FAQ E RIPARAZIONI E VERNICIATURE
*/
.faq-num {
    color: #C4161D;
}
.view-riparazioni .views-field-field-immagine img {
    max-width: 100%;
}
.faq-header span {
    font-size: 18px;
    line-height: 1.7;
    font-family: 'Urbanist', sans-serif;
    margin-bottom: 0.5rem;
}
.faq-body h5 a {
    text-decoration: none;
    color: #000;
}
.faq-body h5 a:hover {
    color: #C4161D;
}
[id^="heading"] {
    scroll-margin-top: 200px;
}
.block-views-blockfaq-block-1 .faq-item .faq-body {
    position: relative;
    padding-right: 30px;
}

.block-views-blockfaq-block-1 .faq-item .faq-body h5 {
    position: static;
}
.block-views-blockfaq-block-1 .faq-item .faq-body h5 a::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 91'><rect width='104' height='91' fill='%23c4181e'/><path d='M72.5,29.09c0-1.88-1.53-3.41-3.42-3.42l-27.33-.17h0c-1.89-.03-3.44,1.47-3.47,3.36-.03,1.89,1.47,3.44,3.36,3.47.04,0,.08,0,.12,0h19l-28.26,28.33c-1.35,1.33-1.37,3.5-.04,4.85s3.5,1.37,4.85.04c.01-.01.03-.03.04-.04l28.32-28.33v19.07c0,1.88,1.53,3.41,3.42,3.42h0c1.88,0,3.41-1.53,3.42-3.42v-27.16Z' fill='%23fff'/></svg>") no-repeat center;
    background-size: contain;
}
.faq-body h5 {
    height: 2.5em;
    overflow: hidden;
}
/*
-------------------------------------------------------------------- filtro riparazioni
*/
#views-exposed-form-riparazioni-block-2 > div {
    width: 100%;
    overflow-x: auto;
}
.view-riparazioni .bef-links ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 !important;
    list-style: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 0;
    gap: 8px;
}
.view-riparazioni .bef-links ul li {
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}
.view-riparazioni .bef-links ul li a {
padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 5px gray;
  min-width: 110px;
  text-align: center;
  display: block;
}
.view-riparazioni .bef-links ul li .bef-link {
    color: #FFF;
    text-decoration: none;
     transition: all .2s ease;
}
.view-riparazioni .bef-links ul li .bef-link--selected, .view-riparazioni .bef-links ul li a:hover {
    color: #C4161D;
    background: #F8F9FA;
}
.view-riparazioni .bef-links ul li .bef-link--selected {    font-weight: 600;}
.view-riparazioni .bef-links ul li a {
    white-space: nowrap !important;
}
.bg-block {background:rgb(0 0 0 / 60%); }

/*
-------------------------------------------------------------------- PAGINE BASE
*/
.swiper.swiperpage.mb-5.swiper-initialized.swiper-horizontal {
    background-color: rgb(0 0 0 / 60%);
    padding: 0px;
    color: #FFFFFF;
    box-shadow: 0px 0px 10px #373737;
    border-radius: 20px;
    margin-top: 30px;
}
.bg-alpha-dark h2,
.node .text-formatted h2,
.bg-alpha-dark h3,
.node .text-formatted h3 {
    text-decoration: underline;
    line-height: 2;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: #C4161D;
}
.bg-alpha-dark h2::before,
.node .text-formatted h2::before,
.bg-alpha-dark h3::before,
.node .text-formatted h3::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg height='113px' width='113px' version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='-51.2 -51.2 614.40 614.40' fill='%23C4161D' transform='matrix(-1, 0, 0, 1, 0, 0)rotate(45)' stroke='%23C4161D' stroke-width='0.00512'%3E%3Cg%3E%3Cpath d='M99.407,262.803C44.587,262.803,0,307.408,0,362.228c0,54.802,44.587,99.389,99.407,99.389 c54.811,0,99.398-44.587,99.398-99.389C198.805,307.408,154.218,262.803,99.407,262.803z M99.407,434.385 c-39.802,0-72.166-32.374-72.166-72.158c0-39.81,32.365-72.175,72.166-72.175c39.792,0,72.175,32.366,72.175,72.175 C171.572,402.011,139.199,434.385,99.407,434.385z'%3E%3C/path%3E%3Cpath d='M412.593,262.803c-54.811,0-99.398,44.605-99.398,99.425c0,54.802,44.587,99.389,99.398,99.389 c54.82,0,99.407-44.587,99.407-99.389C512,307.408,467.413,262.803,412.593,262.803z M412.593,434.385 c-39.792,0-72.166-32.374-72.166-72.158c0-39.81,32.374-72.175,72.166-72.175c39.801,0,72.175,32.366,72.175,72.175 C484.768,402.011,452.394,434.385,412.593,434.385z'%3E%3C/path%3E%3Cpath d='M259.974,87.313L119.95,109.099c-25.642,5.837-24.357,16.565-21.134,33.46l15.566,56.47l-54.472,0.461 l0.009,0.13c-6.958,0.869-12.352,6.793-12.352,13.976c0,7.801,6.324,14.107,14.107,14.107l74.199,7.461 c13.994,0.608,18.676-12.178,18.388-22.732l-3.075-35.745l51.996-14.628c0,0-25.242,29.959-27.336,32.574 c-10.458,13.073-14.246,37.038,2.615,49.686l72.991,52.996l4.152,63.55c0,10.519,8.53,19.049,19.049,19.049 c10.51,0,19.04-8.53,19.04-19.049c0-0.417,16.765-203.574,16.765-203.574C315.306,114.935,290.941,82.44,259.974,87.313z M221.511,228.328c-3.631-2.719-2.736-6.35,0-9.981c2.71-3.64,24.496-21.794,24.496-21.794l4.551,57.191L221.511,228.328z'%3E%3C/path%3E%3Cpath d='M24.947,98.718h37.221v44.152h5.612V98.718h18.71c0,0,19.64-9.92,28.274-19.831 c2.415-2.78,3.84-9.347-4.274-7.653c0,0,4.483-10.476,5.933-14.524c1.451-4.065,0.295-7.783-7.8-5.758 c-4.152,1.042-25.686,5.159-56.132,11.83C24.738,68.872,17.46,90.605,17.46,94.209C17.46,97.815,18.806,98.718,24.947,98.718z'%3E%3C/path%3E%3Cpolygon points='21.003,115.839 29.108,123.265 52.804,116.517 52.804,105.033 21.003,105.033'%3E%3C/polygon%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bg-alpha-dark .plain,
.node .text-formatted .plain {
    text-decoration: none;
}
.bg-alpha-dark .plain::before,
.node .text-formatted .plain::before {
    background-image: none;
    width: 0px;
    height: 0px;
}
.node--type-page .bg-alpha-dark img,
.node--type-page .text-formatted img {
/*    max-width: 30rem;*/
    height: auto;
    display: inline;
    position: relative;
    width: 100%;
}
p:has(img) {
    text-align: center;
}
/*
-------------------------------------------------------------------- PAGINA VERNICIATURE E RIPARAZIONI
*/
.boxtitle {
    padding: 5px;
    overflow: hidden;
}
.boxtitle a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
   transition: all .3s;
}
.flex-tag {
    display: flex;
    flex-direction: row;
    gap: 5px;
}
.flex-tag > .field {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
/* titolo hover */

.block-list .flex-column:hover .boxtitle a, .articletitle:hover a{
     color: #C4161D;
}


/*@media (max-width:576px) {
    .boxtitle {
        min-height: auto;
    }
}
@media (min-width:576px) and (max-width:768px) {
    .boxtitle {
        min-height: 100px;
        font-size: 19px;
    }
}
@media (min-width:768px) and (max-width:992px) {
    .boxtitle {
        min-height: 150px;
    }
}
@media (min-width:992px) {
    .boxtitle {
        min-height: 100px;
        font-size: 22px;
    }
}*/
@media (max-width:576px) {
    .boxtitle {
        min-height: auto;
    }
}


/*
-------------------------------------------------------------------- GALLERIA VERNICIATURE  E RIPARAZIONI
*/
.gallery-wrapper {
    position: relative;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    /*
    justify-content: center;
    display: flex;*/
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform .35s ease, filter .35s ease;
    overflow: hidden;
    object-fit: cover;
    border-radius: inherit;
}
@media (max-width: 576px) {
    .node--type-page .gallery-item img {
        height: 155px;
    }
}
.node--type-page .gallery-item img {
        height: 250px;
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}
.gallery-alt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(100%);
    transition: all .35s ease;
    pointer-events: none;
}
.gallery-wrapper:hover .gallery-alt {
    opacity: 1;
    transform: translateY(0);
}
/*
-------------------------------------------------------------------- PAGINA FAQ
*/
.faq-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.accordion-button {
    /*    display: block;*/
    background-color: transparent;
    padding: 25px;
    color: #FFFFFF;
}
.accordion-button:not(.collapsed) {
    background-color: #eef1f3; /* domanda quando è aperto*/
    color: #000;
    box-shadow: none;
}
.accordion-item:last-of-type {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.accordion-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.accordion-item:first-of-type>.accordion-header .accordion-button {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.accordion-item {
    background-color: rgb(0 0 0 / 60%);
    color: #FFF;
    border: 0;
}
.accordion-body {
    background: #FFF; /*risposta quando è aperto*/
    color: #000;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* END */
.taxonomy-buttons-dyn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.tax-btn-dyn {
    background: #eee;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.tax-btn-dyn:hover {
    background: #ddd;
}
.tax-btn-dyn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
/*scrollbar*/
.swiper-horizontal>.swiper-scrollbar, .swiper-scrollbar.swiper-scrollbar-horizontal {
    position: relative !important;
}
/*
-------------------------------------------------------------------- PAGINA RICHIEDI PREVENTIVO
*/
#edit-carica-le-foto--description,
.description.text-muted {
    color: #fff !important;
}
.form-switch .form-check-input:checked {
    background-color: #C4161D;
}
span.file.file--mime-image-png.file--image a {
    color: #fff;
    text-decoration: none;
}
/*
----------------RICHIEDI PREVENTIVO Link tutto cliccabile
*/
#block-doktorbike-richiediunpreventivo {
  position: relative;
  cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}
#block-doktorbike-richiediunpreventivo:hover,
#block-doktorbike-richiediunpreventivo:focus-within {
  transform: scale(1.05);
  filter: brightness(1.08);
}
#block-doktorbike-richiediunpreventivo::after {
  pointer-events: none;
}

#block-doktorbike-richiediunpreventivo a {
  position: static;
  display: inline-block;
}

#block-doktorbike-richiediunpreventivo a::before {
  content: "";
  position: absolute;
  inset: 0;
}
/*
----------------FIX nuove regole
*/
.field.field--name-field-tags a { 
    color: white;
    line-height: 1.5;
    font-weight: normal;
 text-decoration: underline;
}
.block-list {
    margin-top: 50px;
}
.block-list .view-filters {
    margin-top: -50px;
}


/*
-------------------------------------------------------------------- FOOTER
*/
.region-footer-first .navbar-brand {
    position: relative;
    display: flex;
    margin: 20px 0;
}

.site-footer {
    margin-top: 80px;
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px;
}

/* Singola colonna */
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-title {
    margin: 0 0 20px;
}
.footer-logo {
    width: 150px!important;
    margin-bottom: 20px;
}
.footer-tagline {
    margin-bottom: 20px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    padding-left: 0 !important;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu a {
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.footer-menu a:hover {
    color: #dc3545;
}

.contact-block {
    margin-bottom: 25px;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-block strong {
    display: block;
    margin-bottom: 8px;
}

.contact-block a,
.contact-block p {
    display: block;
    text-decoration: none;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.contact-block a:hover {
    color: #dc3545;
}

.contact-block p {
    margin: 0;
}
.footer-bottom {
    border-top: 1px solid #3a3a3a;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright,
.footer-credits {
    margin: 0;
    color: #999;
}

.footer-credits a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-credits a:hover {
    color: #dc3545;
}
/* Social icons */
.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-social a:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-3px);
}
#block-doktorbike-menufooter ul.clearfix.nav {
    display: flex!important;
    flex-direction: column!important;
}


/* Tablet */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 20px;
    }
}
@media (max-width: 768px) {
    .footer-main {
        padding: 0px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }
    .site-footer .block {
        margin:0;
    }
}

/*
    -------------------------------------------------------------------- PAGINA ARTICOLI
*/
.articletitle a {
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}
.gap20 {
    gap: 20px;
}
/* articolo tutto cliccabile */
.view-articoli .row.d-flex.m-2 {
  position: relative;
  cursor: pointer;
  border-radius: 6px;
   transition: background-color 0.25s ease;
}

.view-articoli .row.d-flex.m-2 .articletitle a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
}
.view-articoli .row.d-flex.m-2:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.view-articoli .row.d-flex.m-2:hover img{
    transform: scale(1.08);
  filter: brightness(0.85);
}
/* pagination */
ul.pagination {
  justify-content: center;  
  margin-top: 5px;
}
ul.pagination li.active span {
background: #C4161D!important;
border-color: #C4161D!important;
}
ul.pagination li a.page-link {
color: black;
}

/*
    -------------------------------------------------------------------- WEBFORM STILE
*/
.webform-submission-form label {
    color: #FFF;
    font-weight: 500;
    margin-bottom: 11px;
}
.webform-actions, .form-actions {
    text-align: center;
    margin-top: 30px;
}
button#edit-submit, #edit-actions-submit {
    background-color: #C4161D;
    letter-spacing: 2px;
    min-width: 150px;
}
button#edit-submit:hover, #edit-actions-submit:hover {
    border-color: #971218!important;
    background-color: #971218;
}
/*
    -------------------------------------------------------------------- USER LOGGED
*/
.node-type-slider_homepage.user-logged-in .node {
    background: #fff;
}
/*
    -------------------------------------------------------------------- Other stuff
*/
@media (max-width: 767px) {
    .node--type-verniciatura-e-riparazione li.breadcrumb-item.active {
        display: none;
    }
    .swiper-mobile .swiper-wrapper {
        align-items: stretch;
    }

    .swiper-mobile .swiper-slide {
        height: auto;
    }
    .swiper-mobile .swiper-slide .review-author-image img{
        width: inherit;
        height: inherit;
    }
    #block-doktorbike-googlereviewslist {
        padding: 0 10px;
    }
}
.pager--load-more {
    text-align: center;
}
@media (min-width: 768px) {
    .node .text-formatted img.align-left {
        margin-right: 10px;
    }
    .node .text-formatted img.align-right {
        margin-left: 10px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .node .text-formatted img.align-left {
        float: none!important;
         margin-left: auto; margin-right: auto;
    }
    .node .text-formatted img.align-right {
        margin-left: auto; margin-right: auto;
        float: none!important;
    }
}