
:root {
    --cb-teal: #0bb1b5;
    --cb-blue: #00557c;
    --cb-blue-dark: #00374f;
    --cb-orange: #f5a623;
    --cb-bg: #f7fafc;
    --cb-text: #123047;
    --cb-radius-lg: 18px;
    --cb-shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cb-text);
    line-height: 1.6;
    background:
        radial-gradient(circle at 0% 0%, rgba(11, 177, 181, 0.16) 0, rgba(11, 177, 181, 0) 55%),
        radial-gradient(circle at 100% 100%, rgba(0, 85, 124, 0.18) 0, rgba(0, 85, 124, 0) 55%);
    background-color: var(--cb-bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../img/logo-cb-watermark.png') no-repeat center 14%;
    background-size: min(620px, 80vw);
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

img
 {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--cb-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(120deg, #ffffff 0%, #f0fbff 40%, #ffffff 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.5rem;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo {
    width: 46px;
    height: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--cb-blue-dark);
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--cb-teal);
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
    background-color: rgba(11, 177, 181, 0.07);
    border-color: rgba(11, 177, 181, 0.4);
}

.nav-link-active {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0, 85, 124, 0.25);
}

/* Mobile nav */

.nav-toggle {background:#fff;border:1px solid rgba(0,85,124,0.18);padding:0.6rem 1.2rem;border-radius:999px;font-weight:600;font-size:0.9rem;color:#063044;box-shadow:0 8px 20px rgba(0,0,0,0.08);cursor:pointer;}

.nav-toggle-bar{display:none;}

.nav-toggle-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
    color: var(--cb-blue-dark);
}

@media (max-width: 860px) {
    .site-nav {
        position: fixed;
        inset: 0 0 auto 0;
        top: 58px;
        background-color: rgba(0, 0, 0, 0.35);
        transform: translateY(-120%);
        transition: transform 0.2s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        background-color: #ffffff;
        padding: 0.75rem 1rem 1.1rem;
        border-radius: 0 0 1.25rem 1.25rem;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .nav-toggle {background:#fff;border:1px solid rgba(0,85,124,0.18);padding:0.6rem 1.2rem;border-radius:999px;font-weight:600;font-size:0.9rem;color:#063044;box-shadow:0 8px 20px rgba(0,0,0,0.08);cursor:pointer;}
}

/* Hero & content */

.page-hero {
    padding: 2.4rem 0 1.2rem;
}

.page-hero h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0 0 0.5rem;
    color: var(--cb-blue-dark);
}

.page-intro {
    max-width: 40rem;
    font-size: 0.98rem;
    color: #3a5669;
}

.page-content {
    padding: 0.25rem 0 3rem;
}

.page-content .container {
    background-color: #ffffff;
    border-radius: var(--cb-radius-lg);
    box-shadow: var(--cb-shadow-soft);
    padding: 1.5rem 1.5rem 1.8rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.4rem 0 1.6rem;
    background-color: #ffffff;
}

.footer-inner {
    text-align: center;
    font-size: 0.8rem;
    color: #567086;
}

.footer-note {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #8597aa;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 85, 124, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(0, 85, 124, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    border-color: rgba(0, 85, 124, 0.4);
    color: var(--cb-blue-dark);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #f0fbff;
    text-decoration: none;
}

.btn-ghost {
    background-color: transparent;
    border-color: rgba(11, 177, 181, 0.4);
    color: var(--cb-blue-dark);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: rgba(11, 177, 181, 0.06);
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

/* Home hero */

.home-hero {
    padding: 2.6rem 0 1.8rem;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.2rem;
    align-items: center;
}

.home-hero-copy h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.4rem);
    margin-bottom: 0.4rem;
    color: var(--cb-blue-dark);
}

.home-hero-subtitle {
    font-size: 1rem;
    margin: 0 0 0.8rem;
    color: var(--cb-teal);
    font-weight: 600;
}

