/* Commercial proposal: CKEditor Media Embed (YouTube, etc.) */
.proposal-content figure.media {
    width: 100%;
    margin: 1.5rem 0;
}
.proposal-content figure.media [data-oembed-url] {
    position: relative;
    display: block;
    width: 100%;
}
.proposal-content figure.media [data-oembed-url] > div {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
}
.proposal-content figure.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Brand gradient button: vertical darkening from blue (top) to darker blue (bottom) */
.btn-gradient-brand {
    background-image: linear-gradient(180deg, #0074d4 0%, #005aab 100%);
    color: #fff !important;
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 90, 171, 0.3);
}

.btn-gradient-brand:hover,
.btn-gradient-brand:focus,
.btn-gradient-brand:active {
    background-image: linear-gradient(180deg, #0074d4 0%, #005aab 100%);
    filter: brightness(0.95);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 90, 171, 0.35);
}

/* Buttons that activate gradient only on hover/active */
.btn-active-gradient {
    position: relative;
    background-color: transparent;
    color: inherit;
    border: 1px solid rgba(98, 89, 202, 0.3);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-active-gradient:hover,
.btn-active-gradient:focus,
.btn-active-gradient:active,
.btn-active-gradient.active {
    background-image: linear-gradient(180deg, #0074d4 0%, #005aab 100%);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 90, 171, 0.35);
}

.btn-active-gradient:disabled,
.btn-active-gradient[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Primary buttons on landing: same darkening gradient (blue → darker blue) */
.bg-landing .btn-primary,
.landing-content .btn-primary {
    background-image: linear-gradient(180deg, #0074d4 0%, #005aab 100%) !important;
    border: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 90, 171, 0.3);
}
.bg-landing .btn-primary:hover,
.landing-content .btn-primary:hover,
.bg-landing .btn-primary:focus,
.landing-content .btn-primary:focus,
.bg-landing .btn-primary:active,
.landing-content .btn-primary:active {
    background-image: linear-gradient(180deg, #0074d4 0%, #005aab 100%) !important;
    filter: brightness(0.95);
    box-shadow: 0 4px 12px rgba(0, 90, 171, 0.35);
}

/* Navigator pills bar (landing + enterprise-os): effetto bombato, unica definizione */
.navigator-pills-bar {
    border-radius: 2.25rem;
    padding: 8px 8px;
    width: fit-content;
    display: inline-flex;
    background: linear-gradient(180deg, #00a8ff 0%, #009ef7 40%, #0088dd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
                0 4px 12px rgba(0, 158, 247, 0.35);
}

#testNavigatorTabs2 .nav-link {
    border-radius: 1.5rem;
    background-color: transparent;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

#testNavigatorTabs2::before {
    content: '';
    position: absolute;
    left: var(--hover-left-2, -9999px);
    top: var(--hover-top-2, -9999px);
    width: var(--hover-width-2, 0);
    height: var(--hover-height-2, 0);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    z-index: 0;
    pointer-events: none;
    opacity: var(--hover-opacity-2, 0);
}

#testNavigatorTabs2 .nav-link:hover {
    color: #ffffff;
}

#testNavigatorTabs2 {
    position: relative;
}

#testNavigatorTabs2::after {
    content: '';
    position: absolute;
    left: var(--slider-left-2, 0);
    top: var(--slider-top-2, 0);
    width: var(--slider-width-2, 0);
    height: var(--slider-height-2, 0);
    background: linear-gradient(180deg, #0074d4 0%, #005aab 100%);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                0 2px 8px rgba(0, 90, 171, 0.4);
    pointer-events: none;
}

#testNavigatorTabs2 .nav-link.active {
    background-color: transparent;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

#testNavigatorTabs2 .nav-link.active:hover {
    background-color: rgba(0, 116, 212, 0.2);
    color: #ffffff;
}

/* Soft fade utility for dynamic calculator results */
.fade-soft {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.95s ease, transform 0.95s ease;
}

.fade-soft.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

.badge-gradient-brand {
    background-image: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
    color: #fff !important;
    border: 0;
}
.bg-landing {
    min-height: 500px;
    width: 100%;
    position: relative;
}

@media (max-width: 767.98px) {
    .mobile-min-height-75 {
      min-height: 75px;
    }
  }
  
  @media (min-width: 768px) {
    .mobile-min-height-75t {
      min-height: auto;
    }
  }

/* Cursor */
.typed-cursor {
    color: #ffffff;
}

/* Add specific styling for landing content */
.landing-content {
    width: 100%;
    position: relative;
    z-index: 1;
    padding-bottom: 3rem;
}

/* Dashboard section styling */
.home-dashboard {
    margin-top: 2rem;
    margin-bottom: -5rem;
    position: relative;
    z-index: 1;
}

.home-dashboard img {
    transition: all 0.5s ease;
    will-change: transform;
}

.home-dashboard img:hover {
    transform: translateY(-10px);
}

/* Partners section styling */
.bg-light {
    background-color: #f8f9fa !important;
    position: relative;
    z-index: 0;
}

/* Typography styles */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2f2f2f;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Font weights for Inter headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

/* Keep Inter for body text */
body {
    font-family: 'Inter', sans-serif;
}

/* Font weights */
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* Heading specific styles */
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}



