/* ═══════════════════════════════════════════════════
   GESTIONALI LANDING PAGE - Dedicated Styles
   Crea.one
   ═══════════════════════════════════════════════════ */

/* ─── Variables (allineate al sito) ─── */
:root {
    --gest-primary: #04A6CF;
    --gest-primary-rgb: 4, 166, 207;
    --gest-primary-subtle: #e0f1f3;
    --gest-dark: #28304A;
    --gest-dark-deep: #0d1424;
    --gest-secondary: #475569;
    --gest-accent: #6366f1;
    --gest-tertiary: #E60956;
    --gest-success: #22c55e;
    --gest-warning: #f59e0b;
    --gest-danger: #f43f5e;
    --gest-bg: #f1f4f9;
    --gest-glass-bg: rgba(255, 255, 255, 0.7);
    --gest-glass-border: rgba(255, 255, 255, 0.35);
    --gest-radius: 16px;
    --gest-radius-sm: 8px;
    --gest-radius-xl: 24px;
    --gest-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --gest-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --gest-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --gest-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --gest-shadow-glow: 0 0 30px rgba(4, 166, 207, 0.2);
}


/* ─── Navigation: transparent over dark hero ─── */
body.gest-landing-page .main-header.-type-17:not(.fixed-header) {
    background: transparent !important;
    box-shadow: none !important;
    position: absolute;
    width: 100%;
    z-index: 100;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .main-menu .navigation > li > a {
    color: rgba(255,255,255,0.85) !important;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .main-menu .navigation > li > a:hover {
    color: #fff !important;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .main-menu .navigation > li.current > a {
    color: #fff !important;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .main-menu .navigation > li.dropdown > a::after {
    color: rgba(255,255,255,0.85) !important;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .logo img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .theme-btn.-primary {
    background-color: var(--gest-tertiary) !important;
}
body.gest-landing-page .main-header.-type-17:not(.fixed-header) .mobile-header .flaticon-menu-1::before {
    color: #fff !important;
}
body.gest-landing-page .main-header {
    background: transparent !important;
}
body.gest-landing-page .main-header.fixed-header {
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
}


/* ─── Highlight utility classes ─── */
.gest-hl {
    color: var(--gest-tertiary) !important;
    -webkit-text-fill-color: var(--gest-tertiary);
    font-weight: inherit;
}
.gest-hl--gain {
    color: var(--gest-primary) !important;
    -webkit-text-fill-color: var(--gest-primary);
    font-weight: inherit;
}
.gest-hl--success {
    color: var(--gest-success) !important;
    -webkit-text-fill-color: var(--gest-success);
    font-weight: inherit;
}

/* Need description / title strong = tertiary highlight for pain numbers */
.gest-need__desc strong,
.gest-need__title strong {
    color: var(--gest-tertiary) !important;
    font-weight: 700 !important;
}
/* Gain-type strong inside needs */
.gest-need__desc strong.gest-hl--gain {
    color: var(--gest-primary) !important;
}
.gest-need__desc strong.gest-hl--success {
    color: var(--gest-success) !important;
}

/* Section titles/subtitles strong highlights */
.gest-section-title strong,
.gest-section-subtitle strong {
    color: var(--gest-tertiary) !important;
    font-weight: 700 !important;
}

/* Dashboard company name = informational, use primary */
.gest-dashboard .gest-section-title span {
    color: var(--gest-primary) !important;
}

/* Mid-CTA h2 strong = tertiary */
.gest-mid-cta h2 strong {
    color: var(--gest-tertiary) !important;
    -webkit-text-fill-color: var(--gest-tertiary);
}

/* Final CTA strong = tertiary */
.gest-cta h2 strong,
.gest-cta p strong {
    color: var(--gest-tertiary) !important;
}

/* ─── Override body p/span { font-weight: 300 !important } from custom.css ─── */
.gest-hero p, .gest-hero span,
.gest-dashboard p, .gest-dashboard span,
.gest-statsbar p, .gest-statsbar span,
.gest-need p, .gest-need span,
.gest-trust-bar p, .gest-trust-bar span,
.gest-mid-cta p, .gest-mid-cta span,
.gest-cta p, .gest-cta span {
    font-weight: inherit !important;
}

/* Button text must inherit parent color (white) over body span rule */
.gest-submit-btn span,
.gest-search-btn {
    color: inherit !important;
}

/* Badge font-weight must override body span { font-weight: 300 !important } */
.gest-hero .primary-badge,
.gest-need .primary-badge {
    font-weight: 600 !important;
}


/* ─── Honeypot anti-bot ─── */
.gest-form-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ─── Sezione nascosta (class-based, no display:none) ─── */
.gest-section-hidden {
    opacity: 0;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, grid-template-rows 0.6s ease, padding 0.6s ease;
}

.gest-section-hidden > * {
    overflow: hidden;
    min-height: 0;
}

.gest-section-hidden.gest-section-reveal {
    opacity: 1;
    grid-template-rows: 1fr;
    overflow: visible;
    pointer-events: auto;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
}


/* ─── Parallax decorative elements ─── */
.gest-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.gest-deco--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gest-primary), transparent 70%);
    top: -100px;
    right: -150px;
}

.gest-deco--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gest-accent), transparent 70%);
    bottom: -80px;
    left: -100px;
}

