/* =============================================================================
   MediSuite – Main Stylesheet
   Ordine: Design Tokens → Reset → Utilities → Nav → Hero → Sezioni → Footer → Animazioni → Responsive
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */
:root {
    /* Colori */
    --color-bg:            #f8f8f8;
    --color-surface:       #ffffff;
    --color-primary:       #0a3c6e;
    --color-primary-light: #0d4f8f;
    --color-primary-dark:  #082f57;
    --color-accent:        #fbad48;
    --color-accent-hover:  #ffc166;
    --color-text:          #1a1a2e;
    --color-text-muted:    #555e6d;
    --color-border:        rgba(0, 0, 0, 0.07);
    --color-border-light:  rgba(0, 0, 0, 0.05);
    --color-surface-blur:  rgba(255, 255, 255, 0.8);

    /* Tipografia */
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lh-body:    1.7;
    --lh-heading: 1.18;
    --lh-tight:   1.1;

    /* Spaziatura (base 8px) */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  64px;
    --space-2xl: 100px;

    /* Layout */
    --container-max:     1160px;
    --container-padding: 28px;

    /* Border radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   20px;
    --radius-pill: 100px;

    /* Ombre */
    --shadow-card:       0 2px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 36px rgba(0, 0, 0, 0.11);
    --shadow-nav:        0 2px 24px rgba(0, 0, 0, 0.08);

    /* Transizioni */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
    --t-slow: 0.4s ease;

    /* Nav */
    --nav-height: 72px;

    /* Colori prodotti MediSuite */
    --color-tutor:         #3a7cc2;
    --color-tutor-light:   #5a9de0;
    --color-bot:           #e8972c;
    --color-bot-light:     #f5b04d;
    --color-ocr:           #0e8a7d;
    --color-ocr-light:     #11b09f;
    --color-scribe:        #7c5cbf;
    --color-scribe-light:  #9b7dd4;
    --color-privacy:       #d96857;
    --color-privacy-light: #e8897a;
}

/* =============================================================================
   2. RESET E BASE
   ============================================================================= */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    font-weight: 700;
    color: var(--color-primary);
}

p {
    margin: 0 0 1.25em;
}

p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   3. UTILITIES
   ============================================================================= */

/* Container */
.container,
.site-main > .section > div {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Nascondi titolo pagina via opzione meta box */
.hide-page-title .page-title {
    display: none;
}

/* Sezione base */
.section {
    padding: var(--space-2xl) 0;
}

/* Label pill sopra i titoli di sezione */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 60, 110, 0.08);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
}

/* Titoli H2 sezione */
.section-title {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    color: var(--color-primary);
    font-weight: 700;
    line-height: var(--lh-heading);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: var(--lh-body);
    max-width: 640px;
}

/* Header di sezione centrato */
.section-header--centered {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
}

.section-header--centered .section-subtitle {
    margin: 0 auto;
}

/* Bottoni */
.btn > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background var(--t-base), color var(--t-base), transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    line-height: 1;
    padding: 14px 28px;
    white-space: nowrap;
    border-radius: 100px;
}

.btn > a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.btn-primary > a {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary > a:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10, 60, 110, 0.3);
}

.btn-accent > a {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
}

.btn-accent > a:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 173, 72, 0.4);
}

.btn-outline-white > a {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 26px;
}

.btn-outline-white > a:hover {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.btn--lg > a {
    padding: 16px 38px;
    font-size: 1.0625rem;
}

/* =============================================================================
   4. HEADER E NAVIGAZIONE
   ============================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background var(--t-slow), box-shadow var(--t-slow);
    backdrop-filter: blur(15px);
}

.admin-bar .site-header {
    top: 32px; /* Compensa l'altezza della barra admin di WordPress */
}

/* Stato iniziale: trasparente sopra hero scuro */
.site-header .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: var(--space-md);
}

/* Stato scrolled */
.site-header.scrolled {
    background: var(--color-surface-blur);
    box-shadow: var(--shadow-nav);
}

/* Logo nav */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    transition: opacity var(--t-fast);
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--t-base), background var(--t-base);
    text-decoration: none;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Stato scrolled: link scuri */
.site-header.scrolled .nav-menu a {
    color: var(--color-text-muted);
}

.site-header.scrolled .nav-menu a:hover {
    color: var(--color-primary);
    background: rgba(10, 60, 110, 0.06);
}

.site-header.scrolled .nav-menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* CTA pill – elemento standalone nell'header (fuori dal ul.nav-menu) */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--color-accent);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251, 173, 72, 0.35);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: background var(--t-base), transform var(--t-base), opacity var(--t-base);
}

