/* RESET E VARIABILI GENERALI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #0071e3; /* Blu stile Apple */
    --text-color: #1d1d1f;
    --bg-light: #f5f5f7;
    --bg-dark: #000000;
    --transition-fast: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR (Glassmorphism stile Apple) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* HAMBURGER MENU (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* HERO SECTION (Google Antigravity ispirato) */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-center: center;
    background-color: #050505;
    color: white;
    padding: 0 20px;
}

#gravity-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.4rem;
    color: #86868b;
    margin-bottom: 40px;
}

/* BOTTONI */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform var(--transition-fast), background 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #0077ed;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* SEZIONI GENERALI */
.section {
    padding: 100px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: white; }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #6e6e73;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* LAYOUT CHI SONO (Flessibile) */
.row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col { flex: 1; }

.text-side h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.text-side p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #424245;
}

.img-placeholder {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    background-color: #e8e8ed;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* GRIGLIE (Microsoft / Apple Style) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 25px;
}

.card-body h3 { margin-bottom: 10px; font-size: 1.3rem;}
.card-body p { color: #6e6e73; margin-bottom: 20px; font-size: 0.95rem;}
.card-link { text-decoration: none; color: var(--primary-color); font-weight: 600; }

/* APP CARD */
.app-grid { max-width: 800px; margin: 0 auto; }
.app-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e8e8ed;
    transition: var(--transition-fast);
}
.app-card:hover { border-color: var(--primary-color); }
.app-icon { font-size: 3rem; margin-bottom: 15px; }
.app-card h3 { margin-bottom: 10px; }
.app-card p { color: #6e6e73; margin-bottom: 25px; }

/* CONTATTI & FOOTER */
.contact-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 10px 25px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.contact-btn:hover { background: var(--primary-color); }

footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* ANIMAZIONE REVEAL ALLO SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE (SMARTPHONE E TABLET) */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        gap: 20px;
        padding: 40px 0;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.1rem; }
    .row { flex-direction: column; gap: 30px; }
    .section { padding: 60px 20px; }
}

/* COLORI HOVER PERSONALIZZATI PER I SOCIAL */
.contact-btn.instagram:hover { background-color: #e1306c; }
.contact-btn.discord:hover { background-color: #5865f2; }
.contact-btn.youtube:hover { background-color: #ff0000; }
.contact-btn.twitch:hover { background-color: #9146ff; }
.contact-btn.tiktok:hover { background-color: #000000; border-color: #fe2c55; box-shadow: 2px 2px 0 #25f4ee, -2px -2px 0 #fe2c55; }
.contact-btn.x-social:hover { background-color: #111111; border-color: #ffffff; }
.contact-btn.spotify:hover { background-color: #1ed760; color: #000000; }

/* STILE DEL WARNING BOX */
.warning-box {
    background-color: #fff9e6; /* Giallo chiaro e morbido */
    border-left: 5px solid #ffb703; /* Bordo arancione/giallo vivo accentuato */
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.05);
}

.warning-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.warning-content strong {
    display: block;
    color: #b37d00; /* Testo scuro per il titolo del warning */
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.warning-content p {
    color: #5c4300; /* Testo leggibile ma in tinta */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Adattamento per schermi piccoli */
@media (max-width: 480px) {
    .warning-box {
        flex-direction: column;
        gap: 8px;
    }
}

/* CATEGORIE BLOG */
.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* STILE PER TAG SKILLS DEL PORTFOLIO */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d1d1f;
}

/* ELENCO INFORMAZIONI CORSI */
.course-info-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    color: #424245;
}

.course-info-list li {
    margin-bottom: 8px;
}