.home-hero-intro {
    font-size: 0.98rem;
    margin: 0 0 1.3rem;
    color: #35526a;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-hero-highlight {
    background: radial-gradient(circle at top left, rgba(11, 177, 181, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(0, 85, 124, 0.18), transparent 60%);
    border-radius: 24px;
    padding: 1.3rem 1.4rem 1.4rem;
    box-shadow: var(--cb-shadow-soft);
    background-color: #ffffff;
}

.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(0, 55, 79, 0.07);
    font-size: 0.8rem;
    color: var(--cb-blue-dark);
    margin-bottom: 0.9rem;
}

.home-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cb-orange), var(--cb-teal));
}

.home-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #14324a;
}

.home-hero-list li + li {
    margin-top: 0.45rem;
}

/* Sections & cards */

.home-section {
    padding: 1.6rem 0 0.6rem;
}

.home-section-alt {
    background: linear-gradient(135deg, #f0fbff, #ffffff);
    padding-bottom: 1.9rem;
}

.section-header {
    text-align: left;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-size: 1.3rem;
    margin: 0 0 0.35rem;
    color: var(--cb-blue-dark);
}

.section-header p {
    margin: 0;
    font-size: 0.92rem;
    color: #48637a;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.card {
    background-color: #ffffff;
    border-radius: var(--cb-radius-lg);
    padding: 1.1rem 1.15rem 1.15rem;
    box-shadow: var(--cb-shadow-soft);
    font-size: 0.9rem;
}

.card-soft {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 1.02rem;
    color: var(--cb-blue-dark);
}

.card p {
    margin: 0 0 0.75rem;
    color: #3a5669;
}

.card-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cb-blue);
}

/* Lists */

.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: cb-step;
    display: grid;
    gap: 1rem;
}

.steps-list li {
    background-color: #ffffff;
    border-radius: var(--cb-radius-lg);
    padding: 1rem 1.1rem 1.05rem;
    box-shadow: var(--cb-shadow-soft);
    position: relative;
    font-size: 0.9rem;
}

.steps-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--cb-blue-dark);
}

.steps-list p {
    margin: 0;
    color: #3a5669;
}

.list-check {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 0.9rem;
}

.list-check li {
    position: relative;
    padding-left: 1.2rem;
}

.list-check li + li {
    margin-top: 0.55rem;
}

.list-check li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--cb-orange);
    font-size: 1.1rem;
}

.highlight-not {
    color: var(--cb-orange);
}

/* Final CTA */

.home-cta-final {
    padding-bottom: 2.6rem;
}

.home-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
    gap: 1.4rem;
    align-items: center;
    background-color: #ffffff;
    border-radius: 22px;
    padding: 1.3rem 1.5rem 1.5rem;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.08);
}

.home-cta-text h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--cb-blue-dark);
}

.home-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #3f5c73;
}

.home-cta-buttons {
    display: grid;
    gap: 0.5rem;
}

/* Responsive adjustments */

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-highlight {
        order: -1;
    }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .home-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero {
        padding-top: 2rem;
    }

    .page-content .container {
        padding: 1.2rem 1.15rem 1.4rem;
    }
}



/* --- Home hero marketing layout --- */

.home-hero {
    padding: 2.6rem 0 2.4rem;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--cb-teal);
    margin: 0 0 0.4rem;
}

.home-hero h1 {
    font-size: clamp(1.8rem, 3.3vw, 2.4rem);
    line-height: 1.2;
    margin: 0 0 0.6rem;
    color: var(--cb-blue-dark);
}

.home-hero-subtitle {
    font-size: 0.98rem;
    color: #365268;
    max-width: 36rem;
    margin: 0 0 1.1rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 85, 124, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 18px 40px rgba(0, 85, 124, 0.42);
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--cb-blue-dark);
    border-color: rgba(0, 85, 124, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: #ffffff;
    border-color: rgba(0, 85, 124, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--cb-blue-dark);
    border-color: rgba(0, 85, 124, 0.5);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: rgba(0, 85, 124, 0.05);
}

.home-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.tag-pill {
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    border: 1px solid rgba(11, 177, 181, 0.25);
    background-color: rgba(11, 177, 181, 0.06);
    color: #3b6475;
}

/* Hero side visual */

