/**
 * SVUOTACOM - CSS MODERNO E COLORATO
 * 
 * Sistema di design colorato e professionale per SvuotaCom
 * Palette: Blu, Verde, Arancione e Grigio
 * 
 * Versione: 3.0 - COLORFUL
 * Data: Dicembre 2024
 */

/* ===== VARIABILI CSS COLORATE ===== */
:root {
    /* Colori Principali - Palette Colorata */
    --primary: #1e40af;        /* Blu profondo */
    --primary-light: #3b82f6;
    --secondary: #059669;       /* Verde smeraldo */
    --secondary-light: #10b981;
    
    /* Colori Sistema - Palette Colorata */
    --success: #059669;         /* Verde */
    --success-light: #10b981;
    --danger: #dc2626;          /* Rosso */
    --danger-light: #ef4444;
    --warning: #ea580c;         /* Arancione */
    --warning-light: #fb923c;
    --info: #0891b2;            /* Ciano */
    --info-light: #22d3ee;
    --accent: #ea580c;          /* Arancione accent */
    
    /* Scala Grigi */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Colori Base */
    --white: #ffffff;
    --black: #000000;
    
    /* Tipografia */
    --font-sans: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    
    /* Dimensioni Font */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Spacing */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.125rem;  /* 2px */
    --radius: 0.25rem;      /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Modal Servizi */
.services-modal-header {
    padding: 0.5rem !important;
}

.services-modal-title {
    font-size: 1.5em !important;
}

/* ===== RESET MODERNO ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-3) * -1);
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
.col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10,
.col-sm-11, .col-sm-12, .col-sm-auto, .col-md, .col-md-1, .col-md-2,
.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5,
.col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11,
.col-lg-12, .col-lg-auto, .col-xl, .col-xl-1, .col-xl-2, .col-xl-3,
.col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9,
.col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
    padding: 0 var(--space-3);
    flex: 1 0 0%;
}

/* Grid System */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== HEADER E NAVIGAZIONE ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--gray-200);
}

.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
}

.top-bar a {
    color: var(--white);
    transition: opacity var(--transition-fast);
}

.top-bar a:hover {
    opacity: 0.8;
}

.navbar {
    padding: var(--space-4) 0;
}

.navbar-brand {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary) !important;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background-color: var(--gray-50);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

/* Pattern di grana rimosso per design più pulito */

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

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4);
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-4);
}

/* ===== FORMS ===== */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--gray-700);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-16) 0;
}

.section-alt {
    background: var(--gray-50);
}


/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-4);
    margin-top: auto;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-4);
    margin-top: var(--space-8);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-400);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-white { color: var(--white) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white-75 { color: rgba(255, 255, 255, 0.75) !important; }
.text-muted { color: var(--gray-500) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-light { background-color: var(--gray-50) !important; }
.bg-white { background-color: var(--white) !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

/* Spacing */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--space-1) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-5 { padding-top: var(--space-5) !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--space-1) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-5 { padding-bottom: var(--space-5) !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: var(--space-1) !important; padding-bottom: var(--space-1) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-5 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }

.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: var(--space-1) !important; margin-bottom: var(--space-1) !important; }
.my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }
.my-5 { margin-top: var(--space-5) !important; margin-bottom: var(--space-5) !important; }

/* ===== COMPONENTI SPECIFICI ===== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: var(--space-2) 0;
    margin-bottom: var(--space-4);
    list-style: none;
    background: transparent;
    border-radius: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--gray-400);
    margin: 0 var(--space-2);
}

.breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-400);
    text-decoration: underline;

}

/* Accordion */
.accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: var(--space-4);
    font-weight: 600;
    color: var(--gray-900);
    transition: all var(--transition-fast);
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.accordion-body {
    padding: var(--space-4);
    background: var(--gray-50);
    color: var(--gray-700);
}

/* Service Selection */
.service-selection {
    margin: var(--space-4) 0;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
    min-width: 150px;
    min-height: 120px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    background: var(--white);
    cursor: pointer;
}

