/* --- Default Reset --- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}

/* --- Global (assets/global.css) --- */

*{
    box-sizing: border-box;
}
html{
    overflow-x: hidden;
}
body{
    max-width: 100vw;
    overflow-x: hidden;
}

.logo{
    width: 70px;
    height: 70px;
    background-color: var(--bg);
}


/* --- Palette (NoirRed) --- */
:root {
    /*BG*/
    --bg: #33000f;
    --innerBg: #090118;
    --innerBlackBg: #080003;
    --innerBlackLighterBg: #410000;

    /*ACCENT*/
    --accent: #75062b;
    --accentHover: #f82452;
    
    /*TEXT*/
    --textMain: #ffd8f5;
    --textP: #efd8ff;
    --textPLighter: #fcdff8;
    --textBtn: #efd8ff;
}

/* --- Style (CLASSIC.css) --- */
:root{
    --brad: 16px;
    --sectionPadding: 3rem;
}

body{
    font-family: 'Poppins', sans-serif;
    color: var(--textMain)
}

h1{
    font-size: 64px;
    font-weight: 700;
}

h2{
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 1.8rem;
    line-height: 110%;
}

h3{
    font-size: 32px;
    line-height: 110%;
}

span, b{
    font-size: 30px;
}

a, p{
    font-size: 20px;
}

p{
    margin-bottom: 2rem;
}

body{
    background: var(--bg);
    line-height: 150%;
}

.wrapper, section:not(.noWrap){
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-bottom: 6rem;
}

.mainBtn{
    align-self: center;
    justify-self: center;
    margin: 1rem 0;
    padding: 1.4rem 1.5rem;
    background: var(--accent);
    border-radius: var(--brad);
    transition: all 150ms cubic-bezier(0.47, 0, 0.745, 0.715);
    white-space: nowrap;
    min-width: fit-content;
}

/* .mainBtn:hover{
    transform: scale(1.04);
    cursor: pointer;
} */

a{
    color: unset;
    text-decoration: none;
}

@media(max-width: 768px){
    .wrapper, section:not(.noWrap){
        max-width: 95%;
    }

    .mainBtn{
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 768px){

:root{
    --sectionPadding: 1.5rem;
}

h1{
    font-size: 38px;
    font-weight: 700;
}

h2{
    font-size: 34px;
    font-weight: 500;
    text-align: center;
}

h3{
    font-size: 28px;
    text-align: center;
}

span, b{
    font-size: 22px;
}

p{
    font-size: 18px;
    text-align: center;
}
}

.logo{
    transition: all;
    transition: all .4s cubic-bezier(.075, .82, .165, 1);
}
.logo:hover{
    scale: 1.04;
}

.mainRuby, .box-shadow{
    position: absolute;
    height: 100%;
    width: 200%;
    transform: translateX(-25%);
    z-index: -2;
    left: 0;
    bottom: 0;
    /* filter: blur(2px) */
}

.box-shadow{
    z-index: -1;
    box-shadow: 0px 0px 49px 30px var(--bg) inset;
}
/* --- style.css --- */
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    /* justify-content: space-between; */
    /* padding: 48px 0; */
    margin-bottom: 0!important;
}

header.wrapper{
    padding: 0 48px;
}

/*test*/
header>nav>a {
    display: none!important
}

header>nav>ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 39px
}

.header__nav{
    margin-left: auto;
}

header>nav>ul a {
    width: max-content;
    transition: all .4s cubic-bezier(.075, .82, .165, 1)
}

header>nav>ul a::after {
    content: none
}

header>nav>ul a:hover {
    color: var(--accent)!important
}

header>a {
    max-width: 186px;
    z-index: 80
}

header img, footer img{
    border-radius: 0;
}

@media (max-width: 1024px) {
    header {
        padding:16px 0
    }

    header>a:last-child {
        display: none
    }

    header>nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(21,21,22,.9);
        backdrop-filter: blur(8px);
        z-index: 50;
        transform: translateX(-120%) translateY(0);
        transition: all .4s cubic-bezier(.075, .82, .165, 1);
        display: flex;
        flex-direction: column
    }

    header>nav>ul {
        margin-top: 124px;
        margin-left: 24px;
        flex-direction: column;
        align-items: start;
        gap: 40px;
        height: 80vh;
        overflow-y: auto;
        overflow-x: hidden
    }

    header>nav>ul a {
        color: var(--textMain)!important;
        /* font-size: 16px!important */
    }

    header>nav>a {
        display: inline-block!important;
        margin-top: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 32px;
        z-index: 90;
        max-width: 90%;
        color: var(--textBtn)!important
    }

    .navOpen {
        transform: translateX(0%) translateY(0)
    }
}

