:root {
    --mdc-theme-primary: #7fb523;
    /* Primario */
    --mdc-theme-secondary: #9bbda2;
    /* Secondario */
    --mdc-theme-surface: #2c4d76;
    /* Superficie */
    --mdc-theme-background: #f9f7f5;
    /* Sfondo */
    --mdc-theme-error: #427226;
    /* Errore */
    --mdc-theme-on-primary: #7b8040;
    /* Testo su Primario */
    --mdc-theme-on-secondary: #519751;
    /* Testo su Secondario */
    --mdc-theme-on-surface: #4c5f7f;
    /* Testo su Superficie */
    --mdc-theme-on-background: #7f9d2b;
    /* Testo su Sfondo */
    --mdc-theme-on-error: #79a42e;
    /* Testo su Errore */

    --secondary: #f28c07;
}

.font-italic {
    font-style: italic !important;
}

.font-decoration {
    font-family: 'Mansalva', cursive !important;

}

.navbar {
    background-color: rgb(35, 66, 69);
    z-index: 99999999999999;
    height: 90px;
    /*background-color: #556832;*/
}

.text-bg-secondary {
    background-color: var(--secondary) !important;
}

.card-img-top {
    height: 300px;
    object-fit: cover;
}


body {
    background-color: rgb(35, 66, 69);
    font-family: 'Montserrat', sans-serif !important;

}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Palanquin Dark', sans-serif !important;
    position: relative;
}

p {
    position: relative;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400;

}

header {}

#trek-head {
    height: 300px;
    background-color: #20202080;
}

#hero {
    height: calc(100vh - 108px);
    margin-top: -30px;
}

body {
    margin-top: 100px;
}



#search {
    margin-top: -60px;
    margin-bottom: 100px;
}

#category {
    min-height: 300px;
    background-color: var(--mdc-theme-on-primary);
}

.social a i {
    color: #333;
    transition: color 0.3s;
}

.social a:hover i {
    color: #f28c07;
    /* azzurro Bootstrap */
}

#contact a {
    color: #f28c07 !important;
}


#footer-page {
    padding-top: 30px;
    padding-bottom: 30px;
    min-height: 220px;
    content: '';
    background: url('/img/footer.jpeg');
    width: 100%;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

.btn-primary {
    background-color: var(--secondary) !important;
    border: none;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cat {
    width: 250px;
    float: left;
}

.cat:hover,
.trek:hover,
.poi:hover {
    transform: scale(1.025);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 5px 10px
}

.card a {
    color: inherit !important;
}

#elevation {
    display: flex;
    justify-content: center;
    align-items: center;
}

#elevation svg {
    margin: auto;
    display: block;
    background-color: #fff;
}

.triangle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 100px solid transparent;
    border-left: 248px solid #f28c07A0;
    /* Colore del triangolo */
    pointer-events: none;
    /* Impedisce l'interazione con l'overlay */
}

.cat-bottom {
    position: absolute;
    font-weight: bold;
    text-transform: uppercase;
    bottom: 5px;
    left: 10px;
    color: white;
    z-index: 0;
    font-size: 14pt;
}

a {
    text-decoration: none !important;
}

#footer-page a {
    color: var(--secondary);
}

/* Stile per il contenitore del video */
#hero {
    width: 100%;
    /* Altezza dell'intera finestra */
    overflow: hidden;
    background-color: #20202060;

}

/* Stile per il video */
#video-background {
    position: absolute;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    z-index: -1;
}

/* Stile per il contenuto sopra il video */
.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
    height: calc(100vh - 108px);

}

.nav-link {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12pt;
    color: white;
}

.nav-link.active {
    color: var(--secondary) !important;
    transform: scale(1.025);
}

.nav-link:hover {
    color: var(--secondary);
    transform: scale(1.025);
}

#map {
    height: 500px;
}

.scrollable-col {
    height: 600px;
    /* Imposta l'altezza fissa */
    overflow-y: auto;
    padding-right: 30px;
    /* Consente lo scorrimento verticale */
}

#trekheadings {
    margin-top: 50px;
    margin-bottom: 50px;
}

.text-justify {
    text-align: justify;
}

.catcard:hover {
    box-shadow: var(--bs-box-shadow) !important;
}

