﻿/* General styling */
@font-face {
    font-family: "Blinker-Regular";
    src: url(/fonts/Blinker-Regular.ttf) format("truetype");
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Blinker-Regular' !important;
    box-sizing: border-box;
    background-color: #F4F9F9;
    /*    -ms-overflow-style: none;
    scrollbar-width: none;*/
}

:root {
    --primary-bg-color: #427D9D;
    --primary-bg-hover: #427D9D;
    --primary-bg-border: #427D9D;
}

body {
    overflow-x: hidden;
    overflow-y: scroll
}
/*    .body, html::-webkit-scrollbar {
        display: none;
    }
*/

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #F4F9F9;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #C1BFBF;
    border-radius: 10px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #8A8989;
    }


/* Hide scrollbar for IE, Edge and Firefox */
.example {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.offcanvas .nav-link.active, .nav-pills .show > .nav-link {
    background-color: transparent !important;
}

/* stili per il video in top */

.video-container {
    position: relative;
    width: 100%;
    height: 94vh;
}

#reference {
    top: -7vh;
}

.mo-container {
    position: absolute;
    width: 100%;
    height: 20%;
    bottom: 0;
    left: 0;
    background: linear-gradient(rgb(0,0,0,0.0),#F4F9F9);
    z-index: 1;
}

.mountain {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    mask-image: linear-gradient(red,yellow);
}

.bg-image {
    /*top: 90vh;*/
    bottom: 0;
    position: relative;
    left: 0;
    width: 200%;
    height: 10%;
    z-index: 0;
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 30%;
    /* bottom: 0; */
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 2;
    color: rgb(244, 249, 249);
    text-shadow: 0 0 3px #000000, 0 0 5px #164863;
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .overlay h2 {
        margin-top: 2vh;
        font-size: 2rem;
    }

.overlay-dx {
    position: absolute;
    /* bottom: 0; */
    left: 0;
    width: 92%;
    height: 20%;
    z-index: 2;
    color: rgb(244, 249, 249);
    text-shadow: 0 0 3px #000000, 0 0 5px #164863;
    display: block;
    justify-content: right;
    align-items: end;
    text-align: right;
}

.overlay-sx {
    position: absolute;
    /* bottom: 0; */
    left: 7%;
    width: 100%;
    height: 20%;
    z-index: 2;
    color: rgb(244, 249, 249);
    text-shadow: 0 0 3px #000000, 0 0 5px #164863;
    display: block;
    justify-content: left;
    align-items: start;
    text-align: left;
}

.overlay-no-shaodw-dx {
    position: absolute;
    /* bottom: 0; */
    left: 0;
    width: 90%;
    height: 20%;
    z-index: 2;
    color: rgb(244, 249, 249);
    display: block;
    justify-content: right;
    align-items: end;
    text-align: right;
}

.overlay-no-shaodw-sx {
    position: absolute;
    top: 41vh;
    /* bottom: 0; */
    left: 5%;
    width: 100%;
    height: 20%;
    z-index: 2;
    color: rgb(244, 249, 249);
    display: block;
    justify-content: left;
    align-items: start;
    text-align: left;
}

#glacierVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-dark-bg {
    padding: 1vh;
    height: 20vh;
    border-radius: 1vh;
    box-shadow: -10px -5px 30px 0px rgba(0, 0, 0, 0.5);
    background-color: rgb(200, 213, 220,0.5);
}

/* navbar */

.nav-item:hover {
    cursor: pointer;
}

.navbar {
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: #F4F9F9;
    transition: all 0.8s ease-out;
}




.overflow-x-hidden {
    overflow-x: hidden;
}

#container-text-image {
    overflow-x: hidden;
    background-image: linear-gradient(rgb(244, 249, 249), rgb(221, 242, 253) 50%,rgb(155, 190, 200) 90%);
    background-color: rgb(244, 249, 249);
    padding-bottom: 3vh;
    padding-top: 3vh;
    font-size: 2.8vh;
}