.mobile__menu {
    display: none;
    z-index: 61
}

.burger {
    width: 60px;
    height: 60px;
    transition-duration: .5s;
    position: relative;
    scale: 0.4
}

.open>.icon-left {
    background: 0 0
}

.open>.icon-left::before {
    transform: rotateZ(45deg) scaleX(1.4) translate(4px,4px)
}

.open>.icon-left::after {
    transform: rotateZ(-45deg) scaleX(1.4) translate(4px,-4px)
}

.open>.icon-right {
    background: 0 0
}

.open>.icon-right::before {
    transform: rotateZ(-45deg) scaleX(1.4) translate(-4px,4px)
}

.open>.icon-right::after {
    transform: rotateZ(45deg) scaleX(1.4) translate(-4px,-4px)
}

.icon-left {
    transition-duration: .5s;
    position: absolute;
    height: 8px;
    width: 50%;
    top: 30px;
    background-color: #fff
}

.icon-left::before {
    transition-duration: .5s;
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: #fff;
    content: "";
    top: -20px
}

.icon-left::after {
    transition-duration: .5s;
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: #fff;
    content: "";
    top: 20px
}

.icon-left:hover {
    cursor: pointer
}

.icon-right {
    transition-duration: .5s;
    position: absolute;
    height: 8px;
    width: 50%;
    top: 30px;
    background-color: #fff;
    left: 30px
}

.icon-right::before {
    transition-duration: .5s;
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: #fff;
    content: "";
    top: -20px
}

.icon-right::after {
    transition-duration: .5s;
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: #fff;
    content: "";
    top: 20px
}

@media (max-width: 1024px) {
    .mobile__menu {
        display:block;
        justify-self: flex-end;
        margin-left: auto;
    }

    header .mainBtn{
        display: none;
    }
}

.fadeInDown,header {
    animation-delay: .5s!important
}

/* --- style.css --- */

.hero.noWrap{
    position: relative;
    overflow: hidden;
    
}

.box-shadow_main{
    box-shadow: 0px 0px 49px 30px var(--bg) inset;
}

.hero .mainBg{
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
    left: 0;
    bottom: 0;
    overflow: hidden;
} 

.hero .lasthero{
    padding: 0!important;
}

.hero div:not(.mainBg){
    display: grid;
    gap: 8px;
    padding: 9rem 0;
    margin-bottom: 0;
    align-self: center;
    margin:0 auto;
    max-width: 70%;
}

.hero div div:first-child {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    max-width: 50%;
    align-items: center;
    text-align: center;
}

.heading::before{
        content: '';
        background-color: var(--innerBg);
        height: 100%;
        position: absolute;
        width: 130%;
        left: -15%;
        top: 0;
        z-index: -1;
        border-radius: var(--brad);
        filter: blur(5rem);
    }

.hero div div:nth-child(2){
    display: flex;
    height: 100%;
    width: 100%;
    padding: 0;
    gap: 0;
}

.sub_h1{
    margin: 1rem;
    max-width: 80%;
}

h1{
    line-height: 100%;
}



/* .hero_img img{
    background: red;
} */

img{
    width:100%;
    height: 100%;
    object-fit: cover;
    justify-self: center;
    align-self: center;
}

.heading .mainBtn{
    align-self: flex-start;
    width: 70%;
    text-align: center;
    align-self: center;
}

@media(max-width: 768px){
.hero div{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 1.5rem 0.2rem;

}

.hero div div:first-child{
    max-width: 100%;
}

.hero div:not(.mainBg){
    max-width: 95%;
    padding: 6rem 0;
}

.heading .mainBtn{
    align-self: center;
}

header.wrapper{
    padding: 16px 0 16px;
}

.heading p, .heading h1{
    text-align: center;
}

}



/* --- style.css --- */
.toc{
    /* background-color: var(--innerBg); */
    /* padding: var(--sectionPadding); */
    border-radius: var(--brad);
    margin-top: 75px!important;
}

.toc__container>ul li {
    min-width: max-content;
    max-width: max-content
}

.toc__container>ul a {
    padding-left: 24px;
    padding-right: 24px;
    color: var(--textMain);
    transition: all .4s cubic-bezier(.075, .82, .165, 1);
    &&:hover{
        color: var(--accent)!important
    }
}

