/* ==========================================================================
   1. IMPORT CARATTERI TECH & CORE RESET
   ========================================================================== */
@import url('https://googleapis.com');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    padding-top: 100px;
    overflow-x: hidden;
    /* Pattern geometrico di sfondo (Griglia tech quasi invisibile) */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.site-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. NAVBAR ULTRA-MODERNA: DECENTRATA E ASIMMETRICA
   ================================================+========================== */
nav {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    background: rgb(223, 23, 23);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgb(223, 23, 23);
    /*border-radius: 0 25px 0 25px; /* Taglio asimmetrico agli angoli */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #000000;
    border-radius: 2px;
}

.nav-links a {
    font-family: 'Unbounded', sans-serif;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 35px;
    padding: 10px 0;
    position: relative;
    transition: color 0.2s ease;
}

/* Indicatore di hover minimale ma d'impatto */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover {
    color: #000000;
}

nav a:hover::after {
    width: 100%;
}
nav h1 {
    margin-right: auto; /* Spinge l'H1 tutto a sinistra, lasciando i link a destra */
    font-family: 'Syncopate', sans-serif;
    font-size: 20px; /* Ridotto per stare comodo dentro i 100px di altezza della nav */
    text-transform: uppercase;
    color: #000000;
    padding-left: 20px; /* Distanza dal bordo sinistro dello schermo */
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #ffffff;
        width: 200px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links a {
        margin: 10px 20px;
    }

    .nav-links.active {
        display: flex;
    }
}
 

/* ==========================================================================
   3. HERO BANNER: STILE POSTER EDITORIALE (Brutalist Gaming)
   ========================================================================== */
.hero-banner {
    padding: 100px 0 60px 0;
    margin-bottom: 80px;
    position: relative;
}

/* Elemento decorativo geometrico tipico dei siti AAA */
.hero-banner::after {
    content: '[ TGS_STU_//2026 ]';
    position: absolute;
    top: 100px;
    right: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.hero-banner .eyebrow {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    color: #ff3b30; /* Accento rosso aggressivo da gaming */
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero-banner h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(38px, 7vw, 95px);
    font-weight: 700;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #000000;
    word-break: break-word;
    margin-left: calc(((100vw - 100%) / 2) * -1 - 40px);
}

/* ==========================================================================
   4. LAYOUT SEZIONI CON TITOLI OVERSIZE DECENTRATI
   ========================================================================== */

 


.section-card h2 {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #0000;   /* Titolo gigante sbiadito sullo sfondo */
    margin-bottom: 30px;
 
}

.section-card h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #ff3b30; /* Sottotitolo rosso impattante */
    margin-bottom: 15px;
}



.section-card p {
    font-size: 19px;
    font-weight: 300;
    color: #000000;
    max-width: 850px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.section-card img {
    /*float: right;*/
    /*display: block;*/
    margin-left: 20px;
    /*margin-bottom: 50px;*/
}



/* ==========================================================================
   5. LINK RAPIDI: SCHEDE INTERATTIVE "SPLIT" ASIMMETRICHE
   ========================================================================== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.quick-link {
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    border-radius: 0 16px 0 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* Angolino arancione/rosso che appare in hover */
.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #ff3b30 transparent transparent;
    transition: all 0.3s ease;
}

.quick-link:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: #ffffff;
}

.quick-link:hover::before {
    border-width: 0 25px 25px 0;
}

.quick-link strong {
    font-family: 'Unbounded', sans-serif;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.quick-link span {
    color: #7e818c;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 40px;
}

/* ==========================================================================
   6. LA NOSTRA STORIA: TIMELINE DIAGONALE A BLOCCHI DI GARA
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 260px 110px 1fr;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 35px 45px;
    border-radius: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.timeline-item strong {
    font-family: 'Unbounded', sans-serif;
    color: #ff3b30; /* Date rosse impattanti */
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 5px;
    filter: grayscale(1) contrast(1.2); /* Integrazione estetica scura */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover img {
    filter: grayscale(0) contrast(1);
    transform: scale(1.1) rotate(3deg);
}

.timeline-item p {
    font-size: 15px;
    color: #9da1aa;
    margin: 0;
    font-weight: 400;
}

.timeline-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #ff3b30;
}

/* ==========================================================================
   7. RESPONSIVE DI NUOVA GENERAZIONE
   ========================================================================== */
@media (max-width: 1100px) {
    .site-shell {
        padding: 0 24px;
    }

    .hero-banner h1 {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 150px;
    }

    nav {
        width: 100%;
        height: auto;
        min-height: 100px;
        padding: 20px 24px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px 16px;
    }

    nav h1 {
        width: 100%;
        padding-left: 0;
        margin-right: 0;
    }

    nav a {
        margin-left: 0;
        margin-right: 16px;
        font-size: 10px;
    }

    .hero-banner {
        padding-top: 70px;
    }

    .quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-item {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 190px;
    }

    nav {
        justify-content: center;
    }

    nav a {
        margin: 0 8px;
        font-size: 9px;
    }

    .site-shell {
        padding: 0 18px;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px;
    }

    .timeline-item img {
        order: -1;
        width: 38px;
        height: 38px;
    }

    .carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .btn-scopri {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 220px;
    }

    nav {
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    nav a {
        font-size: 8px;
        margin: 0 5px;
    }

    .hero-banner {
        padding: 40px 0 24px;
        margin-bottom: 30px;
    }

    .hero-banner::after {
        display: none;
    }

    .section-card p {
        font-size: 16px;
    }

    .timeline-item p {
        font-size: 14px;
    }
}

.btn-scopri {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid #000;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin: 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    scrollbar-width: none;
}

.carousel-item {
    flex: 0 0 90%;
    max-width: 90%;
    scroll-snap-align: center;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}