.site-header.scrolled .nav-toggle__bar {
    background: var(--color-primary);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =============================================================================
   5. HERO
   ============================================================================= */
.hero {
    min-height: 90vh;
    background: var(--color-primary);
    background-image: radial-gradient(ellipse at 72% 45%, rgba(13, 79, 143, 0.9) 0%, var(--color-primary) 65%);
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

/* Texture di sfondo sottile */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(251, 173, 72, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
    pointer-events: none;
}

.hero-inner {
    padding: 80px var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    /* display: inline-block; */
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero-title {
    color: #fff;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h2.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    margin-bottom: var(--space-sm);
    font-weight: 800;
}

h3.hero-title {
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
}

.hero-title em {
    font-style: normal;
    color: var(--color-accent);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    /* max-width: 520px; */
}

/* Visual lato destro hero */
.hero-badge-group {
    width: 100%;
    max-width: 380px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(6px);
    transition: background var(--t-base), border-color var(--t-base);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(251, 173, 72, 0.4);
}

.hero-badge__icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.hero-badge__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.hero-badge__desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin: 0;
}

.hero-badge--accent {
    background: rgba(251, 173, 72, 0.12);
    border-color: rgba(251, 173, 72, 0.3);
}

.hero-badge--accent .hero-badge__title {
    color: var(--color-accent);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: hero-scroll-pulse 2.5s ease-in-out infinite;
}

.hero-scroll__arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.35);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    transform: rotate(45deg);
    margin-top: 4px;
}

@keyframes hero-scroll-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* =============================================================================
   6. SEZIONE INTRO
   ============================================================================= */
.section-intro {
    background: var(--color-surface);
}

.intro-text .section-label {
    margin-bottom: var(--space-sm);
}