.gest-deco-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.gest-deco-shape--grid {
    width: 200px;
    height: 200px;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--gest-dark) 1px, transparent 1px);
    background-size: 16px 16px;
}

.gest-deco-shape--ring {
    width: 180px;
    height: 180px;
    border: 2px solid var(--gest-primary);
    border-radius: 50%;
    opacity: 0.06;
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.gest-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #0d1424 0%, #142240 40%, #0d1424 70%, #091020 100%);
    overflow: hidden;
    padding: 80px 0;
}

.gest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(4, 166, 207, 0.08), transparent),
        radial-gradient(ellipse 500px 350px at 80% 70%, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(230, 9, 86, 0.04), transparent);
    pointer-events: none;
    z-index: 0;
}

.gest-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.gest-hero .auto-container {
    position: relative;
    z-index: 1;
}

.gest-hero__content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.gest-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

.gest-typed-wrap {
    display: inline;
    background: linear-gradient(90deg, var(--gest-tertiary), var(--gest-primary), var(--gest-accent), var(--gest-tertiary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gest-gradient-shift 5s linear infinite;
}

@keyframes gest-gradient-shift {
    to { background-position: 300% center; }
}

.gest-cursor {
    font-weight: 300;
    animation: gest-blink 0.8s step-end infinite;
    color: var(--gest-primary);
    -webkit-text-fill-color: var(--gest-primary);
}

@keyframes gest-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.gest-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2.8rem;
    line-height: 1.75;
    font-weight: 400;
}

.gest-hero__subtitle strong {
    color: var(--gest-tertiary) !important;
    -webkit-text-fill-color: var(--gest-tertiary);
    font-weight: 700 !important;
    text-shadow: 0 0 20px rgba(230, 9, 86, 0.3);
}
.gest-hero__subtitle strong.gest-hl--gain {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.primary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hero badge: must pop on dark background */
.gest-hero .primary-badge {
    color: var(--gest-tertiary) !important;
    background: rgba(230, 9, 86, 0.12) !important;
    border: 1px solid rgba(230, 9, 86, 0.25) !important;
    font-size: 0.82rem !important;
    padding: 8px 20px !important;
    margin-bottom: 20px;
}


/* ═══════════════════════════════════════════
   COMBINED FORM (P.IVA + Email)
   ═══════════════════════════════════════════ */
.gest-form-box {
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.gest-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.gest-form-field {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--gest-transition);
}

.gest-form-field:focus-within {
    border-color: rgba(230, 9, 86, 0.5);
    box-shadow: 0 0 0 4px rgba(230, 9, 86, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.gest-form-field--piva {
    flex: 1.2;
}

.gest-form-field--email {
    flex: 1;
}

.gest-form-field .gest-piva-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px 0 20px;
    color: var(--gest-primary);
    font-weight: 700 !important;
    font-size: 1rem;
    letter-spacing: 1px;
    user-select: none;
}

.gest-form-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 14px 16px;
    min-width: 0;
    font-weight: 400;
}

.gest-form-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.gest-form-field input.gest-input-error {
    color: var(--gest-danger);
}

.gest-form-checkboxes {
    margin-bottom: 16px;
    text-align: left;
    padding: 0 8px;
}

.gest-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 400;
}

.gest-checkbox-label span {
    color: rgba(255, 255, 255, 0.85) !important;
}

.gest-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--gest-primary);
    min-width: 16px;
    min-height: 16px;
}

.gest-checkbox-label a {
    color: var(--gest-primary);
    text-decoration: underline;
}

.gest-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gest-tertiary), #c7074a);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gest-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: gest-cta-pulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.gest-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: gest-shimmer 3s infinite;
}

@keyframes gest-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 9, 86, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(230, 9, 86, 0); }
}

@keyframes gest-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.gest-submit-btn:hover {
    background: linear-gradient(135deg, #c7074a, #a3063d);
    box-shadow: 0 0 30px rgba(230, 9, 86, 0.2);
    animation: none;
}

.gest-submit-btn:hover::before {
    animation: none;
}

.gest-submit-btn:disabled {
    cursor: not-allowed;
    animation: none;
}

.gest-submit-btn--disabled {
    opacity: 0.4;
    filter: grayscale(0.5);
}

.gest-submit-btn:disabled:not(.gest-submit-btn--disabled) {
    opacity: 0.7;
}

.gest-submit-btn:disabled::before {
    animation: none;
}

.gest-form-error {
    color: var(--gest-danger);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
    text-align: center;
    font-weight: 400;
}

.gest-form-error:not(:empty) {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.88rem;
    animation: gest-error-fade-in 0.3s ease;
}

.gest-form-error:not(:empty)::before {
    content: '\26A0\FE0F ';
}

@keyframes gest-error-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.gest-form-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 8px;
    font-weight: 400;
}

.gest-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gest-spin 0.7s linear infinite;
}

@keyframes gest-spin {
    to { transform: rotate(360deg); }
}


/* ─── Stat Cards ─── */
.gest-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.gest-stat-card {
    cursor: default;
}

.gest-stat-card .atropos-inner {
    border-radius: var(--gest-radius);
}

.gest-stat-card__inner {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--gest-radius);
    padding: 18px 12px;
    text-align: center;
    transition: var(--gest-transition);
}

.gest-stat-card:hover .gest-stat-card__inner {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(4, 166, 207, 0.25);
    box-shadow: 0 0 20px rgba(4, 166, 207, 0.1);
}

