﻿/* ===================================
   NAVIGATION
   =================================== */
@media (max-width: 991px) {
    .main-nav-3 {
        background-color: #fff !important;
    }
}

.before-main-nav-3-b1,
.before-main-nav-3-b2 {
    padding-top: 35px;
    padding-bottom: 40px;
}

@media only screen and (min-width: 992px) {
    .main-nav-3 .nav-main-menu > li > a {
        color: #fff !important;
    }

        .main-nav-3 .nav-main-menu > li > a:hover {
            color: #d3a582 !important;
        }

    .main-nav-3.type-1 .nav-content-wrapper {
        background-color: #701312 !important;
    }
}

/* ===================================
   BUTTONS
   =================================== */
.normal-btn.normal-btn-main {
    background-color: #701312;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
body {
    font-size: 17px;
    font-weight: 400;
    line-height: 2.2;
}

.body_text {
    font-size: 19px !important;
    font-weight: bold;
    line-height: 2.2;
}

/* ===================================
   LAYOUT
   =================================== */
section {
    padding-top: 45px !important;
    padding-bottom: 0px !important;
}

/* ===================================
   LISTS
   =================================== */
.text_list {
    padding-left: 50px;
}

    .text_list > li {
        margin: 2px 0 2px 6px;
        list-style: disc;
        padding-left: 12px;
    }

/* ===================================
   LINKS
   =================================== */
.link_text {
    color: #701312;
}

    .link_text:hover {
        color: #aaaaaa;
    }

/* ===================================
   CARDS
   =================================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
    }

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

    .card-title a:hover {
        color: #667eea !important;
    }

/* ===================================
   GALLERY
   =================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }

    .gallery-item img {
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

/* ===================================
   LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

    .lightbox img {
        max-width: 90%;
        max-height: 90vh;
        object-fit: contain;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
        cursor: default;
    }

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

    .close-lightbox:hover {
        color: #bbb;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991px) {
    .col-md-6 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .lightbox img {
        max-width: 95%;
        max-height: 85vh;
    }

    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .col-sm-12 {
        margin-bottom: 30px;
    }
}

/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.sostenibilita img {
    max-width: 180px;
    height: auto;
}

.sostenibilita .row {
    display: flex;
    align-items: center;
}

.link_general {
    color: #701312;
}

.link_general:hover {
    color: rgba(0,0,0,0.2);
}