@font-face {
    font-family: 'Futura Bk BT';
    src: url('../fonts/futura/FuturaBT-Book.eot');
    src: url('../fonts/futura/FuturaBT-Book.eot?#iefix') format('embedded-opentype'),
        url('../fonts/futura/FuturaBT-Book.woff2') format('woff2'),
        url('../fonts/futura/FuturaBT-Book.woff') format('woff'),
        url('../fonts/futura/FuturaBT-Book.ttf') format('truetype'),
        url('../fonts/futura/FuturaBT-Book.svg#FuturaBT-Book') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futura Md BT';
    src: url('../fonts/futura/FuturaBT-Bold.eot');
    src: url('../fonts/futura/FuturaBT-Bold.eot?#iefix') format('embedded-opentype'),
        url('../fonts/futura/FuturaBT-Bold.woff2') format('woff2'),
        url('../fonts/futura/FuturaBT-Bold.woff') format('woff'),
        url('../fonts/futura/FuturaBT-Bold.ttf') format('truetype'),
        url('../fonts/futura/FuturaBT-Bold.svg#FuturaBT-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
}

.grecaptcha-badge {
    display: none !important;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

*::selection {
    background: #808080;
    color: #ffffff;
}

body {
    font-family: 'Futura Bk BT';
    margin-top: 65px;
    min-height: calc(100vh - 65px);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1 {
    font-size: 35px;
    font-family: 'Futura Md BT';
    color: black;
}

h1 .fw-normal {
    font-family: 'Futura Bk BT';
}

h2 {
    font-size: 25px;
    color: black;
}

p {
    font-size: 16px;
}

/* tutti gli Overlay */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1010;
    cursor: pointer;
    transition: none;
}

#lineatempo>.overlay-backdrop,
#lineatempo .overlay-backdrop {
    top: 175px;
    height: calc(100vh - 175px);
}

#lineatempo.collapse:not(.show),
.fondazione-overlay.collapse:not(.show) {
    display: none !important;
}

#lineatempo.collapse.show,
.fondazione-overlay.collapse.show {
    display: block !important;
}

#lineatempo.collapsing,
#lineatempo.collapse,
.fondazione-overlay.collapsing,
.fondazione-overlay.collapse {
    transition: none !important;
}

#lineatempo.show .overlay-backdrop,
.fondazione-overlay.show .fondazione-overlay-backdrop {
    display: block;
}

#lineatempo:not(.show) .overlay-backdrop,
.fondazione-overlay:not(.show) .fondazione-overlay-backdrop {
    display: none;
}

body:has(#lineatempo.show) {
    overflow: hidden;
}

#lineatempo .mobile-overlay,
.fondazione-overlay .mobile-overlay {
    overflow-y: auto;
}

/* navbar */
.navbar-toggler:active,
.navbar-toggler:focus,
.navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar {
    background-color: white;
    /* border-top: 2px solid gray;
    border-bottom: 2px solid gray; */
    z-index: 1030;
    height: 75px;
}

.brand img {
    display: block;
    max-height: 100%;
    width: 250px;
    object-fit: cover;
}

.nav-link {
    color: black;
}

.nav-link:not(.not-hover) {
    font-weight: bold;
    transition: 0.1s;
    font-family: 'Futura Md BT';
}

.nav-link.active {
    color: rgb(129, 129, 129) !important;
    /* text-decoration: underline !important; */
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 25px;
    height: 25px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
    opacity: 1;
}

.fa-circle-half-stroke {
    display: inline-block;
    transform-origin: center;
    transform: scaleX(-1) rotate(-45deg);
    transition: transform 400ms ease;
    cursor: pointer;
}


/* home page */
.immagine-cover {
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100dvh - 65px);
    width: 100%;
    object-fit: cover;
    z-index: -1;
}

/* fix immagine home */
/* .blocco-home {
  height: var(--fixed-home-height);
} */

.video-responsive {
    width: 100vw;
    height: 220px;
    object-fit: cover;
    object-position: center center;
}

.nav-link:hover {
    color: rgb(129, 129, 129);
}

/* la mostra */
/* lineatempo overlay */
.lineatempo {
    font-size: 10px;
    overflow: scroll;
    background-color: white;
    opacity: 1;
}

.lineatempo li {
    list-style: none;
}

/* la fondazione */
/* overlay generici fondazione */
.fondazione-overlay {
    position: relative;
}

.fondazione-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1010;
}

.fondazione-overlay .mobile-overlay {
    position: relative;
    width: 100%;
    min-height: 200px;
    background-color: white;
    z-index: 1020;
}

.btn-close-custom {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: end;
}

.btn-close-custom .close-icon {
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m6 6l18 18M6 24l18-18'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: end;
}

/* Mobile e Tablet */
@media (max-width: 1399.98px) {

    /* navbar overlay */
    #navbarSupportedContent .mobile-overlay {
        position: fixed !important;
        top: 75px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 75px);
        background-color: white;
        z-index: 1020;
        opacity: 0;
        visibility: hidden;
        transition: none;
    }

    #navbarSupportedContent .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    #navbarSupportedContent .mobile-overlay .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    #navbarSupportedContent .mobile-overlay .nav-item {
        width: 100%;
    }

    #navbarSupportedContent .mobile-overlay .nav-link {
        font-size: 28px;
        padding-top: 20px;
        text-decoration: none;
    }

    /* tutti gli overlay */
    #lineatempo .mobile-overlay {
        position: fixed !important;
        top: 175px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 175px);
        background-color: white;
        z-index: 1020;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    .fondazione-overlay .fondazione-overlay-backdrop {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1010;
    }

    .fondazione-overlay .mobile-overlay {
        position: relative !important;
        width: 100%;
        background-color: white;
        z-index: 1020;
        opacity: 1;
        visibility: visible;
        transition: none;
        overflow-y: auto;
        min-height: 250px;
    }
}