.service-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-btn i {
    color: var(--primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    transition: color var(--transition);
}

.btn-check:checked + .service-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-check:checked + .service-btn i {
    color: var(--white);
}

/* Preventivo Form */
.preventivo-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
}

.search-form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
}

.search-form-container .form-control {
    font-size: var(--text-lg);
    padding: var(--space-4);
}

.search-form-container .btn {
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-6);
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section {
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .service-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .service-btn {
        min-width: 200px;
        margin-bottom: var(--space-2);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-section {
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .preventivo-form {
        padding: var(--space-4);
    }
    
    .search-form-container {
        padding: var(--space-4);
    }
}

/* ===== ACCESSIBILITÀ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
.form-control:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .footer,
    .btn,
    .hero-cta {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: var(--black);
    }
    
    .hero-section {
        background: none !important;
        color: var(--black) !important;
        padding: var(--space-4) 0;
    }
    
    .card {
        border: 1px solid var(--gray-400);
        box-shadow: none;
    }
}

/* ========================================
   BACKGROUND PATTERNS
   ======================================== */

.services-bg-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.1) 0%, transparent 50%), 
                      radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 40% 40%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    animation: float 20s ease-in-out infinite;
}

.timeline-bg-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, rgba(0, 123, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 123, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0, 123, 255, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0, 123, 255, 0.03) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    animation: slide 30s linear infinite;
}

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

@keyframes slide {
    0% { background-position: 0 0, 0 15px, 15px -15px, -15px 0px; }
    100% { background-position: 30px 30px, 30px 45px, 45px 15px, 15px 30px; }
}

/* ========================================
   HORIZONTAL TIMELINE STYLES
   ======================================== */

