/* custom.css - minimal overrides and cleanups */
/* Keep rules to a minimum; rely on Bootstrap for responsiveness */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.navbar-brand {
    font-weight: 700;
}

footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}


:root {
    --blue: #0f3e75;
    --green: #008932;
    --ink: #0f172a;
    --muted: #5f6b7a;
    --bg: #fff;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55
}

/*
.container {
    width: min(1100px, 92%);
    margin: 0 auto
}
*/
.base-color {
    color: var(--blue);
}

.acceleraction-color {
    color: var(--green);
}

.white-color {
    color: var(--bg);
}

.white-color:hover {
    color: var(--green);
}

.section {
    padding: 40px 0
}

.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.brand__logo {
    height: 26px
}

.nav a {
    margin-left: 14px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600
}

.nav a:hover {
    color: var(--blue)
}

h1,
h2 {
    color: var(--blue);
    margin: .2rem 0 .6rem
}

.lead {
    color: #111;
    max-width: 70ch
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: center
}

.devices {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center
}

.device .bezel {
    background: #0b0d12;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15)
}

.device .bezel img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px
}

.device--laptop {
    width: min(640px, 95%)
}

.device--laptop .base {
    height: 8px;
    background: linear-gradient(180deg, #b9c0cc, #8f98a6);
    border-radius: 0 0 10px 10px
}

.device--phone {
    width: min(200px, 32%)
}

.device--phone1 {
    width: min(400px, 45%)
}

.card {
    background: #f6f9fc;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 16px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px
}

.kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px
}

.kpi {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 14px;
    text-align: center
}

.kpi b {
    display: block;
    color: var(--blue);
    font-size: 1.4rem
}

.feature-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 20px
}

.feature-tabs a {
    padding: .5rem .8rem;
    border: 1px solid #e6edf5;
    border-radius: 999px;
    text-decoration: none;
    color: #0f172a;
    background: #f6f9fc
}

.feature-tabs a.active {
    background: #0f3e75;
    color: #fff;
    border-color: #0f3e75
}

.badge {
    display: inline-block;
    background: #e6f0ff;
    color: #0f3e75;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-weight: 700;
    font-size: .85rem
}

.footer {
    background: #0b1220;
    color: #cbd5e1;
    text-align: center;
    padding: 28px 0
}

.footer a {
    color: #fff;
    text-decoration: none
}

.btn {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.btn:hover {
    background: #fff;
    color: var(--blue);
    border: 2px solid var(--blue)
}

.btn-white {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--blue)
}

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

.btn-acceleraction {
    display: inline-block;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.btn-acceleraction:hover {
    background: #fff;
    color: var(--green);
    border: 2px solid var(--green)
}

.btn-menu-acceleraction {
    display: inline-block;
    padding: 0;
    border-radius: 20px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.btn-menu-acceleraction:hover {
    background: #fff;
    color: var(--green);
    border: 2px solid var(--green)
}

.btn.ghost {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue)
}

.hl {
    background: #0f3e75;
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    display: inline-block;
    margin-top: 10px
}

@media (max-width:980px) {
    .grid {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

    .kpis {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:560px) {
    .cards {
        grid-template-columns: 1fr
    }
}


/* --- Modal Video (Scopri) --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: #0e0e0e;
    border-radius: 16px;
    padding: 0;
    max-width: 960px;
    width: 92%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 999999;
}

.modal-body {
    padding: 0;
    background: #000;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 28px;
    line-height: 1;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Titolo sempre su una riga e adattivo */
.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* Effetto card */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card:hover .card-title {
    color: var(--blue);
    /* colore principale Bootstrap */
}

.logoHome {
    max-width: 400px;
    height: auto;
}

@media (max-width: 580px) {

    .logoHome {
        max-width: 300px;
        height: auto;
    }

    .btn-menu-acceleraction {
        display: inline-block;
        padding-left: 15px;
        border-radius: 10px;
        width: 35%;
    }
}

.feature-tabs a:hover {
    text-decoration: none;
    color: #fff !important;
    background-color: #0d6efd;
}


/* Cookie manage */
#cookieConsent {
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookieConsent.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

#cookieConsent.hide {
    opacity: 0;
    transform: translateY(100%);
}