html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
    --sp-blue: #0d6efd;
    --sp-dark: #001b3d;
    --sp-light: #f4f8ff;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--sp-dark);
    background-color: #ffffff;
}

.top-bar {
    background: linear-gradient(90deg, #001b3d, #003f88);
    color: white;
    font-size: 0.9rem;
    padding: 7px 0;
}

.top-bar-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.main-navbar {
    min-height: 110px;
    box-shadow: 0 4px 18px rgba(0, 27, 61, 0.06);
}

.site-logo {
    height: 95px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--sp-dark);
    font-weight: 500;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        color: var(--sp-blue);
    }

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 2px;
        width: 0;
        height: 2px;
        background-color: var(--sp-blue);
        transition: width 0.25s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

.btn-primary {
    background-color: var(--sp-blue);
    border-color: var(--sp-blue);
    border-radius: 6px;
    font-weight: 600;
    padding: 10px 18px;
}

    .btn-primary:hover {
        background-color: #0057d9;
        border-color: #0057d9;
    }

.hero-section {
    background: linear-gradient(90deg, #ffffff 0%, #f4f8ff 55%, #eaf2ff 100%);
    padding: 80px 0;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.12;
    font-weight: 800;
    color: var(--sp-dark);
}

    .hero-title span {
        color: var(--sp-blue);
    }

.hero-text {
    font-size: 1.18rem;
    line-height: 1.8;
    color: #263b5e;
}

.service-card {
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    padding: 32px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 27, 61, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 34px rgba(0, 27, 61, 0.12);
    }

    .service-card h3 {
        color: var(--sp-dark);
        font-weight: 700;
    }

    .service-card p {
        color: #334866;
    }

.cta-box {
    border: 1px solid #9ec5fe;
    background: linear-gradient(90deg, #ffffff, #f4f8ff);
    border-radius: 12px;
    padding: 28px;
}

footer {
    background-color: var(--sp-dark);
    color: white;
    margin-top: 60px;
    padding: 30px 0;
}

    footer a {
        color: #ffffff;
        text-decoration: none;
    }

        footer a:hover {
            color: #8ec5ff;
        }

@media (max-width: 991px) {
    .main-navbar {
        min-height: auto;
    }

    .site-logo {
        height: 78px;
    }

    .top-bar-content {
        gap: 12px;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* TOP BAR */
.top-bar {
    background: linear-gradient(90deg, #002b5c, #004b9b);
    color: white;
    font-size: 14px;
    padding: 8px 0;
}

/* LOGO */
.logo {
    height: 80px;
}

/* NAV */
.navbar {
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    color: #1c2b4a;
}

    .nav-link.active {
        border-bottom: 3px solid #0d6efd;
    }

/* HERO */
.hero {
    background: linear-gradient(90deg, #f8fbff, #eef4ff);
    padding: 80px 0;
}

    .hero h1 {
        font-size: 48px;
        font-weight: 700;
    }

    .hero span {
        color: #0d6efd;
    }

    .hero p {
        color: #4a5a73;
        font-size: 18px;
        line-height: 1.6;
    }

/* SERVIZI */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5ecf5;
    transition: 0.3s;
}

    .service-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        transform: translateY(-5px);
    }

/* CTA BOX */
.cta-box {
    border: 2px solid #cfe2ff;
    padding: 25px;
    border-radius: 12px;
    background: #f8fbff;
}

.landing-hero {
    background: linear-gradient(135deg, #f4f8ff, #eaf2ff);
    padding: 90px 0;
}

.landing-badge {
    display: inline-block;
    background: #e0ecff;
    color: #0d6efd;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.landing-hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #001b3d;
}

.landing-hero .lead {
    margin-top: 20px;
    color: #4a5a73;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.landing-card {
    background: white;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 16px 40px rgba(0, 27, 61, 0.10);
    border: 1px solid #dbe7f7;
}

    .landing-card h3 {
        font-weight: 700;
        color: #001b3d;
    }

.landing-step {
    background: white;
    border: 1px solid #dbe7f7;
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 28px rgba(0, 27, 61, 0.06);
}

    .landing-step h3 {
        color: #001b3d;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .landing-step p {
        color: #4a5a73;
        line-height: 1.7;
    }

.landing-cta {
    background: #001b3d;
    color: white;
    padding: 70px 0;
}

    .landing-cta p {
        color: #dbe7f7;
        font-size: 18px;
        margin-bottom: 25px;
    }

@media (max-width: 991px) {
    .landing-hero h1 {
        font-size: 34px;
    }

    .landing-hero {
        padding: 60px 0;
    }
}

.cross-link-box {
    background: #f4f8ff;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.contact-page {
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 45%, #eaf2ff 100%);
    padding: 80px 0;
}

.contact-header {
    max-width: 820px;
    margin: 0 auto 50px auto;
}

    .contact-header h1 {
        font-size: 46px;
        font-weight: 800;
        color: #001b3d;
        margin-top: 18px;
    }

    .contact-header p {
        font-size: 18px;
        color: #4a5a73;
        line-height: 1.7;
    }

.contact-form-card,
.contact-side-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dbe7f7;
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(0, 27, 61, 0.10);
}

.contact-form-card {
    padding: 38px;
}

.contact-side-card {
    padding: 36px;
    height: 100%;
}

    .contact-side-card h3 {
        font-weight: 800;
        color: #001b3d;
        margin-bottom: 28px;
    }

.custom-input {
    border: 1px solid #d5e3f5;
    border-radius: 12px;
    padding: 13px 15px;
    background-color: #fbfdff;
}

    .custom-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
    }

.form-label {
    font-weight: 700;
    color: #001b3d;
    margin-bottom: 8px;
}

.privacy-box {
    background: #f4f8ff;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    padding: 18px;
}

    .privacy-box label {
        font-size: 14px;
        color: #4a5a73;
        line-height: 1.6;
    }

.contact-step {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}

    .contact-step span {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        background: #0d6efd;
        color: white;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-step h4 {
        font-size: 18px;
        font-weight: 800;
        color: #001b3d;
        margin-bottom: 6px;
    }

    .contact-step p {
        color: #4a5a73;
        line-height: 1.6;
        margin-bottom: 0;
    }

.contact-services {
    background: linear-gradient(135deg, #001b3d, #004b9b);
    color: white;
    border-radius: 18px;
    padding: 24px;
    margin-top: 34px;
}

    .contact-services h4 {
        font-weight: 800;
        margin-bottom: 10px;
    }

    .contact-services p {
        color: #eaf2ff;
        margin-bottom: 0;
    }

@media (max-width: 991px) {
    .contact-page {
        padding: 55px 0;
    }

    .contact-header h1 {
        font-size: 34px;
    }

    .contact-form-card,
    .contact-side-card {
        padding: 26px;
        border-radius: 18px;
    }
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.backoffice-card {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #dbe7f7;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 14px 38px rgba(0, 27, 61, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: #001b3d;
}

    .backoffice-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 55px rgba(0, 27, 61, 0.14);
    }

.backoffice-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #eaf2ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 22px;
}

.backoffice-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.backoffice-card p {
    color: #4a5a73;
    line-height: 1.6;
}

.backoffice-link {
    font-weight: 700;
    color: #0d6efd;
}

.backoffice-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

    .backoffice-card-disabled:hover {
        transform: none;
        box-shadow: 0 14px 38px rgba(0, 27, 61, 0.08);
    }

.disabled-icon {
    background: #f1f3f5;
    color: #6c757d;
}