/* Custom scrollbar for TOC container */
.toc__container {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.toc__container::-webkit-scrollbar {
    height: 8px;
}

.toc__container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

/* Swiper scrollbar styles */
.toc__container .swiper-scrollbar,
.toc .toc__container .swiper-scrollbar,
section.toc .toc__container .swiper-scrollbar {
    position: relative !important;
    background: transparent !important;
    border-radius: 6px !important;
    height: 6px !important;
    margin-top: 10px !important;
    min-width: 100% !important;
    opacity: 1 !important;
    transition: opacity 0.3s ease !important;
    left: 0;
    right: 0;
}

.toc__container .swiper-scrollbar-drag {
    background-color: var(--accent);
    border-radius: 6px;
    border: 1px solid var(--accent);
    height: 100%;
    position: relative;
    cursor: default;
}

/* Hide scrollbar after first interaction */
.toc__container.swiper-scrollbar-hidden .swiper-scrollbar {
    opacity: 0;
}

/* Show scrollbar on hover */
.toc__container:hover .swiper-scrollbar {
    opacity: 1;
}

@media (max-width: 768px) {
    .toc h2 {
        /* font-size:24px!important */
    }
}

/* --- style.css --- */
.sullazienda {
    border-radius: var(--brad);
    padding: var(--sectionPadding);
    background: var(--innerBg);
    /* background: linear-gradient(135deg, var(--innerBg) 30%, var(--innerBlackLighterBg) 66%, var(--innerBlackBg) 88%,var(--innerBlackBg) 100%); */
    position: relative;
    border: 8px dashed var(--accent);
    &&::before{
        position: absolute;
        height: 0%;
        width: 200%;
        left: -25%;
        top: 50%;
        content: '';
        border-top: 8px dashed var(--accent);
        z-index: -1;
    }
}



.gridsullazienda{
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-rows: 400px;
    justify-content: space-between;
    border-radius: var(--brad);
    overflow: hidden;
}

.gridsullazienda img{
    
}

.gridsullazienda div:nth-child(2){
    display: flex;
    flex-direction: column;
    max-height: fit-content;
    align-self: center;
    padding: var(--sectionPadding);
    text-align: center;
}

/* .gridsullazienda div:first-child, .gridsullazienda div:last-child{
    position: relative;
    border-radius: var(--brad);
        &&::after{
        position: absolute;
        content: '';
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
} */


.sullazienda > div {
    flex: 1 1 50%;
}
.sullazienda > div:first-child {
    flex: 1 1 50%;
}
/* .sullazienda > div:last-child {
    aspect-ratio: 2/1;
} */
.sullazienda > div:last-child img {
    object-position: 50% 12%;
}
.sullaziendaRev {
    flex-direction: row-reverse;
}
.sullaziendaRev > div:first-child > div {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.sullazienda_swiper {
    border-radius: var(--brad);
    overflow: hidden;
    /* max-height: 640px; */
}
.sullazienda_swiper .swiper-slide {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 100%;
}

.sullazienda_swiper .swiper-slide > * {
    flex: 1 1 50%;
}

@media (max-width: 1100px) {
    .refferal_img {
        display: none;
    }
}

@media (max-width: 768px) {
    .sullazienda {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 0;
        gap: 14px;
        max-width: 76%;
    }
    .sullazienda > div {
        width: 100%;
        flex: 1 1 100% !important;
        padding: var(--sectionPadding);
        max-width: fit-content;
    }
    .sullazienda > div:first-child {
        margin-top: 24px;
    }
    .sullazienda > div:first-child > div {
        flex-direction: column;
    }
    .sullazienda > div:first-child > a {
        max-width: 100%;
    }

    .sullazienda > div:last-child img{
        display: none;
    }

    .gridsullazienda{
        display: block;
    }

    .gridsullazienda div:nth-child(2){
        padding: 0;
        &&p{
            margin-bottom: 0;
        }
    }
}

/* --- style.css --- */
 /* Models Section */
            #caratteristiche{
                position: relative;
                padding: var(--sectionPadding);
                &&::before{
                    content: '';
                    background-color: var(--innerBg) ;
                    height: 100%;
                    position: absolute;
                    width: 100%;
                    left: 0;
                    top: 0;
                    z-index: -1;
                    border-radius: var(--brad);
                    filter: blur(5rem);
                    transform: translateY(-10%);
                };
            }
            .models__cards_container {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 16px;
            }
            .models__cards_container > div {
                
                border-radius: var(--brad);
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            .models__cards_container .img-placeholder {
                background-color: #fc141442;
                color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                backdrop-filter: blur(10px); 
                border-radius: var(--brad) var(--brad) 0 0;
                font-family: 'Poppins', sans-serif;
                min-height: 150px;
            }

            .img-placeholder img{
                max-height: 80px;
                max-width: 80px;
            }
             .models__cards_container .img-placeholder.dark {
                background-color: var(--innerBlackLighterBg);
             }
            .models__cards_container > div > div:last-child {
                padding: 30px;
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                background-color: var(--innerBg);
            }
            .models__cards_container h3 { text-align: center; margin-bottom: 15px; }
            .models__cards_container p { text-align: center; margin-bottom: 20px; }
            .models__cards_container .btn { margin-top: auto; max-width: 180px; }
            .models__cards_container .mainBtn{
                margin: 0;
            }

            @media (max-width: 768px){
                #caratteristiche{
                    padding: 1rem 0;
                }
            }

/* --- style.css --- */
    /* ===== Experts (law-firm styling) ===== */
/* ===== Experts (law-firm styling) ===== */
.expertreview {
  background: var(--bg);            /* как и другие секции */
  padding: 80px 0;
}
.expertreview h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.expertreview .highlight{
  color: var(--accent, #e0b15a);
}

/* сетка */
.expertReview{
  display:grid;
  grid-template-columns:1fr;
  gap: 16px;
}

/* ссылки внутри цитат — золотой акцент */
.expertReview a{
  color: var(--accent, #e0b15a);
  text-decoration: none;
  border-bottom: 1px solid rgba(224,177,90,.35);
}
.expertReview a:hover{
  border-color: var(--accent, #e0b15a);
}

/* левый штрих у абзаца — тонкий золотой градиент */
.expertReview p{
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--accentHover), var(--innerBg)) 1;
  padding-left: 18px;
  margin: 0 0 1rem;
  font-style: italic;
}

/* автор */
.expertReview span{
  font-style: italic;
  opacity: .7;
  display:block;
  text-align:right;
  font-size: 18px;
}

/* карточки */
.review-card{
  background: var(--innerBg);
  border: 1px solid var(--acccent);
  border-radius: var(--radius, 18px);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow, 0 10px 24px rgba(0,0,0,.08));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  border-color: var(--accent, #e0b15a);
}

/* 2 колонки на десктопе */
@media (min-width: 900px){
  .expertReview{ grid-template-columns: 1fr 1fr; }
}


/* --- style.css --- */
.section-flex {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
    justify-content: space-between;
    flex-wrap: wrap
}

.section-flex.stretch {
    align-items: stretch
}

.section-flex>* {
    flex: 1 1 40%
}

.section-flex {
    gap: 70px
}

.section-flex div img {
    display: block;
    border-radius: var(--brad);
    max-height: 400px;
    object-fit: none;
    object-position: top;
    aspect-ratio: 1/1;
    border: 8px var(--accent) solid;
}

.section-flex div:nth-child(2) img{
        min-width: 100%;
    }

.section-flex.row-reverse {
    flex-direction: row-reverse
}

.step {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    gap: 24px
}

.step_flex {
    display: flex;
    align-items: center;
    gap: 12px
}

.step div:first-child{
    position: relative;
}

.step-number {
    background: var(--accent);
    color: var(--textMain);
    width: 52px;
    height: 52px;
    border-radius: var(--brad) var(--brad) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: absolute;
    left: calc(50% - 26px);
    bottom: 0;
    /* border: 6px var(--bg) solid; */
    /* box-shadow: 0px 0px 0px 16px var(--bg); */
}

.how-repair-block .step-number {
    background: var(--acccent);
    color: var(--textMain)!important
}

.step-content h3 {
    margin-bottom: 12px!important;
    font-weight: 700;
}

.step-content p {
    margin: 0
}

.how-repair .section-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    flex-wrap: wrap
}

.how-repair-block .section-flex.reverse {
    flex-direction: column-reverse
}

.how-repair__steps {
    display: grid;
    min-width: 100%;
    /* grid-template-rows: 0.3fr 0.7fr; */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}



.how-repair__steps-container a {
    max-width: 240px
}

.how-repair-block h2+p {
    margin-bottom: 32px
}

.how-repair-block img {
    border-radius: var(--brad)
}

.step .mainBtn{
    margin: 0;
}

@media (min-width: 768px) {

    .how-repair-block .how-repair__steps-container {
        align-items: start
    }

    .how-repair__steps-container {
        align-items: center
    }

    
}

@media (max-width: 1200px) {
    .how-repair {
        padding:60px 0
    }

    .step {
        flex-direction: column;
        align-items: start
    }

    .how-repair .section-flex {
        align-items: start
    }

    .how-repair .section-flex_second {
        flex-direction: column-reverse
    }

    .how-repair .section-flex>* {
        flex: 0 1 100%
    }

    .how-repair .sectionImg .desktop {
        display: none
    }

    .how-repair .sectionImg .mobile {
        display: block
    }

    .how-repair__steps .step {
        flex: 1 1 100%
    }

    .how-repair-block .how-repair__steps .step {
        flex: 1 1 100%!important
    }
}

@media (min-width: 1200px) {
    .how-repair .sectionImg .desktop {
        display:block
    }

    .how-repair .sectionImg .mobile {
        display: none
    }

    .how-repair__steps .step {
        display: grid;
        grid-template-rows: auto 3fr auto;
        justify-items: center;
        text-align: center;
        grid-template-columns: 1fr;
        grid-row: 2;

    }

    .how-repair__steps .step:nth-child(2){
        grid-row: 1/3;
        position: relative;
        &&::before{
            position: absolute;
            height: 0;
            width: 400%;
            content: '';
            left: -150%;
            top: 30%;
            border-top: 8px var(--accent) dashed;
            z-index: -1;
        }
    }

    .how-repair__steps-container {
        align-items: start
    }

    .section-flex .mainBtn{
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .section-flex>* {
        flex:1 1 100%
    }

    .section-flex div img {
        aspect-ratio: 4/3;
        width: 100%;
        object-position: top;
        height: auto;
        display: block;
        margin: 0 auto
    }

    .step div:first-child{
        margin: 0 auto;
    }

    .section-flex.column-reverse {
        flex-direction: column-reverse
    }

    .section-flex {
        gap: 35px;
        align-items: start
    }

    .step-number{
        align-self: center;
    }
    .step .mainBtn{
        display: none;
    }

    .how-repair__steps{
        display: flex;
        flex-direction: column;
    }
}


/* --- style.css --- */
#piani-tariffari{
    position: relative;
    padding: var(--sectionPadding);
    &&::before{
        content: '';
        background-color: var(--innerBg) ;
        height: 100%;
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        z-index: -1;
        border-radius: var(--brad);
        filter: blur(5rem);
        transform: translateY(-10%);
    }
}

.pricing__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 0.1fr 1fr 0.1fr;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    
}

