* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

/* Header e Navbar */
header {
    background: #e3e3e3;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Abel', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}
.logo {
    font-family: 'Abel', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}




.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #cc0000;
    text-decoration: underline;
}
.nav-link.active {
    color: #cc0000;
    text-decoration: underline;
}


/* Underline per dropdown menu */
.dropdown-menu a.active {
    color: #cc0000;
    font-weight: 500;
    text-decoration: underline;
}




/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #cc0000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Animazione hamburger to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu mobile fullscreen overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    text-align: center;
    padding: 0 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-menu-item {
    margin: 0 0;
}

.mobile-menu-link {
    font-size: 2rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.mobile-menu-link.active {
    color: #cc0000;
}

.mobile-submenu a.active {
    color: #cc0000;
    font-weight: 500;
}


.mobile-menu-link:hover {
    color: #cc0000;
}

/* Sottomenu mobile */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin-top: 0rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 300px;
}

.mobile-submenu li {
    margin: 0rem 0;
}

.mobile-submenu a {
    font-size: 1.3rem;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-submenu a:hover {
    color: #cc0000;
}

/* Main content */
main {
    margin-top: 70px;
    height: calc(100vh - 70px);
    padding: 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.5rem;
    z-index: 20;
}

/* Pulsanti carousel - Minimal */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128,128,128,0.2);
    border: none;
    font-size: 1.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 30;
    border-radius: 3px;
    color: rgba(255,255,255,0.6);
    opacity: 0.5;
}

.carousel-btn:hover {
    background: rgba(128,128,128,0.4);
    opacity: 1;
    color: rgba(255,255,255,0.9);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Dots indicator */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}


/* Footer */
footer {
    background: #e3e3e3;
    color: #000;
    font-family: 'Abel', sans-serif;
    padding: 0.5rem 2rem;
    text-align: center;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: #cc0000;
    transform: scale(1.2);
}


/* Responsive - Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }



    main {
        margin-top: 70px;
        height: calc(100vh - 70px);
    }

    .carousel-caption {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        bottom: 60px;
        left: 15px;
        right: 15px;
    }

    .carousel-btn {
        padding: 0.6rem 0.8rem;
        font-size: 1.2rem;
        opacity: 0.3;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 30px;
    }

    .social-links {
        /* flex-direction: column; */
        gap: 1rem;
    }
}
