:root {
    /*viewport*/
    --large: 1024;
    --medium: 640;
    --small: 600;
    /*colors*/
    --white: #FFFFFF;
    --light: #CFDD9B;
    --gray: #F2F2F2;
    --dark-gray: #828282;
    --dark: #89D02F;
    --black: #5C5C5C;
    --invalid: #ff3300;
    --shadow: 0px 0px 24px rgba(0, 0, 0, 0.08);
    /*font*/
    --text-font-size: 16px;

    /*sizes*/
    --gap: 24px;
    --block-gap: 200px;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;

}

img {
    vertical-align: middle;
}

.anchor {
    display: block;
    position: relative;
    top: -96px;
    visibility: hidden;
}

body {
    color: var(--black);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: var(--text-font-size);
    line-height: 1.5;
    text-rendering: optimizeLegibility;

}

section {
    background-color: white;
}

a,
a:hover,
a:visited {
    color: inherit;
}

hr {
    content: "";
    display: block;
    overflow: hidden;
    height: 4px;
    padding: 0;
    width: 100%;
    border-bottom: dotted 0px var(--dark-gray);
    border-image-source: url('../imgs/horizontal-dots.svg');
    border-image-width: 2px;
    border-image-repeat: repeat;
    border-image-slice: 2;
}

.top-level-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.page-block {
    margin-bottom: var(--block-gap);
    padding-left: 20px;
    padding-right: 20px;
}

.supersmall {
    font-size: 12px;
    line-height: var(--gap);
    color: var(--dark);
    font-weight: bold;
}

.header {
    position: sticky;
    top: 0;
    height: 96px;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 90px;
    z-index: 900;
    box-shadow: var(--shadow);
}

.header .buttons {
    margin: 0 10% 0 auto;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: var(--gap);
    justify-content: space-between;
}

.navmenu {
    position: absolute;
    z-index: 901;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    display: none;
    opacity: 0;
}

.navmenu-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 90px;
    position: relative;
    z-index: 2;
}

.navmenu-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    list-style: none;
    z-index: 1;
}

.navmenu-links li {
    margin: 0 0 40px;
}

.navmenu-links li:last-of-type {
    margin: 80px 0
}

.navmenu-links a {
    color: var(--white);
    font-size: 48px;
    line-height: 56px;
    text-decoration: none;
}

.hamburger {
    background-color: transparent;
}

.hamburger>* {
    pointer-events: none;
}

.footer {
    background-color: var(--gray);
    width: 100%;
}

.footer-content {
    height: 272px;
    display: grid;    
    grid-template-columns: 1fr 2fr 2fr 2fr;
    grid-template-areas:"logo address social powered";
    padding: 48px var(--gap);
    column-gap: 32px;
    row-gap: 32px;
}
.footer-logo{
    grid-area: logo;
}
.footer-address{
    grid-area: address;
}
.footer-social{
    grid-area: social;
}
.footer-powered{
    grid-area: powered;
}
.footer-info {
    margin: 0 auto;
}

.footer-info h2 {
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
}

.footer-info p {
    font-size: 16px;
    line-height: 32px;
   
}
.footer-info .icon-links {
    display: inline-block;
}
.footer-info .icon-link {
    display: inline-block;
    margin-right: 32px;
    margin-bottom: 32px;
}
.footer-info .icon-links:last-child .icon-link:last-child {
    margin-right: 0;
}
.footer-powered {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.right-align {
    text-align: right;
}

.center-align {
    text-align: center;
}

.rows-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--gap);
}

.row {
    display: block;
}

.rows-2 .row {
    grid-column: 1/3;
}

.rows-2 .row-half {}

h1,
h2 {
    text-transform: uppercase;
    font-size: 56px;
    font-weight: normal;
    line-height: 72px;
}

.section-title {
    font-weight: 300;
    text-align: center;
    margin-bottom: 32px;
}

.section-subtitle {
    display: block;
    text-align: center;
    margin-bottom: 80px;
}