/* Custom Text Gradient */
.text-gradient-icon {
    background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standard property */
    text-fill-color: transparent; /* Standard property */
}

/* Hero Title Gradient */
.hero-title-gradient {
    background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

/* Section Titles Gradient */
.section-title-gradient {
    background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Mantieni le proprietà esistenti dei titoli di sezione */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Problem Cards Titles Gradient - Purple to Red */
.problem-card-gradient {
    background: linear-gradient(135deg, #6259ca 0%, #d32f2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* Mantieni le proprietà esistenti dei titoli delle problem cards */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom font class */
.font-Varela {
    font-family: 'Varela Round', sans-serif !important;
}

/* Logo specific styling */
#kt_landing_logo_text {
    font-family: 'Varela Round', sans-serif !important;
    font-weight: 700 !important;
}

#critical-insights {
    scroll-margin-top: 50px;
  }

/* Landing Header Height - Reduced from 100px to 50px */
.landing-header-wrapper {
    height: 50px;
    min-height: 50px;
}
.landing-header {
    height: 50px !important;
    min-height: 50px !important;
    position: relative;
    z-index: 1000 !important; /* Ensure header is above hero section overlay */
    background-color: #ffffff;
}

/* Landing Header Sticky State - Also reduced to 50px */
[data-kt-sticky-name="landing-header"][data-kt-sticky="true"] {
    height: 50px !important;
    min-height: 50px !important;
    z-index: 1000 !important; /* Ensure sticky header is above hero section overlay */
}

/* C-012: Eliminate Metronic sticky body padding jump (header is stably reserved by wrapper) */
body[data-kt-sticky-landing-header="on"] {
    padding-top: 0 !important;
}

/* Ensure menu dropdowns are above everything */
.landing-header [data-kt-menu="true"],
.landing-header .menu-sub,
.landing-header .menu-sub-dropdown {
    z-index: 1055 !important; /* Metronic default menu z-index */
}

/* Ensure language switcher menu is clickable */
.landing-header #kt_header_lang_menu,
.landing-header #kt_header_lang_menu [data-kt-menu="true"] {
    z-index: 1055 !important;
    position: relative;
}

/* Ensure container inside header maintains proper alignment */
.landing-header .container {
    height: 100%;
}

.landing-header .d-flex {
    height: 100%;
}

/* Ensure header wrapper doesn't interfere with dropdowns */
#home {
    position: relative;
    z-index: 1000;
}

/* Ensure mega menu stays open on hover */
.landing-header .menu-item:hover > .menu-sub,
.landing-header .menu-item:hover > .menu-mega {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Function List Card Gradient */
.function-list-card-gradient {
    background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%) !important;
}

.function-list-card-gradient .card-body {
    background: transparent;
}

.function-list-card-gradient h4 {
    color: white !important;
}

/* Hero Section - Personio Style Full Width */
.hero-section-fullwidth {
    width: 100%;
    position: relative;
    padding: 0px 0 0px;
    background-image: none !important;
    background-color: #ffffff !important;
    overflow: hidden;
    z-index: 1;
}

/* Overlay to completely cover parent background image with gradient */
.hero-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    background-image: none !important;
    background: radial-gradient(ellipse 100% 55% at 50% 72%, rgba(33, 107, 213, 0.4) 0%, rgba(33, 107, 213, 0.25) 35%, rgba(255, 255, 255, 0) 70%) !important;
    z-index: 1;
    pointer-events: none; /* Ensure overlay doesn't block clicks */
    overflow: hidden;
}