.intro-body {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.intro-body p {
    margin-bottom: 1.1em;
}

.intro-body .intro-highlight {
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.05rem;
}

.intro-cta {
    margin-top: var(--space-lg);
}

/* Highlight cards colonna destra */
.intro-highlights {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.highlight-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border-left: 3px solid var(--color-accent);
    transition: box-shadow var(--t-base);
    margin-bottom: var(--space-md);
}

.highlight-card:hover {
    box-shadow: var(--shadow-card);
}

.highlight-card__icon {
    font-size: 1.4rem !important;
    margin-bottom: 8px;
    display: block;
}

.highlight-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* =============================================================================
   7. SEZIONE FEATURES (Accountability, Compliance, Reporting)
   ============================================================================= */
.section-features {
    background: var(--color-bg);
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    border-top: 3px solid transparent;
    transition: transform var(--t-base), box-shadow var(--t-base), border-top-color var(--t-base);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-top-color: var(--color-accent);
}

/* Card centrale invertita */
.feature-card--accent {
    background: var(--color-primary);
    border-top-color: var(--color-accent);
}

.feature-card--accent:hover {
    background: var(--color-primary-light);
    border-top-color: var(--color-accent);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(251, 173, 72, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card--accent .feature-card__icon {
    background: rgba(251, 173, 72, 0.18);
}

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.feature-card--accent .feature-card__title {
    color: #fff;
}

.feature-card__desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.feature-card--accent .feature-card__desc {
    color: rgba(255, 255, 255, 0.7);
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card--accent .feature-card__list {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.feature-card__list li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.feature-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.feature-card--accent .feature-card__list li {
    color: rgba(255, 255, 255, 0.65);
}

/* =============================================================================
   8. SEZIONE QUESTIONARIO
   ============================================================================= */
.section-questionnaire {
    background: var(--color-surface);
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-list__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

.check-list__item:last-child {
    border-bottom: none;
}

.check-list__icon {
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Mockup pannello questionario */
.mockup-panel {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 48px rgba(10, 60, 110, 0.14);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.mockup-panel__header {
    background: var(--color-bg);
    padding: 16px 20px;
    display: flex;
    gap: 7px;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e0e0e0;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-panel__body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mockup-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.skeleton-field {
    height: 11px;
    background: #e8eaed;
    border-radius: 6px;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}

.skeleton-field--short {
    width: 60%;
}

.skeleton-field--medium {
    width: 80%;
}

.skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.skeleton-answer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skeleton-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8eaed;
    flex-shrink: 0;
    animation: skeleton-pulse 1.8s ease-in-out infinite;
}

.skeleton-radio--active {
    background: var(--color-primary);
    animation: none;
}

.skeleton-progress-wrap {
    margin-top: 4px;
}

.skeleton-progress-label {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.skeleton-progress {
    height: 6px;
    background: #e8eaed;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.skeleton-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-pill);
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* =============================================================================
   9. SEZIONE DOCUMENTAZIONE
   ============================================================================= */
.section-docs {
    background: var(--color-bg);
}

.doc-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.doc-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(251, 173, 72, 0.15);
    transform: translateY(-2px);
}

.doc-card__icon {
    width: 44px;
    height: 44px;
    background: rgba(10, 60, 110, 0.07);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-bottom: 0;  /* override p default margin */
}

.doc-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
}

.doc-card__desc {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

.doc-card__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: rgba(10, 60, 110, 0.07);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
}

/* =============================================================================
   10. SEZIONE GESTIONE RISCHIO
   ============================================================================= */
.section-risk {
    background: var(--color-surface);
}

.risk-metric {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--color-accent);
    transition: box-shadow var(--t-base);
    margin-bottom: var(--space-md) !important;
}

.risk-metric:hover {
    box-shadow: var(--shadow-card);
}

.risk-metric__icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin: 0;  /* override p default margin when used on <p> */
    line-height: 1;
}

.risk-metric__content {}

.risk-metric__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.risk-metric__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;  /* explicit margin to override p default */
}

.risk-metric__desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 4px 0 0;
}

/* =============================================================================
   11. SEZIONE CTA BANNER
   ============================================================================= */
.section-cta {
    background: var(--color-primary);
    background-image: radial-gradient(ellipse at 30% 60%, rgba(13, 79, 143, 0.8) 0%, var(--color-primary) 60%);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 75% 30%, rgba(251, 173, 72, 0.07) 0%, transparent 55%);
    pointer-events: none;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 173, 72, 0.15);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: #fff;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* =============================================================================
   11a-bis. CONTACT FORM 7 nella CTA
   ============================================================================= */

/* Contenitore form */
.section-cta .wpcf7 {
    
    margin: 0 auto;
    text-align: left;
}

/* Righe e griglia */
.cf7-row {
    margin-bottom: var(--space-sm);
}

.cf7-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Singolo campo */
.cf7-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.cf7-field label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.cf7-required {
    color: var(--color-accent);
}

/* Label su sfondo scuro (CTA) */
.section-cta .cf7-field label {
    color: rgba(255, 255, 255, 0.85);
}

/* Input, select, textarea – stile base (sfondo chiaro) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
    outline: none;
    box-sizing: border-box;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: var(--color-text-muted);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 60, 110, 0.1);
}

.wpcf7 textarea {
    min-height: 120px;
    height: 150px;
    resize: vertical;
}

/* Input su sfondo scuro (CTA) */
.section-cta .wpcf7 input[type="text"],
.section-cta .wpcf7 input[type="email"],
.section-cta .wpcf7 input[type="tel"],
.section-cta .wpcf7 input[type="url"],
.section-cta .wpcf7 textarea,
.section-cta .wpcf7 select {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section-cta .wpcf7 input::placeholder,
.section-cta .wpcf7 textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.section-cta .wpcf7 input:focus,
.section-cta .wpcf7 textarea:focus,
.section-cta .wpcf7 select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(251, 173, 72, 0.2);
}

/* Checkbox consenso */
.cf7-field--accept {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}
.cf7-field--accept label {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    display: flex;
}

.cf7-field--accept .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cf7-field--accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.cf7-field--accept a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cf7-field--accept a:hover {
    color: var(--color-primary-dark);
}

/* Checkbox su sfondo scuro (CTA) */
.section-cta .cf7-field--accept .wpcf7-acceptance {
    color: rgba(255, 255, 255, 0.65);
}

.section-cta .cf7-field--accept a {
    color: var(--color-accent);
}

.section-cta .cf7-field--accept a:hover {
    color: var(--color-accent-hover);
}

/* Pulsante submit – stile base (sfondo chiaro) */
.cf7-row--submit {
    text-align: center;
    margin-top: var(--space-md);
}

.cf7-submit,
.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    letter-spacing: 0.01em;
}

.cf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(10, 60, 110, 0.25);
}

.cf7-submit:active,
.wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* Submit su sfondo scuro (CTA) */
.section-cta .cf7-submit,
.section-cta .wpcf7 input[type="submit"] {
    background: var(--color-accent);
    color: var(--color-primary);
}

.section-cta .cf7-submit:hover,
.section-cta .wpcf7 input[type="submit"]:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 6px 24px rgba(251, 173, 72, 0.35);
}