.gest-stat-card__number {
    display: block;
    font-size: 1.45rem;
    font-weight: 800 !important;
    color: var(--gest-primary);
    line-height: 1.2;
}

.gest-stat-card__label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 6px;
    line-height: 1.35;
    font-weight: 400;
}


/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */
.gest-trust-bar {
    padding: 36px 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.gest-trust-bar__title {
    text-align: center;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gest-secondary);
    margin-bottom: 24px;
    font-weight: 600;
}

.gest-trust-bar__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.gest-trust-bar__logos img {
    height: 28px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.45;
    transition: all 0.4s ease;
}

.gest-trust-bar__logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ─── Section common ─── */
.gest-section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--gest-dark);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.gest-section-subtitle {
    font-size: 1.05rem;
    color: var(--gest-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
}


/* ═══════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════ */
.gest-dashboard {
    padding: 80px 0;
    background: var(--gest-bg);
    position: relative;
}

.gest-dashboard__header {
    margin-bottom: 2.5rem;
}

.gest-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gest-dash-card {
    background: #fff;
    border-radius: var(--gest-radius);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--gest-transition);
}

.gest-dash-card:hover {
    box-shadow: var(--gest-shadow-md);
}

.gest-dash-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gest-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gest-dash-card h3 i {
    color: var(--gest-primary);
    font-size: 1.3rem;
    font-weight: 400 !important;
}

.gest-dash-card--opportunities {
    grid-column: 1 / -1;
}

.gest-dash-card--website,
.gest-dash-card--techstack {
    grid-column: 1 / -1;
}

.gest-dash-card__desc {
    font-size: 0.9rem;
    color: var(--gest-secondary);
    margin-bottom: 16px;
    font-weight: 400;
}

.gest-dashboard__cta {
    text-align: center;
    margin-top: 40px;
}

.gest-dashboard__cta .theme-btn.-primary {
    background-color: var(--gest-tertiary) !important;
    animation: gest-cta-pulse 2.5s ease-in-out infinite;
}

.gest-dashboard__cta .theme-btn.-primary:hover {
    background-color: #c7074a !important;
    box-shadow: 0 0 30px rgba(230, 9, 86, 0.3);
    animation: none;
}


/* ─── Profile Grid ─── */
.gest-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.gest-profile-item {
    padding: 10px 14px;
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    transition: var(--gest-transition);
}

.gest-profile-item:hover {
    background: var(--gest-primary-subtle);
}

.gest-profile-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gest-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600 !important;
}

.gest-profile-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600 !important;
    color: var(--gest-dark);
    word-break: break-word;
}


/* ─── Score Chart ─── */
.gest-dash-card--score {
    text-align: center;
}

.gest-score-chart-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
}

.gest-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gest-dark);
}

.gest-score-interpretation {
    font-size: 0.9rem;
    color: var(--gest-secondary);
    margin: 0;
    font-weight: 400;
}


/* ─── Analysis loading/streaming ─── */
.gest-analysis-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gest-secondary);
    font-size: 0.9rem;
    padding: 20px 0;
    font-weight: 400;
}

.gest-analysis-loading .gest-spinner {
    border-color: rgba(4, 166, 207, 0.2);
    border-top-color: var(--gest-primary);
}

.gest-ai-streaming {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gest-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

.gest-ai-streaming .gest-spinner {
    border-color: rgba(4, 166, 207, 0.2);
    border-top-color: var(--gest-primary);
}

.gest-ai-disclaimer {
    font-size: 0.75rem;
    color: var(--gest-secondary);
    opacity: 0.7;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-style: italic;
    font-weight: 400;
}

.gest-ai-disclaimer i {
    font-size: 0.85rem;
    color: var(--gest-primary);
    opacity: 0.6;
}

.gest-ai-text p {
    color: var(--gest-secondary);
    line-height: 1.7;
    border-left: 3px solid var(--gest-primary);
    padding: 16px 16px 16px 20px;
    background: rgba(4, 166, 207, 0.03);
    border-radius: 0 var(--gest-radius-sm) var(--gest-radius-sm) 0;
    margin: 12px 0 0;
    font-weight: 400;
    font-size: 0.88rem;
}


.gest-form__group--website {
    margin-bottom: 14px;
}

.gest-form-field--site {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--gest-transition);
}

.gest-form-field--site:focus-within {
    border-color: rgba(230, 9, 86, 0.5);
    box-shadow: 0 0 0 4px rgba(230, 9, 86, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.gest-website-icon {
    display: flex;
    align-items: center;
    padding: 0 14px 0 20px;
    color: var(--gest-primary);
    font-size: 1.1rem;
}

.gest-form-field--site input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.95rem;
    padding: 12px 16px;
    min-width: 0;
    font-weight: 400;
}

.gest-form-field--site input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.gest-form__hint {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 6px;
    font-weight: 400;
}


/* ─── PageSpeed Circles ─── */
.gest-pagespeed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.gest-ps-circle {
    text-align: center;
    position: relative;
}

.gest-ps-svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

.gest-ps-progress {
    transition: stroke-dashoffset 1.5s ease-out;
}

.gest-ps-progress.gest-ps-green { stroke: #0cce6b; }
.gest-ps-progress.gest-ps-orange { stroke: #ffa400; }
.gest-ps-progress.gest-ps-red { stroke: #ff4e42; }

.gest-ps-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700 !important;
    margin-top: -54px;
    position: relative;
    line-height: 80px;
}

.gest-ps-value.gest-ps-green { color: #0cce6b; }
.gest-ps-value.gest-ps-orange { color: #ffa400; }
.gest-ps-value.gest-ps-red { color: #ff4e42; }

.gest-ps-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gest-secondary);
    margin-top: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gest-pagespeed-vitals {
    margin-top: 8px;
}

.gest-vitals-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.gest-vital-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--gest-bg);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--gest-secondary);
    font-weight: 400;
}

.gest-vital-badge strong {
    font-weight: 700 !important;
    color: var(--gest-dark);
    font-size: 0.7rem;
    text-transform: uppercase;
}


/* ─── Tech Stack Badges ─── */
.gest-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gest-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600 !important;
    border: 1px solid;
    transition: var(--gest-transition);
}

.gest-tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--gest-shadow-sm);
}