/* Override bg-landing background image for hero section - FORCE REMOVAL */
.bg-landing .hero-section-fullwidth,
.bg-landing .hero-section-fullwidth::before,
.bg-landing .hero-section-fullwidth::after {
    background-image: none !important;
    background-color: transparent !important;
    background: radial-gradient(ellipse 100% 55% at 50% 72%, rgba(33, 107, 213, 0.4) 0%, rgba(33, 107, 213, 0.25) 35%, rgba(255, 255, 255, 0) 70%) !important;
}

/* Force remove background from parent when hero section is present */
.bg-landing:has(.hero-section-fullwidth) {
    background-image: none !important;
    background: transparent !important;
}

.hero-header-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.hero-main-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2f2f2f;
    margin-bottom: 1.5rem;
    /* Forza il rendering del font prima dell'animazione */
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Hero carousel card: no border */
.hero-carousel-card-wrapper {
    display: block;
}

.hero-carousel-card-border {
    background: transparent;
    box-shadow: none;
}

.hero-carousel-card-border .bg-white {
    border-radius: 1.75rem;
}

/* Animazioni automatiche al caricamento per elementi hero */
/* Tutti gli elementi hero iniziano nascosti */
.hero-animate-1,
.hero-animate-2,
.hero-animate-3,
.hero-animate-4,
.hero-animate-5,
.hero-animate-6 {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* GRUPPO 1: Main title - delay aumentato per dare tempo al font di caricarsi */
.hero-animate-1 {
    animation: heroFade 2.0s ease-out 0.3s forwards;
}

/* GRUPPO 2: Header menu - slide down dall'alto */
/* Animazione applicata solo quando la classe landing-header-animated è presente (solo nella home) */
.landing-header.landing-header-animated {
    opacity: 0;
    transform: translateY(-30px);
    animation: heroSlideDown 1.0s ease-out 0.3s forwards;
}

/* GRUPPO 3: Tutto il resto della hero sincronizzato assieme - stessa velocità dello slider */
/* Slider - slide up da sotto */
.hero-animate-2 {
    opacity: 0;
    transform: translateY(40px);
    animation: heroSlideUp 1.2s ease-in-out 0.3s forwards;
}

.hero-animate-3 {
    animation: heroFade 0.8s ease-in-out 0.3s forwards;
}

.hero-animate-4 {
    animation: heroFade 2.0s ease-in-out 0.3s forwards;
}

.hero-animate-5 {
    animation: heroFade 2.0s ease-in-out 0.3s forwards;
}

/* Testo sotto slider - slide up da sotto */
.hero-animate-6 {
    opacity: 0;
    transform: translateY(40px);
    animation: heroSlideUp 1.2s ease-in-out 0.3s forwards;
}

/* Generic section animations for landing/about pages */
.section-animate {
    opacity: 0;
    transform: translateY(24px);
    animation: sectionFadeUp 0.9s ease-out forwards;
}

.section-animate-delay-1 {
    animation-delay: 0.1s;
}

.section-animate-delay-2 {
    animation-delay: 0.2s;
}

.section-animate-delay-3 {
    animation-delay: 0.35s;
}

.section-animate-delay-4 {
    animation-delay: 0.5s;
}

@keyframes sectionFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-animate,
    .section-animate-delay-1,
    .section-animate-delay-2,
    .section-animate-delay-3,
    .section-animate-delay-4 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Keyframes per animazione fade semplice (senza spostamento) */
@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Keyframes per animazione slide down dall'alto */
@keyframes heroSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes per animazione slide up dal basso */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-cta-buttons .btn-outline-primary:hover {
    color: #ffffff !important;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.hero-slider-container {
    max-width: 95%;
    margin: 0 auto;
    position: relative;
}

.hero-slider-container img {
    border-radius: 1rem;
    box-shadow: none !important;
    max-width: 100% !important;
}

/* Tiny Slider Nav Dots - Posizionati dentro le immagini in basso */
.hero-slider-container .tns-nav {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    justify-content: center;
    pointer-events: none;
}

.hero-slider-container .tns-nav button {
    pointer-events: all;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #87CEEB;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.hero-slider-container .tns-nav button.tns-nav-active {
    background: #216bd5;
    width: 30px;
    border-radius: 6px;
}

.hero-slider-container .tns-nav button:hover {
    background: rgba(33, 107, 213, 0.7);
}

/* Quando ci sono sia controls che nav, spostiamo i dots più in basso */
.hero-slider-container .tns-controls + .tns-nav,
.hero-slider-container .tns-nav:has(+ .tns-controls) {
    bottom: 70px;
}

/* Alternativa: dots come linee invece di cerchi */
.hero-slider-container .tns-nav-line button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-container .tns-nav-line button.tns-nav-active {
    background: #216bd5;
    width: 40px;
}

@media (max-width: 991.98px) {
    .hero-section-fullwidth {
        padding: 0px 0 0px;
        background-image: none !important;
        background-color: transparent !important;
    }
    
    .hero-section-overlay {
        background: radial-gradient(ellipse 120% 70% at 50% 77%, rgba(33, 107, 213, 0.4) 0%, rgba(33, 107, 213, 0.25) 35%, rgba(255, 255, 255, 0) 70%) !important;
    }
    
    .hero-section-fullwidth::before {
        display: none; /* Disable pseudo-element */
    }
    
    .bg-landing .hero-section-fullwidth,
    .bg-landing .hero-section-fullwidth::before,
    .bg-landing .hero-section-fullwidth::after {
        background-image: none !important;
        background-color: transparent !important;
        background: radial-gradient(ellipse 120% 70% at 50% 77%, rgba(33, 107, 213, 0.4) 0%, rgba(33, 107, 213, 0.25) 35%, rgba(255, 255, 255, 0) 70%) !important;
    }
    
    .bg-landing:has(.hero-section-fullwidth) {
        background-image: none !important;
        background: transparent !important;
    }
    
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-slider-container {
        max-width: 98%;
    }
    
    .hero-slider-container img {
        max-width: 98% !important;
    }
    
    /* Hide nav dots on mobile */
    .hero-slider-container .tns-nav {
        display: none !important;
    }
}

/* Discount Section Gradient Background */
.discount-section-gradient {
    background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
}

/* Ensure text is visible on gradient background */
.discount-section-gradient .text-white {
    color: #ffffff !important;
}

/* Ensure card inside gradient section is transparent and has no shadow */
.discount-section-gradient .card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure all text outside inputs is white */
.discount-section-gradient h3,
.discount-section-gradient p,
.discount-section-gradient span:not(.form-text),
.discount-section-gradient small,
.discount-section-gradient .form-text {
    color: #ffffff !important;
}

/* Ensure badge text is dark (badge has white background) */
.discount-section-gradient .badge {
    background-color: #ffffff !important;
}

.discount-section-gradient .badge .text-dark {
    color: #2f2f2f !important;
}
/* Solutions Cards Slider */
.solutions-slider-container {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.solutions-slider-container .tns-outer {
    padding: 0;
}

.solutions-slider-container .tns-item {
    padding: 0 12px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Disabilita selezione testo durante drag/swipe */
.solutions-slider-container .tns-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Riabilita selezione solo per i link (opzionale, per permettere di vedere l'URL) */
.solutions-slider-container .tns-item a {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* Desktop: 3 cards - center card larger */
@media (min-width: 1024px) {
    /* Default state for all items */
    .solutions-slider-container .tns-item {
        opacity: 0.8;
        transform: scale(0.7);
        position: relative;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1;
    }
    
    /* 1. Target ALL active slides first -> Set to "Small" state (0.7) */
    .solutions-slider-container .tns-item.tns-slide-active {
        opacity: 0.8;
        transform: scale(0.7);
        z-index: 5;
    }
    
    /* 2. Target 2nd active slide (Center) -> Set to "Large" state (1.0) */
    /* This targets the middle item of the 3 active items */
    .solutions-slider-container .tns-item.tns-slide-active + .tns-item.tns-slide-active {
        opacity: 1;
        transform: scale(1);
        z-index: 10;
    }
    
    /* 3. Target 3rd active slide (Right) -> Reset to "Small" state (0.7) */
    /* This ensures the third item goes back to small size */
    .solutions-slider-container .tns-item.tns-slide-active + .tns-item.tns-slide-active + .tns-item.tns-slide-active {
        opacity: 0.8;
        transform: scale(0.7);
        z-index: 5;
    }
    
    /* Ensure all visible items maintain spacing */
    .solutions-slider-container .tns-item[aria-hidden="false"] {
        display: block;
    }
}

/* Tablet e Mobile: 1 card - tutte al 100% */
@media (max-width: 1023.98px) {
    .solutions-slider-container .tns-item {
        opacity: 1;
        transform: scale(1);
    }
}

/* Assicura che le card mantengano l'altezza */
.solutions-slider-container .card {
    height: 100%;
    margin: 0;
}

/* Rimuove padding extra dal wrapper interno di Tiny Slider */
.solutions-slider-container .tns-inner {
    padding: 0;
}

/* Nasconde eventuali controlli o dots che potrebbero apparire */
.solutions-slider-container .tns-controls,
.solutions-slider-container .tns-nav {
    display: none !important;
}

/* ============================================================
   HERO SHOWCASE: Feature Cards + Crossfading Screenshots
   Replaces the old tns carousel in home.html
   ============================================================ */

/* Outer wrapper — inherits the hero-animate-2 slide-up */
.hero-showcase-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Feature Cards ---------------------------------------- */
.hero-feat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 116, 212, 0.10);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: left;
    /* Start hidden — animation triggered by JS once parent wrapper is fully visible */
    opacity: 0;
    transform: translateY(50px);
    transition: box-shadow 0.25s ease;
}

/* Triggered by JS (.cards-visible added when heroSlideUp completes) */
.hero-showcase-wrap.cards-visible .hero-feat-card {
    animation: heroFeatCardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-showcase-wrap.cards-visible .hero-feat-card:hover {
    box-shadow: 0 6px 24px rgba(0, 116, 212, 0.14);
}

/* Staggered entry — short relative delays starting from 0 */
.hero-showcase-wrap.cards-visible .hero-feat-card--1 { animation-delay: 0s; }
.hero-showcase-wrap.cards-visible .hero-feat-card--2 { animation-delay: 0.15s; }
.hero-showcase-wrap.cards-visible .hero-feat-card--3 { animation-delay: 0.30s; }
.hero-showcase-wrap.cards-visible .hero-feat-card--4 { animation-delay: 0.45s; }

@keyframes heroFeatCardIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon wrapper */
.hero-feat-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 158, 247, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Description text */
.hero-feat-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #8e9aaf;
}

/* ---- Screenshot Crossfader -------------------------------- */
.hero-screenshot-stack {
    position: relative;
    width: 100%;
    /* height determined by first (eager) image */
    border-radius: 16px;
    overflow: hidden;
}

.hero-ss-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* All images after the first are stacked absolutely and crossfade */
.hero-screenshot-stack .hero-ss-img:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Crossfade cycle: 4 images × 5s visible each = 20s total loop */
.hero-screenshot-stack .hero-ss-img:nth-child(1) {
    animation: ssRotate4 20s infinite 0s;
}
.hero-screenshot-stack .hero-ss-img:nth-child(2) {
    animation: ssRotate4 20s infinite 5s;
}
.hero-screenshot-stack .hero-ss-img:nth-child(3) {
    animation: ssRotate4 20s infinite 10s;
}
.hero-screenshot-stack .hero-ss-img:nth-child(4) {
    animation: ssRotate4 20s infinite 15s;
}

@keyframes ssRotate4 {
    0%    { opacity: 0; }
    5%    { opacity: 1; }
    25%   { opacity: 1; }
    30%   { opacity: 0; }
    100%  { opacity: 0; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-feat-card,
    .hero-showcase-wrap.cards-visible .hero-feat-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .hero-ss-img {
        animation: none !important;
        opacity: 1 !important;
    }
    .hero-screenshot-stack .hero-ss-img:not(:first-child) {
        display: none;
    }
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 991.98px) {
    .hero-showcase-wrap .row {
        flex-direction: column;
    }
    /* On mobile: feature cards appear before screenshot */
    .hero-showcase-wrap .col-lg-5 {
        order: 1;
    }
    .hero-showcase-wrap .col-lg-7 {
        order: 2;
        margin-top: 1.5rem;
    }
    /* 2x2 grid stays on mobile */
    .hero-feat-card {
        padding: 16px 14px;
    }
}

@media (max-width: 575.98px) {
    .hero-feat-desc {
        display: none; /* hide desc on very small screens, keep icon + title */
    }
    .hero-feat-card {
        padding: 14px 12px;
    }
}

/* ── Hero landing entrance animation ─────────────────────────────────────────
   Matches the timing/easing from the animation prototype (scenes_landing.jsx).
   easeOutBack: cubic-bezier(0.34, 1.56, 0.64, 1) — slight overshoot on settle.
   easeOutCubic: cubic-bezier(0.33, 1, 0.68, 1).
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Headline word/line reveal ─── */
@keyframes heroLineReveal {
    0%   { opacity: 0; transform: translateY(18px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-headline-line {
    display: block;
    opacity: 0;
    will-change: transform, opacity;
    animation: heroLineReveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-headline-line-1 { animation-delay: 1.1s; }
.hero-headline-line-2 { animation-delay: 1.7s; }

/* ── Kicker shimmer ─── */
/* Keyframe runs 0% → 50% (white sweeps through) → 0% (clean end).
   With forwards fill the final state is background-position: 0% 50%
   which shows only the purple→blue portion — no white stuck on text. */
@keyframes heroKickerShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 50% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes heroKickerFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker-shimmer {
    opacity: 0;
    background: linear-gradient(90deg,
        #6259ca 0%, #0074d4 35%, #ffffff 50%, #0074d4 65%, #19d3c5 100%);
    background-size: 300% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation:
        heroKickerFadeIn 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.5s forwards,
        heroKickerShimmer 3.5s linear 0.5s 2 forwards;
}

/* ── Subtitle reveal ─── */
@keyframes heroSubtitleReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-subtitle-reveal {
    opacity: 0;
    animation: heroSubtitleReveal 0.8s cubic-bezier(0.33, 1, 0.68, 1) 2.4s forwards;
}

/* ── CTA scale-in ─── */
@keyframes heroCTAScaleIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-cta-primary-reveal {
    opacity: 0;
    animation: heroCTAScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.1s forwards;
}
.hero-cta-secondary-reveal {
    opacity: 0;
    animation: heroCTAScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.22s forwards;
}

/* ── Carousel card container ─── */
@keyframes heroCarouselEntry {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-carousel-animated {
    opacity: 0;
    transform-origin: center;
    animation: heroCarouselEntry 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.55s forwards;
}

/* "data." gradient word inside hero headline — inherit h1 sizing */
.hero-main-title .hero-title-gradient {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    font-family: inherit;
}

/* Gradient frame border matching the prototype */
.hero-carousel-card-border {
    padding: 8px;
    background: linear-gradient(135deg,
        rgba(98, 89, 202, 0.18) 0%,
        rgba(0, 116, 212, 0.18) 50%,
        rgba(25, 211, 197, 0.18) 100%) !important;
    box-shadow: 0 24px 60px rgba(24, 28, 50, 0.13) !important;
}

/* ── Ambient orbs ─── */
@keyframes heroOrbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-22px, 18px); }
    66%      { transform: translate(16px, -12px); }
}
@keyframes heroOrbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(20px, -24px); }
    66%      { transform: translate(-14px, 20px); }
}
@keyframes heroOrbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33%      { transform: translate(-16px, -16px); }
    66%      { transform: translate(22px, 14px); }
}

.hero-ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 0;
}
.hero-ambient-orb-1 {
    width: 480px; height: 480px;
    left: -80px; top: 40%;
    background: radial-gradient(circle, rgba(98,89,202,0.22) 0%, rgba(98,89,202,0.06) 55%, transparent 70%);
    animation: heroOrbFloat1 13s ease-in-out infinite;
}
.hero-ambient-orb-2 {
    width: 540px; height: 540px;
    right: -60px; top: 5%;
    background: radial-gradient(circle, rgba(25,211,197,0.18) 0%, rgba(25,211,197,0.05) 55%, transparent 70%);
    animation: heroOrbFloat2 17s ease-in-out infinite;
}
.hero-ambient-orb-3 {
    width: 500px; height: 500px;
    left: 38%; bottom: -80px;
    background: radial-gradient(circle, rgba(0,116,212,0.16) 0%, rgba(0,116,212,0.04) 55%, transparent 70%);
    animation: heroOrbFloat3 20s ease-in-out infinite;
}

/* ── 360° hero carousel — simulated pointer cursor ──────────────────────────
   Used on slides 1 (slider drag) and 3 (Yes click) to simulate a user
   interaction inside the preview card.
   ──────────────────────────────────────────────────────────────────────────── */
#hero360Carousel .card-body {
    position: relative;
}

/* Kill noUiSlider's own CSS transitions on the positioning layers so that
   `.set(value)` is visually instant and the simulated cursor stays perfectly
   in sync with the handle (cursor already uses instant left/top updates). */
#hero-slider-preview .noUi-origin,
#hero-slider-preview .noUi-connect,
#hero-slider-preview .noUi-handle {
    transition: none !important;
}

/* Real cursor arrow (SVG is inlined in the HTML). Positioned with its tip at
   the target coordinate, so press-scale shrinks toward the tip. */
.hero-cursor {
    position: absolute;
    width: 22px;
    height: 24px;
    pointer-events: none;
    z-index: 20;
    left: 0;
    top: 0;
    opacity: 0;
    transform-origin: 3px 3px;       /* tip of the arrow */
    transition:
        opacity 0.4s ease,
        left 0.85s cubic-bezier(0.33, 1, 0.68, 1),
        top  0.85s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: left, top, opacity, transform;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}
.hero-cursor svg { display: block; width: 100%; height: 100%; }

/* Click feedback is delivered by the TARGET element (slider handle moving,
   Yes button darkening) — never by moving or scaling the cursor itself.
   Scaling with transform-origin at the tip introduced a visible "spring
   back" jump when the scale reverted. .is-pressed is kept as a JS hook
   but deliberately has no effect on the cursor. */

/* ── Hero Yes button states ──
   Plain btn-light-primary is the resting state. `is-hover` mimics the CSS :hover
   look without real pointer. `is-pressed` simulates mouse-down with a darker fill. */
.hero-yes-btn.is-hover {
    background-color: rgba(0, 116, 212, 0.22) !important;
    color: #0074d4 !important;
    box-shadow: 0 0 0 4px rgba(0, 116, 212, 0.10);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease;
}
.hero-yes-btn.is-pressed {
    background-color: #005aab !important;
    color: #ffffff !important;
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(0, 116, 212, 0);
    transition: background-color 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

/* Typewriter caret for hero slide 2 */
.hero-type-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #0074d4;
    vertical-align: -2px;
    margin-left: 1px;
    animation: heroTypeCaret 0.9s infinite;
}
@keyframes heroTypeCaret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .hero-cursor { display: none; }
    .hero-btn-pressed, .hero-type-caret { animation: none; }
}