/* Messaggi di validazione CF7 – base (sfondo chiaro) */
.wpcf7-not-valid-tip {
    display: block !important;
    color: #e03131;
    font-size: 0.78rem;
    margin-top: 4px;
}

.wpcf7-not-valid {
    border-color: #e03131 !important;
}

.wpcf7-response-output {
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin: var(--space-md) 0 0 !important;
    font-size: 0.9rem;
    text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    display: block;
    border-color: #e03131 !important;
    color: #e03131;
}

.wpcf7 form.sent .wpcf7-response-output {
    display: block;
    border-color: #2f9e44 !important;
    color: #2f9e44;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    display: block;
    border-color: #e03131 !important;
    color: #e03131;
}

.wpcf7-spinner {
    margin: var(--space-sm) auto 0;
}

/* Validazione su sfondo scuro (CTA) */
.section-cta .wpcf7-not-valid-tip {
    color: #ff6b6b;
}

.section-cta .wpcf7-not-valid {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.08) !important;
}

.section-cta .wpcf7-response-output {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.85);
}

.section-cta .wpcf7 form.invalid .wpcf7-response-output,
.section-cta .wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #ff6b6b !important;
    color: #ff6b6b;
}

.section-cta .wpcf7 form.sent .wpcf7-response-output {
    border-color: #51cf66 !important;
    color: #51cf66;
}

.section-cta .wpcf7 form.failed .wpcf7-response-output,
.section-cta .wpcf7 form.aborted .wpcf7-response-output {
    border-color: #ff6b6b !important;
    color: #ff6b6b;
}

/* Responsive: colonne → colonna singola su mobile */
@media (max-width: 600px) {
    .cf7-row--two {
        grid-template-columns: 1fr;
    }

    .cf7-field {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        margin: auto;
    }
}


/* =============================================================================
   11a-ter. PAGINA SUPPORTO
   ============================================================================= */

/* Sezione info contatti */
.section-support-info {
    background: var(--color-bg);
    padding-top: calc(var(--nav-height) + var(--space-xl));
}

/* Griglia card */
.support-cards {
    max-width: 960px;
    margin: 0 auto;
}

.support-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform var(--t-base), box-shadow var(--t-base);
    border-top: 3px solid var(--color-primary);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.support-card__icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.support-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.01em;
}

.support-card__value {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.support-card__value a {
    color: var(--color-accent);
    text-decoration: none;
    word-break: break-all;
}

.support-card__value a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.support-card__note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Sezione form contatto (sfondo bianco) */
.section-support-form {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
}

.support-form-inner {
    max-width: 640px;
    margin: 0 auto;
}

.support-form__title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.support-form__subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

/* Nessuno stile CF7 aggiuntivo necessario per il form supporto:
   gli stili base .wpcf7 coprono già il caso sfondo chiaro */

@media (max-width: 768px) {
    .support-cards-grid {
        gap: 16px;
    }

    .support-card {
        padding: 28px 20px;
    }
}


/* =============================================================================
   11b. PRICING
   ============================================================================= */
.section-pricing {
    background: var(--color-bg);
}

.pricing-grid {
    max-width: 820px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    border-top: 3px solid transparent;
    transition: transform var(--t-base), box-shadow var(--t-base);
    height: 100%;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.pricing-card--featured {
    border-top: 3px solid var(--color-accent);
}

.pricing-card__recommended {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 18px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.pricing-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pricing-card__logo {
    margin: 0 !important;
}
.pricing-card__logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.pricing-card__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    background: rgba(10, 60, 110, 0.08);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}
.pricing-card__badge--accent {
    color: var(--color-primary);
    background: rgba(251, 173, 72, 0.18);
}

.pricing-card__price-wrap {
    text-align: center;
}

.pricing-card__price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: var(--lh-tight);
    margin: 0;
}
.pricing-card__price::before {
    content: "\20AC";
    font-size: 1.8rem;
    vertical-align: super;
    margin-right: 2px;
    font-weight: 700;
}
.pricing-card__price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-card__price-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.5;
}
.pricing-card__features li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(251, 173, 72, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fbad48'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.pricing-card__cta {
    margin-top: auto;
}
.pricing-card__cta .wp-block-button__link {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
}


/* =============================================================================
   11c. MEDIBOT – SEZIONI SPECIFICHE
   ============================================================================= */

