body {
    overflow-x: hidden;
    font-family: "Nunito Sans", serif;
    font-weight: 400;
}

p{
    font-family: "Nunito Sans", serif;
    font-size: 1.1rem;
}

strong {
    font-weight: 700;
}

/* a link format */
a{
    color: #000;
    transition: color 0.5s ease-in-out, text-decoration-color 0.5s ease-in-out;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
}

.nav-link{
    color: #000;
}

.nav-link:hover{
    color: #cc0000;
    text-decoration: underline;
    text-decoration-color: #cc0000;
}

a:hover {
    color: #cc0000;
    text-decoration-color: #cc0000;
}

.btn-teslafun {
    background-color: #cc0000;
    color: #fff;
    border-radius: 25px;
    padding: 0.3rem 1.5rem;
    border: solid 1px #cc0000;
    font-weight: 300;
    font-size: 1rem;
    width: fit-content;
    height: fit-content;
    transition: none;
    margin-bottom:5px;
}

.navbar .btn-teslafun {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.btn-teslafun:hover {
    border: solid 1px #818181;
    background-color: #818181;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: #fff;
    border: solid 1px #cc0000;
    color: #cc0000;
}

.btn-outline:hover {
    border: solid 1px #818181;
    background-color: #818181;
    color: #fff;
    text-decoration: none;
}

.navbar {
    background-color: #F2f2f2;
}

.navbar-brand img {
    height: 65px;
    transition: height 0.5s ease-in-out;
}

.navbar .nav-item .nav-link {
    font-size: 1rem;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.navbar .nav-item {
    padding: 0 0.5rem;
}

/* sticky .navbar */
.navbarfixata {
    position: relative;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.5s ease-in-out;
}

#fix_nav .sticky {
    position: fixed;
    top: 0;
}

.navbarOffsetMargin {
    padding-top: 45px;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}


.sticky .navbar-brand img {
    height: 45px;
}

.sticky .navbar .nav-item .nav-link {
    transform: scale(0.95);
}

.sticky .btn-teslafun {
    transform: scale(0.95);
}


#customSlider {
    position: relative;
    height: 500px;
}

.bg-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 500px;
}

.first-slide {
    background-image: url('../images/carousel-1.jpg');
}

.second-slide {
    background-image: url('../images/carousel-2.jpg');
}

.third-slide {
    background-image: url('../images/carousel-3.jpg');
}

.carousel-caption {
    background-color: #212121a5;
    position: absolute;
    width: 600px;
    height: auto;
    bottom: auto;
    padding: 2rem;
}

/* start - class for move carousel-caption */

.ca-left {
    top: 10%;
    left: 10%;
    text-align: left;
}

.ca-center {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.ca-right {
    top: 10%;
    right: 10%;
    left: auto !important;
    text-align: left;
}

/* end - class for move carousel-caption */

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 0.3rem;
    color: #fff;
}

.carousel-caption p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02rem;
}

.btn-box {
    transform: translateY(-50%);
    top: 50%;
}

.thumbnail-btn {
    display: block;
    border: none;
    background: none;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail-btn img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.thumbnail-btn.active img,
.thumbnail-btn:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}


/* sign up section */

.sign-up {
    background-color: #cc0000;
}

.sign-up h3 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 200;
    letter-spacing: 0.1rem;
}

.sign-up p {
    font-size: 1.8rem;
    font-weight: 700;
}

.sign-up .btn-teslafun {
    background-color: #cc0000;
    color: #fff;
    border: solid 1px #fff;
    padding: 0.3rem 3rem;
    font-size: 1.1rem;
}

.sign-up .btn-teslafun:hover {
    background-color: #fff;
    color: #cc0000;
    border: solid 1px #cc0000;
}

span.signup-message p{color: #fff}

.whoweare {
    background: #F2f2f2;
    color: #212121;
}

.whoweare h1,
.events h3,
.deals h3,
.news h3,
.article h3 {
    font-size: 2.5rem;
}

.whoweare p {
    line-height: 1.6;
}

#counter .counter {
    font-size: 2.2rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
    margin-bottom: 0;
    margin-left: 1rem;
}

