:root {
    --primary-color: #2e7db6;
    --primary-variant-color: #ff6633;
    --primary-grey-color: #615b6a;
    --primary-variant-grey: #d3d5d8;
    --secondary-color: #03dac6;
    --secondary-variant-color: #018786;
    --dark-color: #383f4d;
    --dark-color-20percent: #d3d5d8;
    --dark-color-10percent: #dadde0;
    --dark-color-5percent: #eff0f0;
    --light-color: #ffffff;
}
body {
    font-family: "Reddit Sans Light";
    font-size: 17px;
    background-color: #121212;
    color: white;
}

.main-navbar {
    box-shadow:
        0 0.25rem 0.5625rem -0.0625rem rgb(0 0 0 / 3%),
        0 0.275rem 1.25rem -0.0625rem rgb(0 0 0 / 5%);
}

.main-navbar .nav-link.active {
    color: var(--primary-color) !important;
}
.blog-title,
.blog-title a,
a.blog-author,
a.blog-comment,
a.blog-link {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb {
    margin-bottom: 0.3rem;
}
.breadcrumb-item a {
    color: #000;
    text-decoration: none;
}
.news-title,
.news-title a,
a.news-author,
a.news-comment,
a.news-link {
    color: var(--primary-color);
    text-decoration: none;
}
.grid .card {
    transition: all 0.3s;
}
.grid .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
#foundModal.offcanvas-top.h-auto {
    bottom: initial;
}
a {
    color: var(--primary-color) !important;
    text-decoration: none;
}
a svg {
    fill: var(--primary-color);
}
.fill-dark-color {
    fill: var(--dark-color);
}
.stroke-dark-color {
    stroke: var(--dark-color);
}
.bg-primary {
    color: var(--light-color);
    background-color: var(--primary-color) !important;
}
.bg-primary-variant {
    color: var(--light-color);
    background-color: var(--primary-variant-color) !important;
}
.bg-secondary {
    color: var(--light-color);
    background-color: var(--secondary-color) !important;
}
.bg-secondary-variant {
    color: var(--light-color);
    background-color: var(--secondary-variant-color) !important;
}
.bg-primary-grey {
    color: var(--light-color);
    background-color: var(--primary-grey-color) !important;
}
.bg-primary-variant-grey {
    color: var(--light-color);
    background-color: var(--primary-variant-grey) !important;
}
.bg-dark {
    color: var(--light-color);
    background-color: var(--dark-color) !important;
}
.bg-dark-20 {
    color: var(--light-color);
    background-color: var(--dark-color-20percent) !important;
}
.bg-dark-10 {
    background-color: var(--dark-color-10percent) !important;
}
.bg-dark-5 {
    background-color: var(--dark-color-5percent) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.text-primary-variant {
    color: var(--primary-variant-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}
.text-secondary-variant {
    color: var(--secondary-variant-color) !important;
}
.bg-primary a,
.bg-primary-variant a,
.bg-primary-variant a,
.bg-primary-grey a,
.bg-primary-variant-grey a,
.bg-secondary-variant a {
    color: var(--light-color) !important;
}

.bg-primary .breadcrumb-item a,
.bg-primary-variant .breadcrumb-item a,
.bg-primary-variant .breadcrumb-item a,
.bg-primary-grey .breadcrumb-item a,
.bg-primary-variant-grey .breadcrumb-item a,
.bg-secondary-variant .breadcrumb-item a {
    color: #000 !important;
}
@media (min-width: 768px) {
    .main {
        display: flex !important;
        flex-direction: column !important;
        min-height: 90vh;
    }
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--secondary-color);
}
.nav-pills .nav-link {
    color: var(--secondary-color);
}
.border-primary {
    border: 1px solid var(--primary-color) !important;
}
.border-secondary {
    border: 1px solid var(--secondary-color) !important;
}
.rounded-top-start {
    border-top-left-radius: 0.25rem !important;
}
.rounded-bottom-start {
    border-bottom-left-radius: 0.25rem !important;
}
.rounded-top-end {
    border-top-right-radius: 0.25rem !important;
}
.rounded-bottom-end {
    border-bottom-right-radius: 0.25rem !important;
}
.fs-1 {
    font-size: calc(1.375rem + 1.5vw) !important;
}
.fs-2 {
    font-size: calc(1.325rem + 0.9vw) !important;
}
.fs-3 {
    font-size: calc(1.3rem + 0.6vw) !important;
}
.fs-4 {
    font-size: calc(1.275rem + 0.3vw) !important;
}
.fs-5 {
    font-size: 1.25rem !important;
}
.fs-6 {
    font-size: 1rem !important;
}
.fs-xl {
    font-size: 1.25rem !important;
}
.fs-lg {
    font-size: 1.125rem !important;
}
.fs-base {
    font-size: 1rem !important;
}
.fs-sm {
    font-size: 0.875rem !important;
}
.fs-xs {
    font-size: 0.75rem !important;
}
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #dee2e6 !important;
    }
}
#sidebar-categories ul {
    width: 100%;
}
#sidebar-categories .nav-item i,
#sidebar-categories .nav-item a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#sidebar-categories .d-flex a {
    padding-left: 0.75rem;
}
#sidebar-categories .nav-item:not(.lev1) a {
    color: var(--dark-color) !important;
}
#sidebar-categories .nav-item:not(.lev1) a:before {
    content: "__ ";
    position: relative;
    top: -0.4rem;
}
#sidebar-categories .nav-item:not(.lev1) a:hover {
    font-weight: 500;
}
#sidebar-categories .nav-item.lev2 {
    background-color: #eff0f0;
}
#sidebar-categories .nav-item.lev3,
#sidebar-categories .nav-item.lev4 {
    background-color: #dadde0;
}
#sidebar-categories .nav-item i {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    cursor: pointer;
}
#sidebar-categories .nav-item a:hover {
    background-color: var(--primary-variant-grey);
}
#sidebar-categories ul li ul li i,
#sidebar-categories ul li ul li a {
    padding-left: 1.25rem !important;
}
#sidebar-categories ul li ul li ul li i,
#sidebar-categories ul li ul li ul li a {
    padding-left: 1.75rem !important;
}
#sidebar-categories .opensub {
    transition: all 0.3s;
}
#sidebar-categories .opensub:not(.collapsed) {
    transform: rotate(90deg);
    transform-origin: 40% 40%;
}
/* .toggle-collapse{
    transition: all 0.3s;
}
.toggle-collapse:not(.collapsed){
    transform: rotate(90deg);
    transform-origin: 40% 40%;
} */
.toggle-collapse {
    cursor: pointer;
}
.toggle-collapse .arrow-collapse {
    transition: all 0.3s;
}
.toggle-collapse:not(.collapsed) .arrow-collapse {
    transform: rotate(90deg);
    transform-origin: 40% 40%;
}
.hover-shadow {
    transition: all 0.3s;
}
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%) !important;
}
.compare-th {
    /* background-color: #e5e5e5; */
    border-bottom: 1px solid var(--dark-color);
}
.compare-td:not(:last-child) {
    border-right: 1px solid var(--dark-color);
}
/* .btn-pill{
    border-radius: 1rem;
} */
.btn-primary {
    color: var(--light-color) !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary.disabled {
    color: var(--dark-color) !important;
    background-color: var(--primary-variant-grey);
    border-color: var(--primary-variant-grey);
}
.btn-primary.disabled svg {
    fill: var(--dark-color);
}
.btn-primary svg {
    fill: var(--light-color);
}
.btn-primary:hover,
.btn-primary:focus {
    color: var(--light-color);
    background-color: var(--primary-variant-color);
    border-color: var(--primary-variant-color);
}
.btn-compare {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0rem;
    text-transform: uppercase;
    font-weight: 300;
    color: #666;
    font-size: 0.8rem;
}
.btn-compare svg {
    fill: #666;
    position: relative;
    top: -0.1rem;
}
.btn-compare.active {
    color: var(--primary-color);
}
.btn-compare.active svg {
    fill: var(--primary-color);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.px-2-3 {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

/* ------------------------------------------------------------------------------------------------------------------------------- */

a {
    color: currentColor !important;
}

.underline {
    text-decoration: underline !important;
}

.cap {
    text-transform: uppercase !important;
}

strong,
.strong {
    font-family: "Reddit Sans" !important;
    font-weight: 800 !important;
}

.extra-light {
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

.text-blue {
    color: var(--primary-color) !important;
}

.titolo {
    font-family: "Reddit Sans Black";
}

.medium-italic {
    font-family: "Reddit Sans Medium", sans-serif;
    font-weight: 500 !important;
    font-style: italic !important;
}

.text-glass {
    color: rgba(255, 255, 255, 0.35);
}

strong {
    font-family: "Reddit Sans Extra Bold" !important;
}

.extra-light {
    font-family: "Reddit Sans Extra Light" !important;
}

.bg-blue {
    background-color: var(--primary-color) !important;
}

.bg-glass {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto !important;
}

.bg-azzurro {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
    }

    .navbar-nav {
        flex-direction: row;
    }
}

@media (max-width: 991px) {
    .bg-glass {
        top: 0px;
        left: 10px;
        right: 10px;
    }

    .navbar-collapse {
        text-align: center;
        padding-top: 20px;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        margin: 5px 0;
    }
}

.blue-shade-text {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #ffffff 20%,
        #2e7db6 80%,
        #2e7db6 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-shade-text-top {
    background: linear-gradient(
        180deg,
        #2e7db6bd 0%,
        #2e7db6 25%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-shade-inline {
    background: linear-gradient(
        180deg,
        rgba(46, 125, 182, 0.05) 0%,
        rgba(46, 125, 182, 0.25) 20%,
        rgba(46, 125, 182, 0.65) 50%,
        rgba(46, 125, 182, 0.25) 80%,
        rgba(46, 125, 182, 0.05) 100%
    );
}

.blue-shade-top {
    background: linear-gradient(
        0deg,
        rgba(46, 125, 182, 1) 0%,
        rgba(46, 125, 182, 0.4) 80%,
        rgba(46, 125, 182, 0.1) 100%
    );
}

.bg-light-white {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.text-light-white {
    color: rgba(255, 255, 255, 0.6);
}

/* contatti */

.form-note {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
}

.contact-input {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    color: #fff !important;

    height: 40px;
    border-radius: 999px;
    padding: 0 28px;

    outline: none;
    box-shadow: none !important;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: rgba(255, 255, 255, 0.95) !important;
}

.contact-textarea {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    color: #fff !important;

    border-radius: 28px;
    padding: 22px 26px;
    min-height: 190px;

    resize: vertical;
    outline: none;
    box-shadow: none !important;
}

.privacy-row {
    margin-top: 6px;
}

.contact-switch {
    width: 48px;
    height: 24px;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.25);
    border: 0;
    box-shadow: none !important;
}

.contact-switch:checked {
    background-color: rgba(255, 255, 255, 0.85);
}

.contact-switch:focus {
    box-shadow: none !important;
}

.privacy-label {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.contact-submit {
    height: 55px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 16px;
}

.contact-submit:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

.acc {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 10px 0 30px;
}

.acc-item {
    border-radius: 8px;
    overflow: hidden;
    /* unisce visivamente testa + contenuto */
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    background: #1f5472;
    padding-top: 0px;
}

.acc-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 30px;

    background: transparent;
    color: #f5f5f5;
}

.acc-btn:active {
    transform: translateY(1px);
}

.acc-title {
    font-size: 17px;
    margin: 0 auto;
    text-align: center;
    transition: font-size 0.3s ease;
    font-family: "Reddit Sans Bold" !important;
}

.acc-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.acc-icon-img {
    width: 50px;
    height: 35px;
    display: block;
}

/* Footer */

.footer-input {
    background: #2e7db694 !important;
    border: 0 !important;
    color: #fff !important;

    height: 45px;
    border-radius: 999px;
    padding: 0 28px;

    outline: none;
    box-shadow: none !important;
}

.footer-textarea {
    background: #2e7db694 !important;
    border: 0 !important;
    color: #fff !important;

    border-radius: 28px;
    padding: 22px 26px;
    min-height: 190px;

    resize: vertical;
    outline: none;
    box-shadow: none !important;
}

/* Placeholder */
.footer-input::placeholder,
.footer-textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Focus */
.footer-input:focus,
.footer-textarea:focus {
    background: rgba(255, 255, 255, 0.28) !important;
}

.footer-submit {
    height: 45px;
    border-radius: 999px;
    border: 0;

    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        rgba(46, 125, 182, 0.9) 50%,
        rgba(15, 35, 70, 0.95) 100%
    );

    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 16px;

    transition: all 0.3s ease;
}

.footer-submit:hover {
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        rgba(46, 125, 182, 1) 50%,
        rgba(15, 35, 70, 1) 100%
    );
    color: #fff;
}

/* FAQ */

.text-blue-dark {
    background: linear-gradient(
        90deg,
        #2e7db6 0%,
        #2e7db6 20%,
        #0a314d 95%,
        #0a314d 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.acc-panel {
    max-height: 100%;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.acc-inner {
    padding: 0 34px 30px;
    color: rgba(255, 255, 255, 0.82);
}

.acc-inner p {
    margin: 0 0 18px 0;
    line-height: 1.7;
}

.acc-inner p:last-child {
    margin-bottom: 0;
}

.acc-inner strong {
    color: #fff;
    font-weight: 800;
}

.acc-item.is-open {
    background: #3f4042;
    padding-top: 15px;
}

.acc-item.is-open .acc-btn {
    padding-top: 40px;
    padding-bottom: 50px;
}

.acc-item.is-open .acc-title {
    font-size: 26px;
    text-align: start !important;
    margin: 0 !important;
    font-family: "Reddit Sans Light" !important;
}

@media (max-width: 767px) {
    .acc-btn {
        height: 62px;
        padding: 0 22px;
    }

    .acc-title {
        font-size: 18px;
    }

    .acc-item.is-open .acc-title {
        font-size: 22px;
    }

    .acc-icon {
        width: 50px;
        height: 50px;
    }

    .acc-inner {
        padding: 0 18px 22px;
    }

    .acc-inner p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acc-panel {
        transition: none !important;
    }

    .acc-btn {
        transform: none !important;
    }
}

/* HOMEPAGE */

.tavolo-img {
    display: none;
    max-width: 100%;
}

.tavolo-img.active {
    display: block;
}

.color-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-icon:hover {
    transform: scale(1.1);
}

.services__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr) 1.25fr;
    grid-auto-rows: 350px;
    align-items: stretch;
}

.svc-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transform: translateZ(0);
}

.svc-card__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.svc-card__hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        360deg,
        rgba(46, 125, 182, 0.85) 0%,
        rgba(46, 125, 182, 0.28) 70%,
        rgba(46, 125, 182, 0) 90%
    );
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
    pointer-events: none;
}

