/* =================================================================== */
/* 1. VARIABILI GLOBALI E IMPOSTAZIONI DI BASE
/* =================================================================== */

:root {
    --primary-pink: #e91e63;
    --primary-pink-hover: #d81b60;
    --secondary-gray: #6c757d;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #646363; /* Unificato a #646363 come colore principale del testo */
    --text-muted: #6c757d;
    --text-light: #666;
    --primary-color: #e91e63; /* Alias per coerenza */
    --primary-hover: #d81b60; /* Alias per coerenza */
    --border-focus: var(--primary-color);
    --bg-light: #f8f9fa;
}

strong{
    color: #d4155b;
}
section {
    padding: 60px 0;
}

/* Nasconde le frecce native degli input numerici */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* =================================================================== */
/* 2. BASE TYPOGRAPHY (Titoli e Testi Coerenti)
/* =================================================================== */

/* --- TITOLI PRINCIPALI DELLE SEZIONI (H1-like) --- */
.feature-title,
.features-title,
.solutions-title,
.vantaggi-title,
.stats-main-title,
.smartphone-title,
.paperless-title,
.title,
.come-funziona-section .section-header h2, h2 {
    font-size: 2.5rem; /* ~40px */
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

/* --- TITOLI SECONDARI (H2-like) --- */
.solution-title,
.app-title,
.trust-title,
.amazon-title,
.stats-subtitle,
.feature-content h3,
.description-section h3,
.trust-header .trust-title,
.solutions-header .solutions-title,
.features-header .features-title, h3 {
    font-size: 1.8rem; /* ~29px */
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.trust-header h2{
    display: flex;
    justify-content: center;
}

.trust-header p{
    display: flex;
    justify-content: center;
}

/* --- TITOLI DELLE CARD E COMPONENTI (H3-like) --- */
.modal-title,
.card-header h3,
.pricing-card .card-title,
.calendar-header h3,
.results-title-floating,
.libemax-header h3 {
    font-size: 1.3rem; /* ~21px */
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

/* --- TESTO DESCRITTIVO (BASE RICHIESTA) --- */
.app-description,
.paperless-intro,
.paperless-text,
.solution-description,
.features-subtitle,
.company-info,
.trust-subtitle,
.testimonials-text p,
.section-subtitle,
.feature-content p,
.description-section p,
.price-description,
.paperless-intro,
.cost-display,
.stat-description,
.amazon-intro,
.amazon-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 25px;
}

.app-description li{
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 400;
    line-height: 1.6;
}

/* --- TESTO DESCRITTIVO PICCOLO (Note, Didascalie) --- */
.vat-note,
.calc-note,
.control-label,
.form-check-label,
.reload-badge,
.section-badge,
.feature-box p,
.testimonial-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- GESTIONE MOBILE PER LA TIPOGRAFIA --- */
@media (max-width: 991px) {
    .feature-title, .features-title, .solutions-title, .vantaggi-title, .stats-main-title, .smartphone-title, .paperless-title, .title, .come-funziona-section .section-header h2 {
        font-size: 2.2rem;
    }
    .solution-title, .app-title, .trust-title, .amazon-title, .stats-subtitle, .feature-content h3, .description-section h3, .trust-header .trust-title, .solutions-header .solutions-title, .features-header .features-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .feature-title, .features-title, .solutions-title, .vantaggi-title, .stats-main-title, .smartphone-title, .paperless-title, .title, .come-funziona-section .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    .solution-title, .app-title, .trust-title, .amazon-title, .stats-subtitle, .feature-content h3, .description-section h3, .trust-header .trust-title, .solutions-header .solutions-title, .features-header .features-title {
        font-size: 1.4rem;
    }
    .app-description, .paperless-intro, .paperless-text, .solution-description, .features-subtitle, .company-info, .trust-subtitle, .testimonials-text p, .section-subtitle, .feature-content p, .description-section p, .price-description, .paperless-intro, .cost-display, .stat-description, .amazon-intro, .amazon-subtitle {
        font-size: 16px;
    }
    .vat-note, .calc-note, .control-label, .form-check-label, .reload-badge, .section-badge, .feature-box p, .testimonial-text {
        font-size: 13px;
    }
}

@media (max-width: 440px) {
    .paper-mockup{
        zoom: 0.6;
    }
}

/* =================================================================== */
/* 3. STILI DEI COMPONENTI
/* =================================================================== */

.highlight-title {
    color: var(--primary-pink);
    font-weight: bold;
}

.text-center {
    text-align: center;
    justify-content: center!important;
}

.align-items-center {
    align-items: center;
}

/* Phone mockup styles */
.phone-mockup {
    position: relative;
    transform: rotate(8deg) scale(1.1);
    transition: all 0.4s ease;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.15);
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 45px;
    padding: 8px;
    position: relative;
    box-shadow:
        0 0 0 2px #333,
        0 30px 80px rgba(0,0,0,0.4),
        0 0 120px rgba(212, 21, 91, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 30px;
    background: #333;
    border-radius: 2px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 80px;
    right: -2px;
    width: 3px;
    height: 50px;
    background: #333;
    border-radius: 2px;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 37px;
    overflow: hidden;
    position: relative;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 5;
}

.time {
    color: #000;
    margin-top: 8px;
}

.status-icons {
    display: flex;
    gap: 6px;
    color: #000;
    margin-top: 8px;
}

.status-icons i {
    font-size: 12px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4155b, #e91e63);
    color: white;
    box-shadow: 0 2px 10px rgba(212, 21, 91, 0.3);
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.1);
}

.reload-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.calendar-container {
    padding: 18px;
    background: #f8f9fa;
    height: calc(100% - 120px);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header i {
    color: #666;
    font-size: 16px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.weekdays span {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 6px 0;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 0 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
    background: white;
    border-radius: 4px;
    position: relative;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 28px;
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calendar-day.has-shift {
    background: white;
    color: #333;
    font-weight: 500;
}

.day-number {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #333;
}

.shift-tag {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    min-width: 14px;
    text-align: center;
}

.shift-tag.morning { background: #4CAF50; color: white; }
.shift-tag.afternoon { background: #FF9800; color: white; }
.shift-tag.night { background: #3F51B5; color: white; }

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #333;
    border-radius: 3px;
}

.benefit-item:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateX(10px);
}

/* --- MODAL, CARD, FORM LAYOUT --- */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.calc-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.calc-card:hover {
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
    border-color: var(--primary-pink);
}

.calc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-pink);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.calc-card:hover::before {
    opacity: 1;
}

.calc-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calc-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.calc-icon img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.calc-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}

.calc-control {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-label {
    min-height: 32px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.control-group-compact {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    align-self: flex-end;
}

.control-btn-compact {
    background: none;
    border: none;
    padding: 0.4rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
}

.control-btn-compact:hover {
    background: var(--primary-pink);
    color: white;
}

.control-input-compact {
    border: none;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    padding: 0.4rem 0.25rem;
    width: 50px;
    font-size: 0.9rem;
}

.control-input-compact:focus {
    outline: none;
    background: var(--light-gray);
}

.results-floating {
    position: sticky;
    top: 1rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--primary-pink);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
}

.results-title-floating {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-pink);
}

.result-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.result-compact:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--primary-pink);
    font-size: 1.1rem;
    font-weight: 700;
}

.result-label-compact {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.result-value-compact {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-pink);
}

/* --- TABS --- */
.calc-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.25rem;
}