.pricing__container .btnContainer{
    margin: 1rem 0;
    max-width: 60%;
    align-self: center;
    position: relative;
    z-index: 2;
}

.pricing__container .mainBtn{
    align-self: center;
    display: flex;
}

.pricing__container .btnContainer a{
     z-index: 2;
}

.pricing__container .btnContainer::before{
    content: '';
    left: -200%;
    top: 25%;
    width: 500%;
    height: 50%;
    position: absolute;
    background-color: var(--accent);
    transition: all .4s cubic-bezier(.075, .82, .165, 1);
    z-index: 1;
    pointer-events: none;
    border: -10px var(--innerBg) solid;
}

.pricing__container .btnContainer:hover::before{
    transform: scaleX(0.205) scaleY(2.03) ;    
    background-color: var(--accentHover)!important;
    /* opacity: 0; */
    filter: blur(-5px);
    margin-top: 5rem;
}

.pricing__container .pricing__card:nth-child(2) .btnContainer::before{
    background-color: var(--innerBg);
}

.pricing__container .pricing__card:nth-child(2){
    grid-row: 1/4;
    grid-column: 2;
    background: var(--accent);
}

/* .pricing__container .pricing__card:nth-child(1){
   border-radius: var(--brad) var(--brad) var(--brad) 50%;
} */