@media screen and (max-width: 991.98px) {

    #trekheadings h1 {
        margin-top: 30px !important;
        font-size: 30pt;
    }

    #logo-header {
        height: 150px !important;
        margin: auto !important;
        margin-top: -40px !important;
    }

    #polaroid-cont .polaroid {
        height: 250px !important;
    }

    #cardcatcont .badge {
        font-size: 8pt;
    }

    #cardcatcont a {
        font-size: 14pt;
    }

    #cardcatcont {
        align-self: flex-start;
        flex-direction: row !important;
    }

    .vtour-a-cont {
        margin-top: 0 !important;
    }

    .vtour-a-cont:nth-child(1) {
        margin-top: 20px !important;
    }

    .vtour-index-cont .card-body {
        display: flex !important;
        align-self: center !important;
        justify-content: center !important;
    }

    .vtour-index-cont {
        align-self: flex-start;
        flex-direction: row !important;
    }

    .vtour-index-img {
        width: 100px;
        height: 120px;
    }

    .cat-img {
        height: 220px !important;
        width: 150px !important;
        object-fit: cover;
    }

    h2 {
        font-size: 25pt;
    }

    h3 {
        font-size: 22pt;
    }

    .badge {
        margin-top: 5px;
    }

    #trekheadings .badge {
        margin-top: 5px;
    }

    .cat {
        margin-top: 10px !important;
    }

    .overlay-text:before {
        font-size: 90px !important;
        top: -20px !important;
    }

    #ot2:before {
        font-size: 80px !important;

    }



    .category {
        height: 300px;
        margin: auto;
        margin-bottom: 20px;
    }

    .navbar {
        height: auto;
    }

    #hero {
        height: auto;
    }

    .content,
    .content>div {

        height: 450px !important;
    }

    #video-background {
        aspect-ratio: 4/3;
        /* possibile versione quadrata per mobile */
        min-height: 600px;
        margin-top: 60px;
        object-fit: cover;

    }

    #map {
        height: 200px !important;
    }

    #cont-map {
        height: auto !important;
    }

}

/** Container search **/
#list {
    padding: 0;
    list-style-type: none;
    display: none;
    position: absolute;
    z-index: 9999;
    width: 65%;
    margin-top: 0px;
    max-height: 150px;
    overflow: hidden;
    overflow-y: scroll;
    background-color: white !important;
}

#list>a {
    text-align: left;
    padding: 10px;
    display: none;
    color: var(--bs-heading-color);
}

#list>a:hover {
    background-color: #eee;
    color: var(--bs-heading-color);
}



/*.rough-bg-grey:before {
    content: '';
    background: url('/img/mask-grey.png');
    width: 100%;
    min-height: 100%;
    position: absolute;
    background-size: cover;
    background-repeat: repeat;
}*/



.rough-bg-white {
    background-color: #fff;
    position: relative;
    padding-bottom: 120px;

}


.rough-bg-white:before {
    content: '';
    background: url('/img/mask-white-top.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: -50px;
    width: 100%;
    height: 120px;
}

.rough-bg-white:after {
    content: '';
    background: url('/img/mask-white-bottom.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -40px;
    width: 100%;
    height: 120px;
    z-index: 9999;

}

.rough-bg-white:last-child:after {
    content: '';
    background: url('/img/mask-white-bottom.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -54px;
    width: 100%;
    height: 120px;
    z-index: 9999;

}

.navbar:after {
    content: '';
    background: url('/img/mask-topbar.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    width: 100%;
    height: 120px;
    z-index: -1;

}


.rough-bg-grey {
    background-color: #eee;
    padding-bottom: 120px;
    padding-top: 120px;
    position: relative;


}

.rough-bg-grey:first-child:before {
    content: '';
    background: url('/img/mask-grey-top.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: -60px;
    width: 100%;
    height: 120px;
    z-index: 9999;
}

.rough-bg-grey:last-child:after {
    content: '';
    background: url('/img/mask-grey-bottom.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -50px;
    width: 100%;
    height: 120px;
    z-index: 9999;

}

/*.rough-bg-white:before {
    content: '';
    background: url('/img/mask-white.png');
    width: 100%;
    min-height: 100%;
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}*/



.overlay-text {
    position: relative;
    font-size: 60px;
    font-weight: 700;
    width: 100%;
    text-align: center;
}


.overlay-text:before {
    position: absolute;
    font-size: 120px;
    font-weight: 700;
    top: -45px;
    color: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    width: 100%;
    text-transform: uppercase;
}



.sub-heading {
    position: relative;
    font-size: 30px;
    text-align: center;
}

.category {

    overflow: hidden;
}

.card-img {
    transition: transform 0.5s ease;
    object-fit: cover;

}

.category:hover .card-img {
    transform: scale(1.1);
}

.category:hover .card-title {
    color: var(--secondary);
}

.card-img-overlay {
    display: flex;

}

.category .card-title {
    font-weight: 700;
    font-size: 3rem;
    font-family: 'Palanquin Dark', sans-serif !important;
    text-align: center;
    filter: drop-shadow(0 0 0.75rem #000000);
    align-self: center;

}

.video-card {
    max-width: 640px;
    margin: 40px auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.card-content {
    padding: 16px;
    font-family: Arial, sans-serif;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.card-description {
    color: #555;
    font-size: 0.95rem;
}

.polaroid {
    background-color: white;
    padding: 10px 10px 40px 10px;
    /* più spazio sotto */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    display: inline-block;
    text-align: center;
    border-radius: 4px;
    transform: rotate(-2deg);
    /* opzionale per renderla “casual” */
    transition: transform 0.3s ease;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}

.polaroid img {
    display: block;
    max-width: 100%;
    height: auto;
}

.caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #444;
    font-style: italic;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}