/**
 * KeCMS Frontend - Blocchi Page Builder
 * Stili per i blocchi renderizzati dal page builder:
 * Hero Banner, Cards, Testo, Form Contatto, Articoli Masonry
 *
 * Estratto da page.twig per mantenere il template pulito.
 * Servito come file statico, cacheable dal browser.
 */

/* ═══════════════════════════════════════════════════════════
   HERO BANNER - 4 formati
   ═══════════════════════════════════════════════════════════ */

/* ─── Base hero ─── */
.hero-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero-banner * {
    color: inherit;
}
.hero-banner .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-banner .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-banner .hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    align-self: flex-start;
    width: auto;
}
.hero-banner .hero-cta:hover {
    opacity: 0.85;
}
.hero-banner .hero-title-accent {
    /* colore impostato inline via style */
}

/* ─── Formato: Fullscreen ─── */
.hero-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
}
.hero-fullscreen .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 1rem;
}
.hero-fullscreen .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-fullscreen .hero-content .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-fullscreen .hero-content h1 { font-size: 3.5rem; }
    .hero-fullscreen .hero-content .hero-subtitle { font-size: 1.5rem; }
}

/* ─── Formato: Split (immagine sx, testo dx) ─── */
.hero-split {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}
.hero-split .hero-image-side {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}
.hero-split .hero-image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-split .hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    width: 100%;
}
.hero-split .hero-text-side h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-split .hero-text-side .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-split {
        flex-direction: row;
        min-height: 450px;
    }
    .hero-split .hero-image-side {
        width: 50%;
        min-height: auto;
    }
    .hero-split .hero-text-side {
        width: 50%;
        padding: 3rem;
    }
    .hero-split .hero-text-side h1 { font-size: 2.5rem; }
    .hero-split .hero-text-side .hero-subtitle { font-size: 1.25rem; }
}

/* ─── Variante: immagine illustrativa (contain) per split e split-reverse ─── */
.hero-split.hero-img-contain .hero-image-side,
.hero-split-reverse.hero-img-contain .hero-image-side {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    min-height: unset;
}
.hero-split.hero-img-contain .hero-image-side img,
.hero-split-reverse.hero-img-contain .hero-image-side img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}
@media (min-width: 768px) {
    .hero-split.hero-img-contain,
    .hero-split-reverse.hero-img-contain {
        align-items: center;
    }
    .hero-split.hero-img-contain .hero-image-side,
    .hero-split-reverse.hero-img-contain .hero-image-side {
        padding: 1rem 2rem;
    }
}

/* ─── Variante: hero split/split-reverse in container (non full-width) ─── */
.hero-split-container,
.hero-split-reverse-container {
    background-color: inherit;
}
.hero-split-container .hero-inner,
.hero-split-reverse-container .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
.hero-split-container .hero-inner .hero-image-side,
.hero-split-reverse-container .hero-inner .hero-image-side {
    width: 100%;
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 0.75rem;
}
.hero-split-container .hero-inner .hero-image-side img,
.hero-split-reverse-container .hero-inner .hero-image-side img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center; border-radius: 0.75rem;
}
.hero-split-container .hero-inner .hero-text-side,
.hero-split-reverse-container .hero-inner .hero-text-side {
    width: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.hero-split-container .hero-inner .hero-text-side h1,
.hero-split-reverse-container .hero-inner .hero-text-side h1 {
    font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem;
}
.hero-split-container .hero-inner .hero-text-side .hero-subtitle,
.hero-split-reverse-container .hero-inner .hero-text-side .hero-subtitle {
    font-size: 1.125rem; opacity: 0.9; margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-split-container .hero-inner,
    .hero-split-reverse-container .hero-inner {
        flex-direction: row;
        gap: 3rem;
        padding: 4rem 2rem;
    }
    .hero-split-container .hero-inner .hero-image-side,
    .hero-split-reverse-container .hero-inner .hero-image-side {
        width: 50%; min-height: 380px;
    }
    .hero-split-container .hero-inner .hero-text-side,
    .hero-split-reverse-container .hero-inner .hero-text-side {
        width: 50%;
    }
    .hero-split-container .hero-inner .hero-text-side h1,
    .hero-split-reverse-container .hero-inner .hero-text-side h1 { font-size: 2.75rem; }
    /* split_reverse in container: testo prima, immagine dopo */
    .hero-split-reverse-container .hero-inner { flex-direction: row; }
    .hero-split-reverse-container .hero-inner .hero-text-side { order: 1; }
    .hero-split-reverse-container .hero-inner .hero-image-side { order: 2; }
}
/* Variante contain per container */
.hero-split-container.hero-img-contain .hero-inner .hero-image-side,
.hero-split-reverse-container.hero-img-contain .hero-inner .hero-image-side {
    min-height: unset; overflow: visible;
}
.hero-split-container.hero-img-contain .hero-inner .hero-image-side img,
.hero-split-reverse-container.hero-img-contain .hero-inner .hero-image-side img {
    position: static; height: auto; object-fit: unset;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* ─── Formato: Split Reverse (testo sx, immagine dx) ─── */
.hero-split-reverse {
    display: flex;
    flex-direction: column-reverse;
    min-height: 400px;
}
.hero-split-reverse .hero-image-side {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}
.hero-split-reverse .hero-image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-split-reverse .hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
    width: 100%;
}
.hero-split-reverse .hero-text-side h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-split-reverse .hero-text-side .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-split-reverse {
        flex-direction: row;
        min-height: 450px;
    }
    .hero-split-reverse .hero-text-side {
        width: 50%;
        padding: 3rem;
        order: 1;
    }
    .hero-split-reverse .hero-image-side {
        width: 50%;
        min-height: auto;
        order: 2;
    }
    .hero-split-reverse .hero-text-side h1 { font-size: 2.5rem; }
    .hero-split-reverse .hero-text-side .hero-subtitle { font-size: 1.25rem; }
}