/* .pricing__container .pricing__card:nth-child(3){
   border-radius: var(--brad) var(--brad) 50% var(--brad) ;
} */

.pricing__container .pricing__card:not(:nth-child(2)){
    grid-row: 2/3;
}

.pricing__container .pricing__card:nth-child(2) .btnContainer {
    background: var(--innerBg);
}

.pricing__card a{
    color: white!important;
}

.pricing__card {
    display: flex;
    flex-direction: column;
    padding: 44px 42px;
    background-color: var(--innerBg);
    border-radius: var(--brad);
    text-align: center;
    height: 80%;
    padding-bottom: 80px;
    overflow: hidden;
    box-sizing: content-box;
}

.pricing__card p, .pricing__card span{
    margin-bottom: 0;
    justify-self: center;
    align-self: center;
    text-align: center;
}


.pricing__card h3{
    align-self: center;
    text-align: center;
}

.pricing__card_cost{
    align-self: center;
}

.pricing__card>p:first-child {
    /* font-size: 32px; */
    color: var(--accent)
}

.pricing__card_cost {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px
}

.pricing__card_cost span:first-child {
    font-size: 23px;
    line-height: 100%;
    font-weight: 700;
}

.pricing__card_caratteristiche_title {
    margin-bottom: 14px!important
}

