/* ============================================
   LANDING PAGE RISPARMIA COMMISSIONI
   File: css/landing-risparmia.css
   ============================================ */
.logo-landing{
    max-width: 120px;
}
/* ===========================================
   HERO SECTION
   =========================================== */
.hero-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
   /* content: '';*/
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--bs-success);
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-warning);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.hero-trust {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-image-container {
    position: relative;
    padding: 2rem;
}

.hero-image {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.floating-card.card-1 {
    top: 10%;
    right: -5%;
}

.floating-card.card-2 {
    bottom: 10%;
    left: -5%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* ===========================================
   SECTION COMMON
   =========================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ===========================================
   PROBLEM SECTION
   =========================================== */
.problem-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.cost-breakdown {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.breakdown-header {
    text-align: center;
    margin-bottom: 2rem;
}

.breakdown-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.breakdown-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.breakdown-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: block;
    margin-top: 0.25rem;
}

.breakdown-revenue {
    background: var(--bs-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0 -2rem;
    padding: 1.5rem 2rem;
}

.breakdown-commission {
    background: var(--bs-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0 -2rem;
    padding: 1.5rem 2rem;
}

.breakdown-divider {
    margin: 2rem 0;
    border-top: 2px dashed var(--gray-300);
}

.breakdown-comparison {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-col {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--gray-100);
}

.comparison-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid currentColor;
}

.comparison-years {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.year-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
}

.year-item.highlighted {
    background: var(--bs-light);
    border: 2px solid var(--warning-color);
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-600);
}

/* ===========================================
   CALCULATOR SECTION
   =========================================== */

.calculator-card {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.calculator-header,.demo-form-header {
        background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
    color: var(--bs-light);
    padding: 3rem 2rem;
    text-align: center;
}

.calculator-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.calculator-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.calculator-body {
    padding: 3rem 2rem;
}

.calculator-input-group {
    margin-bottom: 1.5rem;
}

.calculator-input-group label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: block;
}

.calculator-input-group .form-control,
.calculator-input-group .form-select {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.calculator-results {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gray-100);
    border-radius: 8px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-item.danger {
    background: var(--bs-light);
}

.result-item.success {
    background: var(--bs-light);
}

.result-item.highlight {
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--bs-light) 100%);
    border: 2px solid var(--warning-color);
}

.result-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: block;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.results-timeline {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.results-timeline h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.timeline-items {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.timeline-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: var(--gray-100);
    flex: 1;
}
.timeline-item.highlight-1 {
    background: linear-gradient(135deg, #d4edda 0%, var(--bs-success) 100%);
}
.timeline-item.highlight-3 {
    background: linear-gradient(135deg, #d4edda 0%, var(--bs-success) 90%);
}
.timeline-item.highlight-5 {
    background: linear-gradient(135deg, #d4edda 0%, var(--bs-success) 80%);
    border: 2px solid var(--bs-success);
}

.timeline-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.timeline-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--bs-light);
}

.results-cta {
    margin-top: 2rem;
    text-align: center;
}

.results-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-items {
        flex-direction: column;
    }
}

/* ===========================================
   SOLUTION SECTION
   =========================================== */
.solution-section {
    padding: 5rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}
/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
    padding: 5rem 0;
}

.accordion-item {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-secondary);
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    line-height: 1.6;
}

/* ===========================================
   DEMO FORM SECTION
   =========================================== */
.demo-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.demo-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}


.demo-form-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-form {
    padding: 3rem 2rem;
}

.form-guarantee {
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-guarantee i {
    color: var(--bs-success);
    font-size: 1.2rem;
}

.form-success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success-message i {
    font-size: 4rem;
    color: var(--bs-success);
    margin-bottom: 1rem;
}

.form-success-message h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* ===========================================
   FINAL CTA SECTION
   =========================================== */
.final-cta-section {
    padding: 5rem 0;
}

.final-cta-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-dark) 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.final-cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.final-cta-card p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}


.price-highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-amount span {
    font-size: 1.5rem;
    opacity: 0.8;
}