/* Hide simulated hero cursor on touch devices — the interaction simulation adds
   no value on mobile (no mouse) and iOS has SVG sizing quirks that can make
   the cursor render full-card-width without the pixel constraints. */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .hero-cursor { display: none !important; }
}

/* ── Torch-chat animated playback (shared) ───────────────────────────────────
   Used by the offboarding page (3 cards) and the 360° hero carousel (slide 4).
   When .is-pending is set by JS/markup, content stays hidden until the
   playback script reveals rows with .is-shown and types each bubble back.
   ──────────────────────────────────────────────────────────────────────────── */
.torch-chat.is-pending .torch-chat-row,
.torch-chat.is-pending .torch-chat-insight {
    opacity: 0;
    transform: translateY(6px);
}

.torch-chat.torch-chat-quotes-only.is-pending .torch-chat-row {
    opacity: 1;
    transform: none;
}
.torch-chat.torch-chat-quotes-only .torch-chat-bubble {
    display: inline-block;
    min-height: 1.4em;
}

.torch-chat .torch-chat-row,
.torch-chat .torch-chat-insight {
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.torch-chat .torch-chat-row.is-shown,
.torch-chat .torch-chat-insight.is-shown {
    opacity: 1;
    transform: translateY(0);
}

.torch-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #009ef7;
    vertical-align: -2px;
    margin-left: 1px;
    animation: torchCaret 1s infinite;
}
@keyframes torchCaret { 50% { opacity: 0; } }

