﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #2f2f2f;
    color: white;
    padding: 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

    header h1 {
        margin-bottom: 15px;
    }

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.logo-link {
    display: inline-block;
}

.logo {
    cursor: pointer;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

    .menu li {
        display: inline-block;
    }

    .menu a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        padding: 10px;
        transition: background 0.3s ease;
    }

        .menu a:hover {
            background: #5a5a5a;
            border-radius: 5px;
        }

.submenu a:hover {
    background: #6a6a6a;
}

.menu li {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #3a3a3a;
    list-style: none;
    min-width: 220px;
    padding: 0;
    z-index: 1001;
}

    .submenu li {
        display: block;
    }

    .submenu a {
        display: block;
        padding: 12px;
        color: white;
    }

.dropdown:hover .submenu {
    display: block;
}

main {
    padding: 0;
    min-height: 400px;
    margin-top: 140px;
}

footer {
    background: #f2f2f2;
    text-align: center;
    padding: 15px;
}

.hero-section {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    width: 80%;
}

    .hero-text h2 {
        font-size: 64px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 28px;
        font-weight: 400;
        line-height: 1.4;
    }

.info-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.info-image-container {
    flex: 1;
    min-width: 300px;
}

.info-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

    .info-text h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .info-text p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

.info-box {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #2f2f2f;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .info-box h3 {
        margin-bottom: 10px;
        font-size: 22px;
    }

.chi-siamo-section {
    display: flex;
    gap: 40px;
    padding: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.chi-siamo-text {
    flex: 1;
    min-width: 320px;
}

.chi-siamo-slider {
    flex: 1;
    min-width: 320px;
}

.chi-siamo-slider {
    width: 200px;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

@media screen and (max-width: 768px) {
    .info-section,
    .chi-siamo-section {
        flex-direction: column;
        padding: 20px;
    }
}

}

/* TABLET */
@media screen and (max-width: 768px) {
    header {
        padding: 15px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 15px;
    }
}

/* SMARTPHONE */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 22px;
    }

    .menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    main {
        padding: 10px;
    }

    footer {
        font-size: 14px;
    }
}