/* Hero chat mockup */
.hero-chat-mockup {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.chat-header {
    background: var(--color-primary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-header__dots {
    display: flex;
    gap: 6px;
}

.chat-header__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chat-header__dot--r { background: #ff5f57; }
.chat-header__dot--y { background: #febc2e; }
.chat-header__dot--g { background: #28c840; }

.chat-header__title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0 0 0 4px;
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    max-width: 88%;
    margin: 0;
}

.chat-msg--user {
    background: var(--color-accent);
    color: var(--color-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-msg--bot {
    background: #f0f4f3;
    color: var(--color-text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg--bot strong { color: #0e8a7d; }

.chat-refs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.chat-ref {
    background: rgba(14, 138, 125, 0.1);
    color: #0e8a7d;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* MediBot live badge in hero */
.medibot-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 138, 125, 0.15);
    border: 1px solid rgba(14, 138, 125, 0.3);
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: #11b09f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.medibot-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #11b09f;
    animation: medibot-pulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes medibot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Knowledge Base cards */
.section-knowledge {
    background: var(--color-surface);
}

.knowledge-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--t-base), box-shadow var(--t-base);
    height: 100%;
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.knowledge-card__icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
    display: block;
    line-height: 1;
}

.knowledge-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.knowledge-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.knowledge-card__stat {
    font-size: 2rem;
    font-weight: 800;
    color: #0e8a7d;
    line-height: 1;
    display: block;
}

.knowledge-card__stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 4px;
}

/* Stats bar */
.stats-bar {
    background: var(--color-primary);
    background-image: radial-gradient(ellipse at 30% 60%, rgba(13, 79, 143, 0.8) 0%, var(--color-primary) 60%);
    padding: var(--space-xl) 0;
}

.stats-bar__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stats-bar__num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    display: block;
}

.stats-bar__label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

/* Use cases */
.section-usecases {
    background: var(--color-bg);
}

.usecase-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.usecase-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-md);
    align-items: center;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}

.usecase-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 6px 24px rgba(251, 173, 72, 0.08);
}

.usecase-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 173, 72, 0.08);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.usecase-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.usecase-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Guidelines grid */
.section-guidelines {
    background: var(--color-surface);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: var(--space-xl);
}

.gl-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color var(--t-fast), background var(--t-fast);
}

.gl-item:hover {
    border-color: #0e8a7d;
    background: rgba(14, 138, 125, 0.02);
}

.gl-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(14, 138, 125, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e8a7d;
    font-size: 0.85rem;
    font-weight: 700;
}

.gl-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
}

/* MediBot contact section */
.section-medibot-contact {
    background: var(--color-bg);
}

.medibot-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin-top: var(--space-xl);
}

.medibot-contact-info h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.medibot-contact-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Flow steps – sezione "Come funziona" */
/* MediBot flow steps – sezione "Come funziona" */
.mb-flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    position: relative;
}

.mb-flow-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 2px;
    background: var(--color-accent);
    opacity: 0.25;
}

.mb-flow-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 var(--space-sm);
}

.mb-flow-step__num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(251, 173, 72, 0.3);
}

.mb-flow-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.mb-flow-step__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 768px) {
    .mb-flow-steps {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .mb-flow-steps::before {
        display: none;
    }

    .mb-flow-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: var(--space-md);
        text-align: left;
        align-items: start;
    }

    .mb-flow-step__num {
        margin: 0;
        grid-row: span 2;
    }
}

/* Hero keypoints pills */
.hero-keypoints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: var(--space-lg);
}

.hero-keypoints__item {
    background: color-mix(in srgb, var(--color-accent) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-accent) 15%, transparent);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 0.75rem;
    color: var(--color-accent);
    line-height: 1.4;
}

/* Hero trust note */
.hero-trust {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

/* Sidebar box – Section 4 */
.sidebar-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    height: 100%;
}

.sidebar-box__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.sidebar-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box__list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
}

.sidebar-box__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

