
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

/* =====================================
   FONT OSWALD PER TUTTO IL SITO
   ===================================== */

:root {
    --body-font-family: 'Oswald', sans-serif;
    --cassiopeia-font-family-body: 'Oswald', sans-serif;
    --cassiopeia-font-family-headings: 'Oswald', sans-serif;
}

html,
body {
    font-family: 'Oswald', sans-serif !important;
}

/* ARTICOLI, TITOLI, MODULI E FOOTER */

body,
h1, h2, h3, h4, h5, h6,
p, li, a,
button, input, select, textarea,
blockquote, label, td, th,
.mod-menu, .navbar, .card, .footer,
.article-info, .page-header,
.com-content-article,
.com-content-category,
.container-component,
.container-sidebar-left,
.container-sidebar-right {
    font-family: 'Oswald', sans-serif !important;
}

/* TESTO DEGLI ARTICOLI */

body {
    font-size: 18px;
    font-weight: 400;
}

/* TITOLI */

h1 {
    font-weight: 600;
}

h2, h3 {
    font-weight: 500;
}

/* =====================================
   PERSONALIZZAZIONE MENU PRINCIPALE
   ===================================== */

.container-header .mod-menu .nav-link,
.container-header .mod-menu .nav-item > a,
.container-header .mod-menu .nav-item > button {
    font-family: 'Oswald', sans-serif !important;
    font-size: 21px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    color: #ec9231;
    line-height: 1.4;
}

/* MENU SU TABLET E SMARTPHONE */

@media (max-width: 991px) {

    .container-header .mod-menu .nav-link,
    .container-header .mod-menu .nav-item > a,
    .container-header .mod-menu .nav-item > button {
        font-family: 'Oswald', sans-serif !important;
        font-size: 18px !important;
    }

    body {
        font-family: 'Oswald', sans-serif !important;
    }
}

/* =====================================
   GALLERIA DOLOMITI SKI BAR
   ===================================== */

.dsb-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.dsb-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
}

.dsb-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.dsb-gallery a:hover img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .dsb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .dsb-gallery {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   LIGHTBOX
   ===================================== */

.dsb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
}

.dsb-lightbox.open {
    display: flex;
}

.dsb-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.dsb-lightbox button {
    position: absolute;
    background: rgba(0,0,0,0.5);
    border: 0;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    cursor: pointer;
    padding: 12px;
}

.dsb-close {
    top: 15px;
    right: 20px;
}

.dsb-prev {
    left: 15px;
}

.dsb-next {
    right: 15px;
}

.dsb-counter {
    position: absolute;
    bottom: 15px;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
}

/* =====================================
   OTTIMIZZAZIONE TESTI MOBILE
   ===================================== */

@media (max-width: 767px) {

    body {
        font-size: 17px;
        line-height: 1.6;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 22px;
    }
}