/* ─── Formato: Centrato (testo centrato su immagine) ─── */
.hero-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
}
.hero-centered .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 1rem;
}
.hero-centered .hero-content h1 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.hero-centered .hero-content .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .hero-centered .hero-content h1 { font-size: 2rem; }
    .hero-centered .hero-content .hero-subtitle { font-size: 1.375rem; }
}

/* ─── Formato: Minimale (solo testo, sfondo colore) ─── */
.hero-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
    padding: 3rem 1rem;
}
.hero-minimal .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero-minimal .hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.hero-minimal .hero-content .hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .hero-minimal .hero-content h1 { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   CARDS SECTION
   ═══════════════════════════════════════════════════════════ */
.cards-section .card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}
.cards-section .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.cards-section .card .card-img-wrapper {
    overflow: hidden;
}
.cards-section .card .card-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}
.cards-section .card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.cards-section .card .card-body {
    padding: 1.25rem;
}
.cards-section .card .card-body h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cards-section .card .card-body p {
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.cards-section .card .card-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7c3aed;
    text-decoration: none;
}
.cards-section .card .card-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   TESTO SECTION
   ═══════════════════════════════════════════════════════════ */
.testo-section .prose {
    max-width: none;
}
.testo-section .prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.testo-section .prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.testo-section .prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}
.testo-section .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}
.testo-section .prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.testo-section .prose ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.testo-section .prose a {
    color: #7c3aed;
    text-decoration: underline;
}
.testo-section .prose strong {
    font-weight: 700;
}
.testo-section .prose em {
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   TESTO SPLIT - immagine laterale
   ═══════════════════════════════════════════════════════════ */
.testo-split {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}
.testo-split .testo-split-img {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}
.testo-split .testo-split-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.testo-split .testo-split-content { width: 100%; }
@media (min-width: 768px) {
    .testo-split { flex-direction: row; }
    .testo-split .testo-split-img { width: 45%; flex-shrink: 0; }
    .testo-split .testo-split-content { width: 55%; }
    .testo-split.testo-split-right .testo-split-img { order: 2; }
    .testo-split.testo-split-right .testo-split-content { order: 1; }
}

/* ═══════════════════════════════════════════════════════════
   TESTO FEATURES - layout split con voci strutturate
   ═══════════════════════════════════════════════════════════ */
.testo-features { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.testo-features .testo-features-img {
    width: 100%; border-radius: 0.75rem; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.testo-features .testo-features-img img {
    max-width: 100%; height: auto; display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}
.testo-features .testo-features-content { width: 100%; }
@media (min-width: 768px) {
    .testo-features { flex-direction: row; align-items: center; }
    .testo-features .testo-features-img { width: 48%; flex-shrink: 0; }
    .testo-features .testo-features-content { width: 52%; }
    .testo-features.testo-features-right .testo-features-img { order: 2; }
    .testo-features.testo-features-right .testo-features-content { order: 1; }
}
.testo-features-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.testo-features-list .feature-item h3 {
    font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.375rem;
    color: var(--color-primary, #4557a1);
}
.testo-features-list .feature-item p {
    font-size: 0.9375rem; color: #4b5563; line-height: 1.65;
}
.testo-features-citazione {
    border-left: 4px solid #bfdbfe;
    padding-left: 1rem; margin-top: 1.5rem;
    font-size: 0.875rem; color: #6b7280; font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   CARDS OFFERTA - variante PSV con icona, badge, checkmark
   ═══════════════════════════════════════════════════════════ */
.card-offerta {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card-offerta:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}
.card-offerta .card-offerta-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.card-offerta .card-offerta-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.card-offerta h3 { font-weight: 800; margin-bottom: 0.25rem; }
.card-offerta .card-offerta-tipo { font-size: 0.875rem; color: #6b7280; margin-bottom: 1rem; }
.card-offerta .card-offerta-features { list-style: none; padding: 0; margin: 0 0 1.5rem 0; flex-grow: 1; }
.card-offerta .card-offerta-features li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.9375rem; color: #374151; padding: 0.35rem 0;
}
.card-offerta .card-offerta-features li .check-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.card-offerta .card-offerta-cta {
    display: block; text-align: center;
    padding: 0.75rem 1.5rem; border-radius: 0.5rem;
    font-weight: 700; text-decoration: none;
    transition: opacity 0.2s; margin-top: auto;
}
.card-offerta .card-offerta-cta:hover { opacity: 0.85; }
.card-offerta .card-offerta-nota { font-size: 0.75rem; color: #9ca3af; text-align: center; margin-top: 0.75rem; }

/* ═══════════════════════════════════════════════════════════
   CARDS KECMS - barra top colorata, icona box, checkmark verde
   ═══════════════════════════════════════════════════════════ */
.card-eneide {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card-eneide:hover {
    box-shadow: 0 16px 50px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}
.card-eneide .card-eneide-bar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 6px;
}
.card-eneide .card-eneide-body {
    padding: 2rem;
    display: flex; flex-direction: column; flex-grow: 1;
}
.card-eneide .card-eneide-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem; margin-top: 0.5rem;
}
.card-eneide .card-eneide-icon-box {
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.card-eneide h3 { font-weight: 800; margin-bottom: 0.25rem; }
.card-eneide .card-eneide-tipo { font-size: 0.875rem; color: #6b7280; margin-bottom: 0; }
.card-eneide .card-eneide-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem; font-weight: 700;
}
.card-eneide .card-eneide-features {
    list-style: none; padding: 0; margin: 0 0 1.5rem 0; flex-grow: 1;
}
.card-eneide .card-eneide-features li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.9375rem; color: #374151; padding: 0.4rem 0;
}
.card-eneide .card-eneide-features li .check-icon {
    width: 20px; height: 20px; flex-shrink: 0; color: #22c55e; margin-top: 1px;
}
.card-eneide .card-eneide-cta {
    display: block; text-align: center;
    padding: 0.75rem 1.5rem; border-radius: 0.5rem;
    font-weight: 700; text-decoration: none;
    transition: opacity 0.2s; margin-top: auto;
}
.card-eneide .card-eneide-cta:hover { opacity: 0.85; }
.card-eneide .card-eneide-nota {
    font-size: 0.75rem; color: #9ca3af; text-align: center; margin-top: 0.75rem;
}


/* ═══════════════════════════════════════════════════════════
   VARIANTE DARK IMPACT
   ═══════════════════════════════════════════════════════════ */
.cards-section-dark {
    position: relative;
    overflow: hidden;
}
.cards-section-dark::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.card-dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card-dark:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(230,57,70,0.3);
    transform: translateY(-4px);
}
.card-dark .card-dark-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff6b6b;
    background: rgba(230,57,70,0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.card-dark .card-dark-icon {
    width: 3rem; height: 3rem;
    border-radius: 0.75rem;
    background: rgba(230,57,70,0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
    color: #ff6b6b;
}
.card-dark .card-dark-icon svg {
    width: 1.5rem; height: 1.5rem;
    stroke: #ff6b6b; fill: none;
}
.card-dark .card-dark-stat {
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.card-dark .card-dark-stat-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.card-dark h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0;
}
.card-dark p {
    line-height: 1.65;
    margin: 0;
}
.card-dark .card-dark-cta {
    display: inline-block;
    margin-top: 1rem;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.card-dark .card-dark-cta:hover { opacity: 0.8; }

/* ═══════════════════════════════════════════════════════════
   VARIANTE CONFRONTO (Before/After)
   ═══════════════════════════════════════════════════════════ */
.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    align-items: stretch;
}
.comp-left {
    background: #a01818;
    border: 1px solid #ffc9c9;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
}
.comp-left h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    padding: 0;
}
.comp-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
     
    margin: 0;
}
.comp-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.1875rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}
.comp-tag-problem {
    color: #dc2626;
    background: rgba(220,38,38,0.1);
}
.comp-tag-solution {
    color: #ffffff;
    background: rgb(24 186 83);
}
.comp-stat {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}
.comp-stat-problem { color: #ffffff; }
.comp-stat-solution { color: #16a34a; }
.comp-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}
.comp-vs span {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
}
.comp-right {
    background: #007e27;
    border: 1px solid #46ff86;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
}
.comp-right h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    padding: 0;
}
.comp-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
 
    margin: 0;
}
 /* ===== TABELLA CONFRONTO CHECKMARK (stili gestiti nel blocco tabella sotto) ===== */

        /* ===== CARD PROBLEMI ===== */
        .problems-section {
            padding: 80px 0;
            background: var(--color-bg-dark);
            color: #fff;
        }
        .problems-section h2 {
            text-align: center;
            font-size: 32px;
            font-weight: 800;
            margin-bottom: 12px;
        }
        .problems-sub {
            text-align: center;
            color: #a1a1aa;
            font-size: 17px;
            margin-bottom: 50px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        .problems-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .problem-card {
            background: var(--color-bg-dark-alt);
            border: 1px solid #2a2a2a;
            border-radius: var(--radius);
            padding: 36px 28px;
            transition: var(--transition);
        }
        .problem-card:hover {
            border-color: #3a3a3a;
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.3);
        }
        .problem-icon {
            width: 52px;
            height: 52px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .problem-icon.cost { background: rgba(239,68,68,0.15); color: #ef4444; }
        .problem-icon.security { background: rgba(245,158,11,0.15); color: #f59e0b; }
        .problem-icon.speed { background: rgba(168,85,247,0.15); color: #a855f7; }
        .problem-card .stat {
            font-size: 36px;
            font-weight: 800;
            color: #ef4444;
            margin-bottom: 8px;
        }
        .problem-card h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 12px;
            color: #fff;
        }
        .problem-card p {
            font-size: 15px;
            color: #a1a1aa;
            line-height: 1.7;
        }
/* ═══════════════════════════════════════════════════════════
   VARIANTE CLEAN TAG (card bianche con stat grande)
   ═══════════════════════════════════════════════════════════ */
.card-clean {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem 2rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card-clean:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.card-clean .card-clean-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
	background: linear-gradient(90deg, #e63946, #ff6b6b)!important;
}
.card-clean .card-clean-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: var(--color-primary, #e63946);
    padding: 0.3125rem 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}
.card-clean .card-clean-stat {
    font-size: 3rem;
    font-weight: 800;
    color: #ec0000;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.card-clean .card-clean-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ec0d00;
    margin-bottom: 1.25rem;
}
.card-clean h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding: 0;
}
.card-clean p {
    line-height: 1.65;
    margin: 0;
}
.card-clean .card-clean-cta {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary, #e63946);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.card-clean .card-clean-cta:hover { opacity: 0.8; }

/* ─── Responsive varianti nuove ─── */
@media (max-width: 768px) {
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .comp-vs { display: none; }
    .card-dark .card-dark-stat { font-size: 1.75rem; }
    .card-clean .card-clean-stat { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   FORM CORPORATE - sfondo colorato con icone laterali
   ═══════════════════════════════════════════════════════════ */
.form-corporate { padding: 4rem 0; }
.form-corporate .form-corporate-inner {
    display: flex; flex-direction: column; gap: 3rem; align-items: flex-start;
}
.form-corporate .form-corporate-left { width: 100%; }
.form-corporate .form-corporate-right {
    width: 100%; background: white; border-radius: 1rem;
    padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.form-corporate .form-corporate-left h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.3; margin-bottom: 1rem; }
.form-corporate .form-corporate-left .fc-subtitle { font-size: 1rem; opacity: 0.85; margin-bottom: 2rem; }
.form-corporate .fc-icone { display: flex; flex-direction: column; gap: 1rem; }
.form-corporate .fc-icona-item {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9375rem; font-weight: 500;
}
.form-corporate .fc-icona-item .fc-icona-circle {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.1rem;
}
@media (min-width: 768px) {
    .form-corporate .form-corporate-inner { flex-direction: row; align-items: center; }
    .form-corporate .form-corporate-left { width: 45%; }
    .form-corporate .form-corporate-right { width: 55%; }
    .form-corporate .form-corporate-left h2 { font-size: 2.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   FORM CONTATTI - layout due card info + form affiancato
   ═══════════════════════════════════════════════════════════ */
.form-contatti { padding: 4rem 0; }
.form-contatti .form-contatti-inner {
    display: flex; flex-direction: column; gap: 2rem;
}
.form-contatti .form-contatti-left { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; }
.form-contatti .form-contatti-right { width: 100%; }
.form-contatti .fc-card {
    background: white; border-radius: 1rem;
    padding: 1.75rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}
.form-contatti .fc-card-icon {
    width: 2.75rem; height: 2.75rem;
    background: var(--color-primary, #1a3a5c);
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; color: white;
    flex-shrink: 0;
}
.form-contatti .fc-card-icon svg { width: 1.375rem; height: 1.375rem; stroke: white; }
.form-contatti .fc-card h3 {
    font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid currentColor;
    opacity: 1;
}
.form-contatti .fc-card .fc-card-content {
    font-size: 0.9375rem; line-height: 1.7;
}
.form-contatti .fc-card .fc-card-content a {
    text-decoration: underline; opacity: 0.85;
}
.form-contatti .fc-card .fc-card-content a:hover { opacity: 1; }
.form-contatti .form-contatti-right .ke-form-wrapper,
.form-contatti .form-contatti-right .form-builder-wrapper {
    background: white; border-radius: 1rem;
    padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
    .form-contatti .form-contatti-inner { flex-direction: row; align-items: flex-start; }
    .form-contatti .form-contatti-left { width: 40%; }
    .form-contatti .form-contatti-right { width: 60%; }
}

/* ═══════════════════════════════════════════════════════════
   BLOCCO ARTICOLI - Layout Masonry (CSS columns)
   ═══════════════════════════════════════════════════════════ */
.masonry-grid {
    column-gap: 1.5rem;
}
.masonry-grid[data-columns="2"] {
    column-count: 2;
}
.masonry-grid[data-columns="3"] {
    column-count: 3;
}
.masonry-grid[data-columns="4"] {
    column-count: 4;
}
.masonry-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}
/* Responsive: su mobile sempre 1 colonna, su tablet 2 */
@media (max-width: 639px) {
    .masonry-grid[data-columns="2"],
    .masonry-grid[data-columns="3"],
    .masonry-grid[data-columns="4"] {
        column-count: 1;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .masonry-grid[data-columns="3"],
    .masonry-grid[data-columns="4"] {
        column-count: 2;
    }
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB - navigazione gerarchica
   ═══════════════════════════════════════════════════════════ */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.breadcrumb a {
    color: var(--color-primary, #4557a1);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 8px;
    color: #9ca3af;
}
.breadcrumb strong {
    color: #111827;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   TABELLA CONFRONTO - Check Table & Detail Table
   ═══════════════════════════════════════════════════════════ */

/* ─── Check Table (icone ✓/✗) ─── */
.check-table-wrapper {
    overflow-x: auto;
    max-width: 900px;
    margin: 0 auto;
}
.check-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.check-table thead th {
    background: var(--color-primary, #1a1a2e);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.check-table thead th:first-child {
    text-align: left;
    width: 45%;
}
.check-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}
.check-table tbody tr:hover {
    background-color: #f9fafb;
}
.check-table tbody tr:last-child {
    border-bottom: none;
}
.check-table td {
    padding: 12px 20px;
    font-size: 0.875rem;
    text-align: center;
    vertical-align: middle;
}
.check-table td.feature-name {
    text-align: left;
    font-weight: 500;
    color: #374151;
}
.check-table td.status-cell {
    text-align: center;
    vertical-align: middle;
    min-height: 48px;
    padding: 12px 20px;
}
.check-table td.status-cell .status-icon {
    margin: 0 auto 2px;
}
.check-table td.status-cell .status-label {
    display: block;
}
.check-table .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}
.check-table .status-icon.good {
    background-color: #d1fae5;
    color: #059669;
}
.check-table .status-icon.bad {
    background-color: #fee2e2;
    color: #dc2626;
}
.check-table .status-icon.partial {
    background-color: #fef3c7;
    color: #d97706;
}
.check-table .status-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

/* ─── Detail Table (testo descrittivo) ─── */
.detail-table-wrapper {
    overflow-x: auto;
    max-width: 1000px;
    margin: 0 auto;
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.detail-table thead th {
    background: var(--color-primary, #1a1a2e);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-table thead th:first-child {
    text-align: left;
    width: 30%;
}
.detail-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}
.detail-table tbody tr:hover {
    background-color: #f9fafb;
}
.detail-table tbody tr:last-child {
    border-bottom: none;
}
.detail-table td {
    padding: 14px 20px;
    font-size: 0.875rem;
    vertical-align: top;
    color: #4b5563;
    line-height: 1.6;
}
.detail-table td.feature-name {
    font-weight: 600;
    color: #111827;
}

/* ─── Responsive tabelle ─── */
@media (max-width: 768px) {
    .check-table thead th,
    .check-table td,
    .detail-table thead th,
    .detail-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .check-table .status-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   TIPTAP TABLE - Stili tabella nell'editor e nel frontend
   ═══════════════════════════════════════════════════════════ */

/* Tabelle inserite via Tiptap nel blocco testo */
.blocco-testo-content table,
.prose table,
.tiptap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.blocco-testo-content table th,
.prose table th,
.tiptap-table th {
    background: var(--color-primary, #1a1a2e);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
}
.blocco-testo-content table td,
.prose table td,
.tiptap-table td {
    padding: 10px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.blocco-testo-content table tr:hover,
.prose table tr:hover,
.tiptap-table tr:hover {
    background-color: #f9fafb;
}
.blocco-testo-content table tr:last-child td,
.prose table tr:last-child td,
.tiptap-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════
   BLOCCO COUNTER - Numeri animati con IntersectionObserver
   ═══════════════════════════════════════════════════════════ */
.counter-section {
    overflow: hidden;
}
.counter-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.counter-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delay per le card */
.counter-card:nth-child(1) { transition-delay: 0s; }
.counter-card:nth-child(2) { transition-delay: 0.1s; }
.counter-card:nth-child(3) { transition-delay: 0.2s; }
.counter-card:nth-child(4) { transition-delay: 0.3s; }
.counter-card:nth-child(5) { transition-delay: 0.4s; }
.counter-card:nth-child(6) { transition-delay: 0.5s; }

.counter-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════
   BLOCCO CARD CMS - Animazione a comparsa (reveal)
   ═══════════════════════════════════════════════════════════ */
.card-cms-section {
    overflow: hidden;
}
.card-cms-item-fe {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.card-cms-item-fe.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Stagger delay per le card CMS */
.card-cms-item-fe:nth-child(1) { transition-delay: 0s; }
.card-cms-item-fe:nth-child(2) { transition-delay: 0.12s; }
.card-cms-item-fe:nth-child(3) { transition-delay: 0.24s; }
.card-cms-item-fe:nth-child(4) { transition-delay: 0.36s; }
.card-cms-item-fe:nth-child(5) { transition-delay: 0.48s; }
.card-cms-item-fe:nth-child(6) { transition-delay: 0.6s; }
.card-cms-item-fe:nth-child(7) { transition-delay: 0.72s; }
.card-cms-item-fe:nth-child(8) { transition-delay: 0.84s; }

.card-cms-item-fe:hover {
    transform: translateY(-4px) scale(1.02);
}
.card-cms-icon svg {
    transition: transform 0.3s ease;
}
.card-cms-item-fe:hover .card-cms-icon svg {
    transform: scale(1.15);
}
/* Card CMS - CTA Button */
.card-cms-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}
.card-cms-cta:hover {
    opacity: 0.85;
    transform: translateX(4px);
}
.card-cms-cta svg {
    transition: transform 0.3s ease;
}
.card-cms-cta:hover svg {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   BLOCCO PROGRESS BAR - Barre animate con IntersectionObserver
   ═══════════════════════════════════════════════════════════ */
.progress-section {
    overflow: hidden;
}
.progress-group {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.progress-group.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger delay per i gruppi */
.progress-group:nth-child(1) { transition-delay: 0s; }
.progress-group:nth-child(2) { transition-delay: 0.15s; }
.progress-group:nth-child(3) { transition-delay: 0.3s; }
.progress-group:nth-child(4) { transition-delay: 0.45s; }
.progress-group:nth-child(5) { transition-delay: 0.6s; }

.progress-track {
    position: relative;
    overflow: hidden;
}
.progress-fill {
    position: relative;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: progress-shine 2s ease-in-out infinite;
    opacity: 0;
}
.progress-group.is-visible .progress-fill::after {
    opacity: 1;
}
@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-row {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.progress-group.is-visible .progress-row {
    opacity: 1;
    transform: translateX(0);
}
.progress-group.is-visible .progress-row:nth-child(1) { transition-delay: 0.1s; }
.progress-group.is-visible .progress-row:nth-child(2) { transition-delay: 0.2s; }
.progress-group.is-visible .progress-row:nth-child(3) { transition-delay: 0.3s; }
.progress-group.is-visible .progress-row:nth-child(4) { transition-delay: 0.4s; }
.progress-group.is-visible .progress-row:nth-child(5) { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════════
   STATS BOX - Split layout con counter animati
   ═══════════════════════════════════════════════════════════ */
.stats-box-section {
    overflow: hidden;
}
.stats-box-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stats-box-card:nth-child(2) { transition-delay: 0.15s; }
.stats-box-card:nth-child(3) { transition-delay: 0.3s; }
.stats-box-card:nth-child(4) { transition-delay: 0.45s; }
.stats-box-card:nth-child(5) { transition-delay: 0.6s; }
.stats-box-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.stats-box-icon svg {
    width: 28px;
    height: 28px;
}
@media (max-width: 767px) {
    .stats-box-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BLOCCO TESTIMONIAL / Casi studio
   Due modalità di rendering (grid premium + marquee infinito).
   Variabili CSS dinamiche dal Twig: --ts-accent, --ts-bg, --tst-i.
   ═══════════════════════════════════════════════════════════════ */

.testimonial-section {
    --ts-accent: #e11d48;
    --ts-bg: #fafafa;
    position: relative;
    overflow: hidden;
}

/* Header sezione */
.testimonial-section .testimonial-header { max-width: 720px; margin: 0 auto 3rem; }
.testimonial-section .testimonial-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.75rem;
    line-height: 1.1;
}
.testimonial-section .testimonial-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ─── Card base (condivisa grid + marquee) ──────────────────────
   Container relativo per arrow + ::before gradient. White bg con
   ombra che cresce al hover. transform-origin top per evitare jitter. */
.testimonial-section .testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    isolation: isolate;
    overflow: hidden;
}
/* Quote mark decorativo grande sullo sfondo */
.testimonial-section .testimonial-card::before {
    content: "\201D";
    position: absolute;
    top: -0.5rem;
    right: 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--ts-accent);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Gradient border animato che appare al hover (solo se cliccabile) */
.testimonial-section .testimonial-card.is-clickable::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--ts-accent), transparent 40%, var(--ts-accent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

/* Hover: solleva, ombra cresce, gradient border appare, quote più visibile */
.testimonial-section .testimonial-card.is-clickable {
    cursor: pointer;
}
.testimonial-section .testimonial-card.is-clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.12);
}
.testimonial-section .testimonial-card.is-clickable:hover::after { opacity: 1; }
.testimonial-section .testimonial-card.is-clickable:hover::before {
    opacity: 0.18;
    transform: scale(1.05) rotate(-3deg);
}

/* Solleva moderato anche per card non cliccabili (no border gradient) */
.testimonial-section .testimonial-card:not(.is-clickable):hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* ─── Foto cliente / logo azienda ────────────────────────────── */
.testimonial-section .tst-photo-wrapper {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
}
.testimonial-section .tst-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Stili foto: cerchio (persone) / rounded (logo) / quadrato spigoloso */
.testimonial-section .testimonial-card.foto-circle .tst-photo-wrapper { border-radius: 50%; }
.testimonial-section .testimonial-card.foto-rounded .tst-photo-wrapper { border-radius: 14px; }
.testimonial-section .testimonial-card.foto-square .tst-photo-wrapper { border-radius: 4px; }

/* Glow accento sotto la foto al hover */
.testimonial-section .testimonial-card.is-clickable:hover .tst-photo-wrapper {
    transform: scale(1.06);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06),
                0 0 28px -4px var(--ts-accent),
                0 8px 24px rgba(15, 23, 42, 0.12);
}

/* ─── Content text ──────────────────────────────────────────── */
.testimonial-section .tst-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}
.testimonial-section .tst-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    font-style: italic;
    letter-spacing: -0.005em;
}
.testimonial-section .tst-quote::before { content: "\201C"; margin-right: 0.15em; }
.testimonial-section .tst-quote::after { content: "\201D"; margin-left: 0.15em; }
.testimonial-section .tst-meta {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.testimonial-section .tst-nome {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.testimonial-section .tst-ruolo {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.125rem;
    line-height: 1.4;
}

/* ─── Arrow indicator (solo card cliccabili) ────────────────── */
.testimonial-section .tst-arrow {
    position: absolute;
    bottom: 1.25rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ts-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0;
    transform: translate(8px, 4px) scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
    pointer-events: none;
}
.testimonial-section .testimonial-card.is-clickable:hover .tst-arrow {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   MODALITÀ GRID — layout responsive a colonne con stagger entrance
   ═══════════════════════════════════════════════════════════════ */
.testimonial-section.testimonial-mode-grid .testimonial-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* mobile = 1 col */
}
@media (min-width: 640px) {
    .testimonial-section.testimonial-mode-grid .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* tablet = 2 col */
    }
}
@media (min-width: 1024px) {
    /* Desktop: 2/3/4 colonne via data-cols */
    .testimonial-section.testimonial-mode-grid .testimonial-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
    .testimonial-section.testimonial-mode-grid .testimonial-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
    .testimonial-section.testimonial-mode-grid .testimonial-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
}

/* Stagger entrance — card appaiono da basso una dopo l'altra (--tst-i = index)
   IntersectionObserver opzionale; se non c'è JS, animation parte al load */
.testimonial-section.testimonial-mode-grid .testimonial-card {
    opacity: 0;
    transform: translateY(24px);
    animation: testimonial-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--tst-i, 0) * 80ms);
}
@keyframes testimonial-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   MODALITÀ MARQUEE — scroll orizzontale infinito con fade ai bordi
   ═══════════════════════════════════════════════════════════════ */
.testimonial-section.testimonial-mode-marquee {
    /* La sezione marquee va sempre full-bleed visivamente per il fade */
    --marquee-fade: 80px;
}
.testimonial-section.testimonial-mode-marquee .testimonial-marquee-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
}
.testimonial-section.testimonial-mode-marquee .testimonial-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: testimonial-marquee-scroll var(--marquee-duration, 40s) linear infinite;
    will-change: transform;
}
/* Velocità: lenta 60s, media 40s, veloce 25s */
.testimonial-section[data-velocita="lenta"]   .testimonial-marquee-track { --marquee-duration: 60s; }
.testimonial-section[data-velocita="media"]   .testimonial-marquee-track { --marquee-duration: 40s; }
.testimonial-section[data-velocita="veloce"]  .testimonial-marquee-track { --marquee-duration: 25s; }

/* Pausa al hover dentro il viewport */
.testimonial-section.testimonial-mode-marquee .testimonial-marquee-viewport:hover .testimonial-marquee-track {
    animation-play-state: paused;
}

/* Card in marquee: larghezza fissa per layout costante */
.testimonial-section.testimonial-mode-marquee .testimonial-card {
    flex-shrink: 0;
    width: 360px;
    max-width: 80vw;
}

/* Keyframes loop seamless: trasla -50% perché abbiamo 2 copie identiche */
@keyframes testimonial-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── Reduced motion: rispetta utenti che chiedono no-motion ─── */
@media (prefers-reduced-motion: reduce) {
    .testimonial-section.testimonial-mode-grid .testimonial-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .testimonial-section.testimonial-mode-marquee .testimonial-marquee-track {
        animation: none;
    }
    .testimonial-section .testimonial-card,
    .testimonial-section .tst-photo-wrapper,
    .testimonial-section .tst-arrow {
        transition: none;
    }
}

/* ─── Mobile: marquee diventa scroll-snap orizzontale "swipeable" ─ */
@media (max-width: 639px) {
    .testimonial-section.testimonial-mode-marquee .testimonial-marquee-track {
        animation: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }
    .testimonial-section.testimonial-mode-marquee .testimonial-card {
        scroll-snap-align: start;
        width: 280px;
    }
    .testimonial-section.testimonial-mode-marquee .testimonial-marquee-viewport {
        -webkit-mask-image: none;
                mask-image: none;
    }
}


/* ═══════════════════════════════════════════════════════════════
   BLOCCO TCO — Total Cost of Ownership Calculator

   Widget interattivo. Colori configurati dall'admin via CSS custom
   properties impostate inline su <section.tco-section>:
     --tco-bg     → sfondo
     --tco-accent → arancio CTA / slider thumb
     --tco-text   → bianco/colore testo
   ═══════════════════════════════════════════════════════════════ */
.tco-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .tco-widget {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
    }
}

.tco-inputs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tco-input-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.tco-input-row .tco-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tco-input-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.tco-input-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tco-accent);
    cursor: pointer;
    border: 2px solid var(--tco-bg);
    box-shadow: 0 0 0 2px var(--tco-accent);
}

.tco-input-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tco-accent);
    cursor: pointer;
    border: 2px solid var(--tco-bg);
    box-shadow: 0 0 0 2px var(--tco-accent);
}

.tco-input-row input[type="number"] {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--tco-text);
    border-radius: 6px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.tco-input-row input[type="number"]:focus {
    outline: 2px solid var(--tco-accent);
    outline-offset: -1px;
    border-color: transparent;
}

.tco-results {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    align-self: start;
}

.tco-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tco-result-row:nth-last-of-type(2) {
    border-bottom: none;
    padding-bottom: 0;
}

.tco-result-label {
    font-size: 13px;
    opacity: 0.8;
}

.tco-result-value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tco-result-keidea .tco-result-value {
    color: var(--tco-accent);
}

.tco-result-saving {
    padding-top: 14px;
    border-top: 2px solid var(--tco-accent) !important;
    margin-top: 4px;
}

.tco-result-saving .tco-result-value {
    font-size: 28px;
    transition: color .3s ease;
}

.tco-result-saving.is-positive .tco-result-value {
    color: #10b981;
}

.tco-result-saving.is-negative .tco-result-value {
    color: #ef4444;
}

.tco-message {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    margin: 8px 0 0;
    min-height: 42px;
}

.tco-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    background: var(--tco-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
}

.tco-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   BLOCCO SPEED-TO-REVENUE — Simulatore vendite perse per sito lento
   CSS variables: --speed-bg, --speed-accent, --speed-text
   ═══════════════════════════════════════════════════════════════ */
.speed-widget {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .speed-widget {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.speed-inputs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.speed-input-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.speed-input-row .speed-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.speed-input-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.speed-input-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--speed-accent);
    cursor: pointer;
    border: 2px solid var(--speed-bg);
    box-shadow: 0 0 0 2px var(--speed-accent);
}

.speed-input-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--speed-accent);
    cursor: pointer;
    border: 2px solid var(--speed-bg);
    box-shadow: 0 0 0 2px var(--speed-accent);
}

.speed-input-row input[type="number"], .speed-input-row select {
    width: 130px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--speed-text);
    border-radius: 6px;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.speed-input-row select {
    width: 100%;
}

.speed-input-row input[type="number"]:focus, .speed-input-row select:focus {
    outline: 2px solid var(--speed-accent);
    outline-offset: -1px;
    border-color: transparent;
}

.speed-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
}

.speed-metric {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speed-metric-label {
    font-size: 13px;
    opacity: 0.8;
}

.speed-metric-value {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
}

.speed-metric-loss .speed-metric-value {
    color: #ef4444;
}

.speed-metric-gain .speed-metric-value {
    color: #10b981;
}

.speed-metric-gain {
    border-color: rgba(16, 185, 129, 0.4);
}

.speed-message {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    margin: 4px 0 0;
    min-height: 42px;
}

.speed-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    background: var(--speed-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 8px;
    text-align: center;
}

.speed-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}


/* ═══════════════════════════════════════════════════════════════
   BLOCCO PLUGIN GRAVEYARD — Wizard rischio WordPress
   CSS variables: --grav-bg, --grav-accent, --grav-text
   ═══════════════════════════════════════════════════════════════ */
.grav-widget {
    max-width: 100%;
}

.grav-progress {
    margin-bottom: 28px;
}

.grav-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.grav-progress-fill {
    height: 100%;
    width: 20%;
    background: var(--grav-accent);
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.grav-progress-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

.grav-steps {
    position: relative;
    min-height: 280px;
}

.grav-step {
    display: none;
    animation: grav-fadein .35s ease;
}

.grav-step.is-active {
    display: block;
}

.grav-step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.3;
    color: #fff;
}

.grav-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grav-options button {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--grav-text);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: all .18s ease;
    font: inherit;
}

.grav-options button:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--grav-accent);
    transform: translateX(4px);
}

@keyframes grav-fadein {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.grav-result {
    animation: grav-fadein .4s ease;
}

.grav-result-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.grav-result-badge {
    font-size: 28px;
    font-weight: 700;
}

.grav-result-badge.is-basso {
    color: #10b981;
}

.grav-result-badge.is-medio {
    color: #facc15;
}

.grav-result-badge.is-alto {
    color: #fb923c;
}

.grav-result-badge.is-critico {
    color: #ef4444;
}

.grav-result-score {
    font-size: 14px;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.grav-cemetery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 8px;
    margin: 22px 0;
    padding: 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.grav-tomb {
    width: 100%;
    aspect-ratio: 1/1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px) scale(.85);
    transition: opacity .35s ease, transform .35s ease;
    position: relative;
}

.grav-tomb.is-in {
    opacity: 1;
    transform: none;
}

.grav-tomb svg {
    width: 100%;
    height: 100%;
}

.grav-tomb.is-grey svg {
    fill: #6b7280;
}

.grav-tomb.is-yellow svg {
    fill: #facc15;
}

.grav-tomb.is-red svg {
    fill: #ef4444;
}

.grav-tomb.is-red::after {
    content: '💀';
    position: absolute;
    font-size: 14px;
}

.grav-result-text {
    font-size: 15px;
    line-height: 1.55;
    opacity: 0.95;
    margin: 18px 0;
}

.grav-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    background: var(--grav-accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 18px 0 14px;
    text-align: center;
    line-height: 1.4;
}

.grav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.grav-restart {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--grav-text);
    font: inherit;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity .18s ease;
    display: block;
    margin: 0 auto;
}

.grav-restart:hover {
    opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   DATA BREACH SIMULATOR — simulatore impatto GDPR
   CSS variables: --db-bg, --db-accent, --db-text
   Tono istituzionale, palette /sicurezza (#111827 + #ff6b00)
   ════════════════════════════════════════════════════════════════ */

.db-widget {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
}

.db-field {
    margin-bottom: 22px;
}

.db-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--db-text);
    opacity: 0.92;
    margin-bottom: 10px;
}

.db-label strong {
    color: var(--db-accent);
    font-weight: 700;
}

.db-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--db-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    outline: none;
    transition: border-color .18s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' opacity='0.7' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.db-select:focus {
    border-color: var(--db-accent);
}