.torch-typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px 2px;
}
.torch-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a1a5b7;
    animation: torchDots 1.4s infinite;
}
.torch-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.torch-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes torchDots {
    0%, 60%, 100% { opacity: 0.3; }
    30%           { opacity: 1; }
}

.torch-chat-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #47be7d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.torch-chat-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #47be7d;
    box-shadow: 0 0 0 0 rgba(71, 190, 125, 0.6);
    animation: torchLivePulse 1.8s infinite;
}
@keyframes torchLivePulse {
    0%   { box-shadow: 0 0 0 0 rgba(71, 190, 125, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(71, 190, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(71, 190, 125, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .torch-chat.is-pending .torch-chat-row,
    .torch-chat.is-pending .torch-chat-insight {
        opacity: 1;
        transform: none;
    }
    .torch-caret, .torch-typing-dots span, .torch-chat-live-dot {
        animation: none;
    }
}

/* Reduced-motion: skip all entrance animations */
@media (prefers-reduced-motion: reduce) {
    .hero-headline-line,
    .hero-kicker-shimmer,
    .hero-subtitle-reveal,
    .hero-cta-primary-reveal,
    .hero-cta-secondary-reveal,
    .hero-carousel-animated {
        animation: none;
        opacity: 1;
        transform: none;
        -webkit-text-fill-color: inherit;
        background: none;
    }
    .hero-kicker-shimmer {
        background: linear-gradient(135deg, #6259ca 0%, #0074d4 50%, #19d3c5 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero-ambient-orb { display: none; }
}

/* ── Pill badge reveal (Torch/offboarding hero) ─── */
@keyframes heroPillReveal {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-pill-reveal {
    opacity: 0;
    animation: heroPillReveal 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.4s forwards;
}

/* ── Disclaimer line below CTAs ─── */
.hero-disclaimer-reveal {
    opacity: 0;
    animation: heroSubtitleReveal 0.7s cubic-bezier(0.33, 1, 0.68, 1) 3.6s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .hero-pill-reveal,
    .hero-disclaimer-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ── Section below hero ──────────────────────────────────────────────────────
   Keeps the first content block invisible on initial render, then slides it in
   after the hero has had time to breathe.
   ──────────────────────────────────────────────────────────────────────────── */
.hero-below-reveal {
    opacity: 0;
    animation: heroEntSliderIn 0.9s cubic-bezier(0.33, 1, 0.68, 1) 1.4s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .hero-below-reveal { animation: none; opacity: 1; transform: none; }
}

/* ── Enterprise-OS hero entrance animation ───────────────────────────────────
   Each word pops in with its brand colour (purple / blue / teal) then colour-
   shifts to gray-800 — matching the easeOutBack punch from scenes.jsx.
   ──────────────────────────────────────────────────────────────────────────── */

/* Word scale + opacity — easeOutBack overshoot */
@keyframes heroEntWordIn {
    from { opacity: 0; transform: scale(0.75); }
    to   { opacity: 1; transform: scale(1); }
}

/* Colour transitions: brand → gray-800 (#252f4a) */
@keyframes heroEntWordColorPurple {
    0%   { color: #6259ca; }
    40%  { color: #6259ca; }
    100% { color: #252f4a; }
}
@keyframes heroEntWordColorBlue {
    0%   { color: #0074d4; }
    40%  { color: #0074d4; }
    100% { color: #252f4a; }
}
@keyframes heroEntWordColorTeal {
    0%   { color: #19d3c5; }
    40%  { color: #19d3c5; }
    100% { color: #252f4a; }
}

/* Slider slide-up */
@keyframes heroEntSliderIn {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-ent-word {
    display: inline-block;
    opacity: 0;
    margin-right: 0.18em;
    will-change: transform, opacity, color;
}

/* "Reveal." — purple, delay 1.1s */
.hero-ent-word-1 {
    animation:
        heroEntWordIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards,
        heroEntWordColorPurple 1.35s ease-in-out 1.1s forwards;
}
/* "Decide." — blue, delay 1.7s */
.hero-ent-word-2 {
    animation:
        heroEntWordIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards,
        heroEntWordColorBlue 1.35s ease-in-out 1.7s forwards;
}
/* "Compound." — teal, delay 2.3s */
.hero-ent-word-3 {
    animation:
        heroEntWordIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s forwards,
        heroEntWordColorTeal 1.35s ease-in-out 2.3s forwards;
}

/* Enterprise subtitle (later than landing — words take longer) */
.hero-ent-subtitle-reveal {
    opacity: 0;
    animation: heroSubtitleReveal 0.8s cubic-bezier(0.33, 1, 0.68, 1) 3.0s forwards;
}

/* Enterprise CTAs */
.hero-ent-cta-1 {
    opacity: 0;
    animation: heroCTAScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.5s forwards;
}
.hero-ent-cta-2 {
    opacity: 0;
    animation: heroCTAScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.62s forwards;
}

/* Screenshot slider and below-text */
.hero-ent-slider-reveal {
    opacity: 0;
    animation: heroEntSliderIn 0.9s cubic-bezier(0.33, 1, 0.68, 1) 1.8s forwards;
}
.hero-ent-subtext-reveal {
    opacity: 0;
    animation: heroSubtitleReveal 0.8s cubic-bezier(0.33, 1, 0.68, 1) 4.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .hero-ent-word,
    .hero-ent-cta-1,
    .hero-ent-cta-2,
    .hero-ent-slider-reveal,
    .hero-ent-subtext-reveal,
    .hero-ent-subtitle-reveal {
        animation: none;
        opacity: 1;
        transform: none;
        color: #252f4a;
    }
}