﻿/* ===============================
   RESET & BASE
   =============================== */

:root {
    --sidebar-width: 6.125rem;
    --header-mob-height: 4.375rem; /*70px*/
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    font-size: 16px; 
}

:target {
    scroll-margin-top: 5rem; 
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-ivory);
    background-color: var(--color-midnight);
    margin: 0;
}

*:focus-visible {
    outline: 2px solid var(--color-focus) !important;
    outline-offset: 2px;
}

a {
    color: #0d6efd;
    text-decoration: underline;
}

    a:hover,
    a:focus {
        color: #0a58ca;
        outline: none;
    }

    a:focus-visible {
        outline: 2px solid var(--color-focus) !important;
        outline-offset: 2px;
    }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    font-size: 1.5rem;
    background: var(--color-sand);
    color: var(--color-ivory) !important;
    padding: 8px 12px;
    z-index: 1000;
}

    .skip-link:focus {
        top: 1rem;
    }

@media (min-width: 1400px) {
    .h-xxl-100 {
        height: 100% !important;
    }
}

/* ===============================
   SIDEBAR
   =============================== */

.sidebar {
    display: none;
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    border-right: 1px solid var(--color-sand);
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
}

.sidebar-toggle {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 70px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    outline: none;
    border-top: 1px solid var(--color-sand);
    border-bottom: 1px solid var(--color-sand);
    border-left: 1px solid var(--color-sand);
    border-right: 1px solid var(--color-sand);
}

    .sidebar-toggle:focus-visible {
        outline: 2px solid var(--color-focus);
        outline-offset: 2px;
    }

    .sidebar-toggle:hover {
        background-color: var(--color-sand);
    }

.icon-menu {
    max-width: 100%;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-sand);
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 0 0 0;
}

    .sidebar-logo img {
        width: 180px;
        transform: rotate(270deg);
        transform-origin: center center;
        display: block;
    }

.sidebar-logo-text {
    font-family: 'Hatton', serif;
    color: var(--color-ivory);
    font-size: 1rem;
    text-transform: uppercase;
    position: absolute;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background-color: var(--color-midnight);
    margin-top: 0rem;
    z-index: 2;
    transition: margin-top 0.8s ease-in-out;
}

    .sidebar-logo-text.scrolled {
        margin-top: -40rem;
    }

.icon-sidebar-social {
    max-height: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {

    .sidebar {
        display: flex;
    }

    .sidebar-toggle {
        width: var(--sidebar-width);
        height: initial;
    }

    .icon-menu {
        max-width: var(--sidebar-width);
    }

}

/* ===============================
   HEADER
   =============================== */

header {
    position: fixed;
    z-index: 99;
    background-color: var(--color-midnight);
    top: 0;
    height: var(--header-mob-height);
}

header > .row {
    margin-left: var(--sidebar-width);
}

    header .logo-itama {
        position: absolute;
        top: 1.75rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: 135px;
        z-index: 10000;
    }

header .nav {
    position: relative;
    z-index: 10000;
}

header .nav-link {
    font-family: 'Hatton', serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-ivory);
    text-decoration: none;
}

    header .nav-link.active {
        color: var(--color-orange) !important;
    }

    header .nav-link:hover {
        color: var(--color-ivory);
    }

header nav .nav-item {
    position: relative;
}

    header nav .nav-item:not(:last-child)::after {

    }

@media (min-width: 768px) {

    header {
        position: relative;
        height: initial;
        background-color: initial;
    }

    header .logo-itama {
        max-width: 220px;
        top: initial;
        left: initial;
        transform: initial;
        position: relative;
    }

}

/* ===============================
   LANG LIST
   =============================== */

@media (min-width: 992px) {
    #langSelect {
        display: none;
    }
    /* nasconde il select */
    #langList {
        display: flex;
    }

        #langList .nav-item:not(:last-child)::after {
            content: "/";
            margin: 0 0.5rem;
            color: var(--color-ivory);
            position: absolute;
            top: 7px;
            right: -10px;
        }
}

@media (max-width: 991.98px) {
    #langList {
        display: none;
    }

    #langDropdownWrapper {
        display: block;
    }

    #langDropdown {
        font-family: 'Hatton', serif;
        text-transform: uppercase;
        font-size: 1rem;
        color: white;
        background: transparent;
        border: 0;
    }

    .dropdown-menu .active {
        color: var(--color-midnight);
    }
}