.gest-tech-badge__cat {
    font-size: 0.68rem;
    font-weight: 400 !important;
    opacity: 0.7;
}

.gest-tech-assessment {
    margin-top: 8px;
}

.gest-tech-assessment__text {
    font-size: 0.85rem;
    color: var(--gest-secondary);
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    border-left: 3px solid var(--gest-primary);
    font-weight: 400;
}


/* ─── Workflow Maturity Bars ─── */
.gest-workflow-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    margin-bottom: 16px;
}

.gest-workflow-score__label {
    font-size: 0.85rem;
    color: var(--gest-secondary);
    font-weight: 500;
}

.gest-workflow-score__value {
    font-size: 1.6rem;
    font-weight: 800 !important;
    color: var(--gest-primary);
}

.gest-workflow-score__value small {
    font-size: 0.7rem;
    font-weight: 400 !important;
    color: var(--gest-secondary);
}

/* ─── Optimization Area Cards Grid ─── */
.gest-optim-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gest-optim-card {
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    padding: 18px 20px;
    border: 1px solid transparent;
    transition: var(--gest-transition);
}

.gest-optim-card:hover {
    border-color: rgba(4, 166, 207, 0.15);
    box-shadow: var(--gest-shadow-sm);
}

.gest-optim-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gest-optim-card__score {
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    padding-top: 8px;
}

.gest-optim-card__score small {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.8;
}

.gest-optim-card__score--high {
    background: linear-gradient(135deg, var(--gest-danger), #e11d48);
}

.gest-optim-card__score--mid {
    background: linear-gradient(135deg, var(--gest-warning), #d97706);
}

.gest-optim-card__score--low {
    background: linear-gradient(135deg, var(--gest-success), #16a34a);
}

.gest-optim-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gest-dark);
    margin: 0;
    line-height: 1.3;
}

.gest-optim-card__bar {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.gest-optim-card__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease-out;
}

.gest-optim-card__desc {
    font-size: 0.82rem;
    color: var(--gest-secondary);
    margin: 0;
    line-height: 1.55;
    font-weight: 400;
}


/* ─── Workflow Criticità ─── */
.gest-workflow-criticita {
    margin-top: 16px;
}

.gest-criticita-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gest-criticita-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(244, 63, 94, 0.08);
    color: var(--gest-danger);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.gest-criticita-badge i {
    font-size: 0.85rem;
}

.gest-auto-processes {
    margin-top: 12px;
}

.gest-auto-processes__title {
    font-size: 0.82rem;
    font-weight: 700 !important;
    color: var(--gest-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gest-auto-process {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.gest-auto-process:last-child {
    border-bottom: none;
}

.gest-auto-process__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gest-dark);
    flex: 1;
}

.gest-auto-process__hours {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.78rem;
    color: var(--gest-primary);
    font-weight: 500;
}

.gest-auto-process__hours i {
    font-size: 0.85rem;
}


/* ─── ROI Gestionale ─── */
.gest-roi-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.gest-roi-stat {
    text-align: center;
    padding: 16px 12px;
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    transition: var(--gest-transition);
}

.gest-roi-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--gest-shadow-sm);
}

.gest-roi-stat__icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.gest-roi-stat__icon i {
    font-weight: 400 !important;
}

.gest-roi-stat__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 4px;
}

.gest-roi-stat__label {
    font-size: 0.72rem;
    color: var(--gest-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.gest-roi-incentivi {
    margin-top: 8px;
}

.gest-roi-incentivo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--gest-radius-sm);
    font-size: 0.85rem;
    color: var(--gest-dark);
    font-weight: 500;
}

.gest-roi-incentivo i {
    color: var(--gest-success);
    font-size: 1.2rem;
    font-weight: 400 !important;
}

.gest-roi-incentivi-note {
    font-size: 0.8rem;
    color: var(--gest-secondary);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid var(--gest-warning);
    border-radius: 0 var(--gest-radius-sm) var(--gest-radius-sm) 0;
    line-height: 1.5;
}

.gest-roi-incentivi-note i {
    color: var(--gest-warning);
    margin-right: 4px;
}

/* Profile benchmark items */
.gest-profile-item--benchmark {
    border-left: 3px solid var(--gest-primary);
}

/* ─── VIES Badge ─── */
.gest-vies-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 10px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.3px;
    cursor: help;
}
.gest-vies-badge i {
    font-size: 13px;
}