.horizontal-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line-horizontal {
    position: absolute;
    top: 5%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #28a745 50%, #ffc107 100%);
    border-radius: 2px;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-step-horizontal {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.timeline-step-horizontal:hover {
    transform: translateY(-5px);
}

.step-icon-horizontal {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.step-icon-horizontal .step-icon-bg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.step-icon-horizontal:hover .step-icon-bg {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.step-icon-horizontal .step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.step-content-horizontal {
    max-width: 250px;
    margin: 0 auto;
}

.step-content-horizontal .step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.step-content-horizontal .step-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.step-content-horizontal .step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.step-content-horizontal .feature-tag {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .timeline-line-horizontal {
        display: none;
    }
    
    .timeline-step-horizontal {
        margin-bottom: 2rem;
    }
    
    .step-icon-horizontal .step-icon-bg {
        width: 70px;
        height: 70px;
    }
    
    .step-content-horizontal .step-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .horizontal-timeline {
        padding: 1rem 0;
    }
    
    .step-icon-horizontal .step-icon-bg {
        width: 60px;
        height: 60px;
    }
    
    .step-icon-horizontal .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        top: -8px;
        right: -8px;
    }
    
    .step-content-horizontal .step-title {
        font-size: 1rem;
    }
    
    .step-content-horizontal .step-description {
        font-size: 0.85rem;
    }
}

/* ========================================
   BENEFITS & PROCESS UNIFIED SECTION
   ======================================== */

.benefits-process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.benefits-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Benefit Cards Modern */
.benefit-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.benefit-card-modern:hover::before {
    opacity: 1;
}

.benefit-icon-modern {
    position: relative;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.benefit-card-modern:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.benefit-icon {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.benefit-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-description {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Separator */
.separator-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #dee2e6 20%, #dee2e6 80%, transparent 100%);
    margin: 2rem 0;
    position: relative;
}

.separator-badge {
    position: relative;
    z-index: 2;
}

/* Process Cards Modern */
.process-card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545, #6f42c1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.process-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.process-card-modern:hover::before {
    opacity: 1;
}

.process-number-modern {
    position: relative;
}

.number-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.process-card-modern:hover .number-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.process-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.process-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.process-description {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 991px) {
    .benefit-card-modern,
    .process-card-modern {
        margin-bottom: 2rem;
    }
    
    .icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .benefit-icon {
        font-size: 1.8rem;
    }
    
    .number-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .process-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .benefits-process-section {
        padding: 3rem 0;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .benefit-icon {
        font-size: 1.5rem;
    }
    
    .number-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .process-number {
        font-size: 1.2rem;
    }
    
    .benefit-title,
    .process-title {
        font-size: 1.1rem;
    }
    
    .benefit-description,
    .process-description {
        font-size: 0.9rem;
    }
}

/* ========================================
   PRICE FACTORS SECTION
   ======================================== */

.price-factor-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.price-factor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.factor-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.price-factor-card:hover .factor-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.price-factor-card:hover .factor-icon i {
    color: white !important;
}

.factor-icon i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.factor-content {
    flex: 1;
}

.factor-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
}

.price-factor-card:hover .factor-title {
    color: #007bff;
}

/* Responsive */
@media (max-width: 767px) {
    .price-factor-card {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .factor-icon {
        width: 40px;
        height: 40px;
    }
    
    .factor-icon i {
        font-size: 1.1rem;
    }
    
    .factor-title {
        font-size: 0.9rem;
    }
}

/* ========================================
   MODERN SERVICES SECTION STYLES
   ======================================== */

.service-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.service-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.3);
}

.service-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-icon-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-icon-bg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-bg {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.service-icon {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.service-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    flex: 1;
}

.service-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.feature-item span {
    font-weight: 500;
    color: #495057;
}

.service-footer {
    margin-top: auto;
    text-align: center;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid #007bff;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.service-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* CTA Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

.cta-button .btn-text {
    position: relative;
    z-index: 2;
}

.cta-button .btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-icon {
    transform: translateX(5px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-card-inner {
        padding: 1.5rem;
    }
    
    .service-icon-bg {
        width: 70px;
        height: 70px;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .service-card-inner {
        padding: 1.25rem;
    }
    
    .service-icon-bg {
        width: 60px;
        height: 60px;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .feature-item {
        padding: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .service-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   PROFESSIONAL TIMELINE STYLES
   ======================================== */

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #007bff 0%, #28a745 50%, #ffc107 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-step:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-step:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #007bff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.timeline-step:nth-child(2)::before {
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.timeline-step:nth-child(3)::before {
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.timeline-step:nth-child(4)::before {
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-icon-wrapper {
    position: relative;
    margin-right: 1.5rem;
}

.step-icon-bg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.step-1 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.step-2 {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.step-3 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.step-4 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.step-icon {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.step-description {
    margin-bottom: 1.5rem;
}

.step-description p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-step::before {
        left: 30px;
    }
    
    .timeline-step:nth-child(odd) .timeline-content,
    .timeline-step:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-step {
        margin-bottom: 3rem;
    }
    
    .step-card {
        padding: 1.25rem;
    }
    
    .step-icon-bg {
        width: 60px;
        height: 60px;
    }
    
    .step-icon {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}


/* ===== MENU ZONE A COLONNA SINGOLA ===== */
.dropdown-menu-zones-single {
    min-width: 280px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: var(--white);
}

.dropdown-zones-content {
    display: flex;
    flex-direction: column;
}

.dropdown-zones-content .dropdown-header {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-light);
}

.main-provinces {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.province-main {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
}

.province-main:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    transform: translateX(4px);
    border-color: var(--primary);
    text-decoration: none;
}

.province-main:hover i {
    color: var(--white);
}

.province-main i {
    color: var(--primary);
    transition: color 0.3s ease;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.75rem 0;
}

.all-provinces-btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.all-provinces-btn:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
    color: var(--white);
    text-decoration: none;
    border-color: var(--secondary-light);
}

.all-provinces-btn i {
    color: var(--white);
    transition: transform 0.3s ease;
}

.all-provinces-btn:hover i {
    transform: scale(1.1);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .dropdown-menu-zones-single {
        min-width: 260px;
        padding: 0.75rem;
    }
    
    .province-main {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .all-provinces-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===== ANIMAZIONI E EFFETTI MODERNI ===== */

/* Animazione float per elementi decorativi */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Effetti per la hero section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Stili per il contenuto del database */
.content-section h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-section h4 {
    color: #34495e;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-section strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Miglioramenti per le card delle città */
.city-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.city-card .card-body {
    padding: 1.5rem;
}

/* Miglioramenti per le card dei servizi */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: #3498db;
}

.service-card .card-body {
    padding: 2rem;
}

/* Effetti per i badge */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
}

/* Miglioramenti per i pulsanti */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* ===== MODIFICHE RESPONSIVE RICHIESTE ===== */

/* 1. Menu zone con stesso stile del menu servizi */
.navbar-nav .dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 1rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* 2. Font Hero section più piccolo per mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-title span:first-child {
        font-size: 1.8rem !important;
        white-space: nowrap !important;
    }
    
    /* Assicura che "trova professionisti per" stia su una riga */
    .hero-title .text-white {
        white-space: nowrap !important;
    }
    
    /* Forza il testo su una riga */
    .hero-title .text-white:first-child {
        white-space: nowrap !important;
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-title span:first-child {
        font-size: 1.5rem !important;
    }
}

/* 3. Nascondere box ville svuotate e assistenza su mobile */
@media (max-width: 768px) {
    .partner-stats-section .col-lg-3:nth-child(2),
    .partner-stats-section .col-lg-3:nth-child(4) {
        display: none !important;
    }
    
    /* Forza nascondere i box specifici */
    .partner-stats-section .row .col-lg-3:nth-child(2),
    .partner-stats-section .row .col-lg-3:nth-child(4) {
        display: none !important;
    }
}

/* 4. Ridurre padding search-section su mobile */
@media (max-width: 768px) {
    .search-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .search-section .card-body {
        padding: 1.5rem !important;
    }
    
    .search-section .col-lg-10 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 5. Nascondere partner-logo premium su mobile */
@media (max-width: 768px) {
    .partner-logo.premium {
        display: none !important;
    }
    
    .premium-badge {
        display: none !important;
    }
}

/* 6. Nascondere icone services-section-modern su mobile */
@media (max-width: 768px) {
    .services-section-modern .service-icon {
        display: none !important;
    }
    
    .services-section-modern .service-item {
        text-align: center !important;
    }
    
    /* Aumentare spazio tra testo e badge */
    .services-section-modern .service-badges {
        margin-top: 1.5rem !important;
    }
    
    .services-section-modern .service-description {
        margin-bottom: 1.5rem !important;
    }
}

/* 7. Rimuovere feature-badge Assicurato */
.feature-badge.assicurato,
.feature-badge[data-feature="assicurato"] {
    display: none !important;
}

/* 8. Preventivo AI al 100% nel menu mobile */
@media (max-width: 768px) {
    .navbar-nav .nav-item .btn-primary {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .dropdown-toggle {
        width: 100% !important;
    }
}

/* 9. Miglioramenti generali mobile */
@media (max-width: 768px) {
    /* Ridurre padding generale */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Migliorare spaziature */
    .section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Ottimizzare card */
    .card-body {
        padding: 1rem !important;
    }
}

/* 10. Nascondere alert se servizio non selezionato */
.alert.service-required {
    display: none !important;
}

/* Nascondere alert quando servizio è selezionato */
.service-selected .alert.service-required {
    display: none !important;
}

/* Mostrare alert solo quando necessario (da gestire via JavaScript) */
.alert.service-required.show {
    display: block !important;
}

/* ===== LAYOUT PARTNER ===== */

/* Stelle più piccole per evitare che vadano su due righe */
.rating {
    font-size: 0.9rem;
}

.rating i {
    font-size: 0.9rem !important;
}

/* Rimuovere background gradient dai servizi */
.service-item {
    background: transparent !important;
    border: 1px solid #dee2e6 !important;
}

/* ===== OTTIMIZZAZIONI FONT ===== */

/* Ottimizzazione font-display per performance */
@font-face {
    font-family: 'Bootstrap Icons';
    font-display: swap;
}

/* Font metric overrides per evitare layout shifts */
:root {
    font-display: swap;
}

/* Preload critici per migliorare FCP */
body {
    font-display: swap;
    text-rendering: optimizeSpeed;
}

/* Ottimizzazione per icone Font Awesome */
.fas, .far, .fab, .fal {
    font-display: swap;
}

/* ===== FINE CSS ===== */