:root {
    --mb-primary: #EDAF4C;
    --mb-primary-dark: #008696;
    --mb-accent: #f6a623;
    --mb-bg-light: #f5fafb;
    --mb-text-dark: #163047;
}

html {
    width: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mb-text-dark);
    background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-label {
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
}

h1 {
    font-size: 68px;
    font-weight: 500;
}

h2 {
    font-size: 32px;
    font-weight: 300;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    width: calc(100% - 80px);
    z-index: 2;
    height: 80px;
}

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

.nav-link {
    font-weight: 500;
    color: #4b6479;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--mb-primary-dark);
}

/* HERO */
.hero-section {
    position: relative;
    background: url("../img/bgtemp_upscale.jpeg") center center / cover no-repeat;
    color: #ffffff;
    height: 100vh;
    min-height: 700px;
}

.hero-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    /* gradiente in fondo */
    height: 100px;
    /* quanto alto è il gradiente */
    background: linear-gradient(to bottom,
            #348DA9 0%,
            transparent 100%);
    z-index: 1;
    /* IMPORTANTISSIMO: manda lo sfondo sotto */
    pointer-events: none;
    /* evita che blocchi i click sul contenuto */
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    /* gradiente in fondo */
    height: 400px;
    /* quanto alto è il gradiente */
    background: linear-gradient(to bottom,
            transparent 0%,
            #348DA9 60%,
            #348DA9 100%);
    z-index: 1;
    /* IMPORTANTISSIMO: manda lo sfondo sotto */
    pointer-events: none;
    /* evita che blocchi i click sul contenuto */
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 2;
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    max-width: 640px;
    opacity: 0.95;
}

.btn-primary {
    background-color: var(--mb-primary);
    border-color: var(--mb-primary);
    font-weight: 400;
    border-radius: 999px;
    padding-inline: 1.5rem;
    font-size: 18px;
}

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

.btn-outline-light {
    border-radius: 999px;
    font-weight: 400;
    font-size: 18px;
    border-color: var(--mb-primary);
    color: var(--mb-primary);
}

.btn-outline-light.white {
    color: #FFF;
}

/* Sezioni generiche */
.section {
    padding: 4rem 0;
    text-align: center;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 20px;
    font-weight: 300;
    color: #212A50;
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #212A50;
    padding: 0 10%;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: #5f7284;
}

.section-content {
    padding: 0 10%;
}

/* NOSTRO SERVIZIO */
#service {
    min-height: 900px;
    background: url(../img/servizio.png) center bottom / 100% auto no-repeat;
}

.service-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* TARIFFE */
.tariffe-section {
    background-color: var(--mb-bg-light);
}

.btn-pricing {
    color: var(--mb-primary)
}

.pricing-card {
    background: url('../img/top_card.png') no-repeat center top / 100% auto;
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    font-weight: 300;
    font-size: 16px;
    color: #212A50;
    padding: 20px 15px 15px 15px;
}

.pricing-price {
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 40px;
}

.pricing-pill {
    display: inline-block;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    color: #212A50;
    font-size: 20px;
    font-weight: 500;
}

.pricing-note {
    font-size: 0.85rem;
    color: #313D6D99;
    padding: 20px 10% 0;
}

/* PRENOTAZIONE */
.booking-section {
    background: #FFF;
}

#booking {
    position: relative;
}

#booking-form {
    margin-top: 100px;
    background: url('../img/img_mk.png') center top / cover no-repeat;
    text-align: left;
}

.booking-card {
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    background-color: #ffffff;
    margin-bottom: var(--bs-gutter-y);
}

.booking-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

#travelOptionsPanel span {
    width: 25px;
    text-align: center;
}

.form-control,
.form-select {
    border-radius: 0.8rem;
    border-color: #dde6ee;
    padding-block: 0.7rem;
}

.swap-link {
    font-size: 0.9rem;
    color: var(--mb-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    text-decoration: none;
}

.swap-link:hover {
    color: var(--mb-primary-dark);
    text-decoration: underline;
}

.booking-side-image {
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 100%;
    background: url("img/booking-side.jpg") center center / cover no-repeat;
}

.relativatore {
    position: relative;
}

/* CTA telefonica */
.phone-cta {
    background: linear-gradient(#29BEB8, #348DA9);
    color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    text-align: left;
    transform: translateY(-40px);
    position: absolute;
    right: 0;
    width: 100%;
    ;
    bottom: -16px;
}

#oppure {
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
}

.phone-cta .prenotatel {
    font-size: 32px;
    font-weight: 500;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
}

.phone-cta p {
    font-weight: 300;
    font-size: 20px;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
}

.telefonodiretto {
    font-size: 36px;
    font-weight: 500;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
}


.phone-cta a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 32px;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
}