/* ===============================
   OVERLAY MENU
   =============================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 29, 44, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .menu-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.menu-content {
    text-align: center;
    color: var(--color-ivory);
    position: relative;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .menu-list li {
        margin: 0;
    }

    .menu-list a {
        color: var(--color-ivory);
        text-decoration: none;
        line-height: 1;
    }

.menu-close {
    position: absolute;
    top: 0rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--color-ivory);
    cursor: pointer;
}

@media (min-width: 768px) {

    .menu-close {
        top: 1rem;
        left: 1.75rem;
    }

}

/* ===============================
   MODEL MAIN CONTENT
   =============================== */

.content {
    margin-top: var(--header-mob-height);
}

.model-video-hero {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.ico-controls {
    width: 75px;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: transparent;
    border: 0;
    opacity: 0.8;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.7));
}

    .ico-controls:hover {
        opacity: 1;
    }

    .ico-controls:focus-visible {
        outline: 2px solid var(--color-focus);
        outline-offset: 2px;
    }

.border-overview {
    border-top: 1px solid var(--color-sand);
}

.btn-overview {
    position: relative;
    border: 1px solid var(--color-sand);
    background-color: transparent;
    font-family: 'Hatton', serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-ivory);
    padding: 0.75rem 2rem 0.5rem 1.25rem;
    width: 300px;
    text-align: left;
}

    .btn-overview.dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        margin-left: 0;
        content: "";
        width: 13px;
        height: 7px;
        background-image: url("/Portals/9/Skins/Itama-2025/assets/img/chevron-down.svg");
        background-repeat: no-repeat;
        background-size: contain;
        border: none;
        transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    }

    .btn-overview[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .btn-overview:focus-within {
        outline: 2px solid var(--color-focus);
        outline-offset: 2px;
    }

.dropdown-overview {
    min-width: 100%;
    width: 100%;
    background-color: var(--color-midnight);
    border: 1px solid var(--color-sand);
    border-radius: 25px;
    margin-top: 1rem !important;
}

    .dropdown-overview .dropdown-item {
        font-family: 'Hatton', serif;
        font-size: 1rem;
        text-transform: uppercase;
        color: var(--color-ivory);
    }

    .dropdown-overview .dropdown-item {
        font-family: 'Hatton', serif;
        font-size: 1rem;
        text-transform: uppercase;
        color: var(--color-ivory);
    }

    .dropdown-overview .dropdown-item:hover {
        background-color: transparent;
    }

@media (min-width: 768px) {

    .content {
        margin-top: initial;
        margin-left: var(--sidebar-width);
    }

    .model-video-hero {
        aspect-ratio: 16 / 9;
    }

}

/* ===============================
   GALLERY MEDIA
   =============================== */

.border-media-title {
    border-bottom: 1px solid var(--color-sand);
}

.btn-owl-category {
    display: inline-block;
    font-family: 'Hatton', serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-ivory);
    border: 1px solid var(--color-ivory);
    background-color: var(--color-midnight);
    text-decoration: none;
    padding: 1rem 2rem 0.75rem 2rem;
    transition: all 0.25s ease-in-out;
    line-height: 1;
}

    .btn-owl-category.active {
        color: var(--color-midnight);
        border: 1px solid var(--color-midnight);
        background-color: var(--color-ivory);
    }

    .btn-owl-category:not(.active):hover {
        background-color: var(--color-sand);
        border: 1px solid var(--color-sand);
    }

@media (max-width: 767.98px) {
    [role="tablist"] {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .btn-owl-category {
        flex: 0 0 50%; 
        max-width: 50%;
        text-align: center;
    }
}

.btn-owl-deck {
    font-family: 'Hatton', serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    background-color: transparent;
    border: 0;
    color: var(--color-ivory);
    opacity: 0.6;
    transition: all 0.25s ease-in-out;
}

.btn-owl-deck.active {
    opacity: 1;
}

.owl-carousel img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

#media .owl-theme .owl-stage {
    padding-left: 0 !important;
}

#media .owl-theme .owl-nav {
    text-align: left;
    margin-top: 2rem;
}

