/* =========================
   RESET
========================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */

:root{

    --primary-color: #5A6E64;
    --secondary-color: #8D9B90;

    --section: #C7CBC6;
    --background-color: #F4F5F3;

    --accent-color: #6E8086;
    --dark-color: #2E3F5A;

    --text: #2E3F5A;
    --text-light: #5F6B73;

}

/* =========================
   BASE TYPOGRAPHY
========================= */

html{
    font-size: 16px;
    width: 100%;
}

body{
    overflow-x: hidden;
}

body{
    background-color: var(--background-color);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.custom-navbar{
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    background-color: rgba(90, 110, 100, 0.9);
}

h1, h2, h3{
    font-weight: 600;
}

p, a, li{
    font-weight: 400;
}

h1{ font-size: 2.8rem; line-height: 1.2; }
h2{ font-size: 2.2rem; line-height: 1.3; }
h3{ font-size: 1.5rem; line-height: 1.4; }

p, li{
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2em;
}


a{ font-size: 1.05rem; }
.btn{ font-size: 1.05rem; }

@media (max-width: 768px){
    h1{ font-size: 2rem; }
    h2{ font-size: 1.6rem; }
    h3{ font-size: 1.3rem; }
    p{ font-size: 1rem; }
}

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

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

.text-link{
    color: var(--dark-color);
    transition: color 0.25s ease;
}

.text-link:hover{
    color: var(--secondary-color);
}


/* =========================
   BUTTONS
========================= */

.btn-primary{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transition: 0.3s;
}

.btn-primary:hover{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary{
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-secondary:hover{
    background-color: var(--accent-color);
    color: white;
}

.btn-light{
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-light:hover{
    background-color: var(--primary-color);
    color: white;
}


/* =========================
   NAVBAR BASE
========================= */

.custom-navbar{
    background-color: var(--primary-color);
    min-height: 110px;
    padding: 0 20px;
}

/* =========================
   LOGO
========================= */

.custom-navbar .navbar-brand{
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.custom-navbar .navbar-brand img{
    height: 70px;
    width: auto;
    display: block;
}

/* =========================
   DESKTOP NAVBAR
========================= */

@media (min-width: 992px){

    .custom-navbar .navbar-collapse{
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
    }

    .custom-navbar .navbar-nav{
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .custom-navbar .nav-link{
        color: #fff !important;
        padding: 10px 18px;
        border-radius: 8px;
        position: relative;
        display: flex;
        align-items: center;
        transition: all 0.25s ease;
        transform: translateY(0);
    }

    .custom-navbar .nav-link:hover{
        background-color: rgba(255,255,255,0.14);
        transform: translateY(-2px);
    }

    .custom-navbar .nav-link::after{
        content: "";
        position: absolute;
        left: 15%;
        bottom: 6px;
        width: 70%;
        height: 2px;
        background-color: rgba(255,255,255,0.7);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.25s ease;
    }

    .custom-navbar .nav-link:hover::after{
        transform: scaleX(1);
    }

    .custom-navbar .nav-item{
        position: relative;
    }

    .custom-navbar .nav-item:not(:last-child)::after{
        content: "";
        position: absolute;
        right: -7px;
        top: 50%;
        transform: translateY(-50%);
        height: 26px;
        width: 1px;
        background-color: rgba(255,255,255,0.25);
    }
}

/* =========================
   MOBILE MENU TEXT WHITE
========================= */

@media (max-width: 991px){

    .custom-navbar .navbar-collapse .nav-link{
        color: #fff !important;
    }

    .custom-navbar .navbar-collapse .nav-link:hover{
        color: #fff !important;
    }

    .custom-navbar .navbar-toggler{
        border-color: rgba(255,255,255,0.35);
    }

    .custom-navbar .navbar-toggler-icon{
        filter: brightness(0) invert(1);
    }
}

/* =========================
   MOBILE NAVBAR FIX
========================= */

@media (max-width: 991px){

    .custom-navbar{
        min-height: 78px;
        padding: 0 16px;
    }

    .custom-navbar .container{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .custom-navbar .navbar-brand{
        display: flex;
        align-items: center;
        margin: 0;
        flex: 0 0 auto;
    }

    .custom-navbar .navbar-brand img{
        height: 52px;
        width: auto;
    }

    .custom-navbar .navbar-toggler{
        margin-left: auto;
        flex: 0 0 auto;
    }
}


/* =========================
   HERO
========================= */

.hero{

    background-image:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
        url('/assets/img/hero\ banner.webp');

    background-size: cover;
    background-position: center 30%;

    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 80px 20px;

}

.hero-name{
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 10px;
    color: rgba(255,255,255,0.9);
}

.hero-subtitle{
    font-size: 1.2rem;
    margin-top: 10px;
    color: rgba(255,255,255,0.85);
}

.hero-text{
    max-width: 800px;
    color: white;
}

.hero h1,
.hero p{
    text-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* =========================
   HERO - BRESCIA
========================= */

.hero-brescia{

    background-image:
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
        url('/assets/img/hero-brescia.webp');

    background-size: cover;
    background-position: center 30%;

    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 80px 20px;

}


/* =========================
   SECTIONS
========================= */

.section-light{
    background-color: var(--background-color);
}

.section-color{
    background-color: var(--section);
}

/* =========================
   CHI SONO
========================= */

.chi-sono-img{
    max-width: 420px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* =========================
   CARDS SERVIZI
========================= */

.card{
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s ease;
    background: white;
}

.card-img-wrapper{
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding:  15px;
}

.card:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

/* =========================
   FOOTER
========================= */

.map-responsive iframe{
    border-radius: 12px;
}

/* =========================
   FOOTER WAVE
========================= */

.footer-wave{
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg{
    display: block;
    width: 100%;
    height: 85px;
}

@media (max-width: 768px){
    .footer-wave svg{
        height: 60px;
    }
}

/* =========================
   INFO BOX
========================= */

.info-box{
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 6px solid var(--accent-color);
    transition: 0.3s;
}

.info-box:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info-box ul{
    padding-left: 18px;
}

.info-box li{
    margin-bottom: 8px;
}

/* =========================
   LOCATION
========================= */

.location-card{
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.location-card img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.4s;
}

.location-card:hover img{
    transform: scale(1.06);
}

.location-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.55));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.location-overlay h3,
.location-overlay p{
    color: white;
}

/* =========================
   LIST BOX
========================= */

.list-box{
    background-color: white;
    border-radius: 12px;
    padding: 25px 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    max-width: 700px;
}

/* titolo opzionale */
.list-title{
    margin-bottom: 15px;
}

/* lista custom */
.custom-list{
    list-style: none;
    padding-left: 0;
}

.custom-list li{
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

/* bullet custom */
.custom-list li::before{
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.4rem;
    line-height: 1;
}

/* =========================
   CTA
========================= */

.cta-section{
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 80px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 60px auto;
    width: calc(100% - 24px);
    max-width: 1200px;
}
.cta-section h2,
.cta-section p{
    color: white;
}

/* =========================
   FOOTER
========================= */

.custom-footer{
    background-color: var(--dark-color);
    color: white;
    padding: 60px 20px 30px;
}

.custom-footer p{
    color: rgba(255,255,255,0.85);
}

.custom-footer a{
    color: var(--secondary-color);
    text-decoration: none;
}

.custom-footer a:hover{
    text-decoration: underline;
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 30px;
}