/* widget meteo */

.widget-box {
    height: 50vh;
    border-radius: 2vh;
    position: relative;
}

    .widget-box img {
        border-radius: 2vh;
        height: 100%;
        width: 100%;
        object-fit: cover; /* Copre l'intera area senza distorsioni */
        object-position: center;
    }

.widget-content {
    position: absolute;
    font-size: 7vh;
    color: white;
    left: 0;
    top: 10%;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
    background-color: rgb(0,0,0, 0.5);
}

/* classi per l'animazione laterale */

.movable-container {
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 1s ease-out;
}

/* direzione di provenienza */

.move-dx {
    transform: translateX(200%);
}

.move-sx {
    transform: translateX(-100%);
}

/* animazione da attivare */

.movable-container.animate {
    opacity: 1;
    transform: translateX(0);
}

/* raccolta immagini */

.carousel {
    height: 40vh;
}

.carousel-item {
    height: 40vh;
}

    .carousel-item img {
        height: 100%;
        width: 100%;
        object-fit: cover; /* Copre l'intera area senza distorsioni */
        object-position: center; /* Centra l'immagine verticalmente e orizzontalmente */
    }


/* ombre varie */

.shadow-bottom {
    box-shadow: 0px 5px 10px 2px rgba(131, 131, 131, 0.5);
}

.shadow-right-top {
    box-shadow: 10px -5px 10px 2px rgba(131, 131, 131, 0.5);
}

.shadow-left-top {
    box-shadow: -10px -5px 10px 2px rgba(131, 131, 131, 0.5);
}



.container-fluid {
    padding: 0;
}

.social-icons a {
    font-size: 1.5rem;
}



.nav-link.active, .nav-pills .show > .nav-link {
    background-color: #164863;
}

.body-color {
    color: #164863;
}

.body-color-ligth {
    color: #D2E9E9;
}

/*aside definisce sinistra quando l'inclinazione è positiva*/

.square-bg-sx {
    top: -5vh;
    position: relative;
    width: 110%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 10vh;
    background-color: #f4f9f9;
    transition: 1s ease-in-out;
    transform: rotate(-2.5deg);
    margin-bottom: 8vh;
}

.square-title-sx {
    transform: rotate(-2.5deg);
    color: #F4F9F9;
    font-size: 4vh;
    margin-bottom: 1vh;
}



    .square-text-sx li {
        margin-left: 2vh;
    }


.square-full-sx {
    margin-top: 5vh;
    position: relative;
    width: 110%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 7vh;
    padding-top: 2vh;
    background-color: #427D9D;
    transition: 1s ease-in-out;
    transform: rotate(2.5deg) translateX(-1%);
    margin-bottom: 8vh;
}

.square-full-title-sx {
    padding-left: 1%;
    padding-right: 5%;
    transform: rotate(-2.5deg);
    color: #F4F9F9;
    font-size: 4vh;
    margin-bottom: 1vh;
}

.square-full-text-sx {
    padding-left: 1.5%;
    padding-right: 5%;
    padding-bottom: 1%;
    transform: rotate(-3deg);
    color: #F4F9F9;
    font-size: 2vh;
}

    .square-full-text-sx li {
        margin-left: 2vh;
    }


/*aside definisce destra quando l'inclinazione è negativa*/

.square-bg-dx {
    top: -5vh;
    position: relative;
    width: 110%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 10vh;
    background-color: #f4f9f9;
    transition: 1s ease-in-out;
    transform: rotate(2.5deg);
    margin-bottom: 8vh;
}

.square-dx {
    margin-top: 5vh;
    position: relative;
    width: 70%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 7vh;
    padding-top: 2vh;
    background-color: #427D9D;
    transition: 1s ease-in-out;
    transform: rotate(-2.5deg) translateX(-1%);
    margin-bottom: 8vh;
}

.square-title-dx {
    transform: rotate(2.5deg);
    color: #F4F9F9;
    font-size: 4vh;
    margin-bottom: 1vh;
}

