:root {
    --transition: transform 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.js-loaded {
    scroll-behavior: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    height: 100%;
}


#main-logo {
    padding: 1.5rem ;

}

#main-logo img {
    width: auto;
    display: block;
}

#menu {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 60px;
}

#top-info {
    display: flex;
    flex-wrap: wrap;
    margin-right: 2em;
    gap: 15px;
    justify-content: flex-end;
}

.b-info {
    display: flex;
    align-items: center;
    padding: 5px;

}

.icon img{
    display: block;
    height: auto;
    width: 24px;
}

.info-text {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    line-height: 1.2;
}

.grid {
    display: grid;
    justify-content: center;
}

.container .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 320px));
}

.card {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 1em;
}

.card-head, .card-body, .card-foot {
    padding: 1em;
}

.card-foot {
    margin-top: auto;
    border-radius: 0 0 15px 15px;
}

.card ul, .article-container ul {
    list-style-type: square;
    text-align: left;
    list-style-position: inside;
}

#chi-siamo {
    min-height: 80vh;
}

footer {
    display: flex;
    flex-direction: column;
    min-height: 70vh;
    border-top: 2px solid rgba(0,0,0,0.3);
    margin-top: auto;
}

#footer-top {
    display: flex;
    justify-content: space-between;
    padding: 3rem 5%;
    width: 100%;


}

#footer-bottom {
    margin-top: auto;
    padding: 3rem 5%;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.footer-col h4 {
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 1.1rem;
    letter-spacing: -0.2px;

}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons span {
    font-size: 1.5rem;
    cursor: default;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

#main {
    position: relative;
    max-width: 1920px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;

}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}

.gap10 {
    gap: 10px;
}

.gap20 {
    gap: 20px;
}

.pad20 {
    padding: 20px;
}

.pad10 {
    padding: 10px;
}

.nav-links {
    flex: 1 auto;
    text-align: right;
    padding: 0 2em;
    text-transform: uppercase;
}

.nav-links li{
    display: inline;
    list-style-type: none;
    margin: 0;
    padding: 0 10px;
    height: 100%;
}


.hero-content {
    position: relative;
    /* Fallback per browser molto vecchi */
    height: 500px;

    /* Fallback per il clamp */
    min-height: 300px;
    max-height: 600px;
    height: 80vh;

    /* Browser moderni */
    height: clamp(300px, 80vh, 600px);
    overflow: hidden;
}

.hero-text, .hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out var(--delay, 0s),
                transform 0.8s ease-out var(--delay, 0s);
}

.appear {
    opacity: 1;
    transform: translateY(0) !important;
}


#hero-0 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.article-container, .container {
    line-height: 1.65;
    padding: 2rem 2rem;
    text-align: center;
    margin: 0 auto;
    height: auto;

}

.article-container {
    max-width: 980px;
    width: 90%;
    text-align: left;
    font-size: 1.1rem;
}

.container {
    width: 100%;

}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

h5 {
    font-size: 1.0rem;
}

h6 {
    font-size: .8rem;
}

.article-container h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
    max-width: 70ch;

}


.bg-fixed {
    background-attachment: fixed !important;
    background-size: cover;
    background-repeat: no-repeat;

}


.active:hover {
    box-shadow: 0 5px 11px 2px rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.carousel {
    position: relative;
    margin: 2em auto;
    max-width: 1000px;
    /*scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;*/
    scroll-behavior: smooth;
    width: 95%;
    overflow: hidden;
    padding: 2em 0;

}

.carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
}

.carousel-move:hover {
    animation: scroll 25s linear infinite;
}

/*
.carousel:hover .carousel-track {
    animation-play-state: paused;
}
*/

.partner-card {
    flex: 0 0 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.partner-card img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    opacity: 0.8;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

.hide-scrollbar
{
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.img-card {
    flex: 0 0 20em;
    height: 20em;
    margin: 1em 0;
    border-radius: 15px;
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    max-width: 80vw
}


.active:hover {
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

#hamburger, #hamburger-icon {
    opacity: 0;
}

#hamburger-icon {
    border-radius: 5px;
    padding: 10px 20px;

    box-shadow: 0 0 5px 0 rgba(0, 0 ,0, 0.5);
}

.center {
    text-align: center;
}


.footer-lang-link {
    padding: 0 5px;
    transition: opacity 0.2s;
}

.footer-lang-link:hover {
    opacity: 0.7;
}