.calc-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.calc-tab.active {
    background: white;
    color: var(--primary-pink);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- BOTTONI --- */
.btn-pink, .pulsante-cta, .cta-button, .btn-demo {
    background: var(--primary-pink);
    border: none;
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pink:hover, .pulsante-cta:hover, .cta-button:hover, .btn-demo:hover {
    background: var(--primary-pink-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.btn-gray {
    background: var(--secondary-gray);
    border: none;
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* --- ANIMAZIONI --- */
.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
}

/* --- FORM --- */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.border-danger {
    border-color: #dc3545 !important;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-input:checked {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.form-check-label {
    margin-bottom: 0;
}

.input-group .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-dark);
    background: var(--light-gray);
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.input-group .btn-outline-secondary:hover {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
}

.input-group .form-control {
    border-left: none;
    border-right: none;
    background: white;
    font-weight: 600;
}

.input-group .form-control:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

/* --- CARD CALCOLATORE PREVENTIVO --- */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    color: #d4155b;
    font-size: 24px;
}

.input-section {
    margin-bottom: 25px;
}

.input-section label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
}

.counter-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.counter-input button {
    width: 45px;
    height: 45px;
    border: 2px solid #d4155b;
    background: white;
    color: #d4155b;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s;
}

.counter-input button:hover {
    background: #d4155b;
    color: white;
}

.counter-input span {
    font-size: 28px;
    font-weight: bold;
    color: #d4155b;
    min-width: 60px;
    text-align: center;
}

.calculation-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

#preventivo_calculator .calc-line {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.calc-line strong {
    color: #d4155b;
    font-size: 20px;
}

.calc-note { font-style: italic; margin-bottom: 0; }

.card-footer {
    text-align: center;
}

.price-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #d4155b, #ff6b9d);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
}

.price-label { font-size: 16px; }
.price-amount { font-size: 24px; font-weight: bold; }

/* --- SIMPLE FORM --- */
.simple-form {
    background: rgba(248, 249, 250, 0.8);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-minus, .btn-plus {
    width: 35px;
    height: 35px;
    border: 2px solid #d4155b;
    background: white;
    color: #d4155b;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-minus:hover, .btn-plus:hover {
    background: #d4155b;
    color: white;
}

#simple-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.cost-display {
    margin-bottom: 0;
}

.cost-display span:nth-child(2) {
    color: #d4155b;
    font-size: 22px;
    font-weight: bold;
    margin: 0 5px;
}

/* --- SEZIONE CONTATTI --- */
.contact-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.contact-section::before, .contact-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.contact-section::before { opacity: 0.3; }

.background-roads {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}

#background-map {
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.leaflet-control-container { display: none !important; }
#background-map .leaflet-container { cursor: default !important; }