/* Desktop */
@media (min-width: 1400px) {

    /* navbar overlay */
    #navbarSupportedContent .mobile-overlay {
        position: static !important;
        background: transparent;
        z-index: auto;
        opacity: 1;
        visibility: visible;
        width: auto;
        height: auto;
        padding: 0;
        transition: none;
    }

    .navbar-nav {
        position: relative;
    }

    /* .navbar-nav .nav-link {
        transition: transform 0.2s ease;
        transform: translateY(0);
    }

    .navbar-nav:hover .nav-link:not(:hover):not(.not-hover) {
        transform: translateY(3px);
    }

    .navbar-nav:has(.nav-link.not-hover:hover) .nav-link,
    .navbar-nav:has(.nav-link.not-hover:active) .nav-link,
    .navbar-nav:has(.nav-link.not-hover:focus) .nav-link,
    .navbar-nav:has(.nav-link.not-hover:focus-visible) .nav-link,
    .navbar-nav:has(.dropdown-menu:hover) .nav-link,
    .navbar-nav:has(.dropdown-item:hover) .nav-link,
    .navbar-nav:has(.dropdown-item:active) .nav-link,
    .navbar-nav:has(.dropdown-item:focus) .nav-link {
        transform: translateY(0) !important;
    } */

    .nav-link:not(.not-hover):hover {
        transform: scale(1.1);
        color: black;
    }

    .dropdown-menu {
        min-width: 55px;
        width: max-content;
        border-radius: 2px;
    }

    /* Search bar */
    .search-bar {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: transparent;
        z-index: 1025;
        padding: 12px 0;
        transform: translateY(-100%);
        transition: none;
    }

    .search-bar.show {
        transform: translateY(0);
    }

    .search-bar input:focus {
        border-color: black;
        box-shadow: none;
        outline: none;
    }

    .search-bar .btn-close {
        font-size: 20px;
        box-shadow: none;
        outline: none;
    }

    .search-bar input[type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
    }

    .search-bar input[type="search"] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    .dropdown-item:active {
        color: white;
        background-color: black;
    }

    /* tutti gli overlay */
    #lineatempo .mobile-overlay {
        position: fixed !important;
        top: 175px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 175px);
        background-color: white !important;
        z-index: 1020;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }

    .fondazione-overlay .fondazione-overlay-backdrop {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 1010;
    }

    .fondazione-overlay .mobile-overlay {
        position: relative !important;
        width: 100%;
        background-color: white !important;
        z-index: 1020;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
        overflow-y: auto;
    }
}


/* Aspect-ratio - RUBATE DA MARIONANNI.COM */
.aspect {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.ratio--1x1 {
    padding-bottom: 100%;
}

.ratio--1x2 {
    padding-bottom: 50%;
}

.ratio--16x9 {
    padding-bottom: 56.25%;
}

.ratio--4x3 {
    padding-bottom: 75%;
}

.ratio--3x2 {
    padding-bottom: 66.66%;
}

.ratio--8x5 {
    padding-bottom: 62.5%;
}

.ratio--9x16 {
    padding-bottom: calc(100% * 16 / 9);
}

.ratio--special {
    padding-bottom: calc(50vh - 0px);
}

.ratio--var {
    padding-bottom: calc(50% + 10vw);
}

@media screen and (max-width: 767px) {
    .ratio--1x1.ratio-mob-4-3 {
        padding-bottom: 75%;
    }

    .nav-link {
        font-size: 25px !important;
    }

}

.aspect__inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
    overflow: hidden;
    z-index: 0;
    /*mix-blend-mode:multiply;*/
}

.aspect__inner img,
.aspect__inner video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    /*Obsoleto*/
    object-fit: cover;
    /*Obsoleto*/
    /*mix-blend-mode:multiply;*/
}

/* Aspect-ratio - RUBATE DA MARIONANNI.COM */

@media (max-width: 576px) and (min-width: 419px) {
    .imamgine-overlay {
        max-height: 240px !important;
    }
}

@media (max-width: 420px) {
    .imamgine-overlay {
        max-height: 190px !important;
    }
}

.titolo-home-responsive {
    color: white;
    max-width: 800px;
    font-size: 48px;
}

.testo-responsive>p {
    font-size: 24px !important;
}

@media (max-width: 500px) {
    .titolo-home-responsive {
        font-size: 40px;
    }

    .testo-responsive>p {
        font-size: 18px !important;
    }
}

@media (max-width: 370px) {
    .brand img {
        width: 200px;
    }
}

/* form */
input,
textarea,
input:active,
input:focus,
input:focus-visible,
textarea:active,
textarea:focus,
textarea:focus-visible {
    border: 1px solid #b2b2b2 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 4px !important;
}

.form-check-input:checked {
    accent-color: black;
    background-color: black;
    border-color: black;
}

.select2-selection {
    padding: 18px;
}

.select2-selection__rendered {
    position: relative;
    top: -14px;
    left: -10px;
}

footer,
footer p,
footer div,
footer a {
    font-size: 14px;
}

a.footer {
    color: white;
    text-decoration: none;
}

.bottone-statuto:hover {
    background-color: black;
    color: white !important;
}

.bottone-statuto:active {
    background-color: white;
    color: black !important;
}

.bottone-template:hover,
.bottone-template:active {
    background-color: white !important;
    color: black !important;
}

.footer:hover {
    text-decoration: underline;
}

strong {
    font-family: 'Futura Md BT';
    font-weight: 900 !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 30px;
}