/*
 * ConSellWeb Master Theme - Core Engine 2026
 * Percorso: assets/css/csw-core.css
 * Versione: 1.0.0 [ENQUEUE STYLE]
 * Filosofia: Zero Zavorra & Iniezione Atomica
 */

/*    1. RESET & COMPORTAMENTI GLOBALI */
html { 
    scroll-behavior: smooth; 
}

.overflow-hidden { overflow: hidden; }
.sticky { position: sticky; top: 0px; }
.z-index { z-index: 999; }

/* 2. NAVIGAZIONE (GUTENBERG NATIVO) - DINAMICA 2026 */
.wp-block-navigation__container a:hover {
    color: var(--wp--preset--color--identity) !important;
    text-decoration: none;
}

.wp-block-navigation-item__content {
    position: relative;
}

/* Effetto Underline Animato */
.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wp--preset--color--identity);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.wp-block-navigation-item__content:hover::after,
.current-menu-item .wp-block-navigation-item__content::after {
    transform: scaleX(1);
}

/* 3. PULSANTI GLOBALI (STILE MASTER CONSELLWEB 2026) */
.wp-element-button, .wp-block-button__link {
    border-radius: 13px !important; 
    font-size: 13px !important;    
    font-weight: 600;
    padding: 5px 18px !important;  
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;         
    line-height: 1;
}

.wp-element-button:not(.csw-button-outline), 
.wp-block-button__link:not(.csw-button-outline) {
    background-color: #aa0c0c !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
}

.wp-element-button:not(.csw-button-outline):hover, 
.wp-block-button__link:not(.csw-button-outline):hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-2px) !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.csw-button-outline {
    background-color: transparent !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.csw-button-outline:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 4. WIDGET UTENTE (LOGICHE ORIGINALI CONGELATE) */
.btn-login, .btn-logout {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    min-width: 0; 
}

.login-icon, .logout-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px; 
    margin-right: 8px;
}

.btn-logout span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*5. LOGO & BRANDING (ATOMIC TARGETING) */
/* Targetizzazione diretta dell'SVG sanificato per prevenire il collasso 0x0 */
/* svg[aria-label="Logo ConSellWeb"] {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    fill: currentColor;
    transition: opacity 0.3s ease;
}

svg[aria-label="Logo ConSellWeb"]:hover {
    opacity: 0.8;
} */

/*6. CODE BLOCKS & RESPONSIVE */
.csw-code-block {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    overflow-x: auto;
    margin: 20px 0;
}

.csw-code-block code {
    font-family: 'Consolas', monospace;
    font-size: 14px;
}

@media (max-width: 768px) {
    svg[aria-label="Logo ConSellWeb"] { max-width: 150px; }
}