* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-width: calc(100% - 40px);
    background: #2f7973;
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: block;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
}

.cookie-banner ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.cookie-banner li {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.85);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn.reject {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.cookie-btn.reject:hover {
    background: rgba(255,255,255,0.3);
}

.cookie-btn.accept {
    background: #266661;
    color: #fff;
}

.cookie-btn.accept:hover {
    background: #1e524f;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../images/padlock.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero .quote {
    font-size: 1rem;
    color: #fff;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* NAVIGATION */
.main-nav {
    background: #2f7973;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0 20px;
    height: 50px;
    display: flex;
    align-items: center;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.1);
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2f7973;
    min-width: 200px;
    padding: 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    list-style: none;
    z-index: 1001;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    height: auto;
    display: block;
}

.dropdown-menu li a {
    padding: 12px 20px;
    height: auto;
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    transition: background 0.3s, padding-left 0.3s;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.scroll-indicator {
    color: #fff;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* CONTENT SECTIONS */
.content-section {
    background: #2f7973;
    padding: 80px 0;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.section-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.section-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.section-content .subtitle {
    font-weight: 600;
    margin-bottom: 30px;
}

.link {
    color: #fff;
    text-decoration: underline;
}

/* Share Box */
.share-box {
    margin-top: 30px;
}

.share-box span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.75rem;
    border-radius: 3px;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.facebook::before {
    content: 'f';
    font-weight: bold;
    color: #3b5998;
}

.share-btn.twitter::before {
    content: 'X';
    font-weight: bold;
    color: #000;
}

/* BANNERS */
#banner1, #banner2, #banner3 {
    padding: 38em 0 10em 0;
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    text-align: center;
}

#banner1 {
    background-image: url('../images/keyboard.jpg');
}

#banner2 {
    background-image: url('../images/mainframe.jpg');
}

#banner3 {
    background-image: url('../images/prog.png');
}

/* FOOTER */
.main-footer {
    background: #266661;
    padding: 60px 0;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 10px;
}

.contact-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #3d8f89;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    transition: background 0.3s;
}

.social-icon:hover {
    background: #4a9e98;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-container {
        height: auto;
        padding: 10px 20px;
    }
    
    /* MENU MOBILE ORIZZONTALE */
    .nav-menu {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
    }
    
    .nav-menu > li {
        width: auto;
        height: auto;
    }
    
    .nav-menu > li > a {
        width: auto;
        padding: 10px 15px;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 200px;
        background: #266661;
    }
    
    .dropdown-menu li a {
        text-align: left;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    #banner1, #banner2, #banner3 {
        padding: 20em 0 5em 0;
    }
}