/*
Theme Name: Behaveme
Theme URI: https://behaveme.it
Description: Tema Child di Astra per Behaveme
Author: Emaze Gaming Società Benefit S.r.l.
Author URI: https://emazegaming.it
Template: astra
Version: 1.0.0
Text Domain: behaveme
*/

/* ================================
   VARIABILI BRAND
================================ */

:root {
    --behaveme-primary: #e10600;
    --behaveme-primary-dark: #b00000;
    --behaveme-bg-light: #fafafa;
    --behaveme-border: #d9d9d9;
    --behaveme-text: #222;
    --behaveme-text-muted: #777;
}

/* ================================
   UPLOAD AREA
================================ */

.tag-btn {
	font-size: 14px !important;
	background: #eee;
	border: #dedede;
	color: #000;
	padding: 5px 8xp;
}

.behaveme-upload-wrapper {
    position: relative;
    margin-bottom: 30px;
}

#cv_file {
    display: none;
}

.behaveme-upload-box {
    display: block;
    border: 2px dashed var(--behaveme-border);
    border-radius: 14px;
    padding: 60px 25px;
    text-align: center;
    cursor: pointer;
    background: var(--behaveme-bg-light);
    transition: all 0.3s ease;
}

.behaveme-upload-box:hover,
.behaveme-upload-box.dragover {
    border-color: var(--behaveme-primary);
    background: #fff5f5;
}

.behaveme-upload-box i {
    font-size: 44px;
    color: #999;
    margin-bottom: 18px;
    transition: 0.3s;
}

.behaveme-upload-box:hover i {
    color: var(--behaveme-primary);
}

.upload-main {
    font-size: 18px;
    font-weight: 600;
    color: var(--behaveme-text);
    margin-bottom: 8px;
}

.upload-main span {
    color: var(--behaveme-primary);
    text-decoration: underline;
}

.upload-sub {
    font-size: 14px;
    color: var(--behaveme-text-muted);
}

.behaveme-upload-box {
    transition: all 0.3s ease;
}

.behaveme-upload-box.file-loaded {
    border: 2px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
}

.behaveme-upload-box.file-loaded i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #22c55e;
}

.upload-main.success {
    font-weight: 600;
}

button {
	transition: .3s all !important;
}


.elementor-counter-number {
	color: #DD183B;
}
.elementor-counter-title {
	font-size: 14px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}    
.elementor-counter-number-suffix {
	margin-left: 15px;
	margin-top: 30px;
	font-size: 20px;
}

.lenus-share-print {
    display:flex;
    gap:12px;
    margin:25px 0;
}

.lenus-btn {
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-size:18px;
    transition:all 0.25s ease;
    text-decoration:none;
}

.lenus-btn.whatsapp { background:#25D366; }
.lenus-btn.facebook { background:#1877F2; }
.lenus-btn.linkedin { background:#0A66C2; }
.lenus-btn.pdf { background:#D32F2F; }

.lenus-btn:hover {
	color: #fff !important;
}

.lenus-share-print{
    display:flex;
    align-items:center;
    gap:20px;
}

.lenus-share-group{
    display:flex;
    gap:10px;
}

.lenus-btn{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#fff;
    font-size:16px;
}

.lenus-btn.whatsapp{background:#25D366;}
.lenus-btn.facebook{background:#1877F2;}
.lenus-btn.linkedin{background:#0A66C2;}

.lenus-btn-pdf{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:6px;
    background:#e63946;
    color:#fff;
    font-weight:600;
    text-decoration:none;
}

.lenus-btn-pdf i{
    font-size:16px;
}




/* ==============================
   BOX INTERESSE AZIENDA
============================== */

.cv-interest-box {
    background: #f8f9fb;
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.cv-interest-box h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.cv-interest-box p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.cv-open-modal {
    background: linear-gradient(90deg,#ff3b57,#ff5f7a);
    color: #fff;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-open-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255,59,87,0.4);
}


/* ==============================
   MODAL OVERLAY
============================== */

.cv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {opacity:0;}
    to {opacity:1;}
}


/* ==============================
   MODAL CONTENT
============================== */

.cv-modal-content {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px;
    width: 420px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from {transform: scale(0.95); opacity:0;}
    to {transform: scale(1); opacity:1;}
}

.cv-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
}


/* ==============================
   FORM STYLE
============================== */

#cv-to-business-form input[type="text"],
#cv-to-business-form input[type="email"],
#cv-to-business-form input[type="tel"],
#cv-to-business-form input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

#cv-to-business-form input:focus {
    border-color: #ff3b57;
    box-shadow: 0 0 0 3px rgba(255,59,87,0.15);
    outline: none;
    background: #fff;
}


/* ==============================
   SUBMIT BUTTON
============================== */

.cv-submit-btn {
    width: 100%;
    padding: 14px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-submit-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.cv-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ==============================
   CLOSE BUTTON
============================== */

.cv-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.cv-close:hover {
    color: #111827;
}


/* ==============================
   BODY LOCK WHEN OPEN
============================== */

body.cv-modal-open {
    overflow: hidden;
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 600px) {

    .cv-interest-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-open-modal {
        width: 100%;
    }

    .cv-modal-content {
        padding: 28px;
    }

}


.cv-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cv-counter {
    text-align: right;
}

.cv-counter strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.cv-counter span {
    font-size: 12px;
    color: #6b7280;
}










/* ================================
   PULSANTE PRINCIPALE
================================ */

.behaveme-submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

.behaveme-btn {
    background: var(--behaveme-primary);
    color: #fff;
    padding: 20px 70px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(225,6,0,0.25);
}

.behaveme-btn:hover {
    background: var(--behaveme-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(225,6,0,0.35);
}

.behaveme-btn:disabled,
.behaveme-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ================================
   STATUS
================================ */

#behaveme-status {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ================================
   OVERLAY ANALISI
================================ */

#behaveme-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 420px;
    max-width: 95%;
}

#behaveme-lead-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.check {
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

#behaveme-finalize {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#behaveme-finalize:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    cursor: pointer;
    line-height: 1.4;
}

.check input[type="checkbox"] {
    margin: 2px 0 0 0;
    width: 16px !important;
    height: 16px;
    cursor: pointer;
}


/* ================================
   KPI
================================ */

.fake-kpi,
.final-kpi {
    margin: 18px 0;
    font-size: 18px;
    font-weight: 600;
}

.kpi-bar {
    background: #eee;
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 6px;
}

.kpi-fill {
    height: 100%;
    background: var(--behaveme-primary);
    width: 0%;
    transition: width 1s ease;
}

/* ================================
   REPORT LINK
================================ */

#behaveme-report {
    margin-top: 40px;
    text-align: center;
}

#behaveme-report a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--behaveme-primary);
    text-decoration: none;
    transition: 0.3s;
}

#behaveme-report a:hover {
    text-decoration: underline;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .behaveme-upload-box {
        padding: 40px 20px;
    }

    .behaveme-btn {
        width: 100%;
        padding: 18px;
        font-size: 18px;
    }

    .overlay-content {
        padding: 35px 25px;
    }
}


.annunci-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.annuncio-card {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.annuncio-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.annuncio-title {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.annuncio-meta {
    color: #6b7280;
    font-size: 14px;
}

.annuncio-btn {
    background: #ff3b57;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}


.news-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 24px;
    transition: all 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.news-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    margin: 0 0 12px 0;
}

.news-excerpt {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 16px;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* numero righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-weight: 600;
    text-decoration: none;
    color: #111827;
}

.news-link i {
    margin-left: 6px;
    font-size: 12px;
}


.benefit-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;

    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    padding: 14px 18px;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

