/*
Theme Name: Analda Pro Suite 2026
Theme URI: https://analda.it
Description: Tema professionale completo ed esente da errori per Analda.it. Include Mega Menu responsive, Ricerca istantanea SKU, layout B2B/B2C, supporto immagini esterne, e tutti i template di pagina (Home, Shop, Prodotto Singolo, Chi Siamo, Contatti).
Author: Assistant AI
Author URI: https://analda.it
Template: hello-elementor
Version: 8.0.0
License: GNU General Public License v2 or later
Text Domain: analda-pro-suite
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --aps-primary: #1E40AF !important;       /* Royal Blue */
    --aps-primary-hover: #1E3A8A !important;
    --aps-accent: #0EA5E9 !important;        /* Vibrant Sky Blue */
    --aps-cta: #F97316 !important;           /* Energy Orange */
    --aps-cta-hover: #EA580C !important;
    --aps-dark: #0F172A !important;          /* Slate Dark */
    --aps-gray-light: #F8FAFC !important;
    --aps-border: #E2E8F0 !important;
    --aps-radius: 16px !important;
    --aps-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
}

body {
    background-color: var(--aps-gray-light) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    color: #334155 !important;
    margin: 0;
    padding: 0;
}

/* Header & Glassmorphism Nav */
.aps-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--aps-border);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.aps-topbar {
    background: var(--aps-dark);
    color: #94A3B8;
    font-size: 12px;
    padding: 8px 0;
    text-align: center;
}

.aps-nav-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.aps-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--aps-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.aps-logo span {
    color: var(--aps-primary);
}

/* Mega Menu Engine */
.aps-megamenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.aps-megamenu > li {
    position: relative;
    padding: 10px 0;
}

.aps-megamenu > li > a {
    text-decoration: none;
    color: var(--aps-dark);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
}

.aps-megamenu > li:hover > a {
    color: var(--aps-primary);
}

.aps-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: #FFFFFF;
    border-radius: var(--aps-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border: 1px solid var(--aps-border);
    padding: 24px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    z-index: 999;
}

.aps-megamenu > li:hover .aps-dropdown {
    display: grid;
}

/* Live Search Bar */
.aps-search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.aps-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--aps-border);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.aps-search-input:focus {
    border-color: var(--aps-primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.aps-search-popup {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: var(--aps-radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    z-index: 99999;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--aps-border);
}

/* Card Prodotto WooCommerce */
.woocommerce ul.products li.product, .aps-card {
    background: #FFFFFF !important;
    border-radius: var(--aps-radius) !important;
    padding: 20px !important;
    border: 1px solid var(--aps-border) !important;
    box-shadow: var(--aps-shadow) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.woocommerce ul.products li.product:hover, .aps-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.12) !important;
    border-color: var(--aps-primary) !important;
}

.woocommerce ul.products li.product img, .aps-card-img {
    width: 100% !important;
    height: 190px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--aps-dark) !important;
    margin: 12px 0 6px 0 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--aps-primary) !important;
}

/* Pulsanti CTA */
.aps-btn-cta, .woocommerce a.button.alt, .woocommerce button.button.alt {
    background: linear-gradient(135deg, var(--aps-cta) 0%, var(--aps-cta-hover) 100%) !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 800 !important;
    border: none !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
    transition: transform 0.2s ease !important;
}

.aps-btn-cta:hover {
    transform: scale(1.03) !important;
}

/* Floating WhatsApp */
.aps-float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #FFF !important;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
}
