:root {
    --primary-color: #ec0000;
    --primary-dark: #c00000;
    --primary-light: #ff3333;
    --secondary-color: #333333;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --business-color: rgb(27, 179, 188);
    --business-dark: rgb(22, 155, 163);
}

/* Sovrascrittura Bootstrap */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

body {
    padding-top: 76px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Section Spacing */
section {
    padding: 100px 0;
    position: relative;
}

section.bg-light {
    background-color: var(--light-gray);
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Navbar Styling */
.navbar {
    background-color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-item {
    position: relative;
    margin: 0 0.25rem;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link-prodotti {
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .btn-primary {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(236, 0, 0, 0.15);
}

.navbar .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -76px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
}

/* Toggle button for background color */
.toggle-bg-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.toggle-bg-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.toggle-bg-btn.active {
    background: #333;
}

/* White background variation */
.hero-split-container.white-bg .hero-image {
    background: white;
}

.hero-split-container.white-bg .product-card-title {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.hero-split-container.white-bg .hero-product-icon {
    background: var(--primary-color);
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    width: 100%;
}

.hero-content {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.hero-content-inner {
    max-width: 600px;
    margin-left: auto;
    padding: 1.5rem;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(236, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 0, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 0, 0, 0);
    }
}

.hero-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(236, 0, 0, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Image Side */
.hero-image {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

/* Rental Slider Styles */
.hero-rental-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 5;
    padding: 2rem 0;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1rem 0.5rem;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.rental-card {
    flex: 0 0 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-right: 1rem;
    width: calc(100% - 2rem);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
}

.rental-card-header {
    background: #f8f8f8;
    border-bottom: 2px solid var(--primary-color);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rental-logo {
    height: 24px;
    object-fit: contain;
}

.client-type {
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

.client-type.business {
    background: var(--business-color);
    color: white;
}

.rental-card-content {
    padding: 1rem;
    background: white;
}

.rental-price {
    text-align: left;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.price-details {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

.car-image-container {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.car-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rental-promo {
    margin-bottom: 0.5rem;
}

.promo-badge {
    background: rgba(236, 0, 0, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(236, 0, 0, 0.2);
}

.car-name {
    margin-bottom: 0.75rem;
    text-align: center;
}

.car-name p {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    font-size: 1rem;
    text-transform: uppercase;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.75rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.spec-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 0.25rem;
}

.spec-item p {
    font-size: 0.7rem;
    margin: 0;
    text-align: center;
}

.rental-cta {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    display: block;
    text-decoration: none;
}

.rental-cta:hover {
    background: white;
    color: var(--primary-color);
}

.rental-cta p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Slider Navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(236, 0, 0, 0.3);
}

.prev-arrow {
    left: -1.25rem;
}

.next-arrow {
    right: -1.25rem;
}

/* Slider Pagination */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
}

.pagination-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png');
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

/* Hero Product Cards (for the right side) */
.hero-product-cards {
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 5;
    padding: 3rem 0;
}

.product-card-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(236, 0, 0, 0.2);
    border: none;
}

.product-card-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.hero-product {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-product:hover::before {
    opacity: 1;
}

.hero-product:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hero-product:last-child {
    margin-bottom: 0;
}

.hero-product-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-product-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-product:hover .hero-product-icon {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.hero-product:hover .hero-product-icon::after {
    opacity: 1;
}

.hero-product-icon i {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-product-content {
    flex: 1;
}

.hero-product-content h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.hero-product:hover .hero-product-content h3 {
    color: var(--primary-color);
}

.hero-product-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-product-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.hero-product-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.hero-product-link:hover::after {
    width: 100%;
}

.hero-product-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-product-link:hover {
    color: var(--primary-dark);
}

.hero-product-link:hover i {
    transform: translateX(5px);
}

/* Product Cards Container (for the left side) */
.product-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.product-card:hover::before {
    width: 6px;
}

.product-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(236, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    position: relative;
}

.product-card-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(236, 0, 0, 0.3);
    top: 0;
    left: 0;
    transition: var(--transition);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.product-card:hover .product-card-icon {
    background-color: var(--primary-color);
}

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

.product-card-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.product-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    position: relative;
    color: var(--secondary-color);
    transition: var(--transition);
}

.product-card:hover .product-card-content h3 {
    color: var(--primary-color);
}

.product-card-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    margin-top: auto;
}

.product-card-link i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: var(--transition);
}

.product-card-link:hover {
    color: var(--primary-dark);
}

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

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content-inner {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-product {
        padding: 1.25rem;
    }
    
    .hero-product-icon {
        width: 50px;
        height: 50px;
    }
    
    .hero-product-icon i {
        font-size: 1.25rem;
    }
    
    .hero-product-content h3 {
        font-size: 1.1rem;
    }
    
    .product-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .product-card-icon i {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .hero-content-inner {
        margin: 0 auto;
        text-align: center;
        padding: 1rem 1rem 3rem;
    }
    
    .hero-image {
        min-height: 600px;
        clip-path: none;
    }
    
    .hero-product-cards {
        width: 100%;
        max-width: 500px;
        padding: 2rem 1rem;
    }

    .hero-product {
        margin-bottom: 1rem;
    }
    
    .product-cards-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
    }
    
    .hero-split-container {
        grid-template-rows: auto auto;
    }
    
    .hero-image {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-product-cards {
        padding: 1.5rem 1rem;
    }
    
    .hero-product {
        margin-bottom: 0.75rem;
    }
    
    .product-cards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-image {
        min-height: 450px;
    }
    
    .hero-product-cards {
        width: 95%;
        padding: 1rem 0;
    }
    
    .product-card-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-product {
        padding: 1.25rem;
    }
    
    .hero-product-icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
    }
    
    .hero-product-icon i {
        font-size: 1.2rem;
    }
    
    .hero-product-content h3 {
        font-size: 1.1rem;
    }
    
    .hero-product-content p {
        font-size: 0.85rem;
    }
    
    .product-card-icon {
        width: 45px;
        height: 45px;
    }
    
    .product-card-icon i {
        font-size: 1.2rem;
    }
    
    .product-card-content h3 {
        font-size: 1.1rem;
    }
    
    .product-card-content p {
        font-size: 0.9rem;
    }
}

/* Modificato per applicarlo solo alla home */

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 1.25rem;
    max-width: 95%;
    position: relative;
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-buttons .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: all 0.6s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(236, 0, 0, 0.2);
}

.hero-buttons .btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid #ddd;
}

.hero-buttons .btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    position: relative;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    z-index: 1;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    position: relative;
    display: block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    white-space: nowrap;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .hero-stats {
        padding: 1.5rem;
        gap: 1rem;
        max-width: 500px;
    }
    
    .stat-item {
        padding: 1rem;
        min-width: 120px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-item:not(:last-child)::after {
        right: -0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        padding: 1.25rem;
        gap: 0.75rem;
        max-width: 450px;
    }
    
    .stat-item {
        padding: 0.75rem;
        min-width: 100px;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

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

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        max-width: 300px;
    }
    
    .stat-item {
        width: 100%;
        padding: 1rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 1rem;
        margin-top: 0.25rem;
    }
}

/* About Section Styles */
.about-section {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 100px 0;
}

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

.about-content h2 {
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    position: relative;
}

.about-content .badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(236, 0, 0, 0.15);
}

.about-content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2.5rem;
}

/* About Features Cards */
.about-features .feature-item {
    margin-bottom: 1.75rem;
    transition: var(--transition);
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.about-features .feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.about-features .feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 30px rgba(236, 0, 0, 0.1);
}

.about-features .feature-icon {
    min-width: 60px;
    height: 60px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    transition: var(--transition);
}

.about-features .feature-item:hover .feature-icon {
    background: var(--primary-color);
}

.about-features .feature-item:hover .feature-icon i {
    color: white;
}

.about-features .feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.about-features .feature-text h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.about-features .feature-text p {
    line-height: 1.5;
    margin-bottom: 0;
}

.about-image {
    position: relative;
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(236, 0, 0, 0.3);
    z-index: 5;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.experience-badge .text {
    font-size: 0.875rem;
    line-height: 1.2;
}

/* About Cards Overlay */
.about-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.certification-card, .partner-card {
    position: absolute;
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    width: 250px;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover, .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.certification-card {
    top: 30px;
    left: -50px;
}

.partner-card {
    bottom: 60px;
    left: -30px;
}

.certification-icon, .partner-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.certification-icon i, .partner-icon i {
    color: white;
    font-size: 1.25rem;
}

.certification-content, .partner-content {
    flex: 1;
}

.certification-content h4, .partner-content h4 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.certification-content p, .partner-content p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    background-color: white;
}

.cta-box {
    position: relative;
    z-index: 2;
    padding: 4rem 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(236, 0, 0, 0.15);
    overflow: hidden;
}

.cta-box h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-box .lead {
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

.cta-buttons .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
}

.cta-buttons .btn i {
    font-size: 1.2rem;
}

.cta-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--primary-dark);
    color: white;
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-box .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .cta-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cta-box {
        padding: 2rem 1.25rem;
        margin: 0 0.75rem;
    }
    
    .cta-box h2 {
        font-size: 1.5rem;
    }
    
    .cta-box .lead {
        font-size: 0.95rem;
    }
    
    .cta-buttons .btn {
        padding: 0.75rem 1.25rem;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .certification-card, .partner-card {
        width: 220px;
    }
    
    .certification-card {
        top: 20px;
        left: -30px;
    }
    
    .partner-card {
        bottom: 50px;
        left: -20px;
    }
    
    .about-features .feature-icon {
        min-width: 45px;
        height: 45px;
    }
    
    .about-features .feature-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 3rem;
    }
    
    .certification-card, .partner-card {
        position: absolute;
    }
    
    .certification-card {
        top: auto;
        bottom: 120px;
        left: 20px;
    }
    
    .partner-card {
        bottom: 60px;
        left: auto;
        right: 20px;
    }
    
    .cta-box {
        padding: 3rem 2rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }
    
    .about-content h2 {
        font-size: 2.25rem;
    }
    
    .about-content .lead {
        font-size: 1.1rem;
    }
    
    .about-features .feature-item {
        padding: 1.25rem;
    }
    
    .certification-card, .partner-card {
        width: 200px;
        padding: 1rem;
    }
    
    .certification-icon, .partner-icon {
        width: 40px;
        height: 40px;
    }
    
    .certification-icon i, .partner-icon i {
        font-size: 1rem;
    }
    
    .certification-content h4, .partner-content h4 {
        font-size: 0.9rem;
    }
    
    .certification-content p, .partner-content p {
        font-size: 0.8rem;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
        width: 100px;
        height: 100px;
        padding: 1rem;
    }
    
    .experience-badge .number {
        font-size: 1.75rem;
    }
    
    .experience-badge .text {
        font-size: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .certification-card {
        left: 10px;
        bottom: 130px;
    }
    
    .partner-card {
        right: 10px;
    }
}

/* About Page Styles */
.achievement-box {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.achievement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(236, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.team-card {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-badge {
        bottom: -20px;
        right: 20px;
        width: 100px;
        height: 100px;
        padding: 1rem;
    }

    .experience-badge .number {
        font-size: 1.75rem;
    }

    .experience-badge .text {
        font-size: 0.75rem;
    }
}

/* Product Cards */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-header {
    position: relative;
    overflow: hidden;
    background: var(--primary-color) !important;
}

.product-header:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg) translate(50%, -50%);
    transition: var(--transition);
}

.product-card:hover .product-header:before {
    transform: rotate(45deg) translate(20%, -80%);
}

.product-icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-icon-circle i {
    font-size: 1.5rem;
}

.product-features {
    margin: 0;
    padding: 0;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 35px;
    height: 35px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.feature-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Features Grid */
.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-item:hover .icon-circle {
    transform: scale(1.1);
    background: rgba(236, 0, 0, 0.15);
}

/* CTA Banner */
.cta-banner {
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.cta-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 2rem;
    }

    .feature-row {
        padding: 1rem 0;
    }

    .feature-icon {
        width: 35px;
        height: 35px;
    }

    .feature-icon i {
        font-size: 1rem;
    }

    .feature-content h4 {
        font-size: 0.9rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .icon-circle i {
        font-size: 1.5rem;
    }
}

/* Features Grid */
.features-grid {
    margin-bottom: 4rem;
}

.feature-item {
    padding: 1.25rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    transform: scale(0.9);
    transform-origin: left center;
}

.feature-item:hover {
    transform: translateY(-5px) scale(0.9);
}

.feature-item h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem !important;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem !important;
}

@media (max-width: 992px) {
    .feature-item {
        transform: scale(1);
        margin-bottom: 1rem;
    }
    
    .feature-item:hover {
        transform: translateY(-5px) scale(1);
    }
}

/* Service Card Styles */
.service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 1.5rem;
    justify-content: center;
    flex: 1;
}

.service-card .card-body .btn-wrapper {
    margin-top: auto;
    padding-top: 1.5rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(236, 0, 0, 0.03), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

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

.service-card:hover::before {
    height: 100%;
}

/* Featured Card */
.service-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(236, 0, 0, 0.1);
}

.service-card.featured .card-body {
    padding: 2.5rem 1.8rem;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(236, 0, 0, 0.2);
    z-index: 3;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover .card-overlay {
    opacity: 1;
}

/* Row Centering for Card Groups */
.row.g-4 {
    display: flex;
    align-items: center;
}

/* Scroll Down Button - nascosto come richiesto */
.scroll-down-button {
    display: none;
}

/* Section Styles */
.contact-section, .map-section, .product-cards {
    position: relative;
}

.contact-section .card, .contact-info {
    transition: var(--transition);
    height: 100%;
}

.contact-section .card:hover, .contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Footer Enhancements */
.footer {
    background-color: #eeeeee;
    color: #4a5568;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer h5 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    display: block;
    color: #4a5568;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.footer-links:hover {
    color: var(--primary-color);
    padding-left: 5px;
    text-decoration: none;
}

.footer-contact-info {
    margin-bottom: 1rem;
}

.footer-contact-info i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.footer-contact-info a {
    color: #4a5568;
    transition: var(--transition);
    text-decoration: none;
}

.footer-contact-info a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #4a5568;
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 992px) {
    .about-features .feature-item {
        padding: 1.25rem;
    }
    
    .about-features .feature-icon {
        min-width: 50px;
        height: 50px;
    }
}

/* About Hero Section */
.about-hero {
    grid-template-rows: auto !important;
    min-height: 60vh !important;
}

.about-hero-image {
    background: url('../img/about-bg.jpg') center/cover no-repeat !important;
    position: relative;
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.separator-line {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1.5rem 0 2rem;
}

.about-stats {
    margin-top: 2.5rem;
    display: flex;
    gap: 2.5rem;
}

.hero-floating-badge {
    position: absolute;
    bottom: 50px;
    right: 50px;
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s ease;
}

.hero-floating-badge:hover {
    transform: translateY(-10px);
}

.badge-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.badge-icon i {
    color: white;
    font-size: 1.5rem;
}

.badge-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.badge-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #666;
}

/* Achievement Box */
.achievement-icon {
    width: 50px;
    height: 50px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.achievement-box {
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.achievement-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Value Cards */
.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary-color);
}

.value-icon i {
    font-size: 2rem;
    transition: var(--transition);
}

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

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
        margin-bottom: 1rem;
    color: var(--secondary-color);
}

.value-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Team Cards */
.team-card {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    position: relative;
}

.team-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 1rem;
}

.team-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: rgba(236, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Partner Logos */
.partner-logo {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Media Queries for About Page */
@media (max-width: 992px) {
    .about-hero-image {
        min-height: 300px !important;
    }
    
    .hero-floating-badge {
        bottom: 30px;
        right: 30px;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
    
    .value-icon i {
        font-size: 1.75rem;
    }
    
    .team-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        min-height: auto !important;
    }
    
    .about-hero-image {
        min-height: 250px !important;
    }
    
    .hero-floating-badge {
        bottom: 20px;
        right: 20px;
        padding: 0.75rem;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
    }
    
    .badge-icon i {
        font-size: 1.25rem;
    }
    
    .badge-content h4 {
        font-size: 0.9rem;
    }
    
    .badge-content p {
        font-size: 0.8rem;
    }
    
    .value-card {
        padding: 1.75rem 1rem;
    margin-bottom: 1.5rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .about-hero-image {
        min-height: 200px !important;
    }
    
    .hero-floating-badge {
        bottom: 15px;
        right: 15px;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .team-image {
        height: 200px;
    }
}

/* About Hero Full Section */
.about-hero-full {
    position: relative;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: -1;
}

.about-hero-full .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-hero-full .separator-line {
    margin: 1.5rem auto 2rem;
}

.about-hero-full .hero-subtitle {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Scroll Down Button */
.scroll-down-button {
    display: none;
}

/* Centra meglio le service-card verticalmente */
.service-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.5rem;
    justify-content: center;
}

.service-card.featured .card-body {
    padding: 2.5rem 1.8rem;
}

.service-card .btn-wrapper {
    margin-top: auto;
    padding-top: 1.5rem;
}

@media (max-width: 992px) {
    .about-hero-full {
        padding: 4rem 1.5rem !important;
    }
    
    .about-hero-full .hero-title {
        font-size: 2.8rem;
    }
    
    .about-hero-full .hero-subtitle {
    font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-hero-full {
        padding: 3rem 1rem !important;
        margin: 1rem 0;
    }
    
    .about-hero-full .hero-title {
        font-size: 2.2rem;
    }
    
    .about-hero-full .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge-unified {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .about-hero-full {
        padding: 2.5rem 1rem !important;
    }
    
    .about-hero-full .hero-title {
        font-size: 1.8rem;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Contact Section Styles */
.bg-primary-light {
    background-color: rgba(236, 0, 0, 0.1);
}

.contact-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card, .transportation-card {
    transition: var(--transition);
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

.opening-hours li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
}

.opening-hours li:last-child {
    border-bottom: none;
}

/* Transportation Section Styles */
.transportation-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-overlay {
    z-index: 10;
}

/* Modal Styles */
.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Map and Transportation Styles */
.map-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-expand-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.map-expand-button .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon, .transportation-icon {
    flex-shrink: 0;
}

.transportation-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transportation-item {
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .contact-icon-circle, .transportation-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .contact-card, .transportation-card {
        padding: 0.75rem !important;
    }
}

/* Enhanced Footer Styles */
.footer {
    padding-top: 4rem;
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-dark-light {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-social .social-icon-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover .social-icon-circle {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.img-grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-partner:hover .img-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(236, 0, 0, 0.3);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
        text-align: center;
    }
    
    .footer-top {
        text-align: center;
    }
    
    .footer-contact {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .footer h5 {
        margin-bottom: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Alert border override */
.border-primary {
    border-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
    }
}

/* Nasconde il pulsante "chiamaci gratis" su desktop e lo mostra solo su mobile */
.btn-call-free {
    display: none; /* Nascosto di default (desktop) */
}

@media (max-width: 768px) {
    .btn-call-free {
        display: inline-flex; /* Visibile solo su mobile */
    }
}

/* Gestione pulsanti di chiamata nel menu di navigazione */
.nav-call-mobile {
    display: none; /* Nascosto di default (desktop) */
}

.nav-call-desktop {
    display: inline-flex; /* Visibile di default (desktop) */
}

@media (max-width: 991px) {
    body.menu-open {
        overflow: hidden;
    }
    .navbar-collapse {
        position: fixed;
        top: 76px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: white;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-toggler {
        margin-right: 0.5rem;
        padding: 0.6rem;
    }
    
    .navbar-nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: calc(0.1s * var(--item-index, 0));
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.7rem 0 !important;
        position: relative;
        display: inline-block;
        font-weight: 600;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s ease;
        transform: none;
    }
    
    .nav-link:hover::after,
    .nav-item.active .nav-link::after {
        width: 50px;
    }

    .navbar-toggler {
        z-index: 1060;
        position: relative;
        border: none;
        padding: 0.5rem;
        transition: transform 0.3s ease;
        outline: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Custom hamburger icon */
    .navbar-toggler .navbar-toggler-icon {
        background-image: none !important;
        position: relative;
        height: 24px;
        width: 30px;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .navbar-toggler .navbar-toggler-icon:before,
    .navbar-toggler .navbar-toggler-icon:after,
    .navbar-toggler .navbar-toggler-icon span {
        content: '';
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar-toggler .navbar-toggler-icon:before {
        top: 0;
    }

    .navbar-toggler .navbar-toggler-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-toggler .navbar-toggler-icon:after {
        bottom: 0;
    }

    /* Animation for toggled state */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon:before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon span {
        opacity: 0;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon:after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .navbar-toggler.collapsed .navbar-toggler-icon:before,
    .navbar-toggler.collapsed .navbar-toggler-icon:after,
    .navbar-toggler.collapsed .navbar-toggler-icon span {
        transition: all 0.3s ease;
    }

    /* Remove existing rotation that wasn't working properly */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        transform: rotate(0);
    }

    .nav-call-mobile {
        display: inline-flex;
        margin-top: 2rem;
        width: 100%;
        justify-content: center;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.5s;
    }
    
    .navbar-collapse.show .nav-call-mobile {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-call-mobile .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 50px;
        box-shadow: 0 5px 15px rgba(236, 0, 0, 0.2);
    }
    
    .nav-call-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 3rem;
        text-align: center;
    }
    
    .footer h5 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }
    
    .footer-contact-info {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    /* Nascondi sezione link rapidi e social media */
    .col-lg-2.col-md-6.mb-4.mb-lg-0,
    .footer-social {
        display: none !important;
    }
}

.cta-buttons .btn-call {
    display: none; /* Nascosto di default su desktop */
}

@media (max-width: 768px) {
    .cta-buttons .btn-call {
        display: flex; /* Mostrato su mobile */
        width: 100%;
        padding: 1rem 2rem;
        font-weight: 600;
        border-radius: 50px;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: white;
        color: var(--primary-color);
        border: none;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn-call:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        background: var(--primary-dark);
        color: white;
    }
}

@media (max-width: 991px) {
    .nav-call-mobile {
        display: inline-flex; /* Visibile su mobile e tablet */
    }
    
    .nav-call-desktop {
        display: none; /* Nascosto su mobile e tablet */
    }
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.service-features li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
}

/* Responsive Optimizations for All Pages */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Global responsive container adjustments */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Optimize images for responsive behavior */
img {
    max-width: 100%;
    height: auto;
}

/* Additional breakpoints for more precise control */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .service-card .card-body {
        padding: 1.8rem 1.2rem;
    }
    
    .hero-stats {
        gap: 1.8rem;
    }
    
    .about-hero-full {
        min-height: calc(80vh - 76px);
    }
}

@media (max-width: 992px) {
    section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    .row.g-4 {
        row-gap: 2rem !important;
    }
    
    .service-card {
        height: auto;
    }
    
    .service-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    /* Fixing column order on mobile */
    .reverse-columns-on-mobile {
        flex-direction: column-reverse;
    }
    
    /* Fix for map and directions section */
    .map-section .col-lg-7, 
    .map-section .col-lg-5 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Better spacing for featured cards */
    .service-card.featured {
        transform: scale(1.02);
        margin: 1rem 0;
    }
    
    .service-card.featured:hover {
        transform: scale(1.02) translateY(-15px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .about-hero-full {
        min-height: auto;
        padding: 3rem 1rem !important;
    }
    
    /* Single column layouts on mobile */
    .map-section .col-md-6,
    .contact-section .col-md-6 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Adjust button sizes for better touch targets */
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Ensure text readability on small screens */
    .card-body h2, .card-body h3 {
        font-size: 1.5rem;
    }
    
    .value-card, .team-card, .achievement-box {
        margin-bottom: 2rem;
    }
    
    /* Mobile spacing fixes */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Center align content on mobile */
    .text-md-start {
        text-align: center !important;
    }
    
    /* Fix navigation on mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    /* Fix CTA box on mobile */
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-3 {
        font-size: 1.7rem;
    }
    
    .separator-line {
        margin: 1rem auto 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-badge, .badge-wrapper .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Fix form layout on mobile */
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Adjust icon sizes for mobile */
    .feature-icon i, 
    .value-icon i, 
    .service-icon i {
        font-size: 1.2rem !important;
    }
    
    /* Fix padding in cards */
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Make sure the mobile navigation doesn't push content down */
    .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Small screen form optimizations */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Proper button sizing on very small screens */
    .btn {
        width: auto;
        min-width: auto;
    }
    
    /* Service card optimizations */
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Print styles for better document printing */
@media print {
    .navbar, .footer, .cta-section {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
    }
    
    .about-hero-full {
        min-height: auto;
        margin: 0;
        padding: 1rem !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Fix for iOS form elements */
@supports (-webkit-overflow-scrolling: touch) {
    input, textarea, select {
        font-size: 16px !important;
    }
    
    .form-control, .form-select {
        border-radius: 8px;
    }
}

/* Optimize forms for mobile */
@media (max-width: 768px) {
    /* Increase tap target sizes */
    .form-control, 
    .form-select,
    .btn,
    .custom-control-label,
    .form-check-label {
        min-height: 44px;
    }
    
    /* Better spacing for form groups */
    .mb-3 {
        margin-bottom: 1.25rem !important;
    }
    
    /* Checkbox improvements */
    .form-check-input {
        width: 1.2rem;
        height: 1.2rem;
        margin-top: 0.15rem;
    }
    
    /* Radio button improvements */
    .form-check-input[type="radio"] {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    /* Select dropdown touch improvements */
    .form-select {
        background-position: right 0.75rem center;
        background-size: 16px 12px;
        padding-right: 2.5rem;
    }
    
    /* Submit button enhancements */
    .btn-primary, .btn-lg {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-3 {
        font-size: 1.7rem;
    }
    
    .separator-line {
        margin: 1rem auto 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-badge, .badge-wrapper .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }
    
    /* Fix form layout on mobile */
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Adjust icon sizes for mobile */
    .feature-icon i, 
    .value-icon i, 
    .service-icon i {
        font-size: 1.2rem !important;
    }
    
    /* Fix padding in cards */
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Make sure the mobile navigation doesn't push content down */
    .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Small screen form optimizations */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Proper button sizing on very small screens */
    .btn {
        width: auto;
        min-width: auto;
    }
    
    /* Service card optimizations */
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        padding: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }

    .navbar-toggler {
        z-index: 1060;
        position: relative;
        border: none;
        padding: 0.6rem;
        margin-right: 0.5rem;
        transition: transform 0.3s ease;
        outline: none !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Custom hamburger icon */
    .navbar-toggler .navbar-toggler-icon {
        background-image: none !important;
        position: relative;
        height: 24px;
        width: 30px;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .navbar-toggler .navbar-toggler-icon:before,
    .navbar-toggler .navbar-toggler-icon:after,
    .navbar-toggler .navbar-toggler-icon span {
        content: '';
        position: absolute;
        left: 0;
        height: 3px;
        width: 100%;
        background-color: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navbar-toggler .navbar-toggler-icon:before {
        top: 0;
    }

    .navbar-toggler .navbar-toggler-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

    .navbar-toggler .navbar-toggler-icon:after {
        bottom: 0;
    }

    /* Animation for toggled state */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon:before {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon span {
        opacity: 0;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon:after {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .navbar-toggler.collapsed .navbar-toggler-icon:before,
    .navbar-toggler.collapsed .navbar-toggler-icon:after,
    .navbar-toggler.collapsed .navbar-toggler-icon span {
        transition: all 0.3s ease;
    }

    /* Remove existing rotation that wasn't working properly */
    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        transform: rotate(0);
    }
    
    .navbar-nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Fix for handshake icon to maintain text-primary color on hover */
.feature-item:hover .feature-icon i.text-primary {
    color: var(--primary-color) !important;
}

/* Ensure all feature icons turn white on hover, including those with text-primary class */
.feature-item:hover .feature-icon i.text-primary {
    color: white !important;
}

/* Business Card Styling */
.business-card .business-header {
    background: #f8f8f8;
    border-bottom: 2px solid var(--business-color);
}

.business-card .business-price {
    color: var(--business-color);
}

.business-card .business-promo {
    background: rgba(27, 179, 188, 0.1);
    color: var(--business-color);
    border: 1px solid rgba(27, 179, 188, 0.2);
}

.business-card .business-cta {
    background: var(--business-color);
    color: white;
    border: 1px solid var(--business-color);
}

.business-card .business-cta:hover {
    background: white;
    color: var(--business-color);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 0;
    min-width: 200px;
    left: 0;
    right: auto;
    transform: none;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

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

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}



/* Indicatore sottomenu attivo */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

/* Aggiungi una linea rossa nella parte superiore del dropdown menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Mobile Dropdown Styling */
@media (max-width: 991px) {
    .dropdown-menu {
        box-shadow: none;
        border: none;
        background-color: #f8f9fa;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        width: 100%;
        position: static !important;
    }
    
    .dropdown-item {
        padding: 0.8rem 1.2rem;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dropdown-item:hover, 
    .dropdown-item:focus,
    .dropdown-item.active {
        background-color: var(--primary-color);
        color: white;
    }
    
    .nav-item.dropdown {
        width: 100%;
    }
}

.nav-link-prodotti {
    font-weight: 600;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

/* Nessun after per nav-link-prodotti, quindi rimuoviamo la sottolineatura */

.nav-link-prodotti:hover {
    color: var(--primary-color) !important;
}

/* Aggiornamento del selettore per .nav-item.active per includere anche nav-link-prodotti */
.nav-item.active .nav-link-prodotti {
    color: var(--primary-color) !important;
}

/* Mobile styles per nav-link-prodotti */
@media (max-width: 991px) {
    .nav-link-prodotti {
        font-size: 1.3rem;
        padding: 1rem !important;
        position: relative;
        display: inline-block;
        font-weight: 600;
    }
}

/* Business hours related display */
.is-business-hours-only {
    display: none !important;
}

body.is-business-hours .is-business-hours-only {
    display: block !important;
}

.non-business-hours-only {
    display: none !important;
}

body:not(.is-business-hours) .non-business-hours-only {
    display: block !important;
}

/* Mobile button styling */
.mobile-btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding-bottom: 30px;
    }
}

/* Fix for navbar centering - restore original layout */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex;
        justify-content: flex-end;
    }
    
    .navbar-nav {
        margin-left: auto;
    }
}

/* Mobile menu centering */
@media (max-width: 991px) {
    .navbar-collapse {
        text-align: center;
    }
    
    .navbar-nav {
        margin-left: auto;
        margin-right: auto;
    }
    
    .navbar-collapse .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        display: inline-block;
    }
    
    .mobile-btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
}