.cover-bg {
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-form {
    max-width: 840px;
    margin: 0 auto;
}

.contact-form.loading {
    opacity: 0.3;
    pointer-events: none;
    position: relative;
}

.contact-form.loading::after {
    content: '';
    height: 5px;
    top: 0;
    left: 0;
    display: block;
    background-size: cover;
    background-image: linear-gradient(90deg, transparent, var(--dark) 2%, var(--dark) 5%, transparent 7%);
    animation-name: contactloading;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    background-position: top left;
}

@keyframes contactloading {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.bottom-distanced {
    margin-bottom: 40px;
}

.txt-input {
    height: 40px;
    border: 1px solid var(--dark);
    box-sizing: border-box;
    border-radius: 8px;
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: var(--text-font-size);
    line-height: 1.5;
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
}

.txt-input-label {
    display: none;
}

a.button,
.button {
    font-family: 'Roboto';
    display: inline-block;
    text-align: center;
    width: 152px;
    height: 40px;
    background-color: var(--white);
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    padding: 0;
    line-height: 40px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    cursor: pointer;
}

a.button-border,
.button-border {
    border: solid 1px var(--dark);
    color: var(--dark);
}

a.button-border-inverse,
.button-border-inverse {
    background-color: var(--dark);
    border: solid 1px var(--white);
    color: var(--white);
}

.button.form-button {
    color: var(--white);
    background-color: var(--dark);
}

.image-button {
    background-color: transparent;
    border: none;
    width: auto;
    height: auto;
    padding: auto;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
}

input[type=checkbox]:not(old),
input[type=radio]:not(old) {
    width: 0;
    margin: 0;
    padding: 0;
    font-size: 1em;
    opacity: 0;

}

input[type=checkbox]:not(old)+label,
input[type=radio]:not(old)+label {
    position: relative;
    display: inline-block;

    padding-left: calc(1.5 * var(--gap));
    line-height: var(--gap);

}

input[type=checkbox]:not(old)+label:before,
input[type=radio]:not(old)+label:before {
    content: "";
    display: inline-block;
    width: var(--gap);
    height: var(--gap);
    border: 1px solid var(--dark);
    box-sizing: border-box;
    border-radius: 8px;
    color: var(--dark);
    position: absolute;
    left: 0;
    text-align: center;
    font-weight: bold;
}

input[type=checkbox]:checked:not(old)+label:before,
input[type=radio]:checked:not(old)+label:before {
    content: "✓";
}

input[type=checkbox][data-invalid]:not(old)+label:before,
input[type=radio][data-invalid]:not(old)+label:before,
.txt-input[data-invalid] {
    border-color: var(--invalid);
}

.submission-result {
    color: var(--dark);
}

.submission-result[data-invalid] {
    color: var(--invalid);
}

.osservatorio-block {
    padding: 0;
    background-color: var(--dark);
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(auto, 50%) 1fr;
    grid-template-areas: "article img";
}

.side-article {
    grid-area: article;
    min-width: calc(400px + var(--gap));
    max-width: calc(696px + var(--gap));
    padding-left: var(--gap);
    margin: 80px var(--gap) 80px auto;
}

.side-article p {
    margin: 40px 0 80px;
}

.osservatorio-block .cover-bg {
    grid-area: img;
    background-image: url('../imgs/osservatorio.png');
    background-position: right center;

}

a[hidden] {
    display: none;
}

.news-block {
    padding-top: 96px;
    padding-bottom: 40px;
}

.home-news-block {
    background-color: var(--gray);
    padding-bottom: 80px;
}

.news-block-header {
    width: 100%;
    max-width: 1416px;
    margin: 0 auto 80px;
    padding: 0 var(--gap);
}

.news-block-header h1 {
    padding-bottom: var(--gap);
}

.news-block-header h2 {
    padding-bottom: 48px;
}

.page-title {
    font-size: 56px;
    line-height: 72px;
}

.page-subtitle {
    font-size: 24px;
    line-height: 32px;
}

.img-credits {
    height: 24px;
    font-weight: bold;
    font-size: 11px;
    line-height: 24px;
    display: block;
    text-align: right;
    color: var(--dark);
    position: absolute;
    width: 100%;
}

.news-img {
    position: relative;
}

.news-img img {
    background-size: cover;
    background-position: center center;
}

.news-filters {
    display: block;
}

.news-filters>* {
    display: inline-block;
    min-width: 120px;
    padding: 0 12px;
    margin: var(--gap) 0;


}

.news-filters>strong:first-child {
    font-weight: bold;
    color: var(--dark);
    text-align: left;
    text-transform: uppercase;
}

.news-filters>a {
    text-align: center;
    border-left: dotted 1px var(--dark-gray);
    border-image-source: url('../imgs/vertical-dots.svg');
    border-image-width: 2px;
    border-image-repeat: repeat;
    border-image-slice: 2;
    text-decoration: none;
}

.news-filters>a[data-selected] {
    text-decoration: underline;
    font-weight: bold;
}

.tag-advisor {
    padding: var(--gap) 0 0;
}

.news-list {
    width: 100%;
    max-width: 1416px;
    margin: 0 auto 80px;
    display: grid;
    column-gap: calc(var(--gap) + 0.25vw);
    row-gap: 64px;
    grid-template-columns: 1fr 1fr 1fr;

}

.news-list-article {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    width: 100%;
    max-width: 408px;
    margin: 0 auto;
    width: 100%;
    max-width: 408px;
    margin: 0 auto;
}

.news-list-article .news-img {
    margin-bottom: 42px;
}

.news-list-article img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.news-list-article h2,
.news-list-article a {
    display: block;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    line-height: var(--gap);
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    text-decoration: none;
}

.news-list-article h2 {
    min-height: 3rem;
}

.news-list-article h3 {
    font-style: normal;
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
}

.news-list-article p {

    margin-bottom: var(--gap);
}

.top-block {
    height: calc(100vh - 96px);
    max-height: 1080px;
    display: grid;
    grid-template-rows: minmax(400px, 1fr) auto;
}

.slider {
    position: relative;
}

.slides-container {
    position: relative;
    height: 100%;

}

.slide {
    padding-left: 10%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    background-color: white;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 0;
    opacity: 0;
}

.slide-text {

    height: 100%;
    width: 100%;
    /*  margin-left:10%;*/

    max-width: calc(580px + var(--gap));
    padding-left: var(--gap);
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.slide-text h3 {
    color: var(--dark);
    font-size: 24px;
    line-height: 24px;
    text-transform: uppercase;
    margin-bottom: var(--gap);
}

.slide-text h2 {
    display: block;
    font-weight: 300;
    font-size: 72px;
    line-height: 88px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.slide-text h2 strong {
    font-weight: bold;
    color: var(--dark);
}

.slide-img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.slide-img-1 {
    background-image: url('../imgs/slide1_Efficienza.jpg');
}

.slide-img-2 {
    background-image: url('../imgs/slide2_Copertura.jpg');
}

.slide-img-3 {
    background-image: url('../imgs/slide3_Budget.jpg');
}
.slide-img-4 {
    background-image: url('../imgs/slide4_Dealer.jpg');
}
.slide-img-5 {
    background-image: url('../imgs/slide5_Consulenza.jpg');
}
.slide-img .curva {
    height: 100%;
    width: auto;
    max-width: 50%;
}

.slides-progress {
    display: block;
    position: absolute;
    width: 56px;
    bottom: 0;
    left: calc(10% + var(--gap));
    z-index: 6;
}

.slides-controls {
    position: absolute;
    top: 50%;
    right: 90px;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.slides-controls button:first-child {
    margin-bottom: 10px;
}

.numbers {
    height: 296px;
    width: 100%;
    max-width: 1728px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0 auto;
}

.numbers div {

    text-align: center;
    padding: 0 var(--gap);
    margin: 64px 0;
}

.numbers dd {
    display: block;
    font-weight: 300;
    font-size: 72px;
    line-height: 96px;
    color: var(--dark);
    width: 100%;
}

.dashed {
    border-width: 0;
    border-left: dotted 1px var(--dark-gray);
    border-image-source: url('../imgs/vertical-dots.svg');
    border-image-width: 2px;
    border-image-repeat: repeat;
    border-image-slice: 2;
}

.dashed:first-of-type {
    border-width: 0;
    border-left: none;
    border-image:  none;
}

.cards {
    display: grid;
    margin: 72px auto 0;
}

.anigif {
    opacity: 0;
    border-color: var(--white);
    border: none;
}

.gif-preload {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}
.cards-5 {
    max-width: 1280px;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   row-gap: 80px;
}
.cards-4 {
    max-width: 1700px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.cards-3 {
    max-width: 1275px;
    grid-template-columns: 1fr 1fr 1fr;
}

.card {
    text-align: center;
    padding: var(--gap);
}
.card-5{
    width: calc(422px - 48px);
}
.cards-5 .dashed:nth-of-type(4){
    border-width: 0;
    border-left: none;
    border-image:  none;
}
.card-4 {
    min-width: calc(422px - 48px);
    /* width: calc(422px - 48px);  */
}

.card-3 {
    /*  min-width: calc(422px - 48px);
    width: calc(422px - 48px);  */
}

.card-icon {
    height: 80px;
    margin-bottom: 40px;
}

.card img {
    margin: 0 auto;
}

.card-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 300;
    margin-bottom: 16px;

}

.card-title strong {
    color: var(--dark);
    font-weight: bold;
    display: block;
    text-transform: uppercase;
}

.card p {
    margin: 0 auto;
    display: block;
}
.card-5 p,
.card-4 p {
    max-width: 320px;
}

.card-3 p {
    max-width: 264px;
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
}

.rotating-card-container {
    position: relative;
    perspective: 1000px;
    z-index: 0;
    /*pointer-events: none;*/
    height: 230px;
}

.rotating-card-container:hover {

    z-index: 1;
}

.rotating-card .card-icon {
    margin: 0;

}

.card-icon-text {
    font-weight: bold;
    text-transform: uppercase;
    margin-top: var(--gap);
    font-size: var(--gap);
    color: var(--dark);

}

.rotating-card {

    transform-origin: center center;
    perspective-origin: center center;
    transform: rotateY(0) translateZ(1px);
    backface-visibility: hidden;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.rotating-card-back {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    perspective-origin: center center;
    transform: rotateY(180);
    backface-visibility: hidden;
    background-position: center center;
    background-size: contain;
    background-color: var(--dark);
    padding: var(--gap);
    transform-style: preserve-3d;
}

.rotating-card-back p {
    color: var(--white);
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    max-width: 275px;
    transform: translateZ(20px);
    backface-visibility: hidden;
    opacity: 0;
}

.claim {
    position: relative;
}

.claim img {
    width: 100%
}

.claim p {
    position: absolute;
    width: 100%;
    max-width: 1000px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
    font-size: 56px;
    line-height: 72px;
    font-weight: bold;
}

.funzionamento {}
.partners-logos,
.clients-logos{
    display: flex;
    justify-content: center;
    max-width: 1352px;
    margin: 80px auto;
    flex-wrap: wrap;
    row-gap: 20px;
}

.video-block {
    background-color: var(--dark);
    margin-bottom: var(--block-gap);
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top:82px;
}

.video-frame {
    position: relative;
    background-image: linear-gradient(var(--white) 50%, var(--dark) 50%);
    width: 100%;
    margin-bottom: 40px;

}

.video-frame .mac {
    display: block;
    width: 100%;
    max-width: calc(980px + 48px);
    padding: 0 var(--gap);
    height: auto;
    margin: 0 auto;
}

.video-frame .video-container {
    position: absolute;
    top: 3.5%;
    left: 50.2%;
    transform: translateX(-50%);
    max-width: calc(980px + 48px);
    padding: 0 var(--gap);
    width: 100%;
    height: auto;
}

.mac-video {
    display: block;
    margin: 0 auto;
}

.video-description {
    display: block;
    text-align: center;
    max-width: calc(865px + 48px);
    padding: 0 var(--gap);
    color: var(--white);
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
}

.news-detail {
    max-width: 1704px;
    margin: 0 auto;
}

.news-detail-image {
    border-radius: 16px;
    width: 100%;
    height: auto;
    margin-bottom: 80px;
}

.news-detail-image img {
    border-radius: 16px;
    width: 100%;

}

.news-detail-content {
    max-width: 840px;
    margin: 0 auto;
    padding-bottom: 40px;
    /*  border-width: 0;
   */
}

.news-detail-content hr {
    margin: 40px auto 64px;
}

.news-detail-content>h2 {
    font-weight: bold;
    color: var(--dark);
    font-size: 14px;
    line-height: var(--gap);
    text-transform: uppercase;
    margin-bottom: var(--gap);
}

.news-detail h3 {
    font-weight: 300;
    margin-bottom: 48px;
}

.news-detail h4 {
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 30px;
}


.news-detail p {
    margin-bottom: var(--gap);
    ;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.news-tag {
    border: 1px solid var(--dark);
    border-radius: 4px;
    padding: 5px;
    color: var(--dark);
    font-weight: bold;
    font-size: 14px;
    line-height: var(--gap);
    text-transform: uppercase;

}

.share-link {
    margin-right: 40px;
}

.share-links {
    display: block;
    margin-bottom: 40px;
}

.img-header {
    position: relative;
    padding:0;
}

.img-header img {
    width: 100%;
    height: 656px;
    object-fit: cover;
    object-position: center;
}

.img-header h1 {
    position: absolute;
    max-width: 100%;
    text-align: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    color: var(--white);
  
    font-weight: 900;
    font-size: 72px;
    line-height: 88px;
}
.img-header h1.left{
     top: 50%;
    left: 25%;
    transform: translate(0, -50%);  
    text-align: left;
}
.text-block {
    max-width: 1704px;
    margin: 0 auto 80px;
}

.text-block-content {
    max-width: 840px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.text-block-content hr {
    margin: 40px auto 64px;
}

.text-block-content h2 {   
    font-style: normal;
    font-weight: normal;
    font-size: 40px;
    line-height: 48px;
    color: var(--dark);
    margin-bottom: 40px;
    font-weight:200;
}

.text-block-content h3 {
  text-transform:uppercase;
    margin-bottom: var(--gap);
    font-style: normal;
font-weight: bold;
font-size: 56px;
line-height: 72px;
font-weight:200;
letter-spacing:-2px;

}

.text-block-content h4 {
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 30px;
}

.text-block-content-unit {
    margin-bottom: calc(--gap * 3);
  
}

.text-block-content p {
    margin-bottom: var(--gap);
   
}
.text-block-content p:last-child {
    margin-bottom: calc(var(--gap) * 2);
    
}
.text-block-content-evident {
    font-weight:200;
    font-size: 40px;
    line-height: 48px;
    text-align: center;
    text-transform:uppercase;
}

.text-block-content-evident strong {
    color: var(--dark);
    font-weight:bold;
}

.text-block-content-pause {
    color: var(--dark);
    font-weight: bold;
    font-size: 20px;
    line-height: 32px;
    margin: 32px 0;
    text-transform: uppercase;
}

.image-text-block {
    padding: 0;
    background-color: var(--dark);
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(auto, 50%) 1fr;
    grid-template-areas: "img article";
    margin-bottom: 144px;
}

.image-text-block .side-img {
    grid-area: img;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}
.image-text-block .side-img.col{
display:none
}
.image-text-block .side-article {
    width: 100%;
    max-width: calc(768px + var(--gap));
    margin: 0 auto 0 0;
    padding: 84px var(--gap) 84px 168px;
}

.image-text-block p {
    margin-bottom: 40px;
    font-size: 20px;
}

.image-text-block h2 {
    font-weight:200;
    letter-spacing:-2px;
 /*   font-style: normal;
    font-weight: normal;
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 32px;
    text-transform: initial;
    font-style: normal;
font-weight: 300;
font-size: 56px;
line-height: 72px;*/
}

.image-text-block .text-block-content-pause {
    color: var(--white);
    margin: 0;
    text-transform: initial;
}
.case-history-item{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "img text";
    margin-bottom: 64px;
}
.case-history-item:nth-child(even){   
    grid-template-areas: "text img";
}
.case-history-image{
    grid-area: img;
width: 100%;
display: block;
border: solid 1px var(--dark);
}
.case-history-text{
    grid-area: text;
    width: 100%;
    padding: 64px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}
.case-history-text h2{
    font-weight: normal;
    font-weight: bold;
    font-size: 40px;
    line-height: 48px;
    margin-bottom: var(--gap);
    color: var(--dark);
    text-transform: initial;
}
.case-history-text p{
margin-bottom: var(--gap);
}
.case-history-text .button{
margin-top: 16px;
}
/* ACCORDIOIN */
.accordion {
    border-bottom: 1px solid #E0E0E0;
}

.accordion dt {
    border-top: 1px solid #E0E0E0;
}

.accordion-trigger {
    background: none;
    border: 0;
    font-style: normal;
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    display: flex;
    align-items: center;
    padding: var(--gap) 0;
    width: 100%;
    cursor: pointer;
    justify-content: space-between;
}


.accordion-title {
    color: var(--black);
    display: block;
    /* For Edge bug https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8295099/ */
    pointer-events: none;
}

.accordion-icon {
    color: var(--dark);
    pointer-events: none;
    font-size: 40px;
    line-height: 24px;
    font-weight: 100;
    display: none;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon.on {
    display: inline-block;
}

.accordion-trigger[aria-expanded="false"] .accordion-icon.off {
    display: inline-block;
}

.accordion-panel {
    display: block;
    margin: 0;
    padding: 0 0 var(--gap);
    overflow: hidden;
    max-height: 100%;
    transition-property: max-height;
    transition-duration: 0.5s;
}

.accordion a {
    color: var(--dark);
    font-weight: bold;
    display: block;
    padding-top: 32px;
    text-decoration: none;
}

/* For Edge bug https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4806035/ */
.accordion-panel[hidden] {
    display: none;
}

.accordion-panel[bhidden] {
    display: none;
    max-height: 0;
}

@media (max-width: 1700px) {
    .cards-5 {     
        display: grid; 
        grid-template-columns: auto auto;
    }
    .cards-5 .dashed:nth-of-type(4){
        border-width: 0;
    border-left: dotted 1px var(--dark-gray);
    border-image-source: url('../imgs/vertical-dots.svg');
    border-image-width: 2px;
    border-image-repeat: repeat;
    border-image-slice: 2;
    }
    .cards-5 .dashed:nth-of-type(3){
        border-width: 0;
        border-left: none;
        border-image:  none;
    }
    .cards-5 .dashed:nth-of-type(5){
        border-width: 0;
        border-left: none;
        border-image:  none;
        transform: translate(50%, -40px);
    }
    .cards-4 {
        display: grid;
        grid-template-columns: auto auto;
        row-gap: 80px;

    }

    .cards-4 .dashed:nth-child(3) {
        border-width: 0;
        border-left: none;
    }

    .card {
        width: 100%;
    }
   
}

@media (max-width: 1370px) {

    .header,
    .navmenu-header {
        padding: 0 45px;
    }
   
    .footer-content {
        grid-template-columns: 1fr auto 2fr 1fr;
        grid-template-areas:"logo address social powered";
        height: auto;
    }
    .footer-content .logo {
        width: 100%;
    }

    .slide-text {
        max-width: calc(420px + var(--gap));
    }

    .slide-text h2 {
        font-size: 52px;
        line-height: 62px;
    }

    .slides-controls {
        right: 45px;
    }

    .numbers {
        height: 148px;
        height: unset;
        max-width: unset;
        margin: 0 auto;
    }

    .numbers div {
        margin: 16px 0;
    }

    .numbers dd {
        font-size: 36px;
        line-height: 48px;
    }

    .claim p {
        max-width: 500px;
        position: absolute;
        font-size: 28px;
        line-height: 36px;
    }

    .image-text-block {
        grid-template-columns: 1fr;
        grid-template-areas: "img""article";
    }
    .image-text-block .side-img.col{
        display:block
        }
    .image-text-block .side-img.side{
        display:none
        }
    .image-text-block .side-article {
        width: 100%;
        max-width: 840px;
        margin: 0 auto;
        padding: 72px var(--gap) 72px var(--gap);
    }
    .partners-logos,
    .clients-logos{
        margin: 60px auto;
        max-width: 507px;
    }
    
}
@media (max-width:1240px){
    .footer-content {
        grid-template-columns: 1fr auto 3fr;
        grid-template-areas:"logo address social" ". . powered";
        height: auto;
    }
    .footer-info{
        margin: 0;
    }
}
@media (max-width:850px) {

    .header,
    .navmenu-header {
        padding: 0 var(--gap);
    }

    .header .buttons {
        margin: 0 auto;
        display: grid;
        grid-template-columns: auto auto;
        column-gap: var(--gap);
        justify-content: space-between;
    }

    .slides-controls {
        right: var(--gap);
    }

    .cards {
        display: block;
        margin: 48px auto 0;
    }
   
       .cards .dashed:first-of-type {
        border-width: 0;
        border-top: dashed 1px var(--dark-gray);
        border-image-source: url('../imgs/horizontal-dots.svg');
    }
    /*trovare modo migliore?*/
    .cards-5 .dashed:nth-of-type(4),
    .cards-5 .dashed:nth-of-type(3),
    .cards-5 .dashed:nth-of-type(2),
    .cards-5 .dashed:nth-of-type(1),
    .cards .dashed {       
        border-bottom: dashed 1px var(--dark-gray);
        border-image:  url('../imgs/horizontal-dots.svg') 2 2;        
        margin: 0 auto;
    }  
    
    .cards-5 .dashed:nth-of-type(5){       
        transform: unset;
        border-image:  url('../imgs/horizontal-dots.svg') 2 2; 
    }
    .cards-5 .dashed {
        max-width: calc(422px - 48px);
    }
    .cards-4 .dashed {
        max-width: calc(422px - 48px);
    }

    .cards-3 .dashed {
        max-width: calc(325px - 48px);
    }


    .case-history-item,.case-history-item:nth-child(even){  
        grid-template-columns: 1fr; 
        grid-template-areas: "img" "text";
    }
    .case-history-text{     
     
        padding: var(--gap) 0;
      
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 2fr;
        grid-template-areas:"logo . ." "address address social" ". . powered";
    }
}

@media (max-height: 1000px) {
    .slide-text {
        max-width: calc(590px + var(--gap));
    }

    .slide-text h2 {
        font-size: 58px;
        line-height: 69px;
    }
}

@media (max-height: 850px) {
    .slide-text {
        max-width: calc(440px + var(--gap));
    }

    .slide-text h2 {
        font-size: 42px;
        line-height: 52px;
    }
}

@media (max-width: 640px) {
    :root {
        --block-gap: 72px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-areas:"logo" "address" "social" "powered";
        row-gap: 54px;
        height: auto;

    }

    .footer-content .logo {
        width: 105px;
    }

   

    .navmenu-links a:not(.button) {
        font-size: 30px;
    }

    .navmenu-links li:last-of-type {
        margin: 40px 0;
    }

    .navmenu-links li {
        margin: 0 0 20px;
    }

    .small-center-align {
        text-align: center;
    }

    .small-bottom-distanced {
        margin-bottom: 40px;
    }

    .header .buttons {
        display: none;
    }

    .bottom-distanced {
        margin-top: unset;
    }

    .rows-2 .row-half {
        grid-column: 1/3;
    }

    h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .news-block-header h1 {
        padding-bottom: 12px;
    }

    .news-block-header h2 {
        padding-bottom: var(--gap);
    }

    .page-title {
        font-size: 40px;
        line-height: 56px;
    }

    .page-subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .osservatorio-block {
        grid-template-columns: 1fr;
        grid-template-rows: 85vw auto;
        grid-template-areas: "img""article";
    }

    .top-block {
        height: auto;
        max-height: unset;

    }

    .slider {
        height: calc(79vw + 480px);
        background-image: url('../imgs/freccia.svg');
        background-position: center calc(79vw + 375px);
        background-repeat: no-repeat;
    }

    .slide {
        display: block;
        padding: 0;
        flex-direction: column;
        height: auto;
    }

    .slide-img {
        width: 100%;
        height: 79vw;
    }

    .slide-text {
        max-width: 100%;
        padding: var(--gap);
    }

    .slide-text h3 {
        font-size: 16px;
        line-height: 16px;
    }

    .slide-text h2 {
        font-size: 40px;
        line-height: 40px;
        margin-bottom: 40px;
    }


    .side-article {
        max-width: 100%;
        min-width: 100%;
        margin: 48px 0;
        padding: 20px;

    }

    .side-article p {
        margin: var(--gap) 0 32px;
    }

    .slides-progress {
        bottom: 115px;
        left: var(--gap);
    }

    .slides-controls {
        top: 39.5vw;
    }

    .slides-controls .image-button img {
        width: 32px;
        height: 32px;
    }

    .curva {
        display: none;
    }

    .news-list {

        display: grid;
        column-gap: 0;
        /* row-gap: calc(var(--gap) + 0.25vw);*/
        grid-template-columns: auto;

    }

    .numbers {
        display: block;
    }

    .numbers div {
        padding: var(--gap) var(--gap);
        margin: 0;
    }

    .numbers dd {
        font-size: 32px;
        line-height: 40px;
    }

    .dashed {
        border-width: 0;
        border-left: none;
        border-bottom: dashed 1px var(--dark-gray);
        border-image-source: url('../imgs/horizontal-dots.svg');
    }

    .dashed:first-of-type {
        border-width: 0;
        border-top: dashed 1px var(--dark-gray);
        border-image-source: url('../imgs/horizontal-dots.svg');
    }

    .cards {
        display: block;
    }

    .card {
        width: 100%;
        min-width: unset;
        padding: var(--gap) 0;
    }

    .card-title {
        font-size: 24px;
        line-height: 32px;
    }

    .claim {
        padding: 0;
    }

    .claim p {
        max-width: 80%;
        font-size: 32px;
        line-height: 40px;
    }

    .claim img {
        object-fit: cover;
        height: 440px;
        width: 100%;
    }

    .img-header img {
        width: 100%;
        height: auto;

    }

    .img-header h1 {
        font-weight: 900;
        font-size: 40px;
        line-height: 48px;
        text-align: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .text-block {
        margin-bottom: 0;
    }

    .text-block-content h2 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 16px;
        
    }

    .text-block-content h3 {
        font-size: 20px;
        line-height: 32px;
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 16px;
    }

    .text-block-content-evident {

        font-size: 24px;
        line-height: 32px;

    }

    .image-text-block {
        margin-bottom: var(--block-gap);
    }

    .accordion-trigger {
        font-size: 20px;
        line-height: 32px;
    }
    .case-history-item h2{
        font-size: 24px;
line-height: 32px;
    }
    .partners-logos,
    .clients-logos{
        margin: 48px auto;
        max-width: 540px;
        row-gap: 24px;
        column-gap: 30px;
    }
}

@media (min-width: 640px) {

    .mobile-visible {
        display: none;
    }
}

@media (max-width: 640px) {
    .desktop-visible {
        display: none;
    }

}