.svc-card__content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1;
}

.svc-card:hover .svc-card__hover {
    opacity: 1;
    transform: translateY(0);
}

/* ===== COLONNA DESTRA ===== */
.svc-side {
    grid-column: 5;
    grid-row: 1 / span 2;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.svc-side__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.svc-side__inner {
    position: absolute;
    inset: 0;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.92);
    z-index: 1;
}

@media (max-width: 1100px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }

    .svc-side {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .services__container {
        width: min(1200px, calc(100% - 28px));
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 230px;
        gap: 7px;
    }
}

@media (max-width: 420px) {
    .services__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

    .svc-side {
        min-height: 340px;
    }
}

.bg-scelta {
    background-color: rgba(255, 255, 255, 0.191);
    transition: ease 0.3s;
}

.bg-scelta:hover {
    background-color: #2e7db678;
}

.bg-settori {
    background-color: rgba(0, 0, 0, 0.4);
    transition: ease 0.3s;
}

.bg-settori:hover {
    background-color: #2e7db678;
}

.v-gallery {
    --gap: 14px;
    --item-h: 320px;
    height: calc((var(--item-h) * 1.25) + var(--gap) * 1.25);
}

.v-gallery__track {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    padding-bottom: 18px;
    /* respiro sotto l’ultima */
    display: flex;
    flex-direction: column;
    gap: var(--gap);

    scrollbar-width: none;
}

