/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --primary-color: #ec0000;
    --primary-dark: #c00000;
    --primary-light: #ff3333;
    --secondary-color: #333333;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* Mobile Hide Class */
@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }
}

/* Contact Method Grid */
.contact-method-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-method-box {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.contact-method-box:hover,
.contact-method-box.selected {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.contact-method-box i {
    font-size: 1.75rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
}

.contact-method-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-method-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.contact-method-description {
    font-size: 0.875rem;
    color: #666;
}

/* Callback Time Grid */
.callback-time-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.callback-time-box {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 15px;
    background: #fff;
}

.callback-time-box:hover,
.callback-time-box.selected {
    border-color: var(--primary-color);
    background-color: #fff5f5;
}

.callback-time-box i {
    font-size: 1.75rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
}

.callback-time-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.callback-time-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.callback-time-description {
    font-size: 0.875rem;
    color: #666;
}

@media (max-width: 768px) {
    .contact-method-grid,
    .callback-time-grid {
        flex-direction: column;
        gap: 12px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Top Bar */
.top-bar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: grid;
    align-items: center;
}

.logo-text {
    color: #fff;
    font-size: 24px;
}

/* Navigation Contact */
.nav-contact {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.nav-contact-desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-phone i {
    font-size: 1.25rem;
}

.phone-number {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.nav-contact-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.nav-contact-mobile i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.contact-text-mobile {
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
    height: auto;
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 25%, #fff5f5 50%, #ffebeb 75%, #f9f9f9 100%);
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 50%, rgba(236, 0, 0, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 30%, rgba(255, 51, 51, 0.02) 0%, transparent 50%);
    z-index: 0;
    animation: pulseRed 10s ease-in-out infinite;
}

/* Welcome Step */
.welcome-step {
    text-align: left;
    padding: 40px 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.welcome-title {
    font-size: 2.5rem;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.welcome-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.btn-welcome {
    background: #28a745 !important;
    font-size: 1.125rem !important;
    padding: 20px 40px !important;
    transition: all 0.3s ease !important;
}

.btn-welcome:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Title Styles */
.form-title {
    font-size: 1.75rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: center;
}

.form-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    text-align: center;
}

/* Form Background Adjustments */
.form-background {
    display: none; /* Hidden since we're using decorative elements instead */
}

/* Form */
.form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 100%;
    min-height: 520px;
    position: relative;
    z-index: 1;
}

.form-header {
    background-color: #ec0000;
    padding: 10px;
    border-radius: 12px 12px 0 0;
}

/* Step Container */
.step-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step {
    flex: 1;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed .step-number {
    background-color: #ffffff;
    color: #ec0000;
}

.step-number {
    width: 35px;
    height: 35px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #ec0000;
    font-weight: 600;
    font-size: 18px;
}

.step-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Form Body */
.form-body {
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Form Steps */
.form-step[data-step="0"].active ~ .form-header {
    display: none;
}

.form-step[data-step="0"].active ~ .form-step[data-step="1"],
.form-step[data-step="0"].active ~ .form-step[data-step="2"],
.form-step[data-step="0"].active ~ .form-step[data-step="3"] {
    display: none;
}

.form-step {
    display: none;
    height: 100%;
}

.form-step.active {
    display: flex;
    flex-direction: column;
}

/* Step Content */
.step-header {
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.amount-box {
    padding: 20px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-box:hover,
.amount-box.selected {
    border-color: #ec0000;
    background-color: #fff5f5;
}

.amount-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.amount-rate {
    font-size: 0.75rem;
    color: #666;
}

/* Custom Amount */
.custom-amount {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 20px;
}

.custom-amount:focus {
    outline: none;
    border-color: #ec0000;
}

/* Field Labels */
.field-label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Form Inputs */
.form-group input,
.occupation-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.occupation-select:focus {
    outline: none;
    border-color: #ec0000;
}

/* Occupation Grid */
.occupation-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.occupation-box {
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 15px;
}

.occupation-box:hover,
.occupation-box.selected {
    border-color: #ec0000;
    background-color: #fff5f5;
}

.occupation-box i {
    font-size: 1.75rem;
    color: #ec0000;
    display: flex;
    justify-content: center;
}

.occupation-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.occupation-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.occupation-benefit {
    font-size: 0.875rem;
    color: #666;
}

/* Privacy Section */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
}

.checkbox-label {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    text-decoration: none;
}

.checkbox-label a {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    text-decoration: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i {
    font-size: 1.125rem;
}

.btn-back {
    background: #f5f5f5;
    color: #333;
}

.btn-back:hover {
    background: #e9ecef;
}

.btn-next,
.btn-submit {
    background: #ec0000;
    color: #ffffff;
}

.btn-next:hover,
.btn-submit:hover {
    background: #c41230;
}

/* Benefits Section */
.benefits-section {
    background-color: #fff;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

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

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    color: #ec0000;
    margin-bottom: 20px;
}

.benefit-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.benefit-text p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 40px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 20px 15px;
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    .benefit-icon {
        font-size: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .benefit-text {
        flex: 1;
    }

    .benefit-text h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .benefit-text p {
        font-size: 0.9rem;
        margin: 0;
    }

    .logo-image {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: 50px;
    }
    
    .top-bar .container {
        justify-content: center;
    }

}

/* Company Section */
.company-section {
    background-color: #ec0000; /* Rosso Santander */
    color: white;
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.15);
}

/* Effetti decorativi per la company section */
.company-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.company-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.company-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.company-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.company-left:hover {
    transform: translateY(-5px);
}

.company-logo-image {
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.biessegi-logo {
    max-width: 280px;
}

.company-right {
    flex: 1.5;
}

.company-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.santander-wrapper {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.santander-logo {
    max-width: 280px;
    filter: brightness(1.05) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.santander-logo:hover {
    transform: translateY(-3px);
}

.company-right p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 10px;
}

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

.company-features li {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.company-features li:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.company-features li:last-child {
    margin-bottom: 0;
}

.company-features i {
    font-size: 1.25rem;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Services Section */
.services-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.service-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #efefef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
    border: 2px solid #ec0000;
    box-shadow: 0 10px 30px rgba(236, 0, 0, 0.1);
}

.service-card .card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(227, 24, 55, 0.1);
    color: #ec0000;
    font-size: 24px;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #ec0000;
    color: #fff;
}

.separator-line {
    width: 60px;
    height: 3px;
    background-color: #ec0000;
    display: block;
    margin: 0 auto 20px;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ec0000;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 5;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #ec0000;
    transition: all 0.3s ease;
}

.service-card:hover .card-overlay {
    height: 10px;
}

.btn-primary {
    background-color: #ec0000;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #c41230;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid #ec0000;
    color: #ec0000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background-color: #ec0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 24, 55, 0.2);
}

/* Service Features */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #555;
}

.service-features i {
    color: #ec0000;
    margin-top: 4px;
}

/* Button Wrapper */
.btn-wrapper {
    margin-top: auto;
    padding-top: 10px;
}

/* Bootstrap-like Utility Classes */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.rounded-pill { border-radius: 50rem !important; }
.text-muted { color: #6c757d !important; }
.lead { font-size: 1.2rem; line-height: 1.7; }
.h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }

.decorative-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: #ec0000;
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: #333;
    bottom: -100px;
    right: -50px;
}

.shape-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #ec0000 0%, #ff3333 30%, #ff6666 60%, transparent 100%);
    filter: blur(80px);
    opacity: 0.15;
    animation: pulseRed 6s ease-in-out infinite;
}

.shape-square {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #ec0000 0%, #ff3333 50%, #ec0000 100%);
    transform: rotate(45deg);
    filter: blur(70px);
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.top-right {
    top: -50px;
    right: -50px;
    animation-delay: -2s;
}

.bottom-left {
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

.top-left {
    top: -200px;
    left: -200px;
    animation-delay: -1s;
}

.bottom-right {
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

/* Welcome Features */
.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #444;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.welcome-feature:hover {
    transform: translateX(5px);
    background-color: rgba(227, 24, 55, 0.05);
}

.welcome-feature i {
    color: #ec0000;
    font-size: 1.1rem;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-feature span {
    font-size: 0.95rem;
    color: #444;
}

@media (max-width: 768px) {
    
    .welcome-feature {
        padding: 10px 12px;
        font-size: 0.95rem;
        text-align: left;
    }
    
    .welcome-feature:hover {
        transform: none;
    }
}

/* Media Queries for Hero Section */
@media (max-width: 1024px) {
    .hero-split-container {
        gap: 20px;
    }
    
    .hero-content {
        padding-right: 10px;
    }
    
    .hero-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        display: none;
    }
    
    .hero-badge {
        display: none;
    }
    
    .form-wrapper {
        max-width: 100%;
        border-radius: 8px;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-subtitle {
        font-size: 1rem;
    }
}

/* Info Section */
.info-section {
    background-color: #f8f9fa;
    padding: 25px 0 0 0;
}

.legal-disclaimer {
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
}

.legal-disclaimer p {
    font-size: 10px;
    color: #666;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-info {
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.footer-info a {
    color: #666;
    text-decoration: none;
}

.footer-details {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Utility Classes */
.hidden {
    display: none;
}

.error-message {
    color: #ec0000;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

.required-mark {
    color: #ec0000;
}

/* Helper Text */
.helper-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

/* Form Progress */
.form-progress {
    height: 4px;
    background-color: #f5f5f5;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Input Number Styles */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Info Box */
.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box i {
    color: #666;
    font-size: 1.25rem;
    margin-top: 2px;
}

.info-box p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.info-box.success {
    background-color: #f0fff4;
}

.info-box.success i {
    color: #28a745;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(2deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes pulseRed {
    0%, 100% {
        opacity: 0.08;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.05);
    }
}

.form-step.active {
    animation: fadeIn 0.3s ease-out;
}

/* Media Queries */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        position: relative;
    }

    .main-content {
        margin-top: 0;
        padding: 30px 0;
        background-color: #ffffff;
    }

    .nav-contact-desktop {
        display: none;
    }

    .nav-contact-mobile {
        display: flex;
    }

    .logo-text {
        display: none;
    }

    .amount-grid {
        grid-template-columns: 1fr;
    }

    .form-body {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .company-content {
        flex-direction: column;
        text-align: center;
    }

    .company-left {
        margin-bottom: 20px;
    }

    .company-right {
        text-align: center;
    }

    .santander-wrapper {
        display: flex;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .santander-logo {
        max-width: 400px;
    }
    
    .company-features li {
        justify-content: center;
    }
    
    .company-features li:hover {
        transform: translateY(-3px);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        height: auto;
        min-height: unset;
        overflow: visible;
        padding-bottom: 15px;
    }
    
    .service-card .card-body {
        padding: 25px 20px;
    }
    
    .service-features {
        margin-bottom: 15px;
    }
    
    .service-features li {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .separator-line {
        margin-bottom: 15px;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .btn-wrapper {
        padding-top: 5px;
    }
    
    .btn-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-details {
        flex-wrap: wrap;
        justify-content: center;
    }

    .amount-box[data-amount="20000"],
    .amount-box[data-amount="40000"],
    .amount-box[data-amount="50000"] {
        display: none;
    }

    .amount-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .amount-box {
        padding: 15px;
    }

    .amount-value {
        font-size: 1.25rem;
    }

    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-description {
        font-size: 1rem;
    }
    
    .btn-welcome {
        padding: 15px 30px !important;
        font-size: 1rem !important;
    }
}

/* Call to Action Section */
.cta-section {
    background-color: #ec0000;
    color: #FFFFFF;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.cta-description {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #ec0000;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s;
    max-width: 290px;
    margin: 0 auto;
    border: 0px solid #ec0000;
}

.cta-button:hover {
    background: #c41230;
    color: white;
    text-decoration: none;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.5rem;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 0.875rem 1.75rem;
    }
}

/* Mobile Call Button */
.mobile-call-btn-wrapper {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 20px;
    background-color: rgba(40, 167, 69, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mobile-call-btn-wrapper:hover {
    background-color: rgba(40, 167, 69, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.call-text {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-color, #333);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.btn-call {
    background-color: #28a745;
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
    width: 100%;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-call:hover::before {
    width: 300px;
    height: 300px;
}

.btn-call:hover, 
.btn-call:focus {
    background-color: #218838;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-call i {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .mobile-call-btn-wrapper.active {
        display: flex;
    }
}

@media (min-width: 768px) {
    .mobile-call-btn-wrapper {
        display: none !important;
    }
}

/* CTA Section in Services */
.services-section .text-center {
    position: relative;
    z-index: 1;
}

.services-section .lead {
    color: #555;
    margin-bottom: 1.5rem;
}

.services-section .lead strong {
    color: #222;
    font-weight: 600;
}

.services-section .btn-outline-primary {
    padding: 0.75rem 1.75rem;
    margin-top: 0.5rem;
    display: inline-block;
    max-width: 400px;
    width: auto;
}

/* Consulenza button specific styles */
.btn-consulenza {
    max-width: 500px !important;
    width: auto !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding: 0.9rem 2rem !important;
    transition: all 0.3s ease;
    border-width: 2px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(236, 0, 0, 0.1);
}

.btn-consulenza i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-consulenza:hover i {
    transform: translateX(6px);
}

.btn-consulenza:hover {
    background-color: #ec0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(236, 0, 0, 0.2);
}

/* Fix Card Body */
.card-body {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .services-section .btn-outline-primary {
        display: inline-block;
        width: auto;
        max-width: 100%;
        padding: 0.625rem 1.5rem;
    }
    
    .btn-consulenza {
        max-width: 300px !important;
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.4;
        height: auto;
        padding: 10px 20px;
    }
    
    .featured-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .btn-consulenza {
        max-width: 280px !important;
        font-size: 0.85rem;
    }
}

/* Improve mobile card appearance */
@media (max-width: 768px) {
    .service-features i {
        color: #ec0000;
        font-size: 0.9rem;
        min-width: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card.featured {
        border: 2px solid #ec0000;
        position: relative;
        box-shadow: 0 8px 20px rgba(227, 24, 55, 0.15);
    }
    
    .service-card.featured::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background-color: #ec0000;
        border-radius: 10px 10px 0 0;
    }
    
    .service-card .text-muted {
        color: #777 !important;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .service-features {
        margin-bottom: 12px;
    }
    
    .service-card.featured::before {
        height: 3px;
    }
    
    .service-features i {
        margin-top: 2px;
    }
    
    /* Improve shadows and transitions */
    .service-card {
        transition: all 0.25s ease;
    }
    
    .service-icon {
        transition: all 0.25s ease;
        box-shadow: 0 4px 8px rgba(227, 24, 55, 0.15);
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
    
    /* Improve color contrast */
    .text-muted {
        color: #666 !important;
    }
    
    /* Fix button size on small screens */
    .btn-wrapper .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-wrapper .btn i {
        font-size: 0.85rem;
    }
}

/* Main Content Hero Split Layout */
.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    max-width: 600px;
}

.hero-content-inner {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(227, 24, 55, 0.1);
    color: #ec0000;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-form-container {
    flex: 1;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ec0000;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Decorative Elements */
.decorative-pattern, 
.decorative-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
}

.pattern-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#ec0000 1px, transparent 2px);
    background-size: 10px 10px;
    animation: pulseRed 4s ease-in-out infinite;
}

.pattern-lines {
    width: 300px;
    height: 300px;
    background-image: linear-gradient(45deg, #ec0000 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: #ec0000;
    filter: blur(100px);
}

.shape-square {
    width: 300px;
    height: 300px;
    background-color: #333;
    transform: rotate(45deg);
    filter: blur(90px);
}

.top-right {
    top: -50px;
    right: -50px;
    animation-delay: -2s;
}

.bottom-left {
    bottom: -100px;
    left: -100px;
    animation-delay: -4s;
}

.top-left {
    top: -200px;
    left: -200px;
    animation-delay: -1s;
}

.bottom-right {
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

@media (max-width: 768px) {
    .hero-split-container {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-content {
        display: none; /* Nasconde completamente la sezione hero-content su mobile */
    }
    
    .hero-form-container {
        max-width: 100%;
        width: 100%;
    }
    
    .decorative-pattern, 
    .decorative-shape {
        display: none;
    }
    
    .main-content {
        padding: 20px 0;
        min-height: auto;
        align-items: flex-start;
        background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 25%, #fff5f5 50%, #ffebeb 75%, #f9f9f9 100%);
    }
    
    .form-wrapper {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title {
    font-size: 2.25rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.faq-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85em;
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    background-color: #f8f9fa;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px;
}

.faq-answer-content {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .faq-title
    {
        font-size: 2rem;
    }
    .faq-section
    {
        padding: 50px 0;
    }
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    
    .faq-answer-content {
        font-size: 0.875rem;
    }
}