.square-text-dx {
    transform: rotate(3deg);
    color: #F4F9F9;
    font-size: 2vh;
}

    .square-text-dx li {
        margin-left: 2vh;
    }



.square-full-title-dx {
    padding-left: 1.5%;
    padding-right: 3%;
    transform: rotate(2.5deg);
    color: #F4F9F9;
    font-size: 4vh;
    margin-bottom: 1vh;
}

.square-full-text-dx {
    padding-left: 1%;
    padding-right: 3%;
    padding-bottom: 1%;
    transform: rotate(3deg);
    color: #F4F9F9;
    font-size: 2vh;
}

    .square-full-text-dx li {
        margin-left: 2vh;
    }


.p-dx {
    margin: 5% 1% 5% 20%;
}

.p-dx-ligth {
    margin: 3% 5% 3% 17%;
}

.p-sx-ligth {
    margin: 0% 17% 1% 3%;
}

.p-title-bg {
    font-size: 4vh;
    margin-bottom: 1vh;
    color: #F4F9F9;
}

.p-title-bg-ligth {
    font-size: 3vh;
    margin-bottom: 1vh;
    color: #F4F9F9;
}

.p-title {
    font-size: 4vh;
    margin-bottom: 1vh;
    color: #164863;
}

.p-text {
    font-size: 2vh;
    margin-bottom: 1vh;
    color: #164863;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}

.img-dx {
    margin: 0% 0% 0% 20%;
}

.nav-link {
    color: #164863;
}


.mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
}

    .mySwiper .swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.4;
    }

    .mySwiper .swiper-slide-thumb-active {
        opacity: 1;
    }

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

header {
    top: 0;
    left: 0;
    width: 100%;
    height: 7vh;
    display: flex;
    position: fixed;
    align-items: center;
    z-index: 100;
    background-color: rgb(244,249,249,0.1);
    padding: 0.5vw;
    padding-left: 4vw;
    color: #164863;
    gap: 3vw;
}
.spacer {
    flex-grow: 1;
}
.tendina-figli {
    position: absolute;
    top: 3.2vh;
    left: 0;
    display: flex; 
    flex-direction: column;
    transition: all 0.3s linear;
}
.tendina-figli > * {
    margin-top:0.8vh !important;
    font-size: 2.5vh;
    cursor:pointer;
}
.tendina-titolo{
    display:flex;
    align-items:center;
}
.header-value {
    opacity: 0.95 !important;
    cursor: pointer;
    font-size: 3vh;
    color: #164863;
    transition: all 0.2s;
    position: relative;
}

    .header-value:hover {
        color: #427D9D;
    }


.slogan-container {
    position: relative;
    width: 100%;
    height: 80vh;
    align-items: center;
}

    .slogan-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


.slogan-back-color {
    /*background-color: rgb(184,255,249,0.9);*/
    /*background-color: rgb(210,233,233,0.97);*/
    /*background-color: rgb(90,133,132,1);*/
    background-color: rgb(221, 242, 253, 0.5);
    padding: 2vh;
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    /*mix-blend-mode: screen;*/
}

.display-flex {
    display: flex;
}

.font-weight-bold {
    font-weight: bolder;
}



.slogan-text {
    font-size: 8vh;
    position: absolute;
    color: #000000;
    opacity: 0.6;
    width: 100%;
    top: 30%;
    /*left: 50%;
    transform: translate(-50%, -50%);*/
    font-weight: bold;
    font-weight: 900;
    text-shadow: 0 0 5px rgb(255,255,255), 0 0 7px rgb(255,255,255);
}



.effect-underline:after {
    content: '';
    position: absolute;
    left: 0;
    display: inline-block;
    height: 1em;
    width: 100%;
    border-bottom: 3px solid;
    margin-top: 1.2vh;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: scale(0,1);
    transform: scale(0,1);
}

.effect-underline:hover:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.cursor-default {
    cursor: default;
}

.fade-in {
    animation: show-text 1s forwards;
}