/* ─── Opportunities (horizontal sub-cards) ─── */
.gest-opportunities-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gest-opportunity-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 22px 24px;
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    transition: var(--gest-transition);
    border: 1px solid transparent;
    align-items: flex-start;
}

.gest-opportunity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gest-shadow-sm);
    border-color: rgba(4, 166, 207, 0.15);
}

.gest-opportunity-card__number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--gest-tertiary), #c7074a);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700 !important;
    font-size: 1rem;
    margin-top: 2px;
}

.gest-opportunity-card__content {
    flex: 1;
    min-width: 0;
}

.gest-opportunity-card__content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gest-dark);
    margin-bottom: 8px;
}

.gest-opportunity-card__content p {
    font-size: 0.85rem;
    color: var(--gest-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 400;
}

/* Highlight importi nel testo */
.gest-opportunity-card__content p .gest-hl-amount {
    color: var(--gest-success);
    font-weight: 700;
}

/* Highlight percentuali nel testo */
.gest-opportunity-card__content p .gest-hl-pct {
    color: var(--gest-primary);
    font-weight: 700;
}

/* Keyword evidenziate */
.gest-opportunity-card__content p strong {
    color: var(--gest-dark);
    font-weight: 600;
}

.gest-opportunity-card__saving {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gest-success);
    font-weight: 500;
    background: rgba(34, 197, 94, 0.08);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.gest-opportunity-card__saving strong {
    font-weight: 700;
}

.gest-error-msg {
    color: var(--gest-danger);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    font-weight: 400;
}


/* ═══════════════════════════════════════════
   ACTION PLAN (Timeline verticale)
   ═══════════════════════════════════════════ */
.gest-action-plan {
    position: relative;
    padding-left: 0;
}

.gest-action-phase {
    position: relative;
    padding-bottom: 24px;
    padding-left: 56px;
    border-left: 2px solid #e2e8f0;
    margin-left: 20px;
}

.gest-action-phase:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.gest-action-phase__dot {
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gest-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(4, 166, 207, 0.3);
}

.gest-action-phase:nth-child(2) .gest-action-phase__dot {
    background: var(--gest-accent);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.gest-action-phase:nth-child(3) .gest-action-phase__dot {
    background: var(--gest-success);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.gest-action-phase__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gest-action-phase__header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gest-dark);
    margin: 0;
}

.gest-phase-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gest-phase-badge--alta {
    background: rgba(230, 9, 86, 0.1);
    color: var(--gest-tertiary);
}

.gest-phase-badge--media {
    background: rgba(4, 166, 207, 0.1);
    color: var(--gest-primary);
}

.gest-phase-badge--normal {
    background: rgba(71, 85, 105, 0.1);
    color: var(--gest-secondary);
}

.gest-action-phase__content p {
    font-size: 0.88rem;
    color: var(--gest-secondary);
    margin: 0 0 6px;
    line-height: 1.6;
    font-weight: 400;
}

.gest-action-phase__duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--gest-primary);
    font-weight: 500;
}

.gest-action-phase__duration i {
    font-size: 0.85rem;
}


/* ═══════════════════════════════════════════
   COMPANY SEARCH & COMPARISON
   ═══════════════════════════════════════════ */
.gest-search-form {
    margin-bottom: 16px;
}

.gest-search-input-wrap {
    display: flex;
    align-items: stretch;
    background: var(--gest-bg);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
    transition: var(--gest-transition);
}

.gest-search-input-wrap:focus-within {
    border-color: var(--gest-primary);
    box-shadow: 0 0 0 3px rgba(4, 166, 207, 0.12);
}

.gest-search-input-wrap .gest-piva-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px 0 18px;
    color: var(--gest-primary);
    font-weight: 700 !important;
    font-size: 0.9rem;
    user-select: none;
}

.gest-search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--gest-dark);
    font-size: 0.9rem;
    padding: 12px 8px;
    min-width: 0;
}

.gest-search-input-wrap input::placeholder {
    color: var(--gest-secondary);
    opacity: 0.6;
}

.gest-search-btn {
    background: var(--gest-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--gest-transition);
    white-space: nowrap;
    border-radius: 0 50px 50px 0;
}

.gest-search-btn:hover {
    background: #038daf;
}

.gest-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gest-search-note {
    font-size: 0.78rem;
    color: var(--gest-secondary);
    margin-top: 8px;
    font-weight: 400;
}

.gest-search-error {
    color: var(--gest-danger);
    font-size: 0.82rem;
    margin-top: 4px;
    min-height: 1em;
    font-weight: 400;
}

.gest-search-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gest-comparison-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.85rem;
}

.gest-comparison-card__header,
.gest-comparison-card__row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.gest-comparison-card__header {
    background: var(--gest-bg);
}