.v-gallery__track::-webkit-scrollbar {
    display: none;
}

.v-gallery__item {
    scroll-snap-align: start;
    height: var(--item-h);
    flex: 0 0 auto;
}

.v-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v-gallery__arrow {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%) rotate(90deg);
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.v-gallery__arrow img {
    display: block;
}

/* NEWS */

.news-card--small {
    height: auto;
}

.news-card--small .news-body {
    min-height: 220px;
}

.bg-dark-blue {
    background-color: rgba(46, 125, 182, 0.22);
}

/* ABOUT */

.story {
    background: #0b0b0b;
    color: #fff;
    padding: clamp(24px, 4vw, 64px) 0;
}

.story__wrap {
    position: relative;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: clamp(20px, 4vw, 80px);
    align-items: center;
    padding-top: clamp(28px, 3vw, 52px);
}

.story__title {
    margin: 0;
}

.story__title--over {
    position: absolute;
    top: 0;
    left: clamp(444px, -6vw, -30px);
    max-width: min(9000px, 92vw);
    z-index: 3;
}

.story__text {
    padding-top: clamp(10px, 2vw, 97px);
}

.collage {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.collage__img {
    grid-area: 1 / 1;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border-radius: 2px;
}

.collage__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage__img--back {
    width: min(420px, 80%);
    aspect-ratio: 4 / 3;
    justify-self: start;
    align-self: start;
    transform: translateY(clamp(-65px, -4vw, -16px));
}

.collage__img--front {
    width: min(560px, 95%);
    aspect-ratio: 16 / 9;
    justify-self: end;
    align-self: end;
    transform: translate(clamp(10px, 2vw, 35px), clamp(10px, 2vw, 50px));
}

@media (max-width: 1400px) {
    .story__wrap {
        grid-template-columns: 1fr;
        padding-top: 0;
        gap: 18px;
    }

    .story__title--over {
        position: static;
        margin: 0 0 6px;
        max-width: 100%;
    }

    .collage {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 14px;
        justify-items: initial;
        margin-top: 0;
    }

    .collage__img {
        grid-area: auto;
        width: 100% !important;
        max-width: 100%; /* Modifica da 520px a 100% */
        margin: 0 auto;
        aspect-ratio: 16 / 9;
    }

    .collage__img--front,
    .collage__img--back {
        justify-self: auto;
        align-self: auto;
        transform: none;
    }

    .story__content {
        order: 2;
    }

    .story__text {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    /* Media query per dispositivi mobili più piccoli */
    .story__wrap {
        padding-top: 0;
        gap: 15px;
    }

    .story__title--over {
        position: static;
        left: 0; /* Rimuovi l'effetto di offset */
        margin-bottom: 10px;
    }

    .collage__img--back,
    .collage__img--front {
        width: 100% !important; /* Allarga le immagini */
        max-width: 100%;
        margin: 0 auto;
        aspect-ratio: auto;
    }

    .collage__img--front {
        transform: none; /* Rimuovi il transform per dispositivi mobili */
    }

    .story__text {
        padding-top: 15px; /* Ridurre lo spazio sopra il testo */
    }
}

/* TIMELINE */

.imt-timeline {
    --line: rgba(255, 255, 255, 0.75);
    --text: rgba(255, 255, 255, 0.78);
    --blue: #2b7fb9;
    --dot: #fff;
    --bg: #0b0b0b;

    color: #fff;
}

.imt-timeline .tl-wrap {
    position: relative;
    padding-top: 62px;
}

.imt-timeline .tl-marker {
    position: absolute;
    top: 0px;
    left: 0;
    width: 44px;
    height: 44px;
    transform: translate3d(0, 0, 0) rotate(0deg);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;

    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
}

.imt-timeline .tl-line {
    position: absolute;
    top: 42px;
    width: 86%;
    left: 7%;
    right: 0;
    height: 2px;
    background: var(--line);
    z-index: 1;
}

.imt-timeline .tl {
    margin: 0;
    padding: 0;
    list-style: none;

    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: clamp(18px, 2.2vw, 42px);
    align-items: start;
}

.imt-timeline .tl-item {
    position: relative;
    padding-top: 22px;
    cursor: default;
    outline: none;
}

.imt-timeline .tl-dot {
    position: absolute;
    top: -19px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dot);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.imt-timeline .tl-blue {
    width: 72px;
    height: 5px;
    background: var(--blue);
    margin: 0 auto 14px;
    border-radius: 10px;
    opacity: 0.95;
}

.imt-timeline .tl-text {
    margin: 0;
    text-align: center;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 15px;
    line-height: 1.35;
}

.imt-timeline .tl-item:hover .tl-text,
.imt-timeline .tl-item:focus-visible .tl-text {
    color: rgba(255, 255, 255, 0.92);
}

.imt-timeline .tl-item:focus-visible {
    outline: 2px solid rgba(43, 127, 185, 0.7);
    outline-offset: 6px;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .imt-timeline .tl-wrap {
        padding-top: 0;
        padding-left: 56px;
    }

    .imt-timeline .tl-line {
        top: 16px;
        bottom: 0;
        left: 28px;
        right: auto;
        width: 2px;
        height: 86%;
    }

    .imt-timeline .tl-marker {
        top: 0;
        left: 0px;
        transform: translate(-50%, -10px);
    }

    .imt-timeline .tl {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .imt-timeline .tl-item {
        padding-top: 0;
        padding-left: 0;
        min-height: 64px;
    }

    .imt-timeline .tl-dot {
        top: 14px;
        left: -26px;
        transform: translate(-50%, 0);
    }

    .imt-timeline .tl-year,
    .imt-timeline .tl-text {
        text-align: left;
    }

    .imt-timeline .tl-blue {
        margin: 0 0 12px 0;
    }
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px !important;
}

.mySwiper {
    position: relative;
}

.swiper-button-custom {
    position: absolute;
    bottom: 30px;
    z-index: 10;
    cursor: pointer;
}

.swiper-button-custom img {
    width: 50px;
    height: auto;
}

.swiper-button-custom.prev {
    right: 70px;
}

.swiper-button-custom.next {
    right: 15px;
}

@media (min-width: 992px) {
    .margin-res {
        margin-top: -5% !important;
    }
}

/* REALIZZAZIONI */

.instant-carousel {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.instant-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.instant-carousel-1 img:nth-child(1) {
    animation: c1 4.5s steps(1) infinite;
}

.instant-carousel-1 img:nth-child(2) {
    animation: c1 4.5s steps(1) infinite 1.5s;
}

.instant-carousel-1 img:nth-child(3) {
    animation: c1 4.5s steps(1) infinite 3s;
}

@keyframes c1 {
    0%,
    33.33% {
        opacity: 1;
    }

    33.34%,
    100% {
        opacity: 0;
    }
}

.instant-carousel-2 img:nth-child(1) {
    animation: c2 6s steps(1) infinite;
}

.instant-carousel-2 img:nth-child(2) {
    animation: c2 6s steps(1) infinite 2s;
}

.instant-carousel-2 img:nth-child(3) {
    animation: c2 6s steps(1) infinite 4s;
}

@keyframes c2 {
    0%,
    33.33% {
        opacity: 1;
    }

    33.34%,
    100% {
        opacity: 0;
    }
}

.instant-carousel-3 img:nth-child(1) {
    animation: c3 3.6s steps(1) infinite;
}

.instant-carousel-3 img:nth-child(2) {
    animation: c3 3.6s steps(1) infinite 1.2s;
}

.instant-carousel-3 img:nth-child(3) {
    animation: c3 3.6s steps(1) infinite 2.4s;
}

@keyframes c3 {
    0%,
    33.33% {
        opacity: 1;
    }

    33.34%,
    100% {
        opacity: 0;
    }
}

.instant-carousel-4 img:nth-child(1) {
    animation: c4 3s steps(1) infinite;
}

.instant-carousel-4 img:nth-child(2) {
    animation: c4 3s steps(1) infinite 1s;
}

.instant-carousel-4 img:nth-child(3) {
    animation: c4 3s steps(1) infinite 2s;
}

@keyframes c4 {
    0%,
    33.33% {
        opacity: 1;
    }

    33.34%,
    100% {
        opacity: 0;
    }
}

/* PARCO MACCHINE */

.tecnologies__grid {
    display: grid;
    gap: 24px;
    padding-left: 0;
    padding-right: 0;
}

.tec-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0px;
    text-decoration: none;
    height: 450px;
}

.tec-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.tec-card__hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(46, 125, 182, 0) 0%,
        rgba(46, 125, 182, 0.15) 35%,
        rgba(46, 125, 182, 0.55) 65%,
        rgba(46, 125, 182, 0.9) 85%,
        rgba(46, 125, 182, 1) 100%
    );

    opacity: 0;
    transform: translateY(20%);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.tec-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 50px;
    color: #fff;
}

.tec-card__content h3,
.tec-card__content p,
.tec-card__content img {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.tec-card__content p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.25;
}

.tec-card:hover .tec-card__hover,
.tec-card:focus-visible .tec-card__hover {
    opacity: 1;
    transform: translateY(0);
}

.tec-card:hover .tec-card__content h3,
.tec-card:focus-visible .tec-card__content h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.tec-card:hover .tec-card__content p,
.tec-card:focus-visible .tec-card__content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.tec-card:hover .tec-card__content img,
.tec-card:focus-visible .tec-card__content img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
}

