/* Stile del sito principale — Bootstrap 5 + override brand.
   Palette in continuità con le landing: blu notte + arancione. */

:root {
    --sb-primary: #001f3f;
    --sb-primary-soft: #0a3260;
    --sb-cta: #d9480f;
    --sb-cta-hover: #b93d0c;
    --sb-accent: #ffa500;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
}

/* Ancore raggiungibili sotto la navbar sticky */
section[id] {
    scroll-margin-top: 4.5rem;
}

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

/* Bottone CTA primario: uno per pagina, sempre lo stesso colore */
.btn-cta {
    background-color: var(--sb-cta);
    border-color: var(--sb-cta);
    color: #fff;
    font-weight: 600;
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--sb-cta-hover);
    border-color: var(--sb-cta-hover);
    color: #fff;
}

.btn-cta:focus-visible {
    outline: 3px solid var(--sb-accent);
    outline-offset: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(140deg, var(--sb-primary) 0%, var(--sb-primary-soft) 60%, #10457f 100%);
    color: #fff;
    padding: 5rem 0;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

.hero-micro-trust {
    color: rgba(255, 255, 255, 0.7);
}

.trust-bar {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.925rem;
}

.trust-bar .badge-uni {
    background-color: var(--sb-accent);
    color: var(--sb-primary);
    font-weight: 700;
}

/* Sezioni */
.section-pad {
    padding: 4.5rem 0;
}

.section-title {
    font-weight: 700;
    color: var(--sb-primary);
}

/* Card problema */
.pain-card {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 31, 63, 0.08);
    height: 100%;
}

.pain-card .icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(217, 72, 15, 0.12);
    color: var(--sb-cta);
    font-size: 1.35rem;
}

/* Card servizi */
.service-card {
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--sb-primary);
    border-radius: 0.75rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 31, 63, 0.12);
}

.service-card.featured {
    border-top-color: var(--sb-cta);
}

.service-card .badge-start {
    background-color: var(--sb-cta);
}

.service-card a.stretched-link {
    color: var(--sb-cta);
    font-weight: 600;
    text-decoration: none;
}

/* Metodo: numeri step */
.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--sb-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Banner CTA */
.cta-banner {
    background: linear-gradient(140deg, var(--sb-primary) 0%, var(--sb-primary-soft) 100%);
}

/* Liste "per chi è / per chi non è" */
.fit-list li {
    margin-bottom: 0.5rem;
}

.fit-yes i {
    color: #2a9d8f;
}

.fit-no i {
    color: var(--sb-cta);
}

/* Footer */
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Widget WhatsApp fisso (stessa posizione del vecchio sito: in basso a sinistra) */
.whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1040;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #fff;
    background-color: #1ebe5b;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .service-card:hover {
        transition: none;
        transform: none;
    }
}
