/* =========================================
   SKILLWORKS - PREMIUM IT WEBSITE STYLES
   ========================================= */

:root {
    --primary: #f26522;
    --primary-hover: #d9561b;
    --secondary: #0a192f; /* Blu molto scuro per un look più istituzionale */
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f172a;   /* Sfondo scuro premium */
    --bg-darker: #020617; /* Sfondo quasi nero per footer */
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.25s ease;
    --glass-blur: blur(8px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(242, 101, 34, 0.03) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(10, 25, 47, 0.03) 0, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
.highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; background: rgba(242, 101, 34, 0.1); color: var(--primary); border: 1px solid rgba(242, 101, 34, 0.2); border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 1rem 0; 
    transition: var(--transition); 
    background: rgba(255, 255, 255, 0.92); 
    backdrop-filter: var(--glass-blur); 
    -webkit-backdrop-filter: var(--glass-blur); 
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.navbar.scrolled { 
    background: rgba(255, 255, 255, 0.98); 
    padding: 0.7rem 0; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a:not(.btn) { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-link-special { 
    color: var(--primary) !important; 
    font-weight: 800 !important; 
    position: relative;
}
.nav-link-special::after {
    content: 'NEW';
    position: absolute;
    top: -12px;
    right: -15px;
    font-size: 0.6rem;
    background: var(--primary);
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
}

.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: white; min-width: 240px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 0.5rem 0; border: 1px solid var(--border-color); z-index: 1001; }
.dropdown-content a { display: block; padding: 10px 20px !important; font-size: 0.9rem !important; }
.dropdown:hover .dropdown-content { display: block; animation: fadeInUp 0.3s ease; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { 
    position: relative; 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: var(--bg-soft); 
    overflow: hidden; 
    padding-top: 100px; 
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(242, 101, 34, 0.05), transparent 70%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; }
.hero-title { 
    font-size: 4.8rem; 
    margin-bottom: 2rem; 
    color: var(--text-main); 
    letter-spacing: -1px;
}
.hero-subtitle { 
    font-size: 1.25rem; 
    margin-bottom: 3.5rem; 
    color: var(--text-muted) !important; 
    opacity: 1 !important; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
}
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; position: relative; z-index: 3; }

/* PAGE HEADERS */
section.page-header {
    display: block;
    width: 100%;
    padding: 180px 0 100px !important;
    background-color: #f1f5f9 !important;
    background-image: none !important;
    position: relative;
    text-align: center;
    overflow: hidden;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

section.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(242, 101, 34, 0.03), transparent 50%);
    z-index: 1;
}

section.page-header .hero-title {
    color: var(--text-main);
    text-shadow: none;
}

section.page-header .hero-subtitle {
    color: var(--text-muted) !important;
    text-shadow: none;
}

section.page-header .container { 
    position: relative; 
    z-index: 5; 
}


/* =========================================
   BENTO GRID
   ========================================= */
.section { padding: 8rem 0; position: relative; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1.5rem; margin-top: 4rem; }
.bento-item { position: relative; padding: 2.5rem; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); border: 1px solid rgba(0,0,0,0.06); background: white; text-decoration: none; color: inherit; }
.bento-item:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); border-color: var(--primary); }
.bento-main { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-item h3 { font-size: 1.8rem; z-index: 5; }
.bento-item p { font-size: 1rem; color: var(--text-muted); z-index: 5; }
.bento-item .icon { font-size: 2.5rem; color: var(--primary); z-index: 5; }
.bento-bg { position: absolute; bottom: 0; right: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.1; object-fit: cover; transition: var(--transition); }
.bento-item:hover .bento-bg { opacity: 0.25; transform: scale(1.05); }
.bento-item::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, white 20%, transparent 100%); z-index: 2; }

/* =========================================
   COMPONENTS
   ========================================= */
.btn { display: inline-block; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; font-family: var(--font-sans); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #ff8c42); color: white; }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(242, 101, 34, 0.4); }
.btn-secondary:hover { background: white; color: var(--text-main); }
.glass-panel { background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.05); }

/* =========================================
   FOOTER & COOKIES
   ========================================= */
.footer { background: var(--bg-soft); padding: 6rem 0 4rem; border-top: 1px solid var(--border-color); }
.cta-box { padding: 5rem; border: 1px solid var(--primary); text-align: center; }
.contact-form { max-width: 600px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1.2rem; }
.form-control { width: 100%; padding: 1.2rem; border-radius: 14px; border: 1px solid rgba(0,0,0,0.1); background: white; font-size: 1rem; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1); }
.cookie-banner { position: fixed; bottom: 2rem; left: 2rem; right: 2rem; background: white; padding: 1.5rem 2.5rem; border-radius: 24px; box-shadow: 0 15px 50px rgba(0,0,0,0.2); display: none; justify-content: space-between; align-items: center; z-index: 9999; border: 2px solid var(--primary); animation: fadeInUp 0.5s ease; }

/* =========================================
   ANIMATIONS & MOBILE
   ========================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 30px; height: 3px; background: var(--text-main); border-radius: 3px; }

@media (max-width: 1024px) {
    .container { width: 92%; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 4rem 2rem;
        overflow-y: auto;
        display: flex; /* Override display: none if any */
    }
    
    .nav-links.active { right: 0; }
    
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        background: transparent;
        min-width: unset;
    }
    
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -5px); }

    .navbar .btn { width: 100%; text-align: center; }
    .logo img { height: 35px !important; }
}

@media (max-width: 768px) {
    .hero { 
        padding-top: 100px !important; 
        min-height: 50vh !important; 
    }
    .hero-title { font-size: 2.5rem; }
    section { padding: 4rem 0; }
    .page-header { padding: 6rem 0 3rem; }
    
    /* Global grid adjustment for mobile */
    div[style*="display: grid"] { 
        grid-template-columns: 1fr !important; 
        gap: 2rem !important; 
    }
    
    div[style*="padding: 4rem"], div[style*="padding: 3rem"] {
        padding: 2rem !important;
    }

    .glass-panel { padding: 2rem !important; }
    
    .footer-bottom { padding: 2rem 0 !important; }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