.home-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: radial-gradient(circle at -20% -10%, rgba(11, 177, 181, 0.12), transparent 60%),
                radial-gradient(circle at 120% 110%, rgba(0, 85, 124, 0.18), transparent 55%),
                #ffffff;
    border-radius: 1.4rem;
    padding: 1.2rem 1.2rem 1.3rem;
    box-shadow: var(--cb-shadow-soft);
    max-width: 340px;
    width: 100%;
}

.hero-logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
}

.hero-logo-circle img {
    width: 44px;
}

.hero-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--cb-blue-dark);
    margin-bottom: 0.6rem;
}

.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.6rem;
    font-size: 0.86rem;
    color: #334c5f;
}

.hero-card-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.hero-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-icon-ass {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
}

.hero-icon-shop {
    background: linear-gradient(135deg, var(--cb-orange), #ff7b39);
}

.hero-icon-family {
    background: linear-gradient(135deg, #7c4dff, var(--cb-blue));
}

.hero-card-foot {
    font-size: 0.78rem;
    color: #5b7082;
}

/* Home sections */

.home-section {
    padding: 2.3rem 0;
}

.home-section-alt {
    background: linear-gradient(180deg, rgba(240, 251, 255, 0.8), #f7fafc);
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.home-grid-tight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-icon {
    text-align: left;
}

.card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    position: relative;
}

.card-icon-circle::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.icon-ass {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
}

.icon-shop {
    background: linear-gradient(135deg, var(--cb-orange), #ff7b39);
}

.icon-family {
    background: linear-gradient(135deg, #7c4dff, var(--cb-blue));
}

.card-link {
    display: inline-flex;
    margin-top: 0.4rem;
    font-size: 0.86rem;
}

.card-link::after {
    content: "›";
    margin-left: 0.25rem;
}

/* Steps layout */

.steps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.6rem;
}

.steps-column h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
}

.steps-list {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.bullet-list {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.steps-note {
    font-size: 0.82rem;
    color: #4a6477;
    background-color: #f3f8fb;
    border-radius: 0.9rem;
    padding: 0.7rem 0.8rem;
    margin: 0.7rem 0;
}

.text-link {
    font-size: 0.86rem;
    text-decoration: underline;
}

/* Plain cards */

.card-plain {
    background-color: #ffffff;
}

/* CTA finale */

.home-cta-final {
    background: radial-gradient(circle at 0% 0%, rgba(11, 177, 181, 0.18), transparent 55%),
                radial-gradient(circle at 110% 120%, rgba(0, 85, 124, 0.3), transparent 55%),
                var(--cb-blue-dark);
    color: #e9f7ff;
}

.home-cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.home-cta-text h2 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.home-cta-text p {
    margin: 0;
    font-size: 0.92rem;
    max-width: 32rem;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-cta-actions .btn {
    font-size: 0.86rem;
}

.home-cta-actions .btn-primary {
    background: #ffffff;
    color: var(--cb-blue-dark);
    box-shadow: none;
}

.home-cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.home-cta-actions .btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: #e9f7ff;
}

/* Footer medium enhancement */

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1.6rem 0 1.8rem;
    background-color: #ffffff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: #567086;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    width: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-links a {
    font-size: 0.8rem;
}

.footer-meta {
    flex-basis: 100%;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: #8a9aae;
}

/* Responsive tweaks */

@media (max-width: 920px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-hero-visual {
        justify-content: flex-start;
    }
    .hero-card {
        max-width: 100%;
    }
    .home-grid,
    .home-grid-tight,
    .steps-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 1.8rem;
    }
    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Accedi button in header */
.nav-link-cta {
    background: linear-gradient(135deg, var(--cb-teal), var(--cb-blue));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(0, 85, 124, 0.35);
}

.nav-link-cta:hover,
.nav-link-cta:focus {
    box-shadow: 0 15px 34px rgba(0, 85, 124, 0.45);
}

@media (max-width: 860px) {
    .nav-link-cta {
        width: 100%;
        text-align: center;
    }
}
/* MENU mobile: visibile solo su schermi piccoli */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* (opzionale) su mobile possiamo centrare meglio */
@media (max-width: 899.98px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