.pricing__card>a {
   margin: 24px 0;
}

.pricing__card:nth-child(3) {
    border-radius: 0 var(--brad) var(--brad) 0;
}

.pricing__card:nth-child(1){
    border-radius: var(--brad) 0 0 var(--brad);
}

.pricing__card ul li:not(:last-child) {
    margin-bottom: 20px
}

.pricing__card_caratteristiche li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    background: url(/assets/checkGreen.svg);
    background-repeat: no-repeat;
    object-fit: contain;
    background-position: left
}

.pricing__card_caratteristiche li {
    /* margin-left: 34px */
    list-style: none;
    max-width: fit-content;
    justify-self: center;
    max-width: 88%;
}

.pricing__container .pricing__card:nth-child(2) .mainBtn{
    background-color: var(--innerBg);
}

@media (max-width: 768px) {
    .pricing__card {
        flex:1 1 50%;
        /* width: 100% */
    }

    .pricing__card:nth-child(odd) {
        min-height: max-content
    }

    .pricing__container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .pricing__container .pricing__card:not(:nth-child(2)){
        border-radius: var(--brad);
    }

    .pricing__card_cost p:first-child {
        font-size: 28px
    }

    .pricing__card_caratteristiche li{
        max-width: 72%;
    }

    .pricing__card{
        text-align: center;
    }

    .pricing__card_cost{
        justify-content: center;
    }

    .pricing__card {
    padding: 30px 16px;
    }

    #piani-tariffari{
        padding: 1rem 0;
    }

    .swiperControls{
        display: none;
    }

    .swiperControls .arrow{
        display: none!important;
    }
}

/* --- style.css --- */
#gallery .wrapper{
    margin-bottom: 0;
}

.gallery {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 98%;
    border-radius: var(--bradMed);
    overflow: hidden;
}
.gallery::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(100deg,var(--bg) 0%, rgba(1, 14, 1, 0) 20%, rgba(1, 14, 1, 0) 80%, var(--bg) 100%);
}
.gallery > .swiper-wrapper {
    /* aspect-ratio: 8/2; */
    /* max-height: 419px; */
    max-height: unset !important;
    align-items: stretch !important;
}

.gallery .swiper-slide {
    height: unset !important;
    border-radius: var(--bradMed);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.gallery .swiper-slide img {
    aspect-ratio: 1/1;
    max-height: 400px;
}
.resultControls {
    width: 85%;
}
.resultControls > div {
    background-color: transparent !important;
}
.resultControls > div img {
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.5));
}
@media (max-width: 1024px) {
    .gallery::after {
            background: linear-gradient(94deg, var(--bg), rgba(1, 14, 1, 0) 20%, rgba(1, 14, 1, 0) 80%, var(--bg) 100%);
    }
}
@media (max-width: 768px) {
    .resultControls {
        display: flex;
        width: 117%;
    }
    .gallery .swiper-slide {
        width: 74%;
    }
    .resultControls {
        display: none;
    }
    /* .gallery::after {
        background: linear-gradient(
            90deg,
            rgba(246, 246, 252, 0.741) 0%,
            rgba(246, 246, 252, 0.741) 8%,
            rgba(255, 255, 255, 0) 12%,
            rgba(255, 255, 255, 0) 87%,
            rgba(246, 246, 252, 0.741) 88%,
            rgba(246, 246, 252, 0.741) 100%
        );
    } */
}

/* --- style.css --- */
#recensioni{
    position: relative;
}

#recensioni h2 {
  text-align: center;
}
.recensioni_item {
  background-color: var(--innerBlackBg);
  padding: 24px;
  border-radius: 24px;
  color: var(--textP);
  cursor: grab;
}
.namerecensioniWrapper{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  p{
    font-style: italic;
    margin: 0;
    white-space: nowrap;
  }
}

.swiperControls{
    position: absolute;
    height: 26%;
    width: 114%;
    aspect-ratio: 1 / 1;
    left: -7%;
    top: 50%;
    display: flex;
    justify-content: space-between;
}