/* Response mockup placeholder – Section 6 */
.response-mockup {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.response-mockup img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* Response schema pills – Section 6 */
.response-schema {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: var(--space-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.response-schema__item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Callout box – Section 7 (Trasparenza) */
.callout-box {
    max-width: 700px;
    margin: var(--space-lg) auto 0;
    background: rgba(251, 173, 72, 0.06);
    border: 1px solid rgba(251, 173, 72, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.callout-box p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* FAQ accordion – Section 10 */
.faq-list {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--t-base);
}

.faq-item[open] {
    border-color: var(--color-accent);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item__answer {
    padding: 0 24px 18px;
}

.faq-item__answer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Responsive MediBot */
@media (max-width: 768px) {
    .stats-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecase-item {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .usecase-num {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .medibot-contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-keypoints {
        flex-direction: column;
        align-items: center;
    }

    .response-mockup {
        min-height: 200px;
    }

    .response-schema {
        gap: 8px;
    }

    .faq-item summary {
        padding: 14px 18px;
        font-size: 0.95rem;
    }

    .faq-item__answer {
        padding: 0 18px 14px;
    }
}

@media (max-width: 480px) {
    .stats-bar__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================================================
   11d. MEDISUITE HOMEPAGE – SEZIONI SPECIFICHE
   ============================================================================= */

/* Hero centrato (nessuna colonna visuale) */
.hero-inner--centered {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-inner--centered .hero-actions {
    justify-content: center;
}

.hero-inner--centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Orbita icone prodotti */
.hero-orbit {
    margin-top: var(--space-lg);
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orbit__center {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-tutor), var(--color-ocr));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 30px rgba(14, 138, 125, 0.3);
    flex-shrink: 0;
}

.hero-orbit__items {
    position: absolute;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    pointer-events: none;
}

.hero-orbit__item {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    animation: medisuite-float 4s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-orbit__item:nth-child(1) { animation-delay: 0s; }
.hero-orbit__item:nth-child(2) { animation-delay: 0.6s; }
.hero-orbit__item:nth-child(3) { animation-delay: 1.2s; }
.hero-orbit__item:nth-child(4) { animation-delay: 1.8s; }
.hero-orbit__item:nth-child(5) { animation-delay: 2.4s; }

@keyframes medisuite-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ===== Product cards ===== */

.section-products {
    background: var(--color-bg);
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 6px 1fr auto;
    align-items: stretch;
    transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.product-card__accent {
    width: 6px;
    min-height: 100%;
    flex-shrink: 0;
}

.product-card__accent--tutor   { background: var(--color-tutor); }
.product-card__accent--bot     { background: var(--color-bot); }
.product-card__accent--ocr     { background: var(--color-ocr); }
.product-card__accent--scribe  { background: var(--color-scribe); }
.product-card__accent--privacy { background: var(--color-privacy); }

.product-card__body {
    padding: 28px 32px;
}

.product-card__name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: var(--lh-tight);
}

.product-card__tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.01em;
}

.product-card__desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
    max-width: 580px;
}

.product-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-card__features li {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.product-card__action {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    border-left: 1px solid var(--color-border-light);
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--t-fast), transform var(--t-fast);
}

.product-card__link:hover { transform: translateY(-1px); }

.product-card__link--tutor   { background: rgba(58,124,194,0.1);  color: var(--color-tutor); }
.product-card__link--tutor:hover   { background: rgba(58,124,194,0.18); }
.product-card__link--bot     { background: rgba(232,151,44,0.1);  color: var(--color-bot); }
.product-card__link--bot:hover     { background: rgba(232,151,44,0.18); }
.product-card__link--ocr     { background: rgba(14,138,125,0.1);  color: var(--color-ocr); }
.product-card__link--ocr:hover     { background: rgba(14,138,125,0.18); }
.product-card__link--scribe  { background: rgba(124,92,191,0.1);  color: var(--color-scribe); }
.product-card__link--scribe:hover  { background: rgba(124,92,191,0.18); }
.product-card__link--privacy { background: rgba(217,104,87,0.1);  color: var(--color-privacy); }
.product-card__link--privacy:hover { background: rgba(217,104,87,0.18); }

.product-card__url {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== Product card – Coming Soon state ===== */

.product-card--coming-soon {
    opacity: 0.6;
    filter: grayscale(0.45);
    cursor: default;
}

.product-card--coming-soon:hover {
    border-color: var(--color-border);
    box-shadow: none;
    transform: none;
}

.product-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
}

.product-card__status--coming-soon {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-text-muted);
    border: 1px solid rgba(107, 114, 128, 0.22);
}

.product-card--coming-soon .product-card__link {
    pointer-events: none;
    opacity: 0.45;
    cursor: not-allowed;
}

.product-card__soon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(107, 114, 128, 0.08);
    border: 1px dashed rgba(107, 114, 128, 0.3);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    white-space: nowrap;
}

/* ===== Flow steps ===== */

.section-flow {
    background: var(--color-surface);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-top: var(--space-xl);
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-tutor),
        var(--color-bot),
        var(--color-ocr),
        var(--color-scribe),
        var(--color-privacy)
    );
    opacity: 0.2;
}

.flow-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 var(--space-xs);
}

.flow-step__icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    transition: transform var(--t-base), border-color var(--t-base);
    backdrop-filter: blur(10px);
}

.flow-step:hover .flow-step__icon { transform: scale(1.08); }

.flow-step__icon--tutor   { border-color: var(--color-tutor);   background: rgba(58,124,194,0.07); }
.flow-step__icon--bot     { border-color: var(--color-bot);     background: rgba(232,151,44,0.07); }
.flow-step__icon--ocr     { border-color: var(--color-ocr);     background: rgba(14,138,125,0.07); }
.flow-step__icon--scribe  { border-color: var(--color-scribe);  background: rgba(124,92,191,0.07); }
.flow-step__icon--privacy { border-color: var(--color-privacy); background: rgba(217,104,87,0.07); }

.flow-step__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

.flow-step__desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ===== About / Genomedics ===== */

.section-about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: var(--space-xl);
    align-items: start;
}