.phone-cta a:hover {
    text-decoration: underline;
}

/* Statistiche & testimonianza */
.section.testimonial {
    padding-top: 25px;
}

.stats-card {
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    border-radius: 1.25rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    height: 100%;
    background: linear-gradient(#29BEB8, #348DA9);
    color: #FFF;
    text-align: left;
}

.stats-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #FFF;
}

.testimonial-card {
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    height: 100%;
    text-align: left;
}

.testimonial-quote {
    font-style: italic;
    color: #5f7284;
    margin-bottom: 1.25rem;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #8a9cad;
}

/* CTA finale */
#trasporto-inclusivo-cta {
    font-weight: 500;
    font-size: 48px;
    color: #212A50;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    z-index: 2;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 70px 45px;
    border-radius: 20px;
    box-shadow: 0 0 7px #348DA980;
    background: url('../img/skyline_upd.png') center center no-repeat #FFF;
    text-align: center;
}

#trasporto-inclusivo-cta .btn {
    margin: 0 auto;
}

#paga-form {
    display: inline-block;
}

/* Footer */
#footer-container {
    background: #348DA9;
}

footer {
    background: linear-gradient(to bottom,
            transparent 0%,
            #29BEB8 20%,
            #348DA9 100%);
    color: #FFF;
    padding-top: 150px;
    transform: translateY(-20%);
    z-index: -1;
}

footer a {
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    color: #FFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    font-size: 24px;
}

footer .footerLabel {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #FFF;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    color: #FFF;
    text-align: center;
}

#formErrorModal .modal-content {
    border-width: 2px;
}

#formErrorModal .modal-body ul {
    margin: 0;
    padding-left: 20px;
}

#riepilogo {
    padding-top: 150px;
    background: url('../img/bg_riepilogo.png') center top / cover no-repeat;
}

#riepilogo h1,
#riepilogo h2 {
    color: #FFF;
}

#riepilogo .dati {
    background: #FFF;
    padding: 25px 45px;
    border-radius: 20px;
    margin-top: 50px;
    z-index: 5;
    position: relative;
}

#riepilogo .dati .data-box {
    border: 1px solid #348DA9;
    border-radius: 20px;
    padding: 15px 15px;
    margin-bottom: 25px;
    min-height: 170px;
}

#riepilogo .dati .data-box .data-label {
    font-weight: 400;
    margin-bottom: 24px;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    color: #212A50;
}

#riepilogo .dati .data-box .data-value {
    font-weight: 400;
    margin-bottom: 16px;
    color: #212A50;
}

#riepilogo .dati .data-box span {
    font-weight: 600;
    display: inline-block;
}

#prezzo-label {
    font-size: 32px;
    font-weight: 500;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    display: inline-block;
}

#prezzo-value {
    font-size: 48px;
    font-weight: 700;
    font-family: "Zalando Sans Expanded", "Poppins", sans-serif;
    display: inline-block;
    margin-left: 50px;
}

/* Smartphone e tablet verticali */
@media (max-width: 991.98px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .hero-sub {
        font-size: 1rem;
        text-transform: uppercase;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .hero-content {
        padding: 4rem 1rem 2rem;
        left: 0;
    }

    .hero-content .btn-primary {
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .pricing-price {
        margin-bottom: 50px;
    }

    .booking-card {
        margin-bottom: 1.5rem;
    }

    #trasporto-inclusivo-cta {
        max-width: 90%;
    }

    .phone-cta {
        text-align: center;
        position: relative;
    }

    footer {
        padding-top: 190px;
    }

    #riepilogo h1 {
        font-size: 46px;
    }

    #riepilogo .dati {
        padding: 25px 15px;
    }

    #paga-form {
        display: block;
    }

    #mainNavbar {
        background: #FFF;
        width: 100%;
        position: fixed;
        top: 80px;
        left: 0;
        padding: 15px;
    }

    nav.navbar {
        padding: 0 15px 0 0;
    }
}