#media .owl-carousel .owl-nav button.owl-prev,
#media .owl-carousel .owl-nav button.owl-next {
    border: 1px solid var(--color-ivory);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: black;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease, transform 0.2s ease;
}

    #media .owl-carousel .owl-nav button.owl-prev:not(.disabled):hover,
    #media .owl-carousel .owl-nav button.owl-next:not(.disabled):hover {
        background-color: var(--color-sand);
        border: 1px solid var(--color-sand);
    }

    #media .owl-carousel .owl-nav button.owl-prev.disabled,
    #media .owl-carousel .owl-nav button.owl-next.disabled {
        background-color: transparent;
    }

        #media .owl-carousel .owl-nav button.owl-prev span,
        #media .owl-carousel .owl-nav button.owl-next span {
            color: var(--color-ivory);
        }

.deck-tab-separator {
    color: var(--color-ivory);
    line-height: 1.2;
}

/* ===============================
   LAYOUT
   =============================== */

.border-layout-title {
    border-bottom: 1px solid var(--color-midnight);
}

.btn-layout {
    font-family: 'Hatton', serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    background-color: transparent;
    border: 0;
    color: var(--color-midnight);
    opacity: 0.4;
    transition: all 0.25s ease-in-out;
    line-height: 1;
}

.btn-layout.active {
    opacity: 1;
}

.fade-panel {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .fade-panel.show {
        opacity: 1;
        visibility: visible;
        display: block;
    }

.layou-tab-separator {
    color: var(--color-midnight);
    line-height: 0.8;
}

@media (max-width: 767.98px) {
    #layout-tablist {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
    }

        #layout-tablist > * {
            flex: 0 0 auto;
        }
}

/* ===============================
   FORM
   =============================== */

.border-form-title {
    border-bottom: 1px solid var(--color-sand);
}

.form-control {
    background-color: transparent;
    border: 1px solid var(--color-sand);
    color: var(--color-ivory);
    border-radius: initial;
    font-size: 1rem;
}

    .form-control::placeholder {
        color: var(--color-ivory);
        opacity: 1;
    }

    /* Colore quando l’input è in focus */
    .form-control:focus::placeholder {
        color: var(--color-midnight);
    }

    .form-check-input:focus-within {
        outline: 0;
        box-shadow: 0 0 0 .25rem var(--color-focus);
    }

    .form-control:focus,
    .form-control:focus-visible {
        outline: 0 !important;
    }

.form-control[disabled="disabled"] {
    background: transparent;
    opacity: 0.25;
}

.form-check-input:checked {
    background-color: var(--color-sand);
    border-color: var(--color-sand);
}

@media (min-width: 992px) {
    fieldset #consent1Label,
    fieldset #consent2Label,
    fieldset #consent3Label {
        max-width: 75%;
    }
}

select.form-control option {
    color: var(--color-midnight);
}

.toast-body {
    color: var(--color-midnight);
}

.error {
    color: var(--color-focus);
}

.form-check-input.is-invalid ~ .form-check-label {
    color: inherit;
}

.form-check-input.is-invalid {
    border-color: var(--color-focus);
    outline: 2px solid var(--color-focus) !important;
    outline-offset: 2px;
}

.form-control:focus {
    color: var(--color-ivory);
    background-color: transparent;
    border-color: var(--color-focus);
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(255, 191, 71, .25);
}

/* ===============================
   TECH DATA
   =============================== */

.border-tech-title {
    border-top: none;
    opacity: 1;
    border-bottom: 1px solid var(--color-sand);
}

.table.table-techdata > :not(caption) > * > * {
    font-family: 'Hatton', serif;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--color-ivory);
    border-color: var(--color-sand);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table.table-techdata > :not(caption) > * > * {
    font-family: 'Hatton', serif;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--color-ivory);
    border-color: var(--color-sand);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table.table-techdata thead th {
    font-family: Helvetica, Arial, sans-serif !important;
}

.table.table-techdata td {
    font-family: Helvetica, Arial, sans-serif !important;
}

/* ===============================
   FOOTER
   =============================== */

footer {
    border-top: 1px solid var(--color-sand);
}

.logo-itama-footer {
    max-width: 220px;
}

.list-link-footer li {
    margin-bottom: 0.75rem;
}

.text-link-footer {
    font-family: 'Hatton', serif;
    color: var(--color-ivory);
    font-size: 1rem;
    text-transform: uppercase;
}

    .text-link-footer:hover {
        color: var(--color-ivory);
    }

.text-copy {
    font-family: 'Hatton', serif;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
}

.text-link-bottom {
    font-family: 'Hatton', serif;
    color: var(--color-midnight);
    font-size: 1rem;
    text-transform: uppercase;
}

    .text-link-bottom:hover {
        color: var(--color-midnight);
    }