@keyframes show-text {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.item-float {
    animation: floating 11s infinite
}

@keyframes floating {
    0% {
        transform: translateY();
    }


    65% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.diagram-container {
    margin: 5vh 0 5vh 0;
    background-image: url(../../Assets/img/immaginiHike/diagramma.svg);
    width: 80vw;
    height: 70vh;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center; /* Optional: if you also want to center vertically */
    flex-direction: column;
    position: relative;
}

.diagram-button-container {
    width: 70%;
    height: 30vh;
}

.btn-diagram-text {
    font-size: 2vh;
    /*color: #164863;*/
}

    .btn-diagram-text:hover {
        font-size: 2vh;
        color: #D2E9E9;
    }


.btn-diagram {
    font-size: 2.5vh;
    margin-bottom: 1vw;
    transition: all 0.3s;
    height: 9vh;
    background-color: #D2E9E9;
    box-shadow: -10px -5px 30px 0px rgba(0, 0, 0, 0.5);
    width: 100%;
    color: #164863;
}

    .btn-diagram:hover {
        font-size: 3.35vh;
        background-color: #164863;
        color: #D2E9E9 !important;
    }

    .btn-diagram.active {
        font-size: 2.5vh;
        margin-bottom: 1vw;
        transition: all 0.3s;
        height: 9vh;
        background-color: #164863;
        box-shadow: -10px -5px 30px 0px rgba(0, 0, 0, 0.5);
        width: 100%;
        color: #D2E9E9;
    }

.width-50pc {
    width: 50%;
}

.width-100pc {
    width: 100%;
}

.tab-wp {
    min-height: 35vh;
}
.persona-card-row {
    width: 100%;
    height: 20vh;
    display: flex;
    align-content: center;
    margin-bottom: 4vh;
    margin-left: 2%;
    margin-right: 2%;
    gap: 2%;
}
.persona-card {
    height: 100%;
    width: 47%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}
.persona-card > :nth-child(1) {
    width: 160px;
    height: 160px;
}
.persona-card > :nth-child(2) {
    margin-left:3vw;
    width: 55%;
}
.persona-card > :nth-child(3) {
    margin-left:1vw;
    font-size: calc(0.3 * 20vh) !important;
}
.image-and-text{
    text-align:center;
    margin-bottom:10vh;
    width:100%;
}
    .image-and-text > :nth-child(1) {
        margin-bottom:5vh;
    }

.swiper {
    width: 85%;
    height: 60vh;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}


.square-full-dx {
    margin-top: 5vh;
    position: relative;
    width: 110%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 7vh;
    padding-top: 7vh;
    background-color: #427D9D;
    transition: 1s ease-in-out;
    transform: rotate(-2.5deg) translateX(-2%);
    margin-bottom: 8vh;
}

.text-and-carousel {
    display: flex;
    justify-content: space-around;
}
    .text-and-carousel > :nth-child(1) {
        width: 60%;
        transform: rotate(2deg) translateX(-4%) translateY(-15%);
    }
.square-sx {
    margin-top: 5vh;
    position: relative;
    width: 70%;
    height: auto;
    padding-left: 7vh;
    padding-right: 7vh;
    padding-bottom: 7vh;
    padding-top: 7vh;
    background-color: #427D9D;
    transition: 1s ease-in-out;
    transform: rotate(2.5deg) translateX(-1%);
    margin-bottom: 8vh;
}
.square-text-sx {
    transform: rotate(-2deg);
    color: #F4F9F9;
    font-size: 2vh;
}

.carousel-and-text {
    display: flex;
    justify-content: space-around;
    align-items:center;
    margin-top:-15vh;
    margin-bottom:9vh;
}
    .carousel-and-text > :nth-child(2) {
        width: 60%;
        font-size: 2vh;
    }
    .carousel-and-text > :nth-child(1) {
        width: 30%;
    }
.container-memo {
    display: flex;
    flex-direction: row; 
    width:100%;
    height:auto;
    gap: 5%;
    padding-left:20vw;
}
    .container-memo > :nth-child(1){
        width:30%;
        height:40vh;
    }
    .container-memo > :nth-child(2) {
        width: 35%;
    }

.blue-back {
    background-color: #427D9D;
    position: relative;
    padding: 5% 2% 3% 2%; /*top right bottom left*/
    color: #F4F9F9;
    display: block;
}

    .blue-back[data-ang="sx"] {
        clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    }
    .blue-back[data-ang="sx-big"] {
        clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
    }

    .blue-back[data-ang="dx"] {
        clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    }
    .blue-back[data-ang="dx-big"] {
        clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);
    }

        .blue-back > * {
            margin:auto;
            margin-bottom:2vw;
        }

.icona {
    color: #D2E9E9;
    font-size: 6vw;
}

.icona-grande {
    color: #D2E9E9;
    font-size: 8vw;
}
.titolo{
    font-size: 2.2vw
}
.titolo-mspa {
    font-size: 2.3vh;
    font-weight: bold;
}
.testo {
    font-size: 2.3vh;
}
.sottotitolo{
    font-size:1.5vw;
}
.mini-icona{
    font-size:2.6vw;
}

.titolo-pagina {
    font-size: 4vw;
    position: absolute;
    color: #000000;
    opacity: 0.65;
    width: 100%;
    font-weight: bold;
    font-weight: 900;
    text-shadow: 0 0 5px rgb(255,255,255), 0 0 7px rgb(255,255,255);
}
.slogan-span {
    font-weight: bold;
    color: #164863;
    font-size: 4vw;
    isolation: isolate;
}

.image-back {
    position: relative;
    overflow: hidden;
}
    .image-back::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(221, 242, 253, 0.5); 
        z-index: 1;
    }
    .image-back[data-ang="dx"] {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    }
    .image-back[data-ang="sx"] {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }
    .image-back > img:first-child {
        
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }
    .image-back > *:not(:first-child) {
        
        position: relative;
        z-index: 2;
    }

