/* ==========================================================================
   EVOLVIA – FRONTEND DEFINITIVO (Versione Light - No Mobile Menu CSS)
   ========================================================================== */

/* 1. RESET & PULIZIA TEMA (Nasconde elementi inutili) */
.site-title,
.entry-meta, .post-meta, .post-meta-wrapper, .meta,
.author, .byline, .posted-on, .cat-links, .tags-links, .comments-link,
#comments, .comments-area, .comment-respond, .comment-form, .comment-list {
    display: none !important;
}

/* 2. HEADER FISSO (Sticky) & STILE */
header#header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.ct-header-main {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    transition: all 0.3s ease;
}

/* 3. BOTTONE LOGIN (Icona SVG) */
.ct-header-button[data-id="button"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
}

.ct-header-button[data-id="button"]::before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v4H3v2h7v4m9 2H5a2 2 0 01-2-2V15h2v4h14V5H5v4H3V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5v4H3v2h7v4m9 2H5a2 2 0 01-2-2V15h2v4h14V5H5v4H3V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* 4. FIX SAFARI ELEMENTOR */
@supports (-webkit-hyphens:none) {
  .elementor-740 .elementor-element-118dbb1 > div > div {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
  }
  .elementor-740 .elementor-element-a8c94d1 { justify-self: start !important; }
  .elementor-740 .elementor-element-fcb82df { justify-self: end !important; }
  .elementor-740 .elementor-element-fcb82df .elementor-widget-container {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px;
  }
}

/* 5. LANGUAGE PICKER EVOLVIA */
.evolvia-buy .evolvia-lang-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.evolvia-buy .ev-lang-btn, .evolvia-buy .ev-lang-btn:link, .evolvia-buy .ev-lang-btn:visited {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: 16px !important; font-weight: 600 !important; padding: 10px 16px !important;
    border: 1px solid #d7dde5 !important; border-radius: 12px !important;
    background: #ffffff !important; color: #2a5f63 !important; text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}
.evolvia-buy .ev-lang-btn:hover { background: #f3f6f7 !important; border-color: #c7d0d8 !important; }

/* 6. WHATSAPP FLOATING BUTTON */
.evolvia-wa {
    position: fixed !important; right: 18px !important; bottom: 18px !important; z-index: 999999 !important;
    display: inline-flex !important; align-items: center !important; padding: 12px 14px !important;
    border-radius: 999px !important; background: #2a5f63 !important; color: #fff !important;
    font-weight: 600 !important; box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
    transition: transform 0.3s ease; text-decoration: none !important;
}
.evolvia-wa:hover { transform: scale(1.05); color: #fff !important; }
.evolvia-wa svg { width: 20px; height: 20px; margin-right: 10px; }

@media (max-width: 480px) {
    .evolvia-wa { padding: 12px !important; }
    .evolvia-wa span { display: none !important; }
}