.swiperControls .arrow{
    background-color: white;
    height: 60%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--innerBlackBg);
    display: flex;
    border: 4px var(--accent) solid;
    transition: all .4s cubic-bezier(.075, .82, .165, 1)
}

.swiperControls .arrow:hover{
    border: 4px var(--accentHover) solid;
    cursor: pointer;
    scale: 1.04;
}

.swiperControls .arrow:active{
    box-shadow: 0px 0px 35px 22px var(--accentHover);
    cursor: pointer;
    scale: 0.96;
}


.triangle-left{
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 20px solid var(--accent);
    border-bottom: 10px solid rgb(255 255 255 / 0%);
    align-self: center;
    justify-self: center;
    margin: 50% 55% 50% 25%;
    display: flex;
    transform: scaleX(0.8);
}

.triangle-right{
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-left: 20px solid var(--accent);
    border-bottom: 10px solid rgb(255 255 255 / 0%);
    align-self: center;
    justify-self: center;
    margin: 50% 30% 50% 36%;
    display: flex;
    transform: scaleX(0.8);
}

.wrapNameImage{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 40px;
  width: 40px;
  justify-content: flex-start;
  .avatarReview{
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
  }

}
.reviewer_item-name{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.4rem;
  /* width: 90%; */
}
.recensioni_item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.recensioni_item-body {
  font-size: 16px;
}
.recensioni_item h4 {
  margin-bottom: 4px;
}
#recensioni .swiper-wrapper {
  max-width: 360px;
}
#recensioni .swiper-slide {
  height: unset;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reviewer_item-stars {
  display: flex;
  max-width: 50px;
  gap: 0px;
}
.reviewer_item-stars p {
  font-size: 24px;
  margin-bottom: 0;
}
.rev__card_rating_active {
  color: #ff0062;
}

@media(max-width: 768px){
  #recensioni .swiper-wrapper {
  max-width: unset;
}
}

/* --- style.css --- */
.offerta-speciale {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-radius: var(--brad);
    gap: 48px;
    padding: var(--sectionPadding);
    background: var(--innerBg);
}

.offerta-speciale > div {
    flex: 1 1 50%;
}
.offerta-speciale > div:first-child {
    flex: 1 1 50%;
}
.offerta-speciale > div:last-child {
    aspect-ratio: 2/1;
}
.offerta-speciale > div:last-child img {
    /* object-position: 50% 20%; */
}
.offerta-specialeRev {
    flex-direction: row-reverse;
}
.offerta-specialeRev > div:first-child > div {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.offerta-speciale_swiper {
    border-radius: var(--brad);
    overflow: hidden;
    /* max-height: 640px; */
}
.offerta-speciale_swiper .swiper-slide {
    display: flex;
    flex-direction: row;
    gap: 6px;
    max-width: 100%;
}

.offerta-speciale_swiper .swiper-slide > * {
    flex: 1 1 50%;
}

@media (max-width: 1100px) {
    .refferal_img {
        display: none;
    }
}

@media (max-width: 768px) {
    .offerta-speciale {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 0;
        gap: 14px;
        max-width: 76%;
    }
    .offerta-speciale > div {
        width: 100%;
        flex: 1 1 100% !important;
        padding: var(--sectionPadding);
        max-width: fit-content;
    }
    .offerta-speciale > div:first-child {
        margin-top: 24px;
    }
    .offerta-speciale > div:first-child > div {
        flex-direction: column;
    }
    .offerta-speciale > div:first-child > a {
        max-width: 100%;
    }
}

/* --- style.css --- */
.faq>div {
    border-radius: var(--brad)
}

#faq{
    background-color: var(--innerBg);
    border-radius: var(--brad);
    padding: var(--sectionPadding);
    margin-top: 6rem;
}

.accord__container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accord__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 32px 64px;
    background-color: var(--innerBlackLighterBg);
    border-radius: var(--brad);
}

.accord__item h3,.accord__item p {
    margin-bottom: 0;
}

.accord__item>div:first-child>p {
    font-weight: 400;
    color: var(--mainText)!important;
    font-size: 24px!important;
    margin-bottom: 0;
    padding-left: 2px;
}

.accord__item>div:first-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center
}

.accord__item>div:last-child {
    max-height: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.075, .82, .165, 1)
}

.accord__item>div:last-child p {
    color: #aaaab4!important;
    text-align: left;
}

