/* ===== Nuovi Stili Coordinati per l'Automazione ===== */
body {
    background-color: #f8fafc !important; /* bg-slate-50 */
    color: #334155 !important; /* text-slate-700 */
    font-family: 'Inter', sans-serif !important;
}

/* Ripristino intestazioni */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a !important; /* text-slate-900 */
    font-weight: 800 !important;
}

/* ===== Rimodernamento Card UIkit ===== */
.uk-card-default {
    background-color: #ffffff !important;
    border-radius: 1rem !important; /* rounded-2xl */
    border: 1px solid #e2e8f0 !important; /* border-slate-200 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important; /* shadow-sm */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #475569 !important; /* text-slate-600 */
}
.uk-card-default:hover {
    transform: translateY(-2px) !important;
    border-color: #7dd3fc !important; /* border-sky-300 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; /* shadow-lg */
}
.uk-card-title {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* ===== Rimodernamento Bottoni UIkit ➔ Stile Tailwind sky-600 ===== */
.uk-button {
    border-radius: 0.75rem !important; /* rounded-xl */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    transition: all 0.2s ease-in-out !important;
    padding: 0.5rem 1.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
}

.uk-button-primary {
    background-color: #0284c7 !important; /* sky-600 */
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2), 0 2px 4px -1px rgba(2, 132, 199, 0.1) !important;
}
.uk-button-primary:hover {
    background-color: #0369a1 !important; /* sky-700 */
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3) !important;
}
.uk-button-primary:active {
    transform: translateY(1px) !important;
}

.uk-button-default {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}
.uk-button-default:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.uk-button-text {
    padding: 0 !important;
    color: #0284c7 !important;
    background: transparent !important;
    border-bottom: 2px solid #e0f2fe !important;
    border-radius: 0 !important;
    text-transform: none !important;
    font-size: 0.875rem !important;
}
.uk-button-text:hover {
    color: #0369a1 !important;
    border-bottom-color: #0284c7 !important;
}

/* ===== Breadcrumb ===== */
.uk-breadcrumb {
    padding: 0 !important;
    margin-bottom: 2rem !important;
}
.uk-breadcrumb > * > * {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}
.uk-breadcrumb > :last-child > * {
    color: #64748b !important; /* text-slate-500 */
}

/* Icone check nelle liste dei vantaggi */
.uk-list-striped span[uk-icon="icon: check"] svg, 
.uk-list-bullet span[uk-icon="icon: check"] svg {
    stroke: #10b981 !important; /* verde smeraldo Tailwind */
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* ===== AI Hero Image Rimodernata ===== */
.service-hero-image {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 1rem !important; /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; /* shadow-2xl */
    border: 1px solid #e2e8f0 !important;
}

/* ===== Rimozione Breadcrumb ===== */
.uk-breadcrumb {
    display: none !important;
}

/* ===== Hero Griglia Sfumata per i Servizi ===== */
main > .uk-section:first-of-type {
    background-color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

main > .uk-section:first-of-type::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: 
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px) !important;
    background-size: 4rem 4rem !important;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%) !important;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%) !important;
    opacity: 0.6 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

main > .uk-section:first-of-type > .uk-container {
    position: relative !important;
    z-index: 10 !important;
}

main > .uk-section:first-of-type h1.uk-heading-primary {
    font-size: 3rem !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    color: #0f172a !important;
    margin-bottom: 1.5rem !important;
}
@media (max-width: 768px) {
    main > .uk-section:first-of-type h1.uk-heading-primary {
        font-size: 2.25rem !important;
    }
}

main > .uk-section:first-of-type p.uk-text-lead {
    font-size: 1.125rem !important;
    color: #475569 !important;
    font-weight: 300 !important;
    line-height: 1.75 !important;
    max-width: 42rem !important;
}

/* ===== Bottoni CTA e Secondari ===== */
.uk-button-secondary {
    background-color: #0f172a !important; /* slate-900 */
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2), 0 2px 4px -1px rgba(15, 23, 42, 0.1) !important;
}
.uk-button-secondary:hover {
    background-color: #1e293b !important; /* slate-800 */
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3) !important;
}
.uk-button-secondary:active {
    transform: translateY(1px) !important;
}

.uk-button-large {
    padding: 0.75rem 2rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.75rem !important;
}

/* ===== Rimodernamento Icone Spunta e Success ===== */
span[uk-icon="icon: check"] svg, 
.uk-text-success, 
.uk-text-success svg {
    color: #10b981 !important;
    stroke: #10b981 !important;
}

/* ===== Rimodernamento Liste Striped ===== */
.uk-list-striped > :nth-of-type(odd) {
    background: #f8fafc !important; /* bg-slate-50 */
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.uk-list-striped > * {
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
}