#counter .title {
    font-size: 1.1rem;
    color: #000;
    font-weight: 800;
    margin-bottom: 0;
}

#counter .text {
    font-size: 0.9rem;
    color: #818181;
}

#counter .btn-teslafun {
    background-color: #212121;
    font-size: 0.9rem;
    border: #212121;
}

#counter .btn-teslafun:hover {
    background-color: #818181;
    font-size: 0.9rem;
    border: #818181;
}

#counter .icon {
    background-color: #cc0000;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter .icon i {
    font-size: 1.1rem;
}

.events {
    background-color: #212121;
    color: #fff;
}

.events .box {
    background-color: #F2f2f2;
    color: #212121;
    padding: 2rem 3rem;
    border-bottom-left-radius: 60px;
    border-top-right-radius: 60px;
}

.place {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 800;
}

.events .text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.events .btn-teslafun {
    font-size: 0.9rem;
    letter-spacing: 0.04rem;
}

.deals a{
    text-decoration: none;
    transition: none;
}

.deals .box {
    background: #F2f2f2;
    border: solid 1px #818181;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deals .box .percentage, .percentage{
    color: #cc0000;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    /*vertical-align: text-top;*/
}

.deals .box .text-percentage {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.2rem;
    color: #000;
    vertical-align: top;
}

.deals .text {
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* deals in slider */

.deal-slider .box {
    border: solid 1px #818181;
    padding: 1rem;
    background-color: #fff;
    height: 100%;
}

.deal-slider .box .percentage, .percentage {
    color: #cc0000;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    /* vertical-align: text-top; */
}

.deal-slider .box {
    margin-right: 20px;
}

.deal-slider .box .text-percentage {
    font-weight: 400;
}

.slick-track {
    display: flex !important;
}

.slick-slide {
    height: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: start !important;
}

.news {
    background-color: #F2f2f2;
}

.news .btn-teslafun {
    font-size: 0.95rem;
}

.news .black-filter {
    padding: 2rem;
    width: 100%;
    height: 100%;
    background-color: #212121cc;
}

.news .black-filter h4 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.1rem;
    line-height: 1;
    color: #fff;
}

.news .place {
    color: #bab6b6;
}

.news .black-filter p {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 300;
    line-height: 1.3;
    margin-top: 0.5rem;
}

footer p {
    font-size: 0.9rem;
    font-weight: 200;
}

footer a{
    color: #fff;
}


/* eventi/news/offerte */

.intro-img {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
}

.card-event {
    border-radius: 0;
}

