@font-face {
    font-family: 'Montech';
    src: url('font/MONTECHV02-Light.ttf') format('truetype');
}

:root {
    --primary-blue: #1d3587;
    --deep-blue: #0c1b4b;
    --soft-blue: #eef3ff;
    --text-gray: #60646c;
    --light-gray: #f4f5f7;
    --line: rgba(29, 53, 135, 0.13);
    --font-titoli: 'Montech', Arial, sans-serif;
    --font-testi: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text-gray);
    font-family: var(--font-testi);
    font-size: 0.96rem;
    overflow-x: hidden;
    background: #fff;
    width: 100%;
}

body.inner-page {
    background: #fff;
}

h1,
h2,
h3,
h4,
h5,
.nav-link,
.btn-blue,
.btn-outline-blue,
.eyebrow {
    font-family: var(--font-titoli);
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--primary-blue);
    letter-spacing: 0;
}

p {
    line-height: 1.75;
}

a {
    color: inherit;
}

.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 1300px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    z-index: 2000;
    padding: 10px 34px;
    box-shadow: 0 18px 45px rgba(12, 27, 75, 0.15);
    backdrop-filter: blur(12px);
}

.navbar-brand img {
    height: 42px;
}

.nav-link {
    color: #1c2430 !important;
    font-size: 0.94rem;
    margin: 0 14px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.45rem;
    color: var(--primary-blue);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary-blue);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.45s ease;
    transform: translateY(-100%);
}

.mobile-overlay.active {
    transform: translateY(0);
}

.mobile-overlay a {
    color: white;
    font-family: var(--font-titoli);
    font-size: clamp(1.8rem, 8vw, 3rem);
    text-decoration: none;
    margin: 12px 0;
    text-transform: uppercase;
}

.close-menu {
    position: absolute;
    top: 24px;
    right: 34px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

.hero-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

.carousel-item {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
}

.carousel-item::after,
.page-hero::after,
.parallax-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 16, 42, 0.62), rgba(7, 16, 42, 0.2) 48%, rgba(7, 16, 42, 0.56));
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    pointer-events: none;
    padding: 120px 20px 80px;
}

.hero-content img {
    width: clamp(125px, 14vw, 230px);
    margin-bottom: 20px;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(1.6rem, 3.6vw, 3.7rem);
    line-height: 1.08;
    margin: 0;
}

.hero-content p {
    max-width: 680px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.carousel-indicators {
    justify-content: flex-start;
    margin-left: clamp(22px, 5vw, 70px);
    margin-bottom: 34px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.section-pad {
    padding: clamp(64px, 8vw, 104px) 0;
}

.section-chi-siamo {
    position: relative;
    text-align: center;
    overflow: hidden;
    background: #fff;
}

.f-grey-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 88%;
    z-index: 1;
    opacity: 0.33;
    pointer-events: none;
}

.intro-text-box {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.intro-text-box h2,
.section-title {
    font-size: clamp(1.65rem, 3.2vw, 2.85rem);
    line-height: 1.06;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--primary-blue);
    font-size: 0.9rem;
    letter-spacing: 0;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: var(--primary-blue);
}

.btn-blue,
.btn-outline-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--primary-blue);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-blue {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 16px 32px rgba(29, 53, 135, 0.22);
}

.btn-outline-blue {
    color: var(--primary-blue);
    background: transparent;
}

.btn-blue:hover,
.btn-outline-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(29, 53, 135, 0.22);
}

.btn-outline-blue:hover {
    background: var(--primary-blue);
    color: #fff;
}

.icon-box {
    text-align: center;
    margin-top: 70px;
    padding: 28px 18px;
    border-right: 1px solid var(--line);
}

.icon-box:last-child {
    border-right: 0;
}

.icon-box img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 22px;
    transition: transform 0.25s ease;
}

.icon-box:hover img {
    transform: translateY(-6px);
}

.icon-box h5 {
    font-size: 1.05rem;
}

.icon-box p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

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

.service-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--deep-blue);
    color: #fff;
    isolation: isolate;
    box-shadow: 0 22px 50px rgba(12, 27, 75, 0.16);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: -2;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 27, 75, 0.05), rgba(12, 27, 75, 0.92));
    z-index: -1;
}