.vignette-link {
    margin-top: 85px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.bg-road {
    position: absolute;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 2px;
}
.bg-road-1 { width: 300px; height: 4px; top: 15%; left: 5%; transform: rotate(25deg); }
.bg-road-2 { width: 250px; height: 3px; top: 35%; right: 10%; transform: rotate(-20deg); }
.bg-road-3 { width: 200px; height: 3px; bottom: 25%; left: 20%; transform: rotate(45deg); }
.bg-road-4 { width: 280px; height: 4px; top: 55%; left: 15%; transform: rotate(-10deg); }
.bg-road-5 { width: 180px; height: 3px; bottom: 15%; right: 25%; transform: rotate(30deg); }
.bg-road-6 { width: 220px; height: 3px; top: 75%; right: 5%; transform: rotate(-45deg); }

.bg-street-name {
    position: absolute;
    font-size: 11px;
    color: rgba(233, 30, 99, 0.15);
    transform: rotate(var(--rotation));
    white-space: nowrap;
    font-weight: 500;
}
.bg-street-1 { --rotation: 25deg; top: 13%; left: 8%; }
.bg-street-2 { --rotation: -20deg; top: 33%; right: 12%; }
.bg-street-3 { --rotation: -10deg; top: 53%; left: 18%; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.company-info {
    margin: 0 auto;
    max-width: 800px;
}

.company-info strong {
    color: var(--primary-color);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.vignette-container {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid white;
    width: 100%;
}

.vignette-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 22px;
    overflow: hidden;
    opacity: 0.1;
}

.vignette-road {
    position: absolute;
    background: #666;
    border-radius: 2px;
}
.vignette-road-1 { width: 120px; height: 3px; top: 30%; left: 20%; transform: rotate(25deg); }
.vignette-road-2 { width: 100px; height: 2px; top: 50%; right: 25%; transform: rotate(-15deg); }
.vignette-road-3 { width: 80px; height: 2px; bottom: 35%; left: 35%; transform: rotate(60deg); }

.vignette-link:hover .vignette-marker {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 5px rgba(233, 30, 99, 0.25),
        0 25px 50px rgba(0,0,0,0.2);
}

.vignette-link:hover .vignette-icon {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.vignette-marker {
    position: relative;
    background: white;
    width: 180px;
    height: 200px;
    border-radius: 50px 50px 50px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow:
        0 0 0 5px rgba(233, 30, 99, 0.15),
        0 20px 40px rgba(0,0,0,0.15);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
    padding: 30px 20px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vignette-marker::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 22px solid #d81b60;
}

.vignette-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 15;
    transition: all 0.3s ease;
}

.vignette-text {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    padding: 0 10px;
    margin-top: 15px;
}

.vignette-text .company-name {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.vignette-text .address-line {
    margin-bottom: 4px;
    font-size: 12px;
}

.vignette-text .contact-line {
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: 700;
}

.contact-form_c {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.input-group-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-floating {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background: white;
    transition: all 0.3s ease;
    color: var(--text-dark);
    min-height: 60px;
}

.input-floating:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.label-floating {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 0.5rem;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-floating:focus ~ .label-floating,
.input-floating:not(:placeholder-shown) ~ .label-floating {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--border-focus);
    font-weight: 600;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.input-floating.textarea {
    height: 100px;
    resize: vertical;
}

.label-icon {
    max-height: 14px;
    width: auto;
}

.form-check {
    margin-bottom: 1rem;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.pulsante-cta {
    text-transform: uppercase;
    min-width: 120px;
}

.pulsante-cta:active {
    transform: translateY(0);
}

.errorHandler {
    border-radius: 8px;
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}


/* --- MOCKUP CALCOLATRICE --- */
.calculator-container {
    position: relative;
    transform: rotate(-5deg) scale(1.1);
    transition: transform 0.4s ease;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
}

.calculator-container:hover {
    transform: rotate(0deg) scale(1.15);
}

.calculator-mockup {
    width: 280px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 0 3px #34495e,
        0 20px 60px rgba(0,0,0,0.3),
        0 0 100px rgba(212, 21, 91, 0.2);
}

.calc-screen {
    background: #1a252f;
    border-radius: 10px;
    padding: 20px 15px;
    margin-bottom: 20px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-display {
    color: #00ff88;
    font-family: 'Courier New', monospace;
}

.calc-line {
    font-size: 12px;
    margin-bottom: 8px;
    color: #7ed321;
}

.calc-number { color: white; font-weight: bold; }
.calc-divider { height: 1px; background: #444; margin: 15px 0 10px 0; }
.calc-result { font-size: 13px; margin-bottom: 5px; color: #ffa500; }
.calc-result-big { font-size: 14px; font-weight: bold; }
.calc-highlight { color: #d4155b; font-weight: bold; }
.calc-highlight-big { color: #d4155b; font-size: 16px; font-weight: bold; text-shadow: 0 0 10px rgba(212, 21, 91, 0.5); }

.calc-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-button-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-button {
    background: #ecf0f1;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.calc-button:hover { background: #bdc3c7; transform: scale(0.95); }
.calc-button:active { background: #95a5a6; transform: scale(0.9); }
.calc-button.operation { background: #3498db; color: white; }
.calc-button.operation:hover { background: #2980b9; }
.calc-button.equals { background: #d4155b; color: white; }
.calc-button.equals:hover { background: #c1134f; }
.calc-button.wide { grid-column: span 2; }
.calc-button.active { background: #d4155b !important; color: white !important; transform: scale(0.9); }

/* --- EXCEL MOCKUP --- */
.excel-mockup {
    transform: rotate(-3deg);
    transition: transform 0.4s ease;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.2));
}

.excel-mockup:hover {
    transform: rotate(0deg);
}

.excel-window {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
    border: 1px solid #d0d0d0;
}

.excel-header {
    background: #f0f0f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #d0d0d0;
}

.window-controls {
    display: flex;
    gap: 5px;
}

.window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.excel-title {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.excel-ribbon {
    background: #f8f9fa;
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.ribbon-tab {
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
}

.ribbon-tab.active {
    background: white;
    color: #333;
    font-weight: 500;
}

.excel-content {
    position: relative;
    background: white;
    min-height: 250px;
}

.excel-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.excel-row { display: table-row; }
.excel-cell {
    display: table-cell;
    padding: 8px;
    border: 1px solid #e0e0e0;
    font-size: 11px;
    text-align: center;
    background: white;
    position: relative;
}

.header-row .excel-cell {
    background: #f8f9fa;
    font-weight: bold;
    color: #666;
}

.excel-cell.error {
    background: #ffebee;
    color: #c62828;
    font-weight: bold;
    animation: errorBlink 2s infinite;
}

.excel-cell.unclear {
    background: #fff3e0;
    color: #ef6c00;
    font-style: italic;
}

.chaos-indicators {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.error-popup {
    position: absolute;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: popupFloat 3s infinite alternate;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

@keyframes errorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

@keyframes popupFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}


/* --- SEZIONE EASY ASSIGN --- */
.easy-assign-section { padding: 100px 0; }
.feature-steps { margin-bottom: 40px; }

.feature-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.feature-step:hover {
    background: rgba(233, 30, 99, 0.05);
    padding-left: 10px;
}

.step-number {
    color: #e91e63;
    font-size: 1.3rem;
    font-weight: bold;
    width: 30px;
    flex-shrink: 0;
}

.step-text {
    color: #333;
    font-size: 1.1rem;
    margin-left: 15px;
}

.btn-demo {
    border-radius: 25px;
}

.interface-demo {
    position: relative;
    padding: 20px;
}

.demo-window {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s;
    max-width: 520px;
    margin: 0 auto;
}

.demo-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.animated-cursor {
    position: absolute;
    z-index: 100;
    pointer-events: none;
    transition: all 1s ease-in-out;
}

.cursor-pointer {
    font-size: 20px;
    color: #e91e63;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.demo-window.no-interaction { pointer-events: none; user-select: none; }
.empty-select.hover-simulated { background: #e8e8e8 !important; border-color: #bbb !important; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.dropdown-options .option.hover-simulated { background: #f0f0f0 !important; transform: translateX(2px); }
.btn-insert.hover-simulated { background: #1976d2 !important; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3); }

.demo-title-plain {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 15px;
    text-align: left;
}

.demo-body { padding: 15px; }
.form-group-demo { margin-bottom: 20px; }
.form-group-demo label {
    display: block;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}
.form-group-demo input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
    font-size: 16px;
    min-height: 40px;
    font-weight: normal;
}
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}
.day-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
    min-height: 60px;
}
.day-header {
    font-weight: normal;
    color: #999;
    font-size: 12px;
    margin-bottom: 6px;
    text-align: center;
    padding: 3px;
}
.time-slots { display: flex; flex-direction: column; gap: 1px; }
.time-slot {
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: normal;
    margin-bottom: 1px;
    line-height: 1.2;
}

.day-select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
    font-size: 10px;
    color: #666;
}
.empty-select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f9fa;
    font-size: 10px;
    color: #999;
    text-align: center;
    cursor: pointer;
}
.empty-select.clickable { background: white; color: #333; text-align: left; }
.day-select-wrapper { position: relative; }
.dropdown-options {
    position: absolute;
    top: 25px;
    left: 0; right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
}
.dropdown-options.visible { display: block; }
.dropdown-options .option {
    padding: 3px 6px;
    font-size: 8px;
    cursor: pointer;
    transition: background 0.2s;
    background: white;
    color: #333;
}
.dropdown-options .option:hover { background: #f0f0f0; }
.dropdown-options .option.selected { background: #2196f3; color: white; }
.demo-actions { text-align: center; }
.btn-insert {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-insert:hover { background: #1976d2; }

/* --- SEZIONE CONFRONTO --- */
.comparison-container {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}
.screen-half {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}
.screen-header {
    background: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.screen-content { flex: 1; overflow: hidden; position: relative; }
.excel-screen { border: 2px solid #ddd; }
.excel-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 50%;
    height: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23217346' d='M156 208h92a12 12 0 0 0 12-12V60a12 12 0 0 0-12-12h-92v160z'/%3E%3Cpath fill='%23107C41' d='M60 208h96V48H60a12 12 0 0 0-12 12v136a12 12 0 0 0 12 12z'/%3E%3Cpath fill='%23FFFFFF' d='M88 128l24-32h-16l-16 21.33L64 96H48l24 32-24 32h16l16-21.33L96 160h16l-24-32z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.20;
    z-index: 1;
    pointer-events: none;
}

.chaos-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.chaos-item {
    position: absolute;
    font-size: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #333;
    padding: 3px 6px;
    border-radius: 10px;
    animation: chaosFloat 3s infinite alternate;
}

.libemax-screen { border: 2px solid #d4155b; }
.libemax-content { background: #f8f9fa; padding: 12px; }
.header-buttons { display: flex; gap: 8px; }
.btn-add, .btn-bulk {
    background: #1abc9c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
}
.filters-section { display: flex; gap: 10px; margin-bottom: 12px; }
.filter-group { flex: 1; }
.filter-group label {
    display: block;
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
}
.filter-select {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 9px;
    background: white;
    color: #999;
}
.calendar-navigation { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nav-btn { background: none; border: none; font-size: 14px; color: #666; cursor: pointer; padding: 4px 8px; }
.month-title { font-size: 12px; color: #999; }
.view-toggles { display: flex; gap: 2px; }
.toggle-btn { background: #6c757d; color: white; border: none; padding: 3px 8px; font-size: 9px; cursor: pointer; }
.toggle-btn.active { background: #495057; }
.schedule-table { background: white; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.table-header { display: grid; grid-template-columns: 2fr repeat(7, 1fr); background: #f8f9fa; border-bottom: 1px solid #ddd; }
.employee-col, .day-col { padding: 6px 4px; font-size: 9px; font-weight: 500; color: #666; text-align: center; border-right: 1px solid #e9ecef; }
.employee-col { text-align: left; color: #333; }
.day-col.weekend { background: #e3f2fd; color: #1976d2; }
.employee-rows { max-height: 120px; overflow-y: auto; }
.employee-row { display: grid; grid-template-columns: 2fr repeat(7, 1fr); border-bottom: 1px solid #f0f0f0; }
.employee-row:nth-child(even) { background: #fafafa; }
.employee-name { padding: 8px 4px; font-size: 9px; color: #333; border-right: 1px solid #e9ecef; }
.shift-cell { padding: 8px 4px; border-right: 1px solid #e9ecef; text-align: center; font-size: 8px; font-weight: bold; color: white; cursor: pointer; transition: all 0.2s; }
.shift-cell.has-shift.morning { background: #4CAF50; }
.shift-cell.has-shift.afternoon { background: #FF9800; }
.shift-cell.has-shift.night { background: #3F51B5; }

.screen-label {
    text-align: center;
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.excel-label { background: rgba(255, 193, 7, 0.2); color: #856404; border-bottom: 3px solid #856404; }
.libemax-label { background: rgba(212, 21, 91, 0.2); color: #d4155b; border-bottom: 3px solid #d4155b; }
.excel-label::before { content: "😤 "; font-size: 22px; vertical-align: middle; }
.libemax-label::before { content: "😊 "; font-size: 22px; vertical-align: middle; }

.vs { display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: center; z-index: 10; font-size: 24px; font-weight: bold; color: #d4155b; letter-spacing: 2px; }
.arrow-content { display: none; }
.vs-text { font-size: 12px; font-weight: bold; color: #666; }
.arrow-content i { color: #d4155b; font-size: 16px; }

.results-banner { text-align: center; }
.time-saved {
    background: linear-gradient(135deg, #d4155b, #ff6b9d);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(212, 21, 91, 0.3);
}
.saved-number { font-size: 32px; font-weight: bold; margin-right: 10px; }
.saved-text { font-size: 16px; }

.comparison-points { background: rgba(255,255,255,0.7); padding: 25px; border-radius: 15px; margin-bottom: 30px; }
.point-item { display: flex; justify-content: space-between; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e9ecef; }
.point-before, .point-after { text-align: center; flex: 1; }
.point-label { display: block; font-size: 14px; color: #666; margin-bottom: 8px; }
.point-value { display: block; font-size: 24px; font-weight: bold; }
.point-before .point-value { color: #666; }
.point-after .point-value { color: #d4155b; }
.why-faster ul { padding-left: 20px; margin: 0; }
.why-faster li { margin-bottom: 8px; }

@keyframes chaosFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(2deg); }
}

/* --- SEZIONE PREZZI --- */
.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    position: relative;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}
.pricing-card:hover { border-color: #d4155b; transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.price-section { margin-bottom: 20px; }
.price { font-size: 36px; color: #d4155b; font-weight: bold; display: block; margin-bottom: 5px; }
.period { font-size: 18px; color: var(--text-dark); }
.features { margin-bottom: 30px; padding: 20px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.feature-item { font-size: 16px; color: var(--text-dark); line-height: 1.5; }
.cta-button { margin-bottom: 20px; border-radius: 25px; }
.description-section { max-width: 800px; margin: 0 auto; text-align: left; background: rgba(248, 249, 250, 0.5); padding: 40px; border-radius: 15px; }

/* --- SEZIONE RICERCA E TABS --- */
.search-section { padding: 20px 30px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.search-container { position: relative; }
.search-box {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.search-box:focus { outline: none; border-color: #d4155b; }
.search-results-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(212, 21, 91, 0.1), rgba(255, 107, 157, 0.05));
    border: 1px solid rgba(212, 21, 91, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: #d4155b;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}
#resultsText { flex: 1; }
.clear-search-btn {
    background: #d4155b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.clear-search-btn:hover { background: #ff6b9d; transform: scale(1.1); }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabs-nav {
    width: 100%;
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
    justify-content: center;
}
.tab-btn {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover { background: rgba(212, 21, 91, 0.05); color: #d4155b; }
.tab-btn.active { color: #d4155b; border-bottom-color: #d4155b; background: white; }
.tab-btn.has-match { background: linear-gradient(90deg, rgba(212, 21, 91, 0.15), rgba(255, 107, 157, 0.1)); color: #d4155b !important; border-bottom-color: #d4155b !important; box-shadow: 0 2px 8px rgba(212, 21, 91, 0.2); }
.tab-content { padding: 30px; min-height: 400px; }
.compact-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.compact-feature {
    background: #fdfdfd;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    padding: 20px 0px 0px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.compact-feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(253, 253, 253, 0.95), rgba(248, 249, 250, 0.9)); z-index: 1; }
.compact-feature > * { position: relative; z-index: 2; }
.compact-feature:hover { border-color: #d4155b; box-shadow: 0 5px 20px rgba(212, 21, 91, 0.1); transform: translateY(-2px); }
.compact-feature:hover::before { background: linear-gradient(135deg, rgba(253, 253, 253, 0.92), rgba(248, 249, 250, 0.85)); }
.compact-feature.match-found { border-color: #d4155b !important; box-shadow: 0 0 20px rgba(212, 21, 91, 0.2) !important; transform: translateY(-3px) !important; opacity: 0.5; }
.compact-feature.match-found::before { background: linear-gradient(135deg, rgba(212, 21, 91, 0.05), rgba(255, 107, 157, 0.03)) !important; }
.feature-title_prezzi { font-weight: 600; color: #212529; margin-bottom: 10px; font-size: 15px; line-height: 1.4; padding-right: 25px; }
.feature-price_prezzi { color: #d4155b; font-weight: 600; font-size: 14px; display: inline-block; width: fit-content; background: rgba(212, 21, 91, 0.1); padding: 6px 12px; border-radius: 15px; margin-bottom: 20px; }
.feature-price_prezzi a { color: #d4155b; font-weight: 600; font-size: 14px!important; }
.feature-info_prezzi { margin-top: auto; display: flex; justify-content: flex-end; width: 100%; margin-right: 0; margin-bottom: 0; }
.info-link { background: #d4155b; color: white; padding: 4px 8px; border-radius: 12px 0px 0px 0px; text-decoration: none; font-size: 11px; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(212, 21, 91, 0.3); }
.info-link:hover { background: #ff6b9d; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212, 21, 91, 0.4); }
.highlight-text { background: linear-gradient(120deg, #d4155b, #ff6b9d); color: white; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* --- SEZIONE PAPERLESS --- */
.paper-mockup { position: relative; display: flex; justify-content: center; align-items: center; padding: 40px; }
.paper-stack { position: relative; width: 400px; height: 350px; transform: perspective(1000px) rotateX(12deg) rotateY(-8deg); transition: transform 0.4s ease; }
.paper-stack:hover { transform: perspective(1000px) rotateX(8deg) rotateY(-4deg) scale(1.05); }
.paper-doc { position: absolute; width: 200px; height: 250px; background: white; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); padding: 20px; border: 1px solid #e0e0e0; transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.paper-doc::before { content: ''; position: absolute; top: 0; right: 0; width: 25px; height: 25px; background: #f5f5f5; clip-path: polygon(0 0, 100% 0, 0 100%); }
.doc-1 { transform: rotate(-12deg) translateY(-20px); left: 40px; background: linear-gradient(145deg, #fff, #fafafa); }
.doc-2 { transform: rotate(8deg) translateY(-5px); left: 120px; background: linear-gradient(145deg, #fff, #f8f8f8); }
.doc-3 { transform: rotate(-6deg) translateY(15px); left: 20px; background: linear-gradient(145deg, #fff, #f5f5f5); }
.doc-4 { transform: rotate(10deg) translateY(25px); left: 140px; background: linear-gradient(145deg, #fff, #f9f9f9); }
.doc-5 { transform: rotate(-8deg) translateY(40px); left: 60px; background: linear-gradient(145deg, #fff, #f6f6f6); }
.doc-6 { transform: rotate(12deg) translateY(50px); left: 100px; background: linear-gradient(145deg, #fff, #f3f3f3); }
.animated-doc { transition: all 0.6s ease-in-out; }
.paper-stack:hover .animated-doc { animation-play-state: paused; }
.doc-title, .doc-icon { transition: all 0.3s ease-in-out; }
.paper-stack.compacting .doc-1, .paper-stack.compacting .doc-2, .paper-stack.compacting .doc-3, .paper-stack.compacting .doc-4, .paper-stack.compacting .doc-5, .paper-stack.compacting .doc-6 { transform: rotate(0deg) translateY(var(--compact-y)) translateX(80px); }
.paper-stack.compacting .doc-1 { --compact-y: 0px; }
.paper-stack.compacting .doc-2 { --compact-y: 3px; }
.paper-stack.compacting .doc-3 { --compact-y: 6px; }
.paper-stack.compacting .doc-4 { --compact-y: 9px; }
.paper-stack.compacting .doc-5 { --compact-y: 12px; }
.paper-stack.compacting .doc-6 { --compact-y: 15px; }
.paper-stack.sliding .doc-1, .paper-stack.sliding .doc-2, .paper-stack.sliding .doc-3, .paper-stack.sliding .doc-4, .paper-stack.sliding .doc-5, .paper-stack.sliding .doc-6 { transform: rotate(var(--slide-rotate)) translateY(var(--slide-y)) translateX(var(--slide-x)); }
.paper-stack.sliding .doc-1 { --slide-rotate: 12deg; --slide-y: 55px; --slide-x: 100px; }
.paper-stack.sliding .doc-2 { --slide-rotate: -12deg; --slide-y: -20px; --slide-x: 40px; }
.paper-stack.sliding .doc-3 { --slide-rotate: -1deg; --slide-y: 5px; --slide-x: 80px; }
.paper-stack.sliding .doc-4 { --slide-rotate: 0deg; --slide-y: 10px; --slide-x: 80px; }
.paper-stack.sliding .doc-5 { --slide-rotate: 1deg; --slide-y: 15px; --slide-x: 80px; }
.paper-stack.sliding .doc-6 { --slide-rotate: 2deg; --slide-y: 20px; --slide-x: 80px; }
.doc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: #d4155b; font-size: 12px; font-weight: 600; }
.doc-lines { display: flex; flex-direction: column; gap: 8px; }
.doc-line { height: 3px; background: #ddd; border-radius: 2px; }
.doc-line:nth-child(1) { width: 90%; } .doc-line:nth-child(2) { width: 75%; } .doc-line:nth-child(3) { width: 85%; } .doc-line:nth-child(4) { width: 60%; }
.problem-tag { position: absolute; background: #ff4757; color: white; padding: 5px 12px; border-radius: 15px; font-size: 11px; font-weight: 600; animation: problemFloat 3s infinite alternate; z-index: 10; }
.problem-1 { top: -20px; right: 50px; animation-delay: 0s; }
.problem-2 { top: 20px; left: -30px; animation-delay: 1.5s; }
.problem-3 { bottom: -10px; right: 20px; animation-delay: 3s; }
@keyframes problemFloat {
    0% { transform: translateY(0px) rotate(-1deg); opacity: 0.9; }
    100% { transform: translateY(-10px) rotate(1deg); opacity: 1; }
}
.brand-name-paperless { color: #d4155b; font-weight: 600; }
.paperless-text strong { color: #d4155b; }
.benefits-compact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 30px 0; }
.benefit-compact { background: rgba(212, 21, 91, 0.05); padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease; }
.benefit-compact:hover { background: rgba(212, 21, 91, 0.1); transform: translateX(5px); }
.benefit-compact i { color: #d4155b; font-size: 18px; width: 25px; }
.benefit-compact span { font-size: 14px; color: #333; font-weight: 500; }

/* --- SEZIONE FUNZIONALITÀ --- */
.features-header, .solutions-header, .stats-header, .vantaggi-header, .smartphone-header { text-align: center; margin-bottom: 80px; }
.features-subtitle strong, .solution-description strong, .app-description strong { font-weight: 600; }
.features-container { position: relative; height: 700px; max-width: 1000px; margin: 0 auto; }
.phone-wrapper { position: absolute; left: 50px; top: 50px; z-index: 10; }
.phone-image { width: auto; max-width: 300px; object-fit: contain; filter: drop-shadow(0 15px 40px rgba(0,0,0,0.3)); transition: transform 0.3s ease; }
.phone-image:hover { transform: scale(1.05); }
.feature-box { position: absolute; background: white; border-radius: 12px; padding: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); max-width: 280px; min-width: 220px; }
.feature-ferie { top: 80px; left: 35%; }
.feature-nota { top: 80px; right: 20px; }
.feature-gps { top: 200px; left: 50%; zoom: 1.2; }
.feature-qr { bottom: 160px; left: 35%; }
.feature-turni { bottom: 160px; right: 20px; }
.feature-icon-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feature-icon-header i { font-size: 20px; }
.feature-icon-header h3 { font-size: 16px; font-weight: 600; color: #333; margin: 0; }
.feature-box p { margin: 0; }
.icon-heart { color: #e91e63; } .icon-euro { color: #FF9800; } .icon-location { color: #f44336; } .icon-qr { color: #9C27B0; } .icon-calendar { color: #2196F3; }

/* --- SEZIONE TRUST --- */
.badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: center; justify-items: center; max-width: 900px; margin: 0 auto; }
.badge-link { display: flex; align-items: center; justify-content: center; padding: 15px; border-radius: 12px; transition: all 0.3s ease; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-decoration: none; width: 100%; min-height: 80px; }
.badge-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); background: #fff; }
.badge-image { max-width: 130px; max-height: 80px; width: auto; height: auto; object-fit: contain; opacity: 0.8; transition: opacity 0.3s ease; }
.badge-link:hover .badge-image { opacity: 1; }
.div-pulsante-cta { display: flex; justify-content: center; }

/* --- SEZIONE SOLUZIONI E APP --- */
.solution-item, .app-item { margin-bottom: 100px; }
.solution-item:last-child, .app-item:last-child { margin-bottom: 0; }
.solution-row, .app-row { align-items: center; margin: 0 -15px; }
.solution-content, .app-content { padding: 0 30px; }
.solution-title .highlight-title { color: #d4155b; }
.solution-image, .app-image { text-align: center; padding: 0 20px; }
.solution-img, .app-img { max-width: 100%; height: auto; }
.app-link { display: inline-flex; align-items: center; gap: 10px; color: #d4155b; font-weight: 600; font-size: 18px; text-decoration: none; transition: all 0.3s ease; padding: 10px 15px; border-radius: 10px; border: 2px solid transparent; }
.app-link:hover { color: #b8134f; background: rgba(212, 21, 91, 0.05); border-color: rgba(212, 21, 91, 0.2); transform: translateX(5px); }
.link-icon { max-height: 22px; width: auto; transition: transform 0.3s ease; }
.app-link:hover .link-icon { transform: scale(1.1); }
.app-img { max-height: 280px; object-fit: contain; transition: transform 0.3s ease; }
.app-img:hover { transform: scale(1.05); }

/* --- SEZIONE VANTAGGI E TESTIMONIANZE --- */
.section-badge { display: inline-block; background: rgba(212, 21, 91, 0.1); color: #d4155b; padding: 8px 20px; border-radius: 25px; margin-bottom: 20px; letter-spacing: 0.5px; }
.vantaggi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; max-width: 900px; margin: 0 auto; }
.vantaggi-item { text-align: center; position: relative; }
.vantaggi-icon { width: 150px; height: 150px; margin: 0 auto 30px auto; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; }
.vantaggi-icon img { width: 100px; height: auto; }
.vantaggi-item h3 { color: var(--text-dark); font-size: 1.2rem; font-weight: 600; margin: 0; line-height: 1.3; }
.testimonials-intro { text-align: center; margin: 80px 0 40px 0; }
.testimonials-container { margin: 0 auto; }
.testimonials-bg { padding: 60px 40px; position: relative; overflow: hidden; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.testimonial-bubble { background: white; padding: 20px; border-radius: 15px; position: relative; box-shadow: 0 8px 25px rgba(0,0,0,0.15); animation: float 4s ease-in-out infinite; }
.testimonial-1 { transform: rotate(-2deg); }
.testimonial-2 { transform: rotate(1deg); margin-top: 30px; animation-delay: 1s; }
.testimonial-3 { transform: rotate(1deg); margin-top: -20px; animation-delay: 2s; }
.testimonial-4 { transform: rotate(-1deg); margin-top: 20px; animation-delay: 3s; }
.testimonial-bubble:hover { animation-play-state: paused; transform: translateY(-15px) rotate(0deg) scale(1.08) !important; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 10; box-shadow: 0 20px 50px rgba(212, 21, 91, 0.2); }
.testimonial-stars { color: #ffc107; font-size: 14px; margin-bottom: 8px; }
.testimonial-name { color: #d4155b; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

/* --- SEZIONE STATS --- */
/* .stats-row { margin-bottom: 80px; } */
.stat-item { text-align: center; padding: 20px; margin-bottom: 30px; }
.stat-icon { margin-bottom: 20px; }
.stat-image { max-width: 120px; max-height: 120px; width: auto; height: auto; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.amazon-section { text-align: center; padding: 40px 0; }

/* --- SEZIONE COME FUNZIONA --- */
.come-funziona-section { padding: 80px 0; }
.main-video-container { text-align: center; margin-bottom: 80px; }
.video-thumbnail { position: relative; display: inline-block; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transition: all 0.3s ease; cursor: pointer; }
.video-thumbnail:hover { transform: translateY(-5px); box-shadow: 0 30px 80px rgba(0,0,0,0.2); }
.video-thumbnail img { width: 100%; max-width: 700px; height: auto; display: block; }
.features-container { max-width: 1200px; margin: 0 auto; }
.feature-section { margin-bottom: 100px; }
.feature-section:last-child { margin-bottom: 0; }
.feature-content a { color: #e91e63; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.feature-content a:hover { color: #d81b60; }
.feature-video { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; padding: 0 20px; }
.feature-video:hover { transform: scale(1.02); }
.feature-video img { width: 100%; height: auto; display: block; }

/* =================================================================== */
/* 4. SEZIONI RESPONSIVE
/* =================================================================== */
@media (max-width: 1200px) {
    .features-container {
        height: auto;
        position: static;
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 60px;
        align-items: start;
    }
    .phone-wrapper {
        position: static;
        justify-self: center;
        align-self: start;
        padding-top: 20px;
    }
    .feature-box {
        position: static;
        transform: none;
        margin-bottom: 25px;
        max-width: 350px;
    }
    .features-list { display: flex; flex-direction: column; gap: 25px; }
    .feature-gps { zoom: 1.0; }
}

@media (max-width: 991px) {
    .phone-mockup { transform: rotate(0deg) scale(0.9); margin-bottom: 40px; }
    .phone-mockup:hover { transform: rotate(0deg) scale(0.95); }
    .feature-content, .calculator-container, .excel-comparison { text-align: center; transform: none; margin-bottom: 40px; }
    .calculator-container:hover { transform: none; }
    .excel-comparison { flex-direction: column; gap: 20px; }
    .excel-problems { border-right: none; border-bottom: 2px solid #f0f0f0; padding-right: 0; padding-bottom: 20px; }
    .libemax-solution { padding-left: 0; padding-top: 20px; }
    .vs-separator { flex-direction: row; }
    .comparison-container { transform: none; flex-direction: column; }
    .vs-arrow { transform: rotate(90deg); margin: 20px 0; }
    .point-item { flex-direction: column; gap: 15px; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .solution-content, .app-content {margin-bottom: 30px; }
    .app-content {text-align: center;}
    .solution-item, .app-item { margin-bottom: 70px; }
    .vantaggi-grid { grid-template-columns: 1fr; gap: 60px; max-width: 400px; }
    .testimonials-bg { padding: 40px 20px; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 15px; }
    .testimonial-2, .testimonial-3, .testimonial-4 { margin-top: 0; }
    .come-funziona-section { padding: 60px 0; }
    .feature-section { margin-bottom: 50px; }
    .feature-content { padding: 0 15px; }
    .feature-video { padding: 0 15px; }
}

@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .modal-dialog { margin: 0.5rem; }
    .results-floating { margin-top: 1rem; position: static; }
    .main-content { grid-template-columns: 1fr; gap: 40px; display: flex; flex-direction: column; }
    .contact-form_c { order: 1; padding: 30px 20px; width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; }
    .vignette-link { order: 2; margin-top: 20px; margin-bottom: 100px; align-self: center; width: auto; }
    .vignette-container { max-width: 90%; padding: 30px 20px; }
    .input-floating { padding: 1rem 0.75rem 0.5rem; min-height: 55px; width: 100%; box-sizing: border-box; }
    .contact-section .background-roads { display: block !important; }
    .vignette-link::before { display: none !important; }
    #background-map { display: block !important; opacity: 0.7; }
    .search-results-counter { font-size: 13px; padding: 6px 12px; }
    .clear-search-btn { width: 20px; height: 20px; font-size: 10px; }
    .tab-content { padding: 20px 15px; }
    .compact-features { grid-template-columns: 1fr; gap: 15px; }
    .tabs-nav { flex-direction: column; }
    .tab-btn { border-bottom: none; border-left: 3px solid transparent; }
    .tab-btn.active { border-left-color: #d4155b; border-bottom-color: transparent; }
    .tab-btn.has-match { border-left-color: #d4155b !important; border-bottom-color: transparent !important; }
    .features-container { grid-template-columns: 1fr; gap: 30px; }
    .phone-wrapper { order: 1; display: none; }
    .feature-box { max-width: 300px; margin: 0 auto 20px auto; }
}

@media (max-width: 576px) {
    .phone-frame { width: 240px !important; height: 480px !important; }
    .calendar-day { font-size: 11px; min-height: 28px; }
    .weekdays span { font-size: 9px; padding: 6px 2px; }
    .benefit-item { padding: 12px !important; }
    .benefit-item > div:last-child { font-size: 14px !important; }
    .calculator-card { padding: 20px; max-width: 350px; }
    .counter-input span { font-size: 24px; }
    .simple-form { padding: 20px; }
    .calculator-mockup { width: 240px; padding: 15px; }
    .calc-screen { min-height: 120px; padding: 15px 10px; }
    .calc-button { padding: 10px; font-size: 14px; }
    .schedule-grid { grid-template-columns: 1fr; }
    .screen-half { max-width: 280px; margin: 0 auto; }
    .screen-content { height: 200px; }
    .comparison-points { padding: 20px 15px; }
    .saved-number { font-size: 24px !important; }
    .saved-text { font-size: 14px !important; }
    .pricing-card { padding: 30px 20px; }
    .description-section { padding: 30px 20px; }
    .price { font-size: 28px !important; }
    .badges-grid { gap: 15px; padding: 0 15px; }
    .badge-link { padding: 10px; min-height: 60px; }
    .badge-image { max-width: 100px; max-height: 45px; }
    .app-img { max-height: 200px; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 80px; /* Altezza della tua navbar */
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(199, 55, 155, 0.1); /* Live Magenta con opacità */
    z-index: 999;
    transition: all 0.3s ease;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C7379B, #E91E63, #F06292);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 15px rgba(199, 55, 155, 0.6);
    position: relative;
    overflow: hidden;
}

/* Effetto shimmer (opzionale) */
.scroll-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}