.footer {
    background: #164863;
    font-size: 2.2vh;
    color: #F4F9F9;
}

    .footer img {
        width: 45%;
        margin-left: 2vw;
    }

#logo_unito {
    max-height: 70% !important; 
}
.foto-memo{
    width:30%;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the item */
}
.display-items {
    position: relative;
    transition: height 0.3s ease;

}
.display-items > * {
    transition: all 0.5s ease;
}
.display-items > :not(.active){
    transform: translateX(-100%);
    opacity:0;
    height:0;
}
.display-items.active{
    transform: translateX(0);
    opacity:1;
    height:auto;
}
.pointer-events-none{
    pointer-events:none;
}
.menu.hidden {
    display: none;
}

.menu {
    display: block;
}
.tendina-titolo{
    z-index:20;
}
.tendina-figli {
    background-color:inherit;
    margin-top:-3vh;
    padding-top:4.1vh;
    left:-10%;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px
}
@media(max-width: 1200px){
    .foto-memo {
        min-width: 50%;
    }
    .image-back[data-ang="dx"] {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
    }

    .image-back[data-ang="sx"] {
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }

    .blue-back[data-ang="sx-big"] {
        clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
    }

    .blue-back[data-ang="dx-big"] {
        clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
    }

    .slogan-span {
        font-size: 4.5vh;
    }

    .titolo-pagina {
        font-size: 4.5vh;
    }

    .blue-back {
        padding: 20% 4% 20% 4%; /*top right bottom left*/
    }

    .titolo {
        font-size: 4vh;
    }

    .testo {
        font-size: 2vh;
        text-align: justify !important;
    }

    .sottotitolo {
        font-size: 3vh;
    }

    .icona {
        color: #D2E9E9;
        font-size: 10vw;
    }
    .icona-grande {
        color: #D2E9E9;
        font-size: 12vw;
    }
    .mini-icona {
        font-size: 4.5vw;
    }

    .footer img {
        height: auto;
        width: 40%;
        margin-left: 5vw;
    }

    .footer > * {
        margin-bottom: 3vh;
        padding: 0;
    }

    .footer.row {
        padding: 0;
    }
}

