html, body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Navbar Tweaks for Mobile */
.navbar-light .navbar-nav .nav-link {
    color: #333;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #0d6efd;
}
.navbar-collapse {
    background-color: #f8f9fa; /* Ensure opaque background on mobile */
    padding: 10px; /* Add some padding for better touch targets */
}

.hero-section {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

h1, h2, h3, h4, h5 {
    font-weight: 700;
}

.navbar-brand img {
    max-height: 50px;
}

.text-primary {
    color: #0d6efd !important;
}

a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Services Header Background */
.services-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/services_header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* Contacts Header Background */
.contacts-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/contacts_header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* ACCESSIBILITY: Skip Link Style (Visualizzato solo on focus) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d6efd; /* Primary Blue */
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* ACCESSIBILITY: Disable AOS animations if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: translate(0) scale(1) !important;
        transition: none !important;
    }
}