/* ============================================
   AZIENDE CSS - Mobile-First Approach
   Based on WEB_4_0_MOBILE_FIRST_GUIDE
   ============================================ */

/* CSS Variables - Breakpoints & Design Tokens */
:root {
    /* Breakpoints */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;

    /* Colors */
    --color-primary: #e22721;
    --color-primary-dark: #c91f1a;
    --color-success: #0B8D84;
    --color-warning: #E56E12;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Touch targets */
    --touch-target-min: 48px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header sticky fix */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* BASE STYLES - Mobile Default */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}

/* Touch-friendly elements */
button,
.btn,
a.btn-hero-primary,
a.btn-hero-secondary,
a.cta-btn-primary,
a.cta-btn-secondary {
    min-height: var(--touch-target-min);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS zoom on input focus */
input,
select,
textarea {
    font-size: 16px;
    min-height: var(--touch-target-min);
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* HERO - Modern Split Layout (Mobile-First) */
.hero-modern {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Mobile: single column */
.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    max-width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(226, 39, 33, 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: var(--space-md);
}

/* Mobile: smaller title */
.hero-modern h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.hero-modern .subtitle {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero-modern {
        padding: 60px 0 80px;
    }

    .hero-modern h1 {
        font-size: 36px;
    }

    .hero-modern .subtitle {
        font-size: 17px;
        margin-bottom: var(--space-xl);
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-modern {
        padding: 80px 0 100px;
    }

    .hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero-text {
        max-width: 560px;
        text-align: left;
    }

    .hero-badge {
        font-size: 14px;
        margin-bottom: var(--space-lg);
    }

    .hero-modern h1 {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hero-modern .subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
}

/* CTA Buttons - Mobile First */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    min-height: var(--touch-target-min);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 39, 33, 0.3);
    text-decoration: none;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: var(--color-text);
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    min-height: var(--touch-target-min);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
}

/* Stats inline - Mobile First */
.hero-stats-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero-cta-group {
        flex-direction: row;
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 16px 32px;
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-cta-group {
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .hero-stats-inline {
        justify-content: flex-start;
        gap: var(--space-lg);
        padding-top: 32px;
    }
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stat-item .stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.hero-stat-item .stat-lbl {
    font-size: 13px;
    color: #6b7280;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

/* Hero Image - Mobile First (hidden on mobile) */
.hero-image {
    display: none;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-image-card {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.6s ease 0.5s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-card .card-icon {
    width: 44px;
    height: 44px;
    background: rgba(11, 141, 132, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-card .card-text {
    display: flex;
    flex-direction: column;
}

.hero-image-card .card-text strong {
    font-size: 14px;
    color: #1f2937;
}

.hero-image-card .card-text span {
    font-size: 12px;
    color: #6b7280;
}

/* Old hero - hide */
.hero {
    display: none;
}

/* PROBLEM SECTION - Modern Bento */
.problem-section-modern {
    background: #f9fafb;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    background: #fee2e2;
    color: #e22721;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

/* Problem Bento - Mobile First (single column) */
.problem-bento {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-md);
}

.problem-card-large {
    grid-row: span 1; /* Mobile: no spanning */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.problem-card-large:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.problem-card-image {
    height: 200px;
    overflow: hidden;
}

.problem-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.problem-card-content {
    padding: 28px;
}

.problem-card-medium {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.problem-card-medium:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.problem-card-icon {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 28px;
    border-radius: 20px;
    color: white;
    transition: all 0.3s ease;
}

.problem-card-icon:hover {
    transform: translateY(-4px);
}

.problem-card-icon .problem-stat {
    color: white;
}

.problem-card-icon .problem-title {
    color: white;
}

.problem-card-icon .problem-desc {
    color: rgba(255,255,255,0.7);
}

.problem-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(226, 39, 33, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.problem-stat {
    font-size: 36px;
    font-weight: bold;
    color: #e22721;
    margin-bottom: 8px;
}

.problem-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.problem-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Old problem section - hide */
.problem-section {
    display: none;
}

/* SOLUTION SECTION - Modern Bento */
.solution-section-modern {
    padding: 80px 0;
    background: white;
}

/* Solution Bento - Mobile First (single column) */
.solution-bento {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-md);
}

.solution-card-feature {
    grid-row: span 1; /* Mobile: no spanning */
    background: #f9fafb;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.solution-card-feature:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.solution-card-visual {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.solution-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.solution-card-overlay .overlay-stat {
    font-size: 24px;
    font-weight: bold;
    color: #E56E12;
}

.solution-card-overlay .overlay-label {
    font-size: 12px;
    color: #6b7280;
}

.solution-card-body {
    padding: 28px;
}

.solution-card-body h3 {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.solution-card-body p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.solution-list li::before {
    content: '✓';
    color: #0B8D84;
    font-weight: bold;
}

.solution-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.solution-icon-small.orange {
    background: rgba(229, 110, 18, 0.1);
    color: #E56E12;
}

.solution-icon-small.red {
    background: rgba(226, 39, 33, 0.1);
    color: #e22721;
}

.solution-icon-small.green {
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
}

.solution-card-compact {
    background: #f9fafb;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.solution-card-compact:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.solution-card-compact h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
}

.solution-card-compact p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.solution-highlight {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.solution-highlight .highlight-num {
    font-size: 28px;
    font-weight: bold;
    color: #0B8D84;
}

.solution-highlight .highlight-text {
    font-size: 14px;
    color: #6b7280;
}

.solution-card-image {
    border-radius: 20px;
    overflow: hidden;
}

.solution-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

/* Old solution section - hide */
.solution-section {
    display: none;
}

/* HOW IT WORKS - Modern Horizontal Timeline */
.how-it-works-modern {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 100px 0;
}

/* Progress Bar */
.timeline-progress {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.progress-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #e22721 0%, #0B8D84 100%);
    border-radius: 3px;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

.progress-days {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.progress-days span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* Horizontal Steps */
.timeline-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

/* Step Card - Mobile First (full width) */
.step-card {
    background: white;
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: #e22721;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e22721, #c91f1a);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.step-icon {
    width: 44px;
    height: 44px;
    background: rgba(226, 39, 33, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e22721;
}

.step-time {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.step-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* Connector arrows - Mobile First (hidden on mobile) */
.step-connector {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #d1d5db;
}

.step-connector svg {
    animation: pulseArrow 2s ease-in-out infinite;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

/* Final step - success styling */
.step-card-final {
    background: linear-gradient(135deg, #0B8D84 0%, #097a72 100%);
    border: none;
}

.step-card-final .step-number {
    background: white;
    color: #0B8D84;
}

.step-card-final .step-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-card-final .step-time {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-card-final .step-title {
    color: white;
}

.step-card-final .step-desc {
    color: rgba(255, 255, 255, 0.9);
}

.step-card-final:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(11, 141, 132, 0.3);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    margin-top: 16px;
}

/* Old HOW IT WORKS - hide */
.how-it-works {
    display: none;
}

/* SERVICES - Modern Bento Grid */
.services-modern {
    padding: 100px 0;
    background: #f9fafb;
}

/* Services Bento - Mobile First (single column) */
.services-bento {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-md);
}

.service-card-large {
    grid-row: span 1; /* Mobile: no spanning */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card-large:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.service-tag {
    background: #e22721;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
}

.service-card-body {
    padding: 28px;
}

.service-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon-modern.red {
    background: rgba(226, 39, 33, 0.1);
    color: #e22721;
}

.service-icon-modern.green {
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
}

.service-icon-modern.orange {
    background: rgba(229, 110, 18, 0.1);
    color: #E56E12;
}

.service-icon-modern.white {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.service-card-body h3,
.service-card-medium h3,
.service-card-dark h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.service-card-body p,
.service-card-medium p,
.service-card-dark p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    padding: 6px 0;
}

.service-list li::before {
    content: '✓';
    color: #0B8D84;
    font-weight: bold;
    font-size: 12px;
}

.service-stat-row {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.service-mini-stat {
    display: flex;
    flex-direction: column;
}

.service-mini-stat .mini-num {
    font-size: 24px;
    font-weight: bold;
    color: #e22721;
}

.service-mini-stat .mini-label {
    font-size: 12px;
    color: #6b7280;
}

/* Card Medium */
.service-card-medium {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card-medium:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.service-highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 141, 132, 0.1);
    color: #0B8D84;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 20px;
}

.service-highlight-badge.orange {
    background: rgba(229, 110, 18, 0.1);
    color: #E56E12;
}

/* Card Image Small */
.service-card-image-small {
    border-radius: 20px;
    overflow: hidden;
}

.service-card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

/* Card Dark */
.service-card-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 28px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.service-card-dark h3 {
    color: white;
}

.service-card-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.service-big-stat {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-big-stat .big-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #0B8D84;
    margin-bottom: 4px;
}

.service-big-stat .big-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Old SERVICES - hide */
.services {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(135deg, #ffffff, #f9fafb);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: #e22721;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(226, 39, 33, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e22721, #c91f1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.service-icon i,
.service-icon svg {
    color: white;
    stroke: white;
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 26px;
    font-weight: 600;
    color: #1f2937;
}

.service-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
}

.service-feature:first-child {
    border-top: none;
}

.service-feature::before {
    content: '→';
    color: #e22721;
    font-weight: bold;
    font-size: 18px;
}

/* GUARANTEE */
.guarantee {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.guarantee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="white" opacity="0.05"/></svg>');
}

.guarantee .container {
    position: relative;
    z-index: 1;
}

.guarantee-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(226, 39, 33, 0.15);
    padding: 16px 32px;
    border-radius: 50px;
    border: 2px solid #e22721;
    margin-bottom: 30px;
}

.guarantee-badge-icon {
    font-size: 32px;
}

.guarantee-badge-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.guarantee h2 {
    font-size: 42px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.guarantee p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Guarantee Features - Mobile First (single column) */
.guarantee-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.guarantee-feature {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.guarantee-feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.guarantee-feature-icon i,
.guarantee-feature-icon svg,
.guarantee-badge-icon i,
.guarantee-badge-icon svg {
    color: white;
    stroke: white;
    width: 40px;
    height: 40px;
}

.guarantee-badge-icon i,
.guarantee-badge-icon svg {
    width: 32px;
    height: 32px;
}

/* Color variants for icons */
.icon-success {
    background: linear-gradient(135deg, #0B8D84, #097a72) !important;
    box-shadow: 0 4px 12px rgba(11, 141, 132, 0.3) !important;
}

.icon-warning {
    background: linear-gradient(135deg, #E56E12, #cc6210) !important;
    box-shadow: 0 4px 12px rgba(229, 110, 18, 0.3) !important;
}

/* Guarantee section - colored strokes only, no background */
.guarantee-feature-icon.stroke-warning i,
.guarantee-feature-icon.stroke-warning svg {
    stroke: #E56E12;
    color: #E56E12;
}

.guarantee-feature-icon.stroke-success i,
.guarantee-feature-icon.stroke-success svg {
    stroke: #0B8D84;
    color: #0B8D84;
}

.guarantee-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.guarantee-feature-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

/* STATS BAR */
.stats-bar {
    background: #e22721;
    padding: 60px 0;
}

/* Stats Grid - Mobile First (2 columns on mobile) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.95;
}

/* CTA SECTION */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary,
.hero .btn-primary {
    display: inline-block;
    background: #e22721;
    color: white;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e22721;
}

.cta-section .btn-primary:hover,
.hero .btn-primary:hover {
    background: #c91f1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 39, 33, 0.3);
    text-decoration: none;
}

.cta-section .btn-secondary,
.hero .btn-secondary {
    display: inline-block;
    background: white;
    color: #e22721;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e22721;
}

.cta-section .btn-secondary:hover,
.hero .btn-secondary:hover {
    background: #fee2e2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 39, 33, 0.2);
    text-decoration: none;
}

/* TRUSTED BY - Loghi Clienti */
.trusted-by {
    padding: 80px 0;
    background: white;
}

.trusted-header {
    text-align: center;
    margin-bottom: 40px;
}

.trusted-label {
    display: inline-block;
    background: rgba(226, 39, 33, 0.1);
    color: #e22721;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.trusted-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.trusted-logos {
    margin-bottom: 50px;
    overflow: hidden;
}

.logo-track {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #f3f4f6;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Brand logos - tipografici stilizzati */
.brand-logo {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Hover - sfondo colorato, testo bianco */
.logo-item:hover .brand-logo {
    color: white;
}

/* Stili specifici per brand */
.brand-logo.barilla {
    font-family: Georgia, serif;
    font-style: italic;
    letter-spacing: 0;
}

.logo-item:has(.brand-logo.barilla):hover {
    background: #1e3a8a;
}

.brand-logo.poste {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.logo-item:has(.brand-logo.poste):hover {
    background: #003366;
}

.brand-logo.dhl {
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-item:has(.brand-logo.dhl):hover {
    background: #D40511;
}

.brand-logo.coop {
    font-weight: 800;
    letter-spacing: 0;
}

.logo-item:has(.brand-logo.coop):hover {
    background: #E30613;
}

.brand-logo.brt {
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-item:has(.brand-logo.brt):hover {
    background: #8B0000;
}

.brand-logo.carrefour {
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-item:has(.brand-logo.carrefour):hover {
    background: #004E9A;
}

.brand-logo.ikea {
    font-weight: 800;
    letter-spacing: 3px;
}

.logo-item:has(.brand-logo.ikea):hover {
    background: #0051BA;
}

/* Default hover per Esselunga */
.logo-item:hover {
    background: #e22721;
}

/* Trusted Stats - Mobile First (column on mobile) */
.trusted-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.trusted-stat {
    text-align: center;
}

.trusted-stat .trusted-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #e22721;
    margin-bottom: 4px;
}

.trusted-stat .trusted-lbl {
    font-size: 14px;
    color: #6b7280;
}

/* Trusted Divider - Mobile First (horizontal on mobile) */
.trusted-divider {
    width: 80px;
    height: 1px;
    background: #e5e7eb;
}

/* CTA MODERN with Background Image */
.cta-modern {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.92) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.cta-modern .container {
    position: relative;
    z-index: 1;
}

.cta-modern-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 141, 132, 0.2);
    color: #0B8D84;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 30px;
    margin-bottom: 24px;
}

/* CTA Modern Content h2 - Mobile First */
.cta-modern-content h2 {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-modern-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* CTA Modern Buttons - Mobile First (column on mobile) */
.cta-modern-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e22721;
    color: white;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn-primary:hover {
    background: #c91f1a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(226, 39, 33, 0.4);
    text-decoration: none;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* CTA Trust Signals - Mobile First (column on mobile) */
.cta-trust-signals {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.trust-signal svg {
    color: #0B8D84;
}

/* ============================================
   RESPONSIVE - Mobile-First Approach
   Base styles are mobile, then scale up
   ============================================ */

/* Mobile base styles are already defined above.
   Below we add progressive enhancements for larger screens. */

/* Small devices (min-width: 576px) */
@media (min-width: 576px) {
    .problem-bento,
    .solution-bento,
    .services-bento {
        grid-template-columns: 1fr 1fr;
    }

    .step-card {
        width: calc(50% - 8px);
    }

    .trusted-stats {
        flex-direction: row;
        gap: var(--space-xl);
    }

    .trusted-divider {
        width: 1px;
        height: 50px;
    }
}

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero-image {
        display: block;
    }

    .cta-modern-content h2 {
        font-size: 40px;
    }

    .cta-modern-buttons {
        flex-direction: row;
    }

    .cta-trust-signals {
        flex-direction: row;
        gap: var(--space-xl);
    }

    .guarantee-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .problem-bento {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .problem-card-large {
        grid-row: span 2;
    }

    .solution-bento {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .solution-card-feature {
        grid-row: span 2;
    }

    .services-bento {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .service-card-large {
        grid-row: span 2;
    }

    .timeline-steps {
        flex-wrap: nowrap;
        gap: 0;
    }

    .step-connector {
        display: flex;
    }

    .step-card {
        width: 200px;
    }

    .guarantee-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .trusted-stats {
        padding: 40px;
        gap: 40px;
    }

    .cta-modern-content h2 {
        font-size: 48px;
    }
}