@media (max-width: 1025px) {
    .mountain {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 120vw; /* stretch beyond screen */
        height: auto; /* preserve aspect ratio */
        transform: translateX(-50%);
        display: block; /* prevent inline spacing issues */
        max-width: none; /* override default img rule */
    }
}

    @media (max-width: 768px) {
        .mountain {
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 150vw; /* stretch beyond screen */
            height: auto; /* preserve aspect ratio */
            transform: translateX(-50%);
            display: block; /* prevent inline spacing issues */
            max-width: none; /* override default img rule */
        }

        #big-blue {
            padding-top: 35%;
        }

        .foto-memo {
            width: 75%;
        }

        .btn-diagram {
            height: 10vh;
        }

            .btn-diagram.active {
                height: 10vh;
            }

        #partner_row .col-3 img {
            max-width: 85%;
        }

        #logo_unito {
            max-height: 60% !important;
        }

        .footer img {
            height: auto;
            width: 40%;
            margin-left: 5vw;
        }

        .footer > * {
            margin-bottom: 3vh;
            padding: 0;
        }

        .footer.row {
            padding: 0;
        }

        .slogan-span {
            font-size: 4.5vh;
        }

        .titolo-pagina {
            font-size: 4.5vh;
        }

        .blue-back {
            padding: 25% 4% 25% 4%; /*top right bottom left*/
        }

        .titolo {
            font-size: 3.3vh;
        }

        .testo {
            font-size: 2vh;
            text-align: justify !important;
        }

        .sottotitolo {
            font-size: 2.5vh;
        }

        .icona {
            color: #D2E9E9;
            font-size: 10vw;
        }

        .icona-grande {
            color: #D2E9E9;
            font-size: 12vw;
        }

        .mini-icona {
            font-size: 5vw;
        }

        .image-back[data-ang="dx"] {
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
        }

        .image-back[data-ang="sx"] {
            clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
        }
    }

    .testo a {
        color: #427D9D; /* was hover color */
        transition: color 0.2s ease-in-out;
        display: flex;
        gap: 0.9rem;
        align-items: center;
    }

        .testo a:hover {
            color: #66A2C0; /* slightly brighter */
        }

    /* Links on blue background */
    .blue-back .testo a {
        color: #D1E8E8; /* was hover color */
        transition: color 0.2s ease-in-out;
    }

        .blue-back .testo a:hover {
            color: #E3F4F4; /* slightly brighter */
        }

    .flex-direction-column {
        flex-direction: column;
    }

    .pre-footer {
        background: #427D9D;
        font-size: 2.2vh;
        color: #F4F9F9;
    }

        .pre-footer img {
            max-width: 150px; /* Default for mobile */
            height: auto;
        }

    @media (min-width: 576px) {
        /* Small devices (phones landscape, ≥576px) */
        .pre-footer img {
            max-width: 180px;
        }
    }

    @media (min-width: 768px) {
        /* Medium devices (tablets, ≥768px) */
        .pre-footer img {
            max-width: 200px;
        }
    }

    @media (min-width: 992px) {
        /* Large devices (desktops, ≥992px) */
        .pre-footer img {
            max-width: 220px;
        }
    }

    @media (min-width: 1200px) {
        /* Extra large devices (desktops, ≥1200px) */
        .pre-footer img {
            max-width: 250px;
        }
    }

    .testo label {
        color: #164863;
    }


    .logo {
        width: 40%; /* default for <576px */
        height: 110%;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: -10px -5px 30px 0 rgba(0, 0, 0, 0.5);
        background-color: rgba(221, 242, 253, 0.5);
    }

    /* Small ≥576px */
    @media (min-width: 576px) {
        .logo {
            width: 37%;
            height: 115%;
        }
    }

    /* Medium ≥768px */
    @media (min-width: 768px) {
        .logo {
            width: 35%;
            height: 120%;
        }
    }

    /* Large ≥992px */
    @media (min-width: 992px) {
        .logo {
            width: 30%;
            height: 125%;
        }
    }

    /* Extra Large ≥1200px */
    @media (min-width: 1200px) {
        .logo {
            width: 25%;
            height: 130%;
        }
    }

    /* XXL ≥1400px */
    @media (min-width: 1400px) {
        .logo {
            width: 22%;
            height: 155%;
        }
    }

    .offcanvas.offcanvas-start {
        width: 70%;
    }

    header .nav-link {
        position: relative;
        font-size: 2rem;
    }

    .dropdown-menu {
        color: #164863;
        font-size: 1rem;
    }

        .dropdown-menu a {
            cursor: pointer;
        }

    header .btn {
        font-size: 1.3rem;
    }

    .offcanvas .btn {
        font-size: 1.3rem;
        color: #164863;
    }

    #submenuTools a {
        font-size: 1.3rem;
    }

    .offcanvas-title {
        font-size: 2.1rem;
        color: #164863;
    }

    header .dropdown-menu.show {
        border: unset;
        margin-top: 4% !important;
    }