.gest-comparison-card__header .gest-comparison-card__col {
    padding: 12px 16px;
    font-weight: 700 !important;
    color: var(--gest-dark);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gest-comparison-card__header .gest-comparison-card__col--label {
    background: transparent;
}

.gest-comparison-card__header .gest-comparison-card__col--you {
    border-right: 1px solid #e2e8f0;
    color: var(--gest-primary);
}

.gest-comparison-card__header .gest-comparison-card__col i {
    font-size: 1.1rem;
    font-weight: 400 !important;
}

.gest-comparison-card__row {
    border-bottom: 1px solid #f1f5f9;
}

.gest-comparison-card__row:last-child {
    border-bottom: none;
}

.gest-comparison-card__col--label {
    padding: 10px 14px;
    font-weight: 600 !important;
    color: var(--gest-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fafbfc;
    display: flex;
    align-items: center;
}

.gest-comparison-card__row .gest-comparison-card__col {
    padding: 10px 14px;
    color: var(--gest-dark);
    font-weight: 400;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gest-comparison-card__row .gest-comparison-card__col--you {
    border-right: 1px solid #f1f5f9;
}

/* Badge stato attiva/inattiva */
.gest-comparison-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.gest-comparison-badge--active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--gest-success);
}


/* ═══════════════════════════════════════════
   CALCULATOR (inside dashboard card)
   ═══════════════════════════════════════════ */
.gest-calc-field {
    margin-bottom: 20px;
}

.gest-calc-field label {
    display: block;
    font-weight: 600;
    color: var(--gest-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.gest-calc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gest-calc-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gest-primary), #e2e8f0);
    outline: none;
}

.gest-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gest-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(4, 166, 207, 0.35);
    transition: var(--gest-transition);
    border: 3px solid #fff;
}

.gest-calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.gest-calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gest-primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(4, 166, 207, 0.35);
}

.gest-calc-slider-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gest-primary);
    min-width: 100px;
    text-align: right;
}

.gest-calc-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gest-secondary);
    margin-top: 6px;
    font-weight: 400;
}

.gest-calc-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--gest-radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: var(--gest-transition);
    background: #fff;
    color: var(--gest-dark);
    cursor: pointer;
}

.gest-calc-select:focus {
    border-color: var(--gest-primary);
    box-shadow: 0 0 0 3px rgba(4, 166, 207, 0.1);
}

.gest-calc-results {
    background: var(--gest-bg);
    border-radius: var(--gest-radius-sm);
    padding: 18px;
    margin-bottom: 16px;
}

.gest-calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gest-calc-result-item:last-child {
    border-bottom: none;
}

.gest-calc-result-label {
    font-size: 0.85rem;
    color: var(--gest-secondary);
    font-weight: 400;
}

.gest-calc-result-value {
    font-size: 1.1rem;
    font-weight: 700 !important;
    color: var(--gest-dark);
}

.gest-calc-result-item--highlight {
    background: rgba(34, 197, 94, 0.06);
    border-radius: var(--gest-radius-sm);
    padding: 10px 14px;
    margin-top: 8px;
    border-bottom: none;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.gest-calc-result-item--highlight .gest-calc-result-value {
    color: #16a34a !important;
    font-size: 1.3rem;
}

.gest-calc-result-value.primary-color {
    color: var(--gest-primary) !important;
}

.gest-calc-result-value.success-color {
    color: var(--gest-success) !important;
}

.gest-calc-chart-wrap {
    min-height: 220px;
}


/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.gest-statsbar {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--gest-dark-deep) 0%, var(--gest-dark) 50%, var(--gest-dark-deep) 100%);
    position: relative;
    overflow: hidden;
}

.gest-statsbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 400px 200px at 25% 50%, rgba(4, 166, 207, 0.08), transparent),
        radial-gradient(ellipse 400px 200px at 75% 50%, rgba(99, 102, 241, 0.06), transparent);
    pointer-events: none;
}

.gest-statsbar__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gest-statsbar__item {
    position: relative;
}

.gest-statsbar__item::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gest-statsbar__item:last-child::after {
    display: none;
}

.gest-counter {
    display: block;
    font-size: 2.8rem;
    font-weight: 800 !important;
    color: var(--gest-primary);
    line-height: 1.1;
}

.gest-statsbar__label {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    font-weight: 400;
}


/* ═══════════════════════════════════════════
   NEEDS SECTIONS
   ═══════════════════════════════════════════ */
.gest-need {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.gest-need--1 { background: #fff; }
.gest-need--2 { background: var(--gest-bg); }
.gest-need--3 { background: #fff; }
.gest-need--4 { background: var(--gest-bg); }
.gest-need--5 { background: #fff; }

.gest-need__title {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--gest-dark);
    margin: 14px 0 16px;
    line-height: 1.2;
}

.gest-need__desc {
    font-size: 1rem;
    color: var(--gest-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Before / After */
.gest-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.gest-before,
.gest-after {
    padding: 22px;
    border-radius: var(--gest-radius-sm);
    position: relative;
}

.gest-before {
    background: rgba(244, 63, 94, 0.04);
    border-left: 4px solid var(--gest-danger);
}

.gest-after {
    background: rgba(4, 166, 207, 0.04);
    border-left: 4px solid var(--gest-primary);
}

.gest-before h4,
.gest-after h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 800;
}

.gest-before h4 {
    color: var(--gest-danger);
}

.gest-after h4 {
    color: var(--gest-primary);
}

.gest-before ul,
.gest-after ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gest-before li,
.gest-after li {
    font-size: 0.88rem;
    color: var(--gest-secondary);
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
    font-weight: 400;
}

.gest-before li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: var(--gest-danger);
    font-weight: 700;
    font-size: 0.8rem;
}

.gest-after li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gest-primary);
    font-weight: 700;
    font-size: 0.8rem;
}


/* ─── SVG Illustrations ─── */
.gest-need__illustration {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gest-svg-illustration {
    width: 100%;
    height: auto;
    max-width: 440px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.06));
}