.service-card:hover img {
    transform: scale(1.06);
    opacity: 0.86;
}

.service-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
}

.service-card h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2.35vw, 1.9rem);
    line-height: 1.03;
}

.service-card p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.gallery-section {
    background-color: #fff;
}

.gallery-title-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.f-blue-logo {
    width: 72px;
}

.gallery-grid-img,
.img-gallery {
    overflow: hidden;
    border-radius: 8px;
    background: #dfe3ea;
}

.gallery-grid-img {
    height: 240px;
    margin-bottom: 20px;
}

.gallery-grid-img img,
.img-gallery {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid-img img:hover,
.img-gallery:hover {
    transform: scale(1.05);
}

.img-gallery {
    height: 280px;
    margin-bottom: 28px;
}

.parallax-block {
    position: relative;
    min-height: 500px;
    background: url('images/slide_parallax.jpg') fixed center / cover;
}

.cta-section {
    background: var(--primary-blue);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -170px;
    bottom: -220px;
    background: url('images/F_finservice.png') center / contain no-repeat;
    opacity: 0.09;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.04;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.86);
}

.form-control {
    min-height: 52px;
    background: #eef0f4;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
    color: #1c2430;
}

textarea.form-control {
    min-height: 130px;
}

.form-control:focus {
    background: #fff;
    border-color: rgba(29, 53, 135, 0.35);
    box-shadow: 0 0 0 0.25rem rgba(29, 53, 135, 0.08);
}

.cta-section .form-control {
    background: rgba(255, 255, 255, 0.95);
}

.footer-main {
    padding-top: 84px;
    background: #fff;
}

.footer-logo {
    width: min(280px, 78vw);
    margin-bottom: 34px;
}

.contact-line {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 0.98rem;
}

.contact-line i {
    color: var(--primary-blue);
    width: 20px;
    margin-top: 4px;
}

.footer-links a,
.social-links a {
    text-decoration: none;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.social-links a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary-blue);
    transition: transform 0.25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.map-frame {
    width: 100%;
    height: 380px;
    margin-top: 58px;
    filter: grayscale(100%);
}

.map-box {
    height: 360px;
    border-radius: 8px;
    overflow: hidden;
    filter: grayscale(1);
    box-shadow: 0 24px 60px rgba(12, 27, 75, 0.16);
}

.legal-footer {
    background: #e9eaeb;
    padding: 22px 16px;
    text-align: center;
    color: var(--primary-blue);
    font-size: 0.8rem;
    letter-spacing: 0;
}

.page-hero {
    position: relative;
    min-height: 370px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 58px;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 0.95;
}

.content-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    height: 100%;
}

.contact-info-card {
    height: auto;
    padding: clamp(22px, 3vw, 34px);
    margin-bottom: 22px;
}

.contact-info-card .row {
    row-gap: 4px;
}

.contact-side .map-box {
    height: 330px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2100;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #25d366;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(37, 211, 102, 0.36);
    font-size: 1.8rem;
}

@media (max-width: 991px) {
    .navbar-collapse,
    .d-lg-block {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        top: 16px;
        padding: 10px 20px;
        width: calc(100% - 28px);
    }

    .navbar-brand img {
        height: 36px;
    }

    .icon-box {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        margin-top: 28px;
    }

    .icon-box:last-child {
        border-bottom: 0;
    }

    .gallery-title-col {
        min-height: auto;
        margin-bottom: 28px;
    }

    .f-blue-logo {
        display: none;
    }

    .service-card {
        min-height: 320px;
    }

    .parallax-block {
        min-height: 360px;
        background-attachment: scroll;
    }

    .map-box {
        height: 320px;
        margin-top: 28px;
    }

    .contact-side .map-box {
        height: 300px;
        margin-top: 0;
    }
}

@media (max-width: 575px) {
    .hero-content {
        padding-inline: 16px;
    }

    .hero-content img {
        width: 118px;
    }

    .hero-content h1 {
        font-size: clamp(1.7rem, 9vw, 2.7rem);
    }

    .service-card-content {
        padding: 24px;
    }

    .footer-main {
        padding-top: 62px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
