@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    --primary: #000000;
    --primary-hover: #1a1a1a;
    --primary-active: #333333;

    --secondary: #ffffff;
    --secondary-hover: #f5f5f5;
    --secondary-active: #e9e9e9;

    --bs-primary: var(--primary);
    --bs-primary-rgb: 0, 0, 0;

    --bs-secondary: var(--secondary);
    --bs-secondary-rgb: 255, 255, 255;
}

html,
body {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 500 !important;
}

h1, h2, h3 {
    line-height: 1 !important;
}

.no-focus:focus,
.no-focus:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ===========================
   Navbar
   =========================== */
.site-header {
    position: relative;
    z-index: 1030;
}

.site-header-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.site-header-contact {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #2a2a2a;
    font-size: .92rem;
    font-weight: 600;
    transition: color .18s ease;
}

.site-header-contact:hover {
    color: var(--primary-active);
}

.site-header-main-wrap {
    z-index: 1035;
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
}

.site-header-main-wrap.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

.site-main-nav {
    min-height: 88px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: saturate(180%) blur(10px);
    transition: min-height .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.site-header-main-wrap.is-sticky .site-main-nav {
    min-height: 74px;
    background: rgba(255, 255, 255, .98);
}

.site-main-nav-brand {
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: .02em;
}

.site-main-nav-brand img {
    height: 52px;
    width: auto;
    transition: height .28s ease;
}

.site-header-main-wrap.is-sticky .site-main-nav-brand img {
    height: 44px;
}

.site-main-nav-toggler {
    color: var(--secondary);
    font-size: 1.8rem;
}

.nav-link,
.site-main-nav-link {
    font-weight: bold !important;
    font-size: 1.25rem !important;
    margin: 0 .5rem !important;
    letter-spacing: -.05rem !important;
    border-bottom: 2px solid transparent !important;
}

.site-main-nav-link.active,
.site-main-nav-link:hover {
    color: black !important;
    border-bottom: 2px solid black !important;
}

.site-main-nav-dropdown {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    box-shadow: 0 18px 32px rgba(0, 0, 0, .08);
}

.site-main-nav-dropdown-item {
    color: var(--secondary);
}

.site-main-nav-dropdown-item:hover,
.site-main-nav-dropdown-item:focus {
    color: var(--secondary);
    background-color: rgba(128, 255, 39, .18);
}

.nav-link.active {
    color: var(--primary) !important;
}

.dropdown-menu {
    overflow: visible;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    position: static;
    float: none;
    margin: .25rem 0 0 0;
    padding-left: .75rem;
    border: 0;
    box-shadow: none;
    display: none;
}

.dropdown-submenu>.dropdown-menu.show {
    display: block;
}

.dropdown-submenu>.dropdown-menu.show {
    border-left: 2px solid rgba(0, 0, 0, .1);
    padding-left: 1rem;
}

.js-submenu-toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.js-submenu-toggle .bi {
    transition: transform .15s ease-in-out;
}

.navbar .dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle[aria-expanded="true"] i.bi,
.js-submenu-toggle[aria-expanded="true"] i.bi {
    transform: rotate(180deg);
}

.dropdown-toggle i.bi,
.js-submenu-toggle i.bi {
    transition: transform .15s ease-in-out;
}

@media (max-width: 991.98px) {
    .site-main-nav {
        min-height: 76px;
    }

    .site-main-nav .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0 0;
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

    .site-main-nav-link {
        padding: .7rem 0 !important;
    }
}

/* ===========================
   Galleries & Carousels
   =========================== */
.gallery-item-media {
    --gallery-overlay-bg: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .58) 100%);
    --gallery-overlay-padding: 1rem;
    --gallery-overlay-content-max-width: 40rem;
    --gallery-overlay-text-color: #fff;
    --gallery-overlay-title-shadow: 0 3px 8px rgba(0, 0, 0, .98), 0 0 22px rgba(0, 0, 0, .82);
    --gallery-overlay-description-shadow: 0 2px 6px rgba(0, 0, 0, .96), 0 0 16px rgba(0, 0, 0, .78);
    --gallery-overlay-cta-shadow: 0 2px 6px rgba(0, 0, 0, .85);
    border-radius: var(--bs-border-radius-xl) !important;    
}

.gallery-thumb {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    border-radius: var(--bs-border-radius-xl) !important;    
}

.carousel .gallery-thumb {
    height: 460px;
    border-radius: var(--bs-border-radius-xl) !important;
}

.gallery-carousel-caption {
    --gallery-carousel-caption-padding: 1.5rem;
    --gallery-carousel-caption-bg: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .58) 100%);
    --gallery-carousel-caption-color: #fff;
    --gallery-carousel-caption-max-width: 42rem;
    --gallery-carousel-caption-text-shadow: 0 3px 8px rgba(0, 0, 0, .98), 0 0 22px rgba(0, 0, 0, .82);
    inset: 0;
    padding: var(--gallery-carousel-caption-padding);
    color: var(--gallery-carousel-caption-color);
    background: var(--gallery-carousel-caption-bg);
}

.gallery-carousel-caption-inner {
    width: 100%;
    max-width: var(--gallery-carousel-caption-max-width);
    text-align: center;
    text-shadow: var(--gallery-carousel-caption-text-shadow);
}

.gallery-carousel-caption .gallery-item-content {
    max-width: 100%;
}

.gallery-item-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--gallery-overlay-content-max-width);
    padding: var(--gallery-overlay-padding);
    color: var(--gallery-overlay-text-color);
    text-align: start;
}

.gallery-item-overlay {
    z-index: 2;
    padding: var(--gallery-overlay-padding);
    background: var(--gallery-overlay-bg);
    pointer-events: none;
}

.gallery-item-overlay .gallery-item-content {
    pointer-events: auto;
}

.gallery-item-title {
    color: inherit;
    font-size: calc(1.375rem + 1.5vw) !important;
    font-weight: bold !important;
}

.gallery-item-description {
    opacity: .92;
}

.gallery-item-cta {
    font-weight: bold;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
    border-radius: var(--bs-border-radius-pill) !important;
}

/* ===========================
   Bootstrap class refactoring
   =========================== */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #212529;
    --bs-btn-border-color: #212529;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #424649;
    --bs-btn-hover-border-color: #373b3e;
    --bs-btn-focus-shadow-rgb: 66, 70, 73;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4d5154;
    --bs-btn-active-border-color: #373b3e;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #212529;
    --bs-btn-disabled-border-color: #212529;
}

.btn-outline-primary {
    --bs-btn-color: #212529;
    --bs-btn-border-color: #212529;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #212529;
    --bs-btn-hover-border-color: #212529;
    --bs-btn-focus-shadow-rgb: 33, 37, 41;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #212529;
    --bs-btn-active-border-color: #212529;
    --bs-btn-disabled-color: #212529;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #212529;
    --bs-gradient: none;
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #565e64;
    --bs-btn-active-border-color: #51585e;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6c757d;
    --bs-btn-disabled-border-color: #6c757d;
}

.btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
}

/* Aggiungere altre classi bootstrap per il refactoring */