.about-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-text p + p { margin-top: var(--space-sm); }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

/* Product links inline (sezione contatti) */
.contact-product-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-sm);
}

.contact-product-links a {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transition: background var(--t-fast);
}

.contact-product-links a.link-tutor   { color: var(--color-tutor);   background: rgba(58,124,194,0.1); }
.contact-product-links a.link-bot     { color: var(--color-bot);     background: rgba(232,151,44,0.1); }
.contact-product-links a.link-ocr     { color: var(--color-ocr);     background: rgba(14,138,125,0.1); }
.contact-product-links a.link-scribe  { color: var(--color-scribe);  background: rgba(124,92,191,0.1); }
.contact-product-links a.link-privacy { color: var(--color-privacy); background: rgba(217,104,87,0.1); }

.contact-product-links a:hover { opacity: 0.85; }

.contact-product-links .link-coming-soon {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    color: var(--color-text-muted);
    background: rgba(107, 114, 128, 0.08);
    border: 1px dashed rgba(107, 114, 128, 0.25);
    cursor: default;
    opacity: 0.65;
}

/* ===== Responsive MediSuite Homepage ===== */

@media (max-width: 960px) {
    .product-card {
        grid-template-columns: 6px 1fr;
    }

    .product-card__action {
        grid-column: 2 / 3;
        padding: 0 32px var(--space-md);
        align-items: flex-start;
        border-left: none;
        border-top: 1px solid var(--color-border-light);
    }

    .flow-steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: var(--space-xl);
    }

    .flow-steps::before { display: none; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 700px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .hero-orbit__items {
        gap: 0.8rem;
    }

    .hero-orbit__item {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .hero-orbit__center {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
}

/* Reset WP block spacing in product/flow components */
.product-card__body > .wp-block-group,
.about-grid > .wp-block-group {
    padding: 0;
}

/* =============================================================================
   12. FOOTER
   ============================================================================= */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    padding: 72px var(--container-padding) 48px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    height: 28px;
    width: auto;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
    margin: 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-nav__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav__list a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--t-fast);
}

.footer-nav__list a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: 24px var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

/* =============================================================================
   13. ANIMAZIONI SCROLL
   ============================================================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger per elementi multipli */
.animate-stagger > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.40s; }

/* Stagger check-list */
.check-list .check-list__item:nth-child(1) { transition-delay: 0s; }
.check-list .check-list__item:nth-child(2) { transition-delay: 0.07s; }
.check-list .check-list__item:nth-child(3) { transition-delay: 0.14s; }
.check-list .check-list__item:nth-child(4) { transition-delay: 0.21s; }
.check-list .check-list__item:nth-child(5) { transition-delay: 0.28s; }
.check-list .check-list__item:nth-child(6) { transition-delay: 0.35s; }

/* Native wp:list support for .check-list */
.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
    list-style: none;
}
.check-list li:last-child {
    border-bottom: none;
}
.check-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.7rem;
    margin-top: 1px;
    flex-shrink: 0;
}
/* Stagger delays for native list items */
.check-list li:nth-child(1) { transition-delay: 0s; }
.check-list li:nth-child(2) { transition-delay: 0.07s; }
.check-list li:nth-child(3) { transition-delay: 0.14s; }
.check-list li:nth-child(4) { transition-delay: 0.21s; }
.check-list li:nth-child(5) { transition-delay: 0.28s; }
.check-list li:nth-child(6) { transition-delay: 0.35s; }