/* .accord__item:first-child{
    border-radius: var(--brad) var(--brad) 0 0;
}

.accord__item:last-child{
    border-radius: 0 0 var(--brad) var(--brad);
} */
.show {
    visibility: visible!important
}

.accord__item div + div {
    transition: max-height 0.3s ease;
    overflow: hidden;
    /* padding: 20px; padding будет учтен в scrollHeight */
    box-sizing: border-box; /* важно! */
}

.accord__item div + div p {
    transition: margin-top 0.3s ease;
    visibility: hidden;
    margin: 0;
}

.accord__item div + div.show p {
    visibility: visible;
    opacity: 1;
    padding: 0 1rem;
}

div.show{
    margin-top: 28px;
}

@media (max-width: 768px){
    .accord__item{
        padding: 32px 16px;
    }

    #faq h3{
        text-align: left;
    }
}

/* --- style.css --- */
footer {
    background-color: var(--innerBlackBg);
    position: relative;
    margin-top: 40px;
}

.footer__top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 36px;
    margin-bottom: 29px
}

.footer__top>div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px
}

.footer__top>div>ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.footer__top>nav{
    width: 39%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.footer__top>div>ul a {
    display: inline-block;
    width: 50px;
    height: 50px;
    /* background-color: var(--innerBg); */
    /* border-radius: 100px; */
    display: flex;
    align-items: center;
    justify-content: center
}

.footer__top>div>ul img {
    height: 70%;
    object-fit: contain;
}

.footer__top>nav ul {
    margin-left: auto;
    max-width: 80%;
    display: flex;
    flex-direction: row;
    align-items: left;
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: left;
    flex-direction: column;
}

.footer__top>nav li a {
    width: max-content;
    text-decoration: none;
    transition: transform 150ms cubic-bezier(0.47, 0, 0.745, 0.715);
}


.footer__top>nav li a:hover{
    color: var(--accentHover);
    scale: 1.04;
}

.footer__bottom {
    padding: 16px 0;
    text-align: center;
    background-color: var(--innerBlackBg);
    border-top: 1px var(--innerBg) solid;
}

.footer__bottom p {
    justify-self: center;
    line-height: 150%;
}

#partner{
    padding: var(--sectionPadding);
    background-color: var(--innerBg);
    border-radius: var(--brad);
}

.partnerContainer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 64px;
}

.partnerLogo{
    display: block;
    height: min(150px, 12rem);
    width: min(150px, 12rem);
    padding: 1rem;
    border-radius: 50%;
    background-color: var(--textMain, white);
    border: var(--accent, blue) 4px solid;
    transition: all .4s cubic-bezier(.075, .82, .165, 1)
}

.partnerLogo:hover, .partnerLogo:active{
    scale: 1.04;
    box-shadow: inset 0px 0px 100px 0px var(--accent, blue);
    /* background: var(--accent); */
}

.partnerLogo img{
    height: 100%;
    padding: 0.8rem;
}

@media (max-width: 768px){
    .partnerContainer{
    flex-direction: column;
    gap: 20px;
}
}


@media (max-width: 768px) {
    .footer__top {
        flex-direction:column-reverse;
        align-items: start;
        gap: 24px
    }

    /* .footer__top>div:first-child>a {
        max-width: 153px
    } */

    /* .footer__top>div>ul {
        display: none
    } */

    @media (max-width: 768px) {
    .footer__top>nav ul {
        margin-left: 0;
        padding-left: 0;
        max-width: 80%;
        align-items: center;
        gap: 24px;
        row-gap: 12px;
        justify-content: center;
        text-align: center;
        list-style: none;
        min-width: fit-content;
        justify-self: center;
    }
}

    .footer__top>nav ul:not(:last-child){
        margin-bottom: 12px;
    }

    .footer__top>nav{
        width: min-content;
        grid-template-columns: 1fr;
        align-self: center;
        white-space: nowrap;
    }

    .footer__top>div>ul a{
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .footer__top>div:first-child {
        flex-direction: column;
        align-self: center;
    }

    .footer__bottom{
        text-align: center;
    }

    .footer__top>div>ul{
        padding: 0;
    }
}

.logo, .footer__top div:first-child a{
    transition: all .4s cubic-bezier(.075, .82, .165, 1);
    border-radius: 50%;
    padding: 8px;
    background-color: var(--accent);
}

.mainBtn:hover, .logo:hover, .footer__top div:first-child a:hover{
    scale: 1.05;
    cursor: pointer;
    background: var(--accentHover);
    box-shadow: 0px 0px 12px 5px var(--accentHover);
}

.biggerPadding{

}