.db-select option {
    background: var(--db-bg);
    color: var(--db-text);
}

/* Range slider — palette accent */
.db-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    outline: none;
    margin: 6px 0 8px;
    cursor: pointer;
}

.db-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--db-accent);
    cursor: pointer;
    border: 2px solid var(--db-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.db-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--db-accent);
    cursor: pointer;
    border: 2px solid var(--db-bg);
}

.db-slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--db-text);
    opacity: 0.55;
    margin-top: 4px;
}

.db-radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.db-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--db-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.db-radio-group label:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.db-radio-group input[type="radio"] {
    accent-color: var(--db-accent);
    cursor: pointer;
}

/* Output box — risultati */
.db-output {
    margin-top: 28px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
}

.db-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.db-row-label {
    color: var(--db-text);
    opacity: 0.92;
}

.db-row-value {
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.db-row-red {
    background: rgba(220, 38, 38, 0.12);
    border-left: 3px solid #dc2626;
}

.db-row-red .db-row-value {
    color: #fca5a5;
}

.db-row-total {
    background: rgba(220, 38, 38, 0.22);
    border-left: 3px solid #ef4444;
    margin-top: 12px;
    padding: 16px;
    font-weight: 600;
}

.db-row-total .db-row-value {
    color: #fff;
    font-size: 1.4rem;
}

.db-row-green {
    background: rgba(34, 197, 94, 0.14);
    border-left: 3px solid #22c55e;
    color: var(--db-text);
    margin-top: 16px;
    padding: 16px;
    line-height: 1.5;
    display: block;
    font-size: 0.95rem;
}

/* CTA */
.db-cta {
    display: block;
    width: 100%;
    margin-top: 22px;
    padding: 16px 22px;
    background: var(--db-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: filter .18s ease, transform .18s ease;
}

.db-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .db-widget {
        padding: 22px 16px;
    }

    .db-radio-group {
        grid-template-columns: 1fr;
    }

    .db-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .db-row-total .db-row-value {
        font-size: 1.2rem;
    }
}
