@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;700;900&family=Anton&family=Outfit:wght@900&display=swap');

:root {
    --font-testo: 'Lora', serif;
    --font-titoli: 'Montserrat', sans-serif;
    --colore-sfondo: #f9f9f9;
    --colore-testo: #222222;
    --colore-gmm-viola: #6e1d9d;
    --colore-gmm-pink: #d81b60;
    --gradiente-gmm: linear-gradient(135deg, var(--colore-gmm-viola), var(--colore-gmm-pink));
}

body {
    background-color: var(--colore-sfondo);
    color: var(--colore-testo);
    font-family: var(--font-testo);
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, .gmm-header-content { font-family: var(--font-titoli); }

/* Hero Section */
.hero-section {
    position: relative; height: 100vh; display: flex; align-items: center; justify-content: center;
    background: url('../img/copertina_pallone.jpg') center/cover no-repeat;
    color: white; text-align: center; padding: 0 20px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.hero-content { position: relative; z-index: 10; max-width: 900px; }
.hero-content h1 { font-size: 4.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -2px; margin-bottom: 20px; line-height: 1.1; }
.hero-lead { font-family: var(--font-titoli); font-size: 1.5rem; font-weight: 400; letter-spacing: 1px; }

.hero-credits { margin-top: 40px; }
.hero-author { font-family: var(--font-titoli); font-size: 1.2rem; font-weight: 700; margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: 1px; }
.hero-director { font-family: var(--font-titoli); font-size: 0.85rem; font-weight: 400; margin: 0; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }

/* Corpo del Testo */
.text-block { max-width: 720px; margin: 0 auto; padding: 80px 20px; }
.text-block > p:first-of-type::first-letter {
    font-family: var(--font-titoli); font-size: 4.5rem; float: left; line-height: 0.8;
    margin-right: 12px; margin-top: 8px; font-weight: 900; background: var(--gradiente-gmm);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-block h2 { font-size: 2.2rem; margin-top: 80px; margin-bottom: 30px; border-bottom: 2px solid; border-image: var(--gradiente-gmm) 1; padding-bottom: 10px; }

/* Scrollytelling Section */
.scrollytelling-container { display: flex; max-width: 1400px; margin: 100px auto; padding: 0 20px; position: relative; }
.scrolly-text { width: 50%; padding-right: 5%; }
.scrolly-step { padding: 50vh 0; opacity: 0.2; transition: opacity 0.5s ease-in-out; }
.scrolly-step h3 { font-size: 1.5rem; background: var(--gradiente-gmm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.scrolly-step.is-active { opacity: 1; }

.scrolly-map { width: 50%; position: sticky; top: 15vh; height: 70vh; }

.map-placeholder {
    width: 100%; height: 100%; background-color: #1a1a1a;
    background-image: url('../img/mappa-milano.jpg');
    background-position: center; background-repeat: no-repeat; background-size: cover;
    border-radius: 12px; position: relative; box-shadow: inset 0 0 50px rgba(0,0,0,0.5); overflow: hidden;
}

#map-location-label {
    position: absolute; top: 20px; left: 20px; background: var(--gradiente-gmm); color: white;
    padding: 8px 16px; border-radius: 4px; font-family: var(--font-titoli); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 5; transition: all 0.3s ease;
}

#map-marker {
    position: absolute; width: 24px; height: 24px; background: var(--gradiente-gmm);
    border-radius: 50%; box-shadow: 0 0 0 10px rgba(216, 27, 96, 0.3); top: 50%; left: 50%;
    transform: translate(-50%, -50%); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); z-index: 10;
}

/* Moduli Full Width */
.sport-full-section {
    position: relative; width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
    background-attachment: fixed; background-size: cover; background-position: center; color: white;
    min-height: 80vh; display: flex; align-items: center;
}

.sport-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(15, 15, 15, 0.85); z-index: 1; }
.sport-content { position: relative; z-index: 2; padding: 100px 20px; width: 100%; max-width: 720px; margin: 0 auto; }

.sport-title-display {
    font-size: 4rem; margin-top: 0; margin-bottom: 40px; text-transform: uppercase; color: #ffffff;
    display: inline-block; line-height: 1.1;
}

/* GSD Non Vedenti */
.sport-gsd { background-image: url('../img/non-vedenti.jpg'); }
.sport-gsd .sport-title-display {
    font-family: 'Anton', sans-serif;
    transform: rotate(-2deg) translateX(-5%);
    text-shadow: 5px 5px 0px #4caf50;
    letter-spacing: 2px;
}

.quote-block {
    margin-top: 40px; padding-left: 20px; border-left: 4px solid var(--colore-gmm-pink);
}
.quote-text {
    font-family: var(--font-titoli); font-size: 1.4rem; font-weight: 700; line-height: 1.6; color: #fff; margin-top: 15px;
}

/* Bə Team */
.sport-beteam { background-image: url('../img/lgbt.jpg'); }
.sport-beteam .sport-title-display {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    transform: rotate(2deg) translateX(3%);
    text-shadow: -5px 5px 0px #00bcd4;
}

/* Data Blocks */
.data-block { background-color: #111; color: white; text-align: center; padding: 120px 20px; margin: 80px 0; border-top: 4px solid; border-bottom: 4px solid; border-image: var(--gradiente-gmm) 1; }
.data-number { font-family: var(--font-titoli); font-size: 8rem; font-weight: 900; line-height: 1; margin-bottom: 20px; background: var(--gradiente-gmm); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.data-text { font-family: var(--font-titoli); font-size: 1.5rem; font-weight: 400; max-width: 600px; margin: 0 auto; letter-spacing: 0.5px; }

/* Responsive */
@media (max-width: 900px) {
    .scrollytelling-container { flex-direction: column; }
    .scrolly-text { width: 100%; padding-right: 0; z-index: 2; position: relative;}
    .scrolly-map { width: 100%; position: sticky; top: 0; height: 100vh; z-index: 1; opacity: 0.15; margin-top: -100vh;}
    .hero-content h1 { font-size: 3rem; }
    .data-number { font-size: 5rem; }
    .text-block, .sport-content { padding: 40px 20px; }
    .sport-title-display { font-size: 2.5rem; transform: none !important; }
}
