:root{
    --primary-color: #011D26;
    --secondary-color: #133641;
    --tertiary-color: #015564;

    --white-color: #fff;
}

*{
    transition: 0.3s !important;
}

h1, h2, h3, h4, h5, h6{
    font-family: "termina", sans-serif;
    font-weight: bold !important;
}

p, a {
    font-family: "Montserrat", sans-serif;
}
@media(min-width: 768px){
    .navbar-nav{
        background-color: transparent !important;
    }
}

.primary-text-color{
    color: var(--primary-color);
}

.bg-primary-color{
    background-color: var(--primary-color);
}

.img-logo{
    width: 200px;
}

.text-dark{
    color: var(--primary-color);
}

.text-light{
    color: var(--white-color);
}

.btn-contatti{
    max-width: 130px;
    margin-top: 10px;
}

.nav-link{
    padding: 10px 10px;
    font-size: 1.2rem;
}

.nav-link:hover{
    opacity: 0.8;
    transform: scale(0.9);
}

.btn{
    font-size: 1.2rem;
}

.btn-blue{
    background-color: var(--tertiary-color);
    color: var(--white-color) !important;
    border-radius: 25px;
    padding: 8px 25px;
    font-family: "Montserrat Bold", sans-serif;
}

.btn-blue:hover{
    background-color: var(--secondary-color);
    transform: scale(0.95);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.bg-image{
    background-repeat: no-repeat;
    background-size: cover;
    height: 110vh;
}

.bg-header{
    background-image: url('../images/hero-home.webp');
    padding-top: 6rem;
    padding-bottom: 125px;
    background-position: bottom;
}

@media (max-width: 768px) {
    .bg-header{
        background-image: url('../images/hero-home-mobile.webp');
        background-position: center;
        background-size: cover;
    }

}

.bg-contatti{
    background-image: url('../images/back-contatti.webp');
    background-size: cover;
    background-position: top;
}

.bg-parabrezza {
    background-image:
    linear-gradient(90deg, rgba(1,29,38,0.88) 0%, rgba(1,29,38,0.55) 45%, rgba(1,29,38,0.15) 100%),
    url('../images/parabrezza/hero-parabrezza.webp');
    background-size: cover;
    background-position: center;
    min-height: 760px;
    padding: 80px 30px 180px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bg-lunotto {
    background-image:
    linear-gradient(90deg, rgba(1,29,38,0.88) 0%, rgba(1,29,38,0.55) 45%, rgba(1,29,38,0.15) 100%),
    url('../images/lunotti/hero-lunotti.webp');
    background-size: cover;
    background-position: center;
    min-height: 760px;
    padding: 80px 30px 180px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bg-finestrini {
    background-image:
            linear-gradient(90deg, rgba(1,29,38,0.88) 0%, rgba(1,29,38,0.55) 45%, rgba(1,29,38,0.15) 100%),
            url('../images/finestrini/hero-finestrini.webp');
    background-size: cover;
    background-position: center;
    min-height: 760px;
    padding: 80px 30px 180px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}


.top-logo{
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 20;
}

.top-logo img{
    width: 350px;
    height: auto;

}

@media(max-width:768px){
    .top-logo{
        top: 20px;
        right: 20px;
    }

    .top-logo img{
        width: 130px;
    }
}



.bg-parabrezza h1,
.bg-lunotto h1,
.bg-finestrini h1 {
    font-size: clamp(1.8rem, 5.5vw, 5rem);
    line-height: 1.05;
    max-width: 540px;
}

.bg-lunotto h1 { animation-delay: 0.2s; }
.bg-lunotto p { animation-delay: 0.45s; }
.bg-lunotto .btn,
.bg-lunotto .btn-blue { animation-delay: 0.7s; }
.bg-lunotto img { animation-delay: 0.5s; }


.bg-finestrini h1 { animation-delay: 0.2s; }
.bg-finestrini p { animation-delay: 0.45s; }
.bg-finestrini .btn,
.bg-finestrini .btn-blue { animation-delay: 0.7s; }
.bg-finestrini img { animation-delay: 0.5s; }


.bg-parabrezza h1,
.bg-parabrezza p,
.bg-parabrezza .btn,
.bg-parabrezza .btn-blue,
.bg-parabrezza img,

.bg-lunotto h1,
.bg-lunotto p,
.bg-lunotto .btn,
.bg-lunotto .btn-blue,
.bg-lunotto img,

.bg-finestrini h1,
.bg-finestrini p,
.bg-finestrini .btn,
.bg-finestrini .btn-blue,
.bg-finestrini img {
    opacity: 0;
    transform: translateY(35px);
    animation: heroContentReveal 0.9s ease-out forwards;
}


.bg-parabrezza h1{
    animation-delay: 0.2s;
}

.bg-parabrezza p{
    animation-delay: 0.45s;
}

.bg-parabrezza .btn,
.bg-parabrezza .btn-blue{
    animation-delay: 0.7s;
}

.bg-parabrezza img{
    animation-delay: 0.5s;
}

@keyframes heroContentReveal{
    from{
        opacity: 0;
        transform: translateY(35px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {

    .bg-parabrezza h1 {

        max-width: 100%;

    }

}


.bg-parabrezza p{
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 540px;
}

.btn-blue{
    background: #0A6174;
    border-radius: 14px;
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
}


@media(min-width: 1220px){
    .border-right{
        border-right: 3px solid var(--white-color);
    }
}

.max-p-text{
    max-width: 1200px;
}


.call-now-box{
    padding: 18px 26px;
    border-radius: 22px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation:
            callEnter 0.8s ease-out 1.1s forwards,
            floatCall 2.8s ease-in-out 2s infinite;
}


@keyframes callEnter{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}



.call-now-box i{
    font-size: 2rem;
}

.call-label{
    font-size: 1rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.9;
}

.call-number{
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    color: white;
}

.call-now-box:hover{
    color: white;
    transform: translateX(6px);
}

.call-now-box:hover i{
    transform: rotate(12deg) scale(1.1);
}

.call-now-box:hover .call-number{
    letter-spacing: 1px;
}



@keyframes callPulse{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-4px);
    }
}


@keyframes floatCall{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-6px);
    }
}





.card-skill{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 25px;
    border: 3px solid var(--secondary-color);
    padding: 15px;
}

.card-title{
    display: flex;
    align-items: center;
    gap: 10px;

}

.card-title i{
    font-size: 28px;

}

#chi-siamo h2{
    font-size: clamp(2rem,4vw,3.5rem);
    line-height: 1;
    max-width: 650px;
}


.btn-outline-dark{
    border-radius: 14px;
    padding: 14px 32px;
    font-weight: 700;
}

.central-card{
    background: linear-gradient(180deg,#0A5565 0%, #083742 100%);
    border-radius: 42px;
    padding: 45px 35px;
    min-height: 540px;
    color: white;
}

.feature-card{
    border: 3px solid #0A5565;
    border-radius: 28px;
    padding: 28px;
    background: white;
}

#contatti .container{
    background: #073845;
    border-radius: 42px;
    padding: 70px 60px;
}

textarea.form-control-dark{
    min-height: 140px;
    border-radius: 12px !important;
}

button[type="submit"]{
    border-radius: 30px;
    padding: 14px 42px;
    font-weight: 700;
}

.form-control-dark{
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,.4) !important;
    border-radius: 20px !important;
    padding: 16px 24px !important;
    min-height: 56px;
}