.price-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 991px) {
    .breakdown-comparison {
        flex-direction: column;
    }
    
    .comparison-divider {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .calculator-header,
    .demo-form-header {
        padding: 2rem 1.5rem;
    }
    
    .calculator-body,
    .demo-form {
        padding: 2rem 1.5rem;
    }
    
    .final-cta-card {
        padding: 3rem 2rem;
    }
}
/* ============================================
   LANDING PAGE RISPARMIA COMMISSIONI - OTTIMIZZAZIONI
   File: css/landing-risparmia-extra.css
   ============================================ */

/* ===========================================
   1. HERO SOCIAL PROOF
   =========================================== */
.hero-social-proof {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.proof-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
}

.proof-item i {
    font-size: 1.5rem;
    color: var(--bs-info);
}

.proof-item strong {
    color: var(--bs-info);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .proof-items {
        flex-direction: column;
        align-items: flex-start;
    }
}

.urgency-banner,.savings-highlight{
 display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
     box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
      border-radius: 8px;
      min-height: 120px;
}
.savings-highlight {
    background: linear-gradient(135deg,var(--bs-light) 0%,var(--bs-success) 100%);
    border-left: 4px solid var(--bs-success)
}
/* ===========================================
   2. URGENCY BANNER
   =========================================== */
.urgency-banner {
    background: linear-gradient(135deg, var(--bs-light) 0%, var(--bs-warning) 100%);
    border-left: 4px solid var(--bs-warning)
}
/* ===========================================
   3. TESTIMONIAL AVATAR
   =========================================== */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bs-info);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-info strong {
    color: #212529;
    font-size: 1rem;
}

.author-info span {
    color: #6c757d;
    font-size: 0.875rem;
}

.verified {
    color: #198754 !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.verified i {
    font-size: 0.875rem;
}

/* ===========================================
   4. FORM REASSURANCE
   =========================================== */
.form-reassurance {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

.reassurance-item i {
    color: #198754;
    font-size: 1.25rem;
}

@media (max-width: 576px) {
    .form-reassurance {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===========================================
   5. EXIT INTENT MODAL
   =========================================== */
#exitIntentModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#exitIntentModal .modal-body i {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#exitIntentModal .form-control:focus {
    border-color: var(--bs-info);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

/* ===========================================
   6. STICKY CTA (Mobile)
   =========================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {

        transform: translateY(0);
    }
}

.sticky-cta .btn {
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

/* Compensazione padding body quando sticky è visibile */
@media (max-width: 991px) {
    body.has-sticky-cta {
        padding-bottom: 80px;
    }
}

/* ===========================================
   7. TRUST BADGES SECTION
   =========================================== */
.trust-badges-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-badge {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--bs-info);
}

.trust-badge i {
    font-size: 3rem;
    color: var(--bs-info);
    margin-bottom: 1rem;
}

.trust-badge h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.trust-badge p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================================
   8. URGENCY BAR
   =========================================== */
.urgency-bar {
    color: white;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.urgency-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.urgency-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.urgency-content i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.urgency-counter {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-weight: 600;
}

.urgency-counter strong {
    font-size: 1.5rem;
    color: #ffc107;
}

@media (max-width: 768px) {
    .urgency-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ===========================================
   9. RISULTATI CALCOLATORE - COPIA BUTTON
   =========================================== */
.btn-copy-results {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-copy-results.copied {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.btn-copy-results.copied i::before {
    content: "\f633"; /* bootstrap icon check */
}

/* ===========================================
   10. MIGLIORAMENTI RESPONSIVI
   =========================================== */
@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
        text-align: center;
    }
    
    .calculator-input-group label {
        font-size: 0.9rem;
    }
    
    .breakdown-comparison {
        flex-direction: column;
    }
    
    .comparison-divider {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    .breakdown-label {
    font-size: 1.1rem;
    font-weight: 500;
}

.breakdown-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.breakdown-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    display: block;
    margin-top: 0.25rem;
}
}

/* ===========================================
   11. ACCESSIBILITY IMPROVEMENTS
   =========================================== */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--bs-info);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .trust-badge,
    .calculator-card,
    .testimonial-card {
        border-width: 2px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   12. PRINT STYLES (per chi stampa i risultati)
   =========================================== */
@media print {
    .sticky-cta,
    .navbar,
    .footer,
    .demo-form-section {
        display: none !important;
    }
    
    .calculator-results {
        page-break-inside: avoid;
    }
}
/* landing-risparmia-additions.css v1
   ============================================
   Stili aggiuntivi per landing-risparmia-unified.js
   CSP Compliant - Sostituisce stili inline JS
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-info) 0%, #0dcaf0 100%);
    z-index: 9999;
    transition: width 0.1s ease;
    width: 0%;
}

/* Honeypot field - nascosto per i bot */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Spots counter pulse animation */
.spots-pulse {
    animation: spotsPulse 0.3s ease;
}

@keyframes spotsPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #ffc107;
    }
    100% {
        transform: scale(1);
    }
}

/* Sticky CTA hidden state */
.sticky-cta-hidden {
    transform: translateY(100%);
}

.sticky-cta {
    transition: transform 0.3s ease;
}