/* Reset WP block editor default spacing inside custom card components */
.hero-badge > .wp-block-group,
.highlight-card > .wp-block-group,
.feature-card > .wp-block-group,
.doc-card > .wp-block-group,
.risk-metric > .wp-block-group,
.pricing-card > .wp-block-group {
    padding: 0;
}
/* Feature card list: ensure wp-block-list class doesn't add extra padding */
.feature-card__list.wp-block-list {
    padding-left: 0;
}
/* Check-list: reset wp-block-list padding */
.check-list.wp-block-list {
    padding-left: 0;
    margin-left: 0;
}
/* Pricing features list: reset wp-block-list padding */
.pricing-card__features.wp-block-list {
    padding-left: 0;
    margin-left: 0;
}

/* =============================================================================
   14. BACK TO TOP
   ============================================================================= */

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(10, 60, 110, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base), background var(--t-fast);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
}

/* =============================================================================
   15. BANNER ECOSISTEMA MEDISUITE
   ============================================================================= */
.section-ecosystem {
    background: #072544;
    /* background: var(--color-primary);
    background-image: radial-gradient(ellipse at 20% 50%, rgba(13, 79, 143, 0.7) 0%, var(--color-primary) 55%),
                      radial-gradient(circle at 80% 20%, rgba(251, 173, 72, 0.05) 0%, transparent 50%); */
    padding: var(--space-2xl) 0;
    position: relative;
}

/* Header su sfondo scuro */
.section-label--light {
    background: rgba(251, 173, 72, 0.15);
    color: var(--color-accent);
    border-color: rgba(251, 173, 72, 0.25);
}

.section-title--light {
    color: #fff;
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.65);
}

/* Griglia prodotti */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-xl) auto !important;
}

/* Card base */
.ecosystem-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--t-base), transform var(--t-base), border-color var(--t-base);
}

a.ecosystem-card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.ecosystem-card--coming-soon {
    opacity: 0.5;
    cursor: default;
}

/* Barra colorata superiore */
.ecosystem-card__accent {
    height: 4px;
    width: 100%;
}
.ecosystem-card__accent--tutor   { background: var(--color-tutor); }
.ecosystem-card__accent--bot     { background: var(--color-bot); }
.ecosystem-card__accent--ocr     { background: var(--color-ocr); }
.ecosystem-card__accent--scribe  { background: var(--color-scribe); }
.ecosystem-card__accent--privacy { background: var(--color-privacy); }

/* Corpo card */
.ecosystem-card__body {
    padding: 20px 16px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Icona prodotto */
.ecosystem-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.ecosystem-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Nome prodotto */
.ecosystem-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: var(--lh-tight);
}

/* Tagline */
.ecosystem-card__tagline {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Badge coming soon */
.ecosystem-card__soon {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    letter-spacing: 0.02em;
}

/* CTA in fondo */
.ecosystem-cta {
    margin-top: var(--space-lg);
    text-align: center;
}

.btn-ecosystem-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn-ecosystem-cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 173, 72, 0.4);
}

/* =============================================================================
   16. RESPONSIVE
   ============================================================================= */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 80px;
    }

    .hero-inner {
        padding: 60px var(--container-padding);
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    }

    .intro-highlights {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    /* Ecosistema banner */
    .ecosystem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile large (≤ 768px) --- */
@media (max-width: 768px) {
    :root {
        --space-2xl: 64px;
        --container-padding: 20px;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t-slow), box-shadow var(--t-slow);
        box-shadow: none;
    }

    .admin-bar .site-header {
        top: 0; /* Compensa l'altezza della barra admin di WordPress su mobile */
    }
    div#wpadminbar {
        display: none;
    }
    html {
        margin-top: 0 !important;
    }

    .nav-menu.nav-menu--open {
        max-height: 400px;
        padding: 12px 16px 20px;
        box-shadow: var(--shadow-nav);
    }

    .nav-menu a {
        color: var(--color-text-muted) !important;
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        display: block;
    }

    .nav-menu a:hover {
        color: var(--color-primary) !important;
        background: rgba(10, 60, 110, 0.06) !important;
    }

    /* Su mobile la CTA standalone si nasconde se il menu è aperto
       (rimane sempre visibile come elemento nell'header) */
    .nav-inner > .nav-cta-btn {
        display: none;
    }

    /* Pricing mobile */
    .pricing-card {
        padding: 32px 24px;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
        align-items: flex-start;
        padding-top: calc(var(--nav-height) + 10px);
    }

    .hero-inner {
        padding: 20px var(--container-padding) 60px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Footer */
    .footer-bottom__inner {
        flex-direction: column;
        text-align: center;
    }

    /* Ecosistema banner */
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile small (≤ 480px) --- */
@media (max-width: 480px) {
    :root {
        --space-2xl: 52px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .hero-scroll {
        display: none;
    }

    /* Ecosistema banner */
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}