.text-wrap-custom{
    max-width: 210px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.card-skill:hover{
    background-color: var(--primary-color);
}

.card-skill:hover h3{
    color: var(--white-color);
}

.card-skill:hover .icon-container .bi{
    color: var(--white-color) !important;
}

.card-container{
    display: flex;
    height: 130px;
}

@media(min-width: 1200px){
    .card-container{
        height: 150px;
    }
}

.icon-container{
    width: 70px;
    height: 70px;
    padding: 15px;
    border-radius: 15px;
    background-color: color-mix(in srgb, var(--secondary-color), transparent 60%);
}

.card-skill:hover .icon-container {
    background-color: var(--secondary-color);
}

.card-servizi{
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card-servizi.bg-dark{
    background-color: var(--secondary-color) !important;
}

.card-servizi.bg-light{
    background-color: var(--tertiary-color) !important;
}

.card-servizi.bg-hidden{
    border: 3px solid var(--secondary-color);
}

@media(max-width: 910px){
    .col-tablet-12{
        width: 100%;
        margin-bottom: 2rem;
    }

    .col-tablet-12:last-child{
        flex-direction: column-reverse !important;
    }
}
.card-icon{
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.card-img{
    width: 100%;
    display: block;
    margin-top: 20px;
}

.card-posizione{
    background-color: color-mix(in srgb, var(--tertiary-color), transparent 70%);
    border-radius: 30px;
}


.logo-affiliati {
    max-width: 400px;
}

@media (max-width: 576px) {
    .logo-affiliati {
        max-width: 250px;
    }
}

.google-posizione{
    background-image: url('../images/mappa.webp');
    width: 950px;
    height: 450px;
    border-radius: 30px;
}

.google-posizione .card-posizione-info{
    position: absolute;
}

.card-posizione-info{
    border-radius: 30px;
    background-color: var(--white-color);
    max-width: 450px;
    padding: 10px 20px;
}

@media screen and (max-width: 768px){
    .google-posizione{
        background-image: url('../images/mappa-mobile.webp');

    }

}

.google-posizione .card-posizione-info:first-child{
    top: 30px;
    left: -40px;
}

.google-posizione .card-posizione-info:last-child{
    bottom: 30px;
    right: -40px;
}

.form-container{
    max-width: 900px;
    background-color: var(--secondary-color);
    border-radius: 30px;
    color: white;
}

.form-container .form-control{
    border-radius: 15px;
    padding: 12px;
    border: none;
}

.form-container .form-control:focus{
    box-shadow: none;
    outline: 2px solid var(--tertiary-color);
}

.immagine-larghezza-piena{
    width: 100%;
    height: 420px;
    background-image: url('../images/banner-photo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 4rem;
    margin-bottom: 0;
}

#contatti{
    margin-top: -70px;
    position: relative;
    z-index: 2;

}

.footer{
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-logo{
    width: 170px;
    margin-bottom: 10px;
}

.footer-title{
    font-size: 1.8rem;
    color: var(--white-color);
    letter-spacing: 1px;
}

.footer-text{
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

.footer-link{
    color: rgba(255,255,255,0.9);
}

.footer-link:hover{
    color: var(--white-color);
    opacity: 0.8;
}

@media(max-width: 768px){

    .footer-custom{
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-title{
        font-size: 1rem;
    }

    .footer-text{
        font-size: 1rem;
    }

    .footer-logo{
        width: 140px;
    }
}


section[id] {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1300px) {

    .hero-hide-mobile{
        display: none !important;
    }

    .hero-stats-box{
        background: transparent;
        padding: 0;
        box-shadow: none;
        margin-top: 20px;
    }

    .hero-cta-mobile{
        display: flex !important;
        justify-content: center !important;
        width: 100%;
    }
}

.small-text{
    font-size: 0.95rem;
    line-height: 1.4;
}

.small-number{
    font-size: 2rem;
}

@media(max-width: 768px){

    .small-text{
        font-size: 0.85rem;
    }

    .small-number{
        font-size: 1.6rem;
    }
}


.bg-dark-teal {
    background: linear-gradient(180deg, #00424f 0%, #00303b 100%) !important;
}

.rounded-pill-section {
    border-radius: 45px;
    margin-top: -120px;
    position: relative;
    z-index: 10;
    background: #073845;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    padding: 55px 40px !important;
}


.rounded-pill-section i {
    font-size: 2.6rem !important;
    margin-bottom: 18px;
}



.rounded-pill-section {
    border-radius: 60px;
    margin-top: -200px;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #00424f 0%, #00303b 100%) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.rounded-pill-section i {
    font-size: 3.5rem !important;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: block;
}


.text-wrap-custom {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 300;
}


.form-control-dark {
    background-color: transparent !important;
    border: 1px solid #ffffff50 !important;
    color: white !important;
}

.form-control-dark::placeholder {
    color: #ffffff90;
}

@media(max-width:768px){

    .bg-parabrezza{
        min-height: 620px;
        padding: 60px 25px 140px;
    }

    .rounded-pill-section{
        margin-left: auto;
        margin-right: auto;
        border-radius: 28px;
        padding: 35px 20px !important;
    }

    #contatti .container{
        padding: 40px 22px;
        border-radius: 28px;
    }
}


.bg-section-blue {
    background: #021921;
    position: relative;
}


.section-bridge {
    height: 200px;
    background: #021921;
    margin-top: -200px;
    position: relative;
    z-index: 1;

}

.img-parabrezza{
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    display: block;
}

@media (max-width: 991px){
    .img-parabrezza{
        margin-left: auto;
        margin-right: auto;
    }
}



.section-strengths{
    padding-top: 100px;
    padding-bottom: 100px;
}

.strengths-title{
    color: #082B36;
}

.strengths-subtitle{
    max-width: 720px;
}

.strength-box{
    position: relative;
    background: white;
    border: 7px solid #0A5565;
    border-radius: 38px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: visible;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.strength-box::before{
    content: "";
    position: absolute;
    inset: 2px;
    border: 7px solid #082B36;
    border-radius: 30px;
    transform: rotate(-4deg);
    pointer-events: none;

    transition: transform 0.35s ease;
}

.strength-box:hover{
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 18px 35px rgba(8, 43, 54, 0.18);
}

.strength-box:hover::before{
    transform: rotate(-8deg) scale(1.02);
}



.strength-border-bg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}



.strength-image-card{
    border-radius: 42px;
    overflow: hidden;
    height: 100%;
}

.strength-image-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.strength-center-card{
    background: radial-gradient(circle at center,
    #006b7c 0%,
    #00424f 45%,
    #00303b 100%
    );

    border-radius: 42px;
    padding: 55px 35px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.strength-logo{
    width: 150px;
    margin: 0 auto 35px;
}

.strength-center-card h3{
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 28px;
}

.strength-center-card p{
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}



@media(max-width:991px){

    .strength-center-card{
        min-height: auto;
    }

    .strength-image-card img{
        height: 420px;
    }

    .strength-box{
        min-height: 230px;
    }

}

@media(max-width:768px){

    .section-strengths{
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .strength-center-card{
        padding: 45px 25px;
        border-radius: 30px;
    }

    .strength-box{
        border-radius: 28px;
        padding: 28px;
    }

    .strength-image-card{
        border-radius: 30px;
    }

    .strength-center-card h3{
        font-size: 1.6rem;
    }

}


.map-wrapper{
    position: relative;
    width: 100%;
    max-width: 1050px;
    height: 520px;
    margin: auto;
    border-radius: 100px;
    overflow: hidden;
    background-image: url('../images/mappa.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.map-wrapper:hover{
    transform: translateY(-6px) scale(1.00);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}



.map-info-card{
    position: absolute;
    background: white;
    border-radius: 90px;
    padding: 28px 34px;
    z-index: 3;
    color: #13253A;
}


.map-info-card p{
    line-height: 1.9;
    margin-bottom: 0;
    font-weight: 300;
}



.map-info-top{
    top: 35px;
    left: 35px;
}

.map-info-bottom{
    bottom: 35px;
    right: 35px;
}


@media(max-width:991px){

    .map-wrapper{
        height: 430px;
        border-radius: 50px;
    }

    .map-info-card{
        padding: 22px 26px;
        border-radius: 28px;
    }

    .map-info-card h3{
        font-size: 1.5rem;
    }

    .map-info-card p{
        font-size: 1.2rem;
    }

}


@media(max-width:768px){

    .map-wrapper{
        height: 500px;
        border-radius: 12px;
    }

    .map-info-top{
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .map-info-bottom{
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .map-info-card{
        padding: 18px 22px;
        border-radius: 20px;
    }

    .map-info-card h3{
        font-size: 1.2rem;
    }

    .map-info-card p{
        font-size: 1rem;
    }

}

.img-404-wrapper{
    position: relative;
    display: inline-block;
}


.img-404{
    max-width: 700px;
    display: block;
    opacity: 0;
    transform: translateY(35px);
    animation: heroContentReveal 0.9s ease-out forwards;
    animation-delay: 0.15s;
}

.contact-overlap-section{
    position:relative;
    z-index:10;
    margin-bottom:-90px;
}

.contact-bubble-wrapper{
    position:relative;
    top:45px;
}

.contact-bubble{
    background:#005f73;
    color:white;
    min-width:220px;
    padding:22px 30px;
    border-radius:28px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    box-shadow:0 10px 20px rgba(0,0,0,0.15);
    transition:0.3s;
}

.contact-bubble i{
    color:white;
}

.contact-bubble:hover{
    transform:translateY(-5px);
    color:white;
}

.immagine-larghezza-piena{
    min-height:650px;
    background-size:cover;
    background-position:center;
}