.card-event .title {
    font-size: 1.8rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.card-event.card-news .title {
    font-size: 1.5rem;
}

.card-event .place {
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 0.7rem;
    letter-spacing: 0.02rem;
}

.card-event .text {
    line-height: 1.2;
}

.other-article .box {
    margin-right: 20px;
}

.other-article .box {
    padding: 1rem;
    border: solid 1px #818181;
}

.other-article .box .title {
    font-size: 1.5rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.other-article .place {
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 0.7rem;
    letter-spacing: 0.02rem;
}

.other-article .text {
    font-size: 0.9rem;
}

.card-event.card-news .text {
    font-size: 0.9rem;
}

.slick-prev:before,
.slick-next:before {
    color: black;
}

.see-also {
    font-size: 2rem;
    color: black;
    font-weight: 300;
}

.card-deal .box {
    background: #F2f2f2;
    border: solid 1px #818181;
    padding: 1rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-deal .box .percentage {
    color: #cc0000;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: text-top;
}

.card-deal .box .text-percentage {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.2rem;
    color: #000;
    vertical-align: text-top;
}

.card-deal .text {
    color: #000;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.03rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* info style */

.info .title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 0.2rem;
}

.info .subtitle {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0;
    color: #cc0000;
    margin-top: 1rem;
}

.info .text {
    margin-bottom: 0;
}

.lb-closeContainer {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    z-index: 9999 !important;
}

.lb-close {
    width: 45px !important;
    height: 45px !important;
    background: #cc0000 !important;
    border-radius: 50%;
    padding: 1rem;
    position: relative;
    border: none;
    cursor: pointer;
    opacity: 1 !important;

}

/* pagination */
.pagination {
    display: flex;
    padding: 1rem 0;
    justify-content: center;
    margin-bottom: 4px;
    font-weight: 400;
    gap: 8px;
}

.pagination-button {
    color: #000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    line-height: 40px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
}

.pagination-button.active {
    background: #cc0000;
    color: #fff;
    border: 1px solid transparent;
}

.pagination-button:hover {
    background: #cc0000;
    color: #fff;
}

/* search */
.search-box {
    display: none;
    transition: all 0.3s ease-in-out;
    width: 0;
    overflow: hidden;
}

.search-box.active {
    display: block;
    width: auto;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Numero di righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* red headline h4 - for CKeditor stylesheetparser */
h4.subtitle {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0;
    color: #cc0000;
    margin-top: 1rem;
}


/* section article + facebook group */
.article h3 {
    font-size: 2.5rem;
}

.article .box .title {
    color: #000;
}

.events .box .title,
.article .title {
    font-size: 1.8rem;
    font-weight: 200;
    line-height: 0.9;
}

.article {
    padding: 3rem 0;
}

.article .box {
    background-color: #fff;
    padding: 0 3rem;
}

.article .box .title {
    color: #000;
}

.article .box.red {
    background-color: #cc0000;
    padding: 3rem;
}


.article .box.red .title {
    font-size: 3.5rem;
    font-weight: 200;
    color: #fff;
}

.article .box.red .subtitle {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
}

.article .box-img {
    aspect-ratio: 2 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article .box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-link {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    line-height: 1;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 35px;
    text-decoration: none;
    transition: none;
}

.group-link:hover {
    text-decoration: none;
    background-color: #f9f7f7;
}

.facebook-groups {
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.group-link i {
    margin-right: 8px;
    font-size: 1.5rem;
    color: #3b5998;
}



/* toast*/
.successtoast {
    background-color: #007F5F !important;
    border: solid 1px #007F5F !important;
}

.dangertoast {
    background-color: #cc0000 !important;
    border: solid 1px #cc0000 !important;
}

.warningtoast {
    background-color: #F2A900 !important;
    border: solid 1px #F2A900 !important;
}

.infotoast {
    background-color: #0096C7 !important;
    border: solid 1px #0096C7 !important;
}

.toast-container .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}


/* replace this property in the other style file for gallery overlay close button*/
.lb-close::after {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* faq style */

.accordion-button:not(.collapsed) {
  background-color: #cc0000;
  color: #fff;
}

.faq-no {
  color:#cc0000;
  width:35px;
}

.accordion-button:not(.collapsed) .faq-no {
  color:#FFF;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cc0000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
  box-shadow: none;
}


/* winners style */
.winners .title {
    font-size: 3rem;
    font-weight: 200;
}

.winners .title i {
    font-size: 2rem;
}

.winners .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.04rem;
    line-height: 1.2;
    border-bottom: solid 1px #818181;
}

.winners .prize {
    font-size: 1.1rem;
    color: #cc0000;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.winners .first-list::marker {
    font-size: 1.1rem;
    color: #cc0000;
    font-weight: 900;
    letter-spacing: 0.04rem;
    text-transform: uppercase;
}

.winners .first-list {
    padding: 0.5rem 0;
    line-height: 1.1;
}

.winners .first-list:first-child {
    padding-top: 0;
}

.winners .name {
    font-size: 1rem;
    color: #818181;
    font-weight: 700;
    letter-spacing: 0.04rem;
}

.winners .second-list {
    padding: 0.3rem 0;
}

/* competitions */
.competitions .box .title{
    font-size: 1.8rem;
    font-weight: 200;
    line-height: 0.9;
}

.author {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #818181;
}

.competitions {
    background-color: #212121;
    color: #fff;
}

.competitions .box {
    background-color: #F2f2f2;
    color: #212121;
    padding: 2rem;
    border-bottom-left-radius: 60px;
    border-top-right-radius: 60px;
}

.competitions img{
    border-top-right-radius: 60px;
}

.competitions .btn-teslafun {
    font-size: 0.9rem;
    letter-spacing: 0.04rem;
}

.competitions h3 {
    font-size: 2.5rem;
}

/* breakpoints  */
@media (max-width: 1399.98px) {
    .article .box.red .title {
        font-size: 3rem;
    }

    .article .box.red .subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .facebook-groups {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .article .box.red .title {
        font-size: 2.5rem;
    }

    .article .box.red .subtitle {
        font-size: 1.1rem;
    }

    .facebook-groups {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .group-link {
        font-size: 0.8rem;
        padding: 7px 12px;

    }

    .article .box.red {
        background-color: #cc0000;
        padding: 2rem;
    }

}

@media (max-width: 991.98px) {
    .article .box {
        background-color: #fff;
        padding: 0;
    }

    .winners .title {
        font-size: 2.5rem;
        font-weight: 200;
    }

    .winners .subtitle {
        font-size: 1.1rem;
    }

    .winners .title i {
        font-size: 1.5rem;
    }

    .winners .prize {
        font-size: 1.1rem;
    }

    .carousel-caption {
        width: 65%;
        padding: 1.5rem;
    }

    .ca-left {
        left: 5%;
        top: 5%;
    }

    .ca-center {
        top: 5%;
    }

    .ca-right {
        right: 10%;
        top: 5%;
    }

    .news .black-filter {
        position: static;
    }

    .navbar .btn-teslafun {
        padding: 0.7rem;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }

    .card-event .title {
        font-size: 1.5rem;
        color: #cc0000;
        font-weight: 500;
    }

    .card-event .place {
        font-size: 0.8rem;
    }

    .deal-slider .box .percentage {
        color: #cc0000;
        font-size: 3rem;
        font-weight: 800;
        line-height: 1;
        vertical-align: text-top;
    }

    .lb-container {
        margin-top: 1rem;
    }

}

@media (max-width: 767.98px) {
    .article .box.red .title {
        font-size: 2.2rem;
    }

    .facebook-groups {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .group-link {
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .sign-up h3 {
        font-size: 1.6rem;
        color: #fff;
        font-weight: 200;
        line-height: 1.1;
        letter-spacing: 0.1rem;
    }

    .sign-up p {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .winners .subtitle {
        font-size: 1rem;
    }

    .winners .title {
        font-size: 2.2rem;
    }

    .winners .prize {
        font-size: 1.1rem;
    }

    .winners .first-list {
        font-size: 1rem;
        line-height: 1;
    }

    .carousel-caption {
        width: 90%;
        padding: 1rem;
    }

    .thumbnail-btn.active img,
    .thumbnail-btn:hover img {
        box-shadow: 1px 2px 8px 8px rgba(255, 255, 255, 0.83);
    }


    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .ca-right {
        right: 5%;
    }

    .btn-box {
        top: 85%;
        transform: translateY(-85%);
    }

    .news .black-filter h4 {
        font-size: 1.7rem;
        line-height: 0.9;
    }

    #counter .text {
        line-height: 1.1;
    }

    #counter .counter {
        margin-left: 0.5rem;
    }

    .info .title {
        font-size: 2.5rem;
    }

    .first-slide {
        background-image: url('../images/carousel-1_thumb.jpg');
    }

    .second-slide {
        background-image: url('../images/carousel-2_thumb.jpg');
    }

    .third-slide {
        background-image: url('../images/carousel-3_thumb.jpg');
    }

    .navbar-brand img {
        height: 55px;
        transition: height 0.5s ease-in-out;
    }

    .sticky .navbar-brand img {
        height: 40px;
    }

    .lb-close {
        width: 40px !important;
        height: 40px !important;
    }
}

.ribbon {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}
.ribbon {
  --f: .5em; /* control the folded part */

  position: absolute;
  top: 0;
  right: 0;
  line-height: 1.8;
  padding-inline: 1lh;
  padding-bottom: var(--f);
  border-image: conic-gradient(#0008 0 0) 51%/var(--f);
  clip-path: polygon(
    100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
  transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
  transform-origin: 0% 100%;
  background-color: #2699cc; /* the main color  */
}




