/* Font faces */
@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Regular.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Medium.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans/DMSans-Bold.woff2') format('woff2'),
         url('../fonts/dm-sans/DMSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satisfy';
    src: url('../fonts/satisfy/Satisfy-Regular.woff2') format('woff2'),
         url('../fonts/satisfy/Satisfy-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* GENERAL SETTINGS */
html {
    scroll-behavior: smooth;
    background-color: #101010;
}

::-webkit-scrollbar, 
::-webkit-scrollbar-button {
    display: none;
}

body {
    -ms-overflow-style: none;
}

/* BASE ELEMENTS */
:where(body.w-body) {
    box-sizing: border-box;
    border-width: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

:where(img.w-image) {
    box-sizing: border-box;
    border-width: 1px;
    outline-width: 1px;
    max-width: 100%;
    display: block;
    height: auto;
}

:where(a.w-link, a.w-rich-text-link) {
    box-sizing: border-box;
    border-width: 1px;
    outline-width: 1px;
    min-height: 1em;
    display: inline-block;
}

:where(button.w-button) {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    text-transform: none;
    margin: 0;
}

:where(div.w-html-embed) {
    display: contents;
}

:where(b.w-bold-text) {
    font-weight: 700;
    box-sizing: border-box;
    border-width: 1px;
}

:where(h1.w-heading, h2.w-heading) {
    box-sizing: border-box;
    border-width: 1px;
    outline-width: 1px;
}

:where(div.w-text) {
    box-sizing: border-box;
    border-width: 1px;
    outline-width: 1px;
    min-height: 1em;
}

:where(input.w-text-input, textarea.w-text-area) {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    display: block;
    margin: 0;
}

:where(textarea.w-text-area) {
    resize: none;
}

/* LAYOUT */
.bodyContent {
    border-color: #101010;
}

.bodyInnerContent {
    color: #e7e5e4;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.375;
    background-color: #101010;
}

/* HERO SECTION */
.homeContent {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #101010;
}

.heroSection {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
}

.heroImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.heroOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #101010 25%, rgba(16, 16, 16, 0) 75%);
    display: flex;
    align-items: center;
}

.heroTitle {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    max-width: 1216px;
    column-gap: 1rem;
    row-gap: 1rem;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5%;
}

.heroTitleImage {
    max-width: 25%;

}

.heroTitleText {
    margin: 0;
    color: #d2b758;
    font-size: 2.75em;
    line-height: 0.5;
    font-weight: 200;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbarLogo {
    display: block;
    width: 80px;
    height: 80px;
    position: relative;
}

.navbarLogoImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    /* rimossa la transition */
}

.navbarLogoImage.white {
    opacity: 1;
}

.navbarLogoImage.gold {
    opacity: 0;
}

.navbarLogo:hover .navbarLogoImage.white {
    opacity: 0;
}

.navbarLogo:hover .navbarLogoImage.gold {
    opacity: 1;
}

.navbarMenu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #e7e5e4;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.navbarMenu svg {
    width: 100%;
    height: 100%;
}

.navbarMenu:hover {
    color: #d2b758;
}

.navbarMenu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* SIDE MENU */
.side-menu {
    height: 100dvh;
    width: 100%;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(15, 15, 15, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.side-menu a {
    padding: 20px;
    text-decoration: none;
    font-size: 40px;
    color: #e7e5e4;
    display: block;
    transition: 0.3s;
    text-align: center;
}

.side-menu a:hover {
    color: #d2b758;
}

.side-menu .close-btn {
    position: absolute;
    top: 55px;
    right: 25px;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7e5e4;
    border: none;
    background: transparent;
    margin-right: 30px;
    padding: 0;
}

.side-menu .close-btn:hover {
    color: #d2b758;
}

.side-menu.open {
    opacity: 1;
    visibility: visible;
}

/* ABOUT SECTION */
.aboutExternContent {
    position: relative;
    margin-top: 0;
    background-color: rgba(15, 15, 15, 0.71);
}

.aboutExternBox,
.storyBox,
.story2Box {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.aboutExternBox.visible,
.storyBox.visible,
.story2Box.visible {
    opacity: 1;
    transform: translateY(0);
}

.aboutInnerContent {
    position: relative;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 6rem;
    padding-right: 6rem;
    z-index: 2;
}

.aboutExternBox {
    display: flex;
    padding: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    box-shadow: 0 25px 50px -12px #00000040;
    top: -6rem;
    flex-wrap: wrap;
    background-color: #252525;
}

.aboutInnerBoxText {
    display: flex;
    flex-direction: column;
    column-gap: 1rem;
    row-gap: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    padding-left: 0rem;
    padding-right: 0rem;
    padding-top: 30px;
}

.aboutInnerBoxTitle {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
    font-weight: 600;
    font-size: 2.8em;
    font-family: 'Satisfy', sans-serif;
    color: #d2b758;
}

.aboutDescription {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    padding-right: 2rem;
    column-gap: 6em;
    row-gap: 6em;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.storyBox, .story2Box {
    display: flex;
    align-items: center;
    column-gap: 4rem;
    row-gap: 4rem;
}

.storyBoxImage, .story2BoxImage {
    width: 55%; /* Ridotta la larghezza */
    margin: 0 auto; /* Centra il contenitore */
    border-radius: .5rem;
    overflow: hidden;
    aspect-ratio: 0.67; /* Rapporto 2:3 per un formato verticale */
    background-color: #252525;
}

.storyImage, .story2Image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}

.storyBoxText, .story2BoxText {
    display: flex;
    flex-direction: column;
    width: 100%;
    column-gap: 1rem;
    row-gap: 1rem;
}

.storyExternTitle, .story2ExternTitle {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 2rem;
    margin-right: 2rem;
    line-height: 1.25;
    font-size: 2.25em;
}

.storyInnerTitle, .story2InnerTitle {
    line-height: 1;
    font-family: 'Satisfy', sans-serif;
    color: #d2b758;
    font-size: 1.5em;
}

.storyText, .story2Text {
    margin-left: 2rem;
    margin-right: 2rem;
}

/* FOOTER */
.footerExternContent {
    position: relative;
    border-color: transparent;
    background-color: #252525;
}

.footerInnerContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 1rem;
    row-gap: 1rem;
    padding: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.footerExternBox {
    display: flex;
    flex-direction: column;
    column-gap: 1rem;
    row-gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footerInnerBox {
    display: flex;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: center;
    column-gap: 30px;
    row-gap: 30px;
}

.iconBox {
    color: #e7e5e4;
    width: 2rem;
    height: 2rem;
}

.iconBox:hover {
    color: #d2b758;
}

.footerInnerBoxText {
    display: flex;
    align-items: center;
    justify-content: center;
}

.textLink {
    text-decoration-line: none;
    color: #e7e5e4;
    margin-left: 7px;
}

.textLink:hover {
    color: #d2b758;
}

/* CAROUSEL STYLES */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 0.67; /* Rapporto 2:3, stesso della box image */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;  /* Aggiunto per centrare l'immagine */
    align-items: center;  /* Centra verticalmente */
    justify-content: center;  /* Centra orizzontalmente */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;  /* Assicura che lo slide attivo sia sopra gli altri */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* MEDIA QUERIES */
@media (max-width: 1440px) {
    .heroTitleImage { max-width: 30%; }
    .navbar {background: linear-gradient(to bottom, rgba(18, 18, 18) 0%, rgba(0,0,0,0) 100%);}
    .navbarLogo { width: 80px; height: 80px; }
    .navbarMenu, .side-menu .close-btn { height: 2rem; }
    .aboutInnerBoxTitle {
        font-size: 2.5em;
        color: #d2b758;
    }
       

    .aboutInnerContent {
        padding-left: 0rem;
        padding-right: 0rem;
        max-width: 1100px;
    }

    .storyBoxImage, .story2BoxImage {
        width: 75%;
    }


    .storyBoxText, .story2BoxText {
        column-gap: 1rem;
        row-gap: 1rem;
        font-size: 1.25rem;
    }
    .storyInnerTitle, .story2InnerTitle {
        font-size: 1.2em;
    }
    .storyText, .story2Text {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .bodyInnerContent { font-size: 1rem; }
    .navbarLogo { width: 70px; }
    .aboutInnerBoxTitle {
        font-size: 2.2em;
    }
    .storyImage, .story2Image {
        aspect-ratio: 1;
    }
    .storyText {
        margin-right: 1.5rem;
    }
    .story2Text {
        margin-left: 1.5rem;
    }
}

@media (max-width: 767px) {
    .heroSection {
        width: 100%;
    }
    
    .heroOverlay {
        background: linear-gradient(180deg, #101010 0%, rgba(16, 16, 16, 0) 50%);
    }

    .heroTitle {
        margin-top: auto;
        margin-bottom: 8em;
    }
    .heroShadow {
        right: 0;
        bottom: 50%;
        background: linear-gradient(180deg, #101010, #1e293b00);
        height: 30vh;
    }
    .heroTitle {
        margin-top: auto;
        margin-bottom: 8em;
    }
    .heroTitleImage {
        max-width: 50%;
    }
    .heroTitleText {
        width: auto;
        font-size: 2.45em;
        line-height: .5;
    }
    .side-menu a {
        font-size: 30px;
    }
    .navbarMenu {
        width: 2rem;
        height: 2rem;
    }
    .aboutInnerBoxTitle {
        font-size: 2.2em;
    }
    .storyBox, .story2Box {
        flex-direction: column;
        column-gap: 3em;
        row-gap: 3em;
    }
    .storyBoxImage, .story2BoxImage {
        width: 100%;
        aspect-ratio: 0.67;
    }
    .storyImage, .story2Image {
        height: 100%;
        object-fit: cover;
        aspect-ratio: 0.67;
    }
    .storyBoxText, .story2BoxText {
        order: 1;
    }
    .side-menu .close-btn {
        height: 1.7rem;
        width: 1.7rem;
        right: 20px;
    }
}

@media (max-width: 479px) {
    .homeContent { padding: 0; }
    .heroSection {
        bottom: 10rem;
    }
    .heroTitle {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .heroTitleImage {
        max-width: 70%;
    }
    .heroTitleText {
        font-size: 2.25em;
    }

    .navbarMenu {
        margin-right: 10px;
    }
    .aboutExternBox {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .aboutInnerBoxTitle {
        font-size: 2.2em;
    }
    .storyExternTitle, .story2ExternTitle {
        margin-left: 0;
        margin-right: 0;
        font-size: 1.5em;
    }
    .storyText, .story2Text {
        margin-left: 0;
        margin-right: 0;
    }
    .side-menu .close-btn {
        right: 5px;
    }
}

/* Per utenti che preferiscono animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
    .aboutExternContent {
        transition: none;
        opacity: 1;
        transform: none;
    }
}