:root{
    --primary-color: #02478A;
    --secondary-color: #338BCC;

    --bg-body-color: #F5FBFF;

    --light-color: white;
    --text-primary-color: #0F1010;
    --text-secondary-color: #041D34;
}

*{
    transition: .3s !important;
}

body{
    background-color: var(--bg-body-color) !important;
    font-family: "Montserrat", sans-serif;
    color: var(--text-primary-color);
}

strong{
    font-family: "Montserrat Bold", sans-serif;
}

p.fw-semibold{
    font-family: "Montserrat SemiBold", sans-serif !important;
}

h1, h2, h3, h4, h5, h6{
    font-family: "Oxanium Bold", sans-serif;
}

#chi-siamo, #servizi, #dove-siamo, #contatti{
    scroll-margin-top: 105px;
}

/* BG E TEST COLORS */

.bg-primary-color{
    background-color: var(--primary-color);
}

.bg-secondary-color{
    background-color: var(--secondary-color);
}

.bg-gradient-color{
    border-radius: 4rem;
    background: linear-gradient(to top, var(--secondary-color), var(--primary-color));
}

.text-primary-color{
    color: var(--text-primary-color);
}

.text-secondary-color{
    color: var(--light-color);
}

.text-tertiary-color{
    color: var(--text-secondary-color);
}

/* BG-HEROS */

@media (max-height: 550px){
    .bg-hero .h-hero{
        padding-top: 0 !important;
    }
}

@media (min-height: 700px){
    .bg-hero .h-hero{
        padding-top: 5rem !important;
    }
}

.bg-hero, .bg-hero-lunotto, .bg-hero-parabrezza, .bg-hero-finestrini, .bg-404{
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    width: 100%;
}

.bg-hero, .bg-hero-parabrezza, .bg-hero-finestrini, .bg-404 {
    background-position: center;
}

.bg-hero-lunotto{
    background-position: left;
}

.bg-hero, .bg-hero-lunotto, .bg-hero-parabrezza, .bg-hero-finestrini {
    min-height: 100vh;
    height: auto;
}

.bg-404{
    height: 100vh;
    border-radius: 0 !important;
}

.bg-hero{
    background-image: url("../images/hero.webp");

}

.bg-hero-lunotto{
    background-image: url("../images/lunotto/hero-landing-lunotto.webp");
}

.bg-hero-parabrezza{
    background-image: url("../images/parabrezza/hero-landing-parabrezza.webp");
}

.bg-hero-finestrini{
    background-image: url("../images/finestrini/hero-landing-finestrini.webp");
}

.icon-landing{
    max-width: 65px;
    max-height: 70px;
    width: 100%;
    object-fit: contain;
    object-position: top;
    padding-top: .75rem;
}

.container-tel:hover .icon-landing:not(.img-invert){
    transform: rotate(-10deg);
}

.container-tel:hover .icon-landing.img-invert{
    transform: rotate(280deg);
}

/*LOGO*/

.logo, .logo-xl, .logo-xxl{
    cursor: pointer;
}

.logo{
    max-width: 130px;
    width: 100%;
}

.logo-md{
    max-width: 160px;
    width: 100%;
}

.logo-xl{
    max-width: 180px;
    width: 100%;
}

.logo-xxl{
    max-width: 230px;
    width: 100%;
}

.logo:hover, .logo-xl:hover, .logo-xxl:hover{
    transform: scale(1.05);
}

.logo-unipol{
    max-width: 500px;
    width: 100%;
}

/*NAVBAR*/

@media (max-width: 768px){
    .navbar:has( .navbar-collapse.show){
        background-color: var(--secondary-color);
    }
}

.nav-link{
    color: var(--light-color) !important;
}

.nav-link:hover{
    transform: scale(1.05);
    font-weight: bold;
}

/* BTNS */

.btn{
    padding: .5rem 1.75rem;
    border-radius: .75rem;
    border: 2px solid transparent;
    font-weight: bold;
}

.btn-first{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color) !important;
}

.btn-first:hover{
    background-color: transparent;
    border-color: var(--light-color);
}