.tec-card:hover .tec-card__img,
.tec-card:focus-visible .tec-card__img {
    transform: scale(1.06);
    transition: transform 0.5s ease;
}

.tec-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.tecnologies__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tecnologies__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tecnologies__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .tec-card {
        height: 400px; /* <-- scegli tu: es. 300/320/340 */
    }

    .tec-card__hover {
        opacity: 1;
        transform: translateY(0);
    }

    .tec-card__content h3,
    .tec-card__content p,
    .tec-card__content img {
        opacity: 1;
        transform: translateY(0);
        transition: none; /* opzionale: niente animazione */
    }

    .tec-card__img {
        transform: scale(1.06); /* oppure 1.01 se la vuoi più “ferma” */
        transition: none;
    }
}

@media (min-width: 992px) {
    .tec-card {
        --pad: 50px;
        --gap: 1rem; /* pb-5 */
        --pH: 0px; /* altezza reale del paragrafo (JS) */
        --lift: 0px; /* = --pH + --gapPx (JS) */
    }

    .tec-card__content {
        position: absolute;
        inset: 0;
        z-index: 3;
        color: #fff;
        pointer-events: none; /* opzionale, se vuoi che solo la card clicchi */
    }

    /* Titolo: sempre in basso */
    .tec-card__head {
        position: absolute;
        left: var(--pad);
        right: var(--pad);
        bottom: var(--pad);
        z-index: 4;

        transform: translateY(0);
        transition: transform 0.45s ease;
        pointer-events: auto;
    }

    .tec-card__head h3,
    .tec-card__head img {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Paragrafo: in hover deve stare appoggiato al fondo, sotto al titolo con gap fisso */
    .tec-card__content p {
        position: absolute;
        left: var(--pad);
        right: var(--pad);
        bottom: var(--pad);
        margin: 0;
        line-height: 1.25;
        z-index: 3;

        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity 0.35s ease,
            transform 0.35s ease;
    }

    /* HOVER: il titolo sale della quantità corretta (dinamica) */
    .tec-card:hover .tec-card__head,
    .tec-card:focus-visible .tec-card__head {
        transform: translateY(calc(var(--lift) * -1));
    }

    /* HOVER: il paragrafo appare (resta ancorato in basso) */
    .tec-card:hover .tec-card__content p,
    .tec-card:focus-visible .tec-card__content p {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }
}

.blue-shade-inline-big {
    background: linear-gradient(
        180deg,
        rgba(46, 125, 182, 0) 0%,
        rgba(46, 125, 182, 0.2) 5%,
        rgba(46, 125, 182, 0.8) 40%,
        rgba(46, 125, 182, 0.2) 95%,
        rgba(46, 125, 182, 0) 100%
    );
}

.accordion-button,
.accordion,
.accordion-item {
    background-color: transparent !important;
    color: white !important;
    border: none !important;
}

.accordion-item:first-of-type > .accordion-header .accordion-button {
    border: none !important;
}

.icona-acc {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 50%;
}

.accordion-button:not(.collapsed) .icona-acc {
    background-color: transparent !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.accordion-button:focus {
    border: none !important;
    box-shadow: none !important;
}

.accordion-button::after {
    display: none !important;
}

.accordion-button {
    display: flex;
    align-items: center;
}

.acc-icon-settori {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.accordion-button:not(.collapsed) .acc-icon-settori {
    margin-left: auto;
}

.acc-sett-img {
    width: 40px;
    height: 22px;
    display: block;
}

@media (min-width: 900px) {
    .accordion-body {
        margin-left: 12% !important;
    }
}

/* NEWS */

.news-hover {
    position: relative;
}

.news-hover .box-newspost-featured {
    position: relative;
    overflow: hidden;
}

.news-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 119, 176, 0.69);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-overlay i {
    font-size: 3rem;
    color: #fff;
}

.news-hover:hover .news-overlay {
    opacity: 1;
}

/* LAVORAZIONI */

.faq-wrapper {
    display: flex;
    justify-content: center;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-btn {
    width: 100%;
    border: 0;
    background: rgba(46, 125, 182, 0.55);
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 0 18px;
}

.faq-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 280ms ease;
}

.faq-item.active .faq-panel {
    max-height: 100%;
}

@media (max-width: 720px) {
    .faq-btn {
        font-size: 18px;
        height: 58px;
    }
}

.sfumatura {
    border: 1px solid white;
    width: 450px;
    transition: ease 1s;
}

.sfumatura:hover {
    border: 1px solid transparent !important;
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 800px) {
    .sfumatura {
        width: auto;
    }
}

.lavSwiper .swiper-slide {
    height: auto !important;
}

.lavSwiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 30px;
}

.pannellatura-section {
    position: relative;
    background-image: url("../img/realizzazioni/riga-sfumata.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .pannellatura-section {
        background-image: url("../img/realizzazioni/riga-sfumata-sm.png");
        background-position: center;
    }
}
.laser-card {
    background-image: url("../img/taglio-laser/processo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: auto;
    min-height: 0;
}

@media (max-width: 767px) {
    .laser-card {
        background-image: url("../img/taglio-laser/processo-sm.jpg");
        background-position: center;
    }
}

.laser-overlay {
    width: 100%;
    height: 100%;
    padding: 0;
}

.laser-box-2 {
    background-image: url("../img/home/card-5.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.laser-card,
.laser-overlay {
    overflow: hidden;
}

.fascia-titolo {
    background: linear-gradient(90deg, #2e7db6 0%, #2e7db6 25%, #174261 100%);
    color: white;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 20px;
    width: fit-content;
}

.posizione-fascia-destra,
.posizione-fascia-sinistra {
    position: relative;
}

.fascia-destra {
    position: relative;
    left: 0;
    top: 25px;
    padding-right: 120%;
    z-index: -1;
}

.fascia-sinistra {
    position: relative;
    top: 20px;
    right: 38%;
    z-index: -1;
    padding-left: 119%;
}

@media (max-width: 991px) {
    .fascia-sinistra {
        position: relative;
        top: 20px;
        right: 60%;
        z-index: -1;
        padding-left: 119%;
    }
}

.drop-lav.dropdown-toggle::after {
    display: none;
}

.drop-lingue .dropdown-toggle::after {
    margin-left: 0 !important;
    vertical-align: 0.15em !important;
}

.nav-link {
    font-size: 16px;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: white !important;
}

.navbar-toggler {
    border: 1px solid white;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.btn-a {
    position: relative;
    display: inline-block;
    padding: 0;
    background: none;
    border: 0;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    font-family: inherit;
    font-size: inherit;

    transition: transform 0.3s cubic-bezier(0.1, 0, 0.3, 1);
}

.btn-a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-a .btn-a__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 0.85rem;
    z-index: -1;
    overflow: hidden;

    transition: background-color 0.3s;
}

.btn-a .btn-a__bg::before {
    content: "";
    position: absolute;
    width: 110%;
    height: 0;
    padding-bottom: 110%;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 1);
    transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
}

.btn-a:hover .btn-a__bg::before {
    transform: translate3d(-50%, -50%, 0) scale3d(1, 1, 1);
}

.btn-a:hover .btn-a__bg {
    background-color: #17496d;
}

.btn-a span {
    display: block;
    position: relative;
    padding: 1rem 2rem;
    transition: color 0.3s;
}

@media (min-width: 991px) {
    .position-lg-sticky {
        position: sticky !important;
    }

    .titolo-sopra {
        right: 12%;
        position: relative;
        z-index: 20;
    }
}

@media (max-width: 768px) {
    .contact-card {
        height: 200px !important;
    }

    .contact-img {
        height: 80% !important;
        object-fit: cover !important;
        display: flex;
        align-items: center;
    }
}

.pulse:hover {
    animation: pulse 1s;
}

.link-hov {
    transition: all 0.5s ease;
}

.link-hov:hover {
    color: var(--primary-color);
}

.blocco-hov {
    transition: all 0.5s ease;
}

.blocco-hov:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sfondo-hov {
    transition: ease 0.5s;
}

.sfondo-hov:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.img-wrapper {
    position: relative;
    width: 50px; /* dimensione fissa */
    height: 50px; /* dimensione fissa */
    flex-shrink: 0; /* NON ridurre la dimensione nel flex */
}

.img-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover; /* mantiene proporzioni senza deformare */
    border-radius: 50%;
}

.bg-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 50, 0);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.hover-bg-container:hover .bg-circle {
    background-color: var(--primary-color);
}

i {
    font-family: "Reddit Sans" !important;
    font-weight: 500 !important;
    font-style: italic !important;
}

input.strong,
textarea.strong,
select.strong {
    font-family: "Reddit Sans Extra Bold", sans-serif !important;
    font-weight: 700;
    /* o il peso che vuoi */
}

.fb-icon img {
    transition: all 0.5s ease;
}

.fb-icon:hover img {
    filter: invert(1);
}

.ben-icon {
    transition: all 0.3s ease;
}

.ben-text {
    transition: color 0.3s ease;
}

.ben-item:hover .ben-icon {
    content: url("../img/icon/icona-imt-blu.svg");
    height: auto !important;
}

.ben-item:hover .ben-text {
    color: var(--primary-color);
}

.custom-rounded {
    border-radius: 50px;
}

@media (max-width: 767px) {
    .custom-rounded {
        border-radius: 1.35rem;
    }
}