.btn-close::before {
    display: inline-block;
    content: "×";
    font-size: 1.55rem;
    line-height: 1;
}

.btn-close-white{
    transition: transform 0.2s ease-in-out;
}

.btn-close-white:hover {
    transform: scale(1.1)
}

.cookie-toast {
    width: 90%; /* default for small screens */
    max-width: 100%;
}

@media (min-width: 576px) {
    .cookie-toast {
        width: 80%;
    }
}

@media (min-width: 768px) {
    .cookie-toast {
        width: 60%;
    }
}

@media (min-width: 992px) {
    .cookie-toast {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .cookie-toast {
        width: 40%;
    }
}

@media (min-width: 1400px) {
    .cookie-toast {
        width: 30%;
    }
}

.footer p{
    margin-bottom: unset;
}

.cookie-toast .toast-body {
    font-size: 1rem;
}

.cookie-toast strong{
    font-size: 1.3rem;
}

.dropdown-menu > li > a {
    color: #164863;
}

.dropdown-menu > li > a:hover {
    color: var(--primary-bg-color);
}

.btn-print {
    background-color: #427D9D;
    border-radius: 10px;
    padding: 0.6rem;
    font-size: 1.1rem;
    color: #F4F9F9;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

    .btn-print:hover {
        background-color: #2f617d; /* versione più scura di #427D9D */
        color: #ffffff; /* leggermente più acceso del bianco originale */
    }

@media print {
    body * {
        visibility: hidden;
    }

    #reference, #reference * {
        visibility: visible;
    }

    #reference {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}

.cookie-policy h1 {
    color: #164863;
}

.cookie-policy h2 {
    color: #164863;
}

.cookie-policy h3 {
    color: #164863;
}

.cookie-policy p {
    color: #164863;
    font-size: 1rem;
}

.cookie-policy thead {
    color: #164863;
    font-size: 1.15rem;
}

.cookie-policy td {
    align-content: start;
}

.cookie-policy table {
    border-collapse: separate;
    border-spacing: 1rem 0.4rem; /* default: desktop */
}

@media (max-width: 768px) {
    .cookie-policy table {
        border-spacing: 0.5rem 0.2rem; /* mobile/tablet: spazi ridotti */
    }
}

@media (max-width: 600px) {
    .cookie-policy table {
        border-spacing: 0rem 0rem; /* mobile/tablet: spazi ridotti */
    }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

    .table-wrapper table {
        width: max-content; /* or 100% if you want full width at larger screens */
        min-width: 600px; /* optional: define a reasonable min-width */
    }

@media (max-width: 768px) {
    .cookie-policy .table-wrapper {
        overflow-x: auto;
    }

    .cookie-policy table {
        width: max-content;
    }
}

.pre-footer a{
    all:unset;
}