/* ========================= */
/* Variabili globali */
/* ========================= */
:root {
    --primary-color: #0088ff;
    --secondary-color: #4a4a4a;
    --text-dark: #333333;
    --text-light: #666666;
}

/* ========================= */
/* Layout globale */
/* ========================= */
body {
    padding-top: 80px;
}

/* ========================= */
/* Navbar Styles */
/* ========================= */
.navbar-brand {
    font-size: 1.8rem;
    padding: 0;
}

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

.main-navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.scrolled .navbar-brand img {
    height: 40px;
}

.nav-link {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.2rem !important;
    transition: all 0.3s ease;
}

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

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

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

.navbar-cta {
    margin-left: 1rem;
    padding: 0.6rem 1.5rem !important;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-cta:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

.navbar-cta::after {
    display: none;
}

.navbar-toggler {
    padding: 0.5rem;
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

/* ========================= */
/* Footer Styles */
/* ========================= */
footer {
    background: #1a1a1a;
    color: white;
    padding: 5rem 0 1.5rem 0;
    position: relative;
    min-height: auto;
    box-sizing: border-box;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
}

.footer-col {
    padding: 0 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    box-sizing: border-box;
}

.footer-bottom-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

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

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

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

.footer-contact {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* ========================= */
/* Footer Force Consistency */
/* ========================= */
#footer-container {
    margin: 0 !important;
    padding: 0 !important;
}

#footer-container footer {
    margin: 0 !important;
}

#footer-container .footer-grid {
    margin-top: 0 !important;
}

#footer-container .footer-bottom {
    margin-bottom: 0 !important;
}

/* ========================= */
/* Cookie Banner Styles */
/* ========================= */
.my-cookie-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================= */
/* Responsive Design */
/* ========================= */
@media (max-width: 991px) {
    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-cta {
        margin: 0.5rem 0;
        text-align: center;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact {
        justify-content: center;
    }
}