.btn-second{
    background-color: var(--light-color);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-404{
    background-color: var(--light-color);
    border-color: transparent;
    color: var(--secondary-color);
}

.btn-second:hover, .btn-404:hover{
    background-color: transparent;
    border-color: var(--light-color);
}

.btn-landing{
    background-color: var(--light-color);
    color: var(--primary-color);
}

.btn-landing:hover{
    border-color: var(--light-color);
}

/*CARD*/

.card, .card-landing{
    max-width: 270px;
    min-width: 230px;
    border: 0 !important;
}

.card{
    background: transparent !important;
}

.card-landing{
    border-radius: 3.5rem;
    padding: 2rem 1.75rem;
    background-color: var(--light-color);
}

.img-card{
    max-width: 90px;
}

.img-card-landing{
    max-width: 70px;
}

@media (max-width: 950px){
    .img-card{
        max-width: 70px;
    }
}

/*IMGS*/

.img-row{
    max-width: 730px;
}

.img-row-landing{
    max-width: 630px;
}

.a-map img{
    margin-left: -16px;
}

.a-map:hover img{
    transform: translateX(16px);
}

.img-contattaci{
    object-fit: cover;
    min-height: 230px;
    width: 100%;
    border-bottom-right-radius: 4rem;
    border-bottom-left-radius: 4rem;
}

/*PANEL*/

.primary-panel, .secondary-panel, .primary-panel-landing, .secondary-panel-landing{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.primary-panel, .secondary-panel{
    max-width: 750px;
    border-radius: 4rem;
    row-gap: 1.5rem;
}

.primary-panel-landing, .secondary-panel-landing{
    max-width: 560px;
    row-gap: 2rem;
}

.primary-panel{
    background-color: var(--primary-color);
}

.primary-panel-landing{
    background: linear-gradient(to top, var(--secondary-color), var(--primary-color));
}

.secondary-panel-landing{
    background-color: var(--secondary-color);
}

.secondary-panel{
    background-color: var(--secondary-color);
}

.icon-panel{
    max-width: 75px;
}

.img-panel{
    border-radius: 4rem;
}

/*BADGE*/

.badge{
    border-radius: 3rem;
    background-color: var(--light-color);
    color: var(--text-primary-color);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .75rem;
    max-width: 250px;
    width: 100%;
}

.icon-badge{
    max-width: 30px;
    width: 100%;
}

.link-contatti{
    font-weight: normal;
    text-decoration: none;
}

.link-contatti:hover{
    font-weight: bold;
    text-decoration: underline;
}

/*FORM*/

.form-input-control{
    background-color: transparent !important;
    border: 1px solid var(--light-color) !important;
    border-radius: 1rem;
    color: var(--light-color) !important;
    padding: 1rem 1.2rem;
}

textarea.form-input-control{
    min-height: 150px;
}

.form-control:hover, .form-control:focus, .form-check-input.hover, .form-check-input:focus{
    box-shadow: 0 0 10px color-mix(in srgb, var(--light-color), transparent 45%);
}

.form-control::placeholder{
    opacity: 0.7;
    color: var(--light-color) !important;
}

.form-check-input{
    width: 25px !important;
    height: 25px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: .5rem !important;
    cursor: pointer;
}

.form-check-input:checked{
    background-color: var(--text-secondary-color) !important;
}

.form-label a:hover{
    font-weight: bold;
}

#myCanvas{
    width: 120px !important;
    height: 50px !important;
}

.input-captcha{
    max-width: 250px;
    width: 100%;
}

/*FOOTER*/

.link-footer{
    color: var(--text-primary-color);
    text-decoration: none;
}

.link-footer:hover{
    font-weight: bold;
    text-decoration: underline;
}

.bg-stripe-footer{
    background-color: var(--text-secondary-color);
}

.bg-stripe-footer .link-footer{
    color: var(--light-color);
}

@media (max-width: 628px){
    .container-tel{
        padding-top: 0 !important;
    }
}

.container-tel:hover{
    transform: scale(1.05);
}

.container-tel:hover .icon-landing:not(.img-invert){
    transform: rotate(-10deg);
}

.container-tel:hover .icon-landing.img-invert{
    transform: rotate(280deg);
}

.border-img{
    border-radius: 8rem;
}

@media (min-width: 992px){
    .border-right{
        border-radius: 0 15rem 15rem 0 !important;
    }
}