/* SVG Animation Classes */
.gest-svg-float {
    animation: gest-float 4s ease-in-out infinite;
}
.gest-svg-float--1 { animation-delay: 0s; }
.gest-svg-float--2 { animation-delay: 1.3s; }
.gest-svg-float--3 { animation-delay: 2.6s; }

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

.gest-svg-pulse {
    animation: gest-svg-pulse-anim 2.5s ease-in-out infinite;
}

@keyframes gest-svg-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.gest-svg-bar-grow {
    animation: gest-bar-grow 2s ease-out forwards;
    transform-origin: left;
}

@keyframes gest-bar-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.gest-svg-draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: gest-draw 2.5s ease-out forwards;
}

@keyframes gest-draw {
    to { stroke-dashoffset: 0; }
}

.gest-svg-connector {
    stroke-dasharray: 8, 4;
    animation: gest-connector-flow 1.5s linear infinite;
}

@keyframes gest-connector-flow {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}


/* ═══════════════════════════════════════════
   MID-PAGE CTA
   ═══════════════════════════════════════════ */
.gest-mid-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gest-dark-deep) 0%, var(--gest-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gest-mid-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 600px 300px at 50% 50%, rgba(4, 166, 207, 0.1), transparent);
    pointer-events: none;
}

.gest-mid-cta h2 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.gest-mid-cta p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.gest-mid-cta .theme-btn {
    position: relative;
    z-index: 1;
}

.gest-mid-cta .theme-btn.-primary {
    background-color: var(--gest-tertiary) !important;
    animation: gest-cta-pulse 2.5s ease-in-out infinite;
}
.gest-mid-cta .theme-btn.-primary:hover {
    background-color: #c7074a !important;
    box-shadow: 0 0 30px rgba(230, 9, 86, 0.3);
    animation: none;
}
.gest-mid-cta .theme-btn.-primary:hover span {
    color: #fff !important;
}


/* ═══════════════════════════════════════════
   CTA Section
   ═══════════════════════════════════════════ */
.gest-cta {
    padding-top: 80px;
}

.gest-cta .theme-btn.-primary {
    background-color: var(--gest-tertiary) !important;
    animation: gest-cta-pulse 2.5s ease-in-out infinite;
}
.gest-cta .theme-btn.-primary:hover {
    background-color: #c7074a !important;
    box-shadow: 0 0 30px rgba(230, 9, 86, 0.3);
    animation: none;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 991px) {
    .gest-hero__title {
        font-size: 2.3rem;
    }

    .gest-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .gest-dashboard__grid {
        grid-template-columns: 1fr;
    }

    .gest-dash-card--opportunities {
        grid-column: 1;
    }

    .gest-dash-card--website,
    .gest-dash-card--techstack {
        grid-column: 1;
    }

    .gest-opportunities-row {
        grid-template-columns: 1fr;
    }

    .gest-optim-grid {
        grid-template-columns: 1fr;
    }

    .gest-need__illustration {
        margin-top: 2rem;
    }

    .gest-deco { display: none; }

    .gest-trust-bar__logos {
        gap: 30px;
    }

    .gest-trust-bar__logos img {
        height: 24px;
    }

    .gest-mid-cta h2 {
        font-size: 1.8rem;
    }

    .gest-comparison-card__col--label {
        min-width: 80px;
        font-size: 0.7rem;
    }

    .gest-pagespeed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gest-roi-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .gest-hero {
        padding: 110px 0 50px;
        min-height: auto;
    }

    .gest-hero__title {
        font-size: 1.7rem;
    }

    .gest-hero__subtitle {
        font-size: 0.92rem;
    }

    /* Form combinato: stack verticale */
    .gest-form-row {
        flex-direction: column;
    }

    .gest-form-field--piva,
    .gest-form-field--email {
        flex: none;
    }


    .gest-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gest-stat-card__number {
        font-size: 1.3rem;
    }

    .gest-stat-card__inner {
        padding: 16px 10px;
    }

    .gest-section-title {
        font-size: 1.7rem;
    }

    .gest-before-after {
        grid-template-columns: 1fr;
    }

    .gest-statsbar__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gest-statsbar__item::after {
        display: none;
    }

    .gest-counter {
        font-size: 2.1rem;
    }

    .gest-need__title {
        font-size: 1.5rem;
    }

    .gest-need {
        padding: 60px 0;
    }

    .gest-section-hidden.gest-section-reveal {
        padding-top: 50px !important;
        padding-bottom: 20px !important;
    }

    .gest-trust-bar__logos {
        gap: 20px;
    }

    .gest-trust-bar__logos img {
        height: 20px;
    }

    .gest-mid-cta {
        padding: 50px 0;
    }

    .gest-mid-cta h2 {
        font-size: 1.4rem;
    }

    /* Dashboard profile grid: 1 col */
    .gest-profile-grid {
        grid-template-columns: 1fr;
    }

    /* PageSpeed: 2x2 grid on mobile */
    .gest-pagespeed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gest-ps-svg {
        width: 68px;
        height: 68px;
    }

    .gest-ps-value {
        font-size: 1.1rem;
        margin-top: -48px;
        line-height: 68px;
    }

    /* ROI: stack on small mobile */
    .gest-roi-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gest-roi-stat {
        padding: 12px 8px;
    }

    .gest-roi-stat__value {
        font-size: 1rem;
    }

    /* Auto processes: stack */
    .gest-auto-process {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Calculator slider stack */
    .gest-calc-slider-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .gest-calc-slider-value {
        text-align: center;
        margin-top: 8px;
    }

    /* Comparison card: stack cols */
    .gest-comparison-card__header,
    .gest-comparison-card__row {
        grid-template-columns: 1fr;
    }

    .gest-comparison-card__header .gest-comparison-card__col--label {
        display: none;
    }

    .gest-comparison-card__col--label {
        border-bottom: 1px solid #e2e8f0;
        text-align: center;
        justify-content: center;
    }

    .gest-comparison-card__row .gest-comparison-card__col--you {
        border-right: none;
    }

    .gest-comparison-card__header .gest-comparison-card__col--you {
        border-right: none;
    }
}

@media (max-width: 480px) {
    .gest-hero__title {
        font-size: 1.45rem;
    }

    .gest-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .gest-statsbar__row {
        grid-template-columns: 1fr 1fr;
    }

    .gest-opportunity-card {
        text-align: left;
        align-items: flex-start;
    }
}


/* ─── Locked / Blur Overlay Sections ─── */

.gest-locked-section {
    position: relative;
    overflow: hidden;
    border-radius: var(--gest-radius-sm);
}

.gest-locked-section__preview {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0.6;
}

.gest-locked-section__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 5;
}

.gest-locked-section__cta {
    text-align: center;
    max-width: 380px;
    padding: 24px;
}

.gest-locked-section__icon {
    font-size: 2.4rem;
    color: var(--gest-primary);
    display: block;
    margin-bottom: 12px;
}

.gest-locked-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gest-dark);
    margin-bottom: 8px;
}

.gest-locked-section__desc {
    font-size: 0.9rem;
    color: var(--gest-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Blur text utility */
.gest-blur-text {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
}

/* Blurred optimization card */
.gest-optim-card--locked {
    position: relative;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.gest-optim-card--locked > * {
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.gest-optim-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: inherit;
    z-index: 2;
}

/* Blurred ROI stat card */
.gest-roi-stat--locked {
    position: relative;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.gest-roi-stat--locked > * {
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.gest-roi-stat--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: inherit;
    z-index: 2;
}

/* Unlock CTA inside optimization/ROI sections */
.gest-locked-cta-inline {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(4, 166, 207, 0.06), rgba(99, 102, 241, 0.06));
    border: 2px dashed rgba(4, 166, 207, 0.3);
    border-radius: var(--gest-radius);
    margin-top: 8px;
}

.gest-locked-cta-inline__text {
    font-size: 0.95rem;
    color: var(--gest-secondary);
    margin-bottom: 12px;
}

.gest-locked-cta-inline__text i {
    color: var(--gest-primary);
    margin-right: 4px;
}

/* ─── Techstack main card (replacing score) ─── */

/* Override gest-tech-grid flex when techstack structure is rendered */
.gest-tech-grid:has(.gest-techstack-header) {
    flex-direction: column;
    align-items: stretch;
}

.gest-techstack-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.gest-techstack-count {
    font-size: 0.85rem;
    color: var(--gest-secondary);
}

.gest-techstack-count__num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gest-dark);
    margin-right: 4px;
}

.gest-techstack-maturity {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-left: 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.03);
}

.gest-techstack-maturity i {
    font-size: 0.5rem;
}

.gest-techstack-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gest-techstack-group__header {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gest-techstack-group__header i {
    font-size: 1rem;
}

.gest-techstack-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gest-dash-card--techstack-main .gest-tech-assessment {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gest-dash-card--techstack-main .gest-tech-assessment__text {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

/* ─── Tech Detail Cards (AI-enriched) ─── */
.gest-tech-detail-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 3px solid;
    border-radius: var(--gest-radius-sm);
    padding: 10px 12px;
    transition: var(--gest-transition);
    min-width: 0;
}

.gest-tech-detail-card:hover {
    box-shadow: var(--gest-shadow-sm);
    transform: translateY(-1px);
}

.gest-tech-detail-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.gest-tech-detail-card__ruolo {
    font-size: 0.78rem;
    color: var(--gest-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.gest-tech-detail-card__adeq {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 20px;
}

.gest-tech-adeq--buono {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.gest-tech-adeq--adeguato {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.gest-tech-adeq--valutare {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
}

/* Override group items layout when detail cards are present */
.gest-techstack-group__items:has(.gest-tech-detail-card) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* No-site state */
.gest-techstack-nosite {
    text-align: center;
    padding: 20px 12px;
}

.gest-techstack-nosite__icon {
    font-size: 2.2rem;
    color: var(--gest-primary);
    opacity: 0.5;
    margin-bottom: 10px;
}

.gest-techstack-nosite__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gest-dark);
    margin-bottom: 6px;
}

.gest-techstack-nosite__desc {
    font-size: 0.82rem;
    color: var(--gest-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.gest-techstack-nosite__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gest-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gest-techstack-nosite__link:hover {
    text-decoration: underline;
}

/* ─── Landing Footer (minimo) ─── */
.gest-landing-footer {
    padding: 80px 0 40px;
    text-align: center;
}

.gest-landing-footer p {
    font-size: 0.82rem;
    color: var(--gest-secondary);
    opacity: 0.7;
}

.gest-landing-footer a {
    color: var(--gest-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gest-landing-footer a:hover {
    color: var(--gest-primary);
}
