
/* --- PALETTE UFFICIALE --- */
:root {
    --yellow: #F6DC00;
    --black: #000000;
    --orange: #e37c1a;
    --purple: #9C0AA3;
    --green: #38A800;
    --celeste: #19B5D1;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    font-family: 'Caraque Regular', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    
}

/* --- TIPOGRAFIA --- */
h1, h2, h3 {
    font-family: 'Caraque Bold', sans-serif;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

h2 { font-size: clamp(2rem, 5vw, 3rem); text-shadow: 3px 3px 0px var(--white); }
h3 { font-size: 1.5rem; color: var(--yellow); }

p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

strong {
    font-family: 'Caraque Bold', sans-serif;
    letter-spacing: 0.5px;
}

/* --- LOGO HERO --- */
.hero-section {
    background-color: var(--yellow);
    padding: 5rem 5% 2rem 5%;
    text-align: center;
}

.hero-logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    transform: rotate(-3deg);
}

.hero-subtitle {
    font-family: 'Caraque Bold', sans-serif;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    background-color: var(--black);
    color: var(--white);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    transform: skew(-5deg) rotate(2deg);
    margin-top: 1.5rem;
}

/* --- SEZIONI E COLATURE --- */
.content-section {
    padding: 2rem 5% 4rem 5%;
}

.paint-drip {
    display: block;
    width: 100%;
    height: 80px;
    margin-top: -1px;
    margin-bottom: -1px;
    position: relative;
    z-index: 5;
}

/* --- GRAFFITI BUBBLES GLOBALI --- */
.graffiti-bubble {
    border: 8px solid var(--black);
    border-radius: 200px 70px 220px 80px / 80px 220px 60px 200px;
    padding: 3.5rem 2.5rem;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 16px 16px 0px var(--black);
    position: relative;
    z-index: 10;
}

.bubble-yellow { background-color: var(--yellow); color: var(--black); border-color: var(--black); }
.bubble-yellow h2 { color: var(--black); text-shadow: 3px 3px 0px var(--white); }

.bubble-black { background-color: var(--black); color: var(--white); border-color: var(--yellow); box-shadow: 16px 16px 0px var(--yellow); }
.bubble-black h2 { color: var(--orange); text-shadow: 3px 3px 0px var(--black); }

.bubble-white { background-color: var(--white); color: var(--black); border-color: var(--black); }
.bubble-white h2 { color: var(--green); text-shadow: 3px 3px 0px var(--black); }

.bubble-celeste { background-color: var(--celeste); color: var(--black); border-color: var(--black); }
.bubble-celeste h2 { color: var(--white); text-shadow: 3px 3px 0px var(--black); }

.scattered-wrapper {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
}

.scattered-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.scattered-bubble {
    padding: 2.5rem 2rem;
    position: relative;
}

/* --- NUOVO LAYOUT RECAP & GALLERIA (VOL 1) --- */
.recap-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
    margin-top: 3rem;
}

.lineup-poster {
    background-color: var(--black);
    border: 8px solid var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 12px 12px 0px var(--celeste);
    transform: rotate(-1.5deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lineup-artists {
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 1.5rem;
}

.lineup-artists strong {
    color: var(--yellow);
    display: inline-block;
    margin: 0 0.2rem;
}

.gallery-frame {
position: relative;
width: 100%;
aspect-ratio: 4 / 3; /* Forza una proporzione costante invece di un'altezza fissa */
min-height: auto; /* Rimuoviamo il vincolo dei 400px */
background-color: var(--black);
border: 8px solid var(--white); /* Bordo ridotto (era 16px) */
border-radius: 16px;
box-shadow: 10px 10px 0px var(--black);
overflow: hidden;
transform: rotate(2deg);
z-index: 1;
}

/* --- FOTO IN BIANCO E NERO CONTRASTATO --- */
/* Assicuriamoci che le slide siano sempre contenute */
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* Taglia l'immagine per riempire il riquadro senza deformarsi */
opacity: 0;
transition: opacity 0.6s ease-in-out;
filter: grayscale(100%) contrast(1.2); 
}



.slide.active {
    opacity: 1;
    z-index: 2;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Caraque Bold', sans-serif;
    font-size: 1.5rem;
    background: repeating-linear-gradient(45deg, var(--black), var(--black) 15px, #1a1a1a 15px, #1a1a1a 30px);
}

@keyframes blink { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Correzione per il testo REC su mobile */
#rec-overlay {
font-size: 0.9rem !important; /* Testo più piccolo su mobile */
top: 10px !important;
right: 15px !important;
}
/* --- GRIGLIA MISSIONI --- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.mission-box {
    background-color: var(--white);
    border: 6px solid var(--black);
    padding: 2rem;
    border-radius: 60px 20px 50px 30px;
    box-shadow: 8px 8px 0px var(--black);
}

.mission-box h3 { color: var(--black); margin-bottom: 0.5rem; text-shadow: none; }
.mission-box p { color: var(--black); font-size: 1.1rem; }

.slogan-box {
    background-color: var(--black);
    color: var(--yellow);
    font-family: 'Caraque Bold', sans-serif;
    font-size: 1.4rem;
    padding: 2rem;
    text-align: center;
    border: 6px solid var(--yellow);
    border-radius: 40px 90px 30px 80px;
    margin-top: 3rem;
    box-shadow: 10px 10px 0px var(--black);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .recap-layout { grid-template-columns: 1fr; gap: 4rem; }
    .gallery-frame { aspect-ratio: 4 / 3; min-height: auto; }
}

@media (max-width: 768px) {
    .mission-grid, .scattered-grid { grid-template-columns: 1fr; }
    .graffiti-bubble { 
        padding: 2rem 1.5rem; 
        border-radius: 100px 40px 120px 50px / 50px 120px 40px 100px;
    }
}
/* --- GRANA ANALOGICA (FILM GRAIN) --- */
#film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Generatore di rumore visivo in SVG ultraleggero */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.35; /* Intensità della grana. Alzala a 0.5 se la vuoi più marcata! */
    mix-blend-mode: overlay; /* Fonde la grana con le ombre e le luci della foto */
    z-index: 5;
    pointer-events: none; /* Evita che blocchi i click o le interazioni */
}
/* Centratura titolo e stile per l'immagine */
/* Layout a due colonne per la sezione ANIMA */
.intro-flex-container {
display: flex;
align-items: center; /* Allinea verticalmente l'immagine al testo */
gap: 3rem; /* Spazio tra immagine e testo */
margin-top: 2rem;
}

.puppet-side {
flex: 0 0 250px; /* Larghezza fissa per l'immagine (più grande) */
text-align: center;
}

.puppet-img-side {
width: 100%;
height: auto;

filter: drop-shadow(2px 4px 2px var(--black)); /* Ombra coerente col brand */
}

.text-side {
flex: 1; /* Il testo occupa tutto lo spazio rimanente */
}

/* Responsive: su mobile torna in colonna per non stringere troppo il testo */
@media (max-width: 768px) {
.intro-flex-container {
flex-direction: column;
gap: 1.5rem;
}
.puppet-side {
flex: 0 0 auto;
width: 180px;
}
}

/* --- LOADER SCREEN STYLE --- */
#loader {
position: fixed;
top: 0;
left: 0;
width: 100vw; /* Usa vw/vh per coprire tutto */
height: 100vh;
background-color: var(--black);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999; /* Sopra a tutto */
transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-content {
text-align: center;
width: 80%; /* Usa una percentuale per adattarsi allo schermo */
max-width: 300px; /* Ridotto il max-width per i telefoni piccoli */
}

.loader-logo {
width: 100%; /* Il logo prende la larghezza del contenitore */
max-width: 200px; /* Impedisce che diventi troppo grande */
height: auto;
margin-bottom: 2rem;
animation: pulse-dirty 1.5s infinite ease-in-out;
}

.loader-text {
color: var(--yellow);
font-family: 'Caraque Bold', sans-serif;
letter-spacing: 2px;
margin-top: 1rem;
font-size: 1rem;
}

/* Barra di caricamento stilizzata */
.loader-bar-container {
width: 100%;
height: 10px;
background: #1a1a1a;
border: 2px solid var(--white);
border-radius: 20px;
overflow: hidden;
}

.loader-bar {
width: 0%;
height: 100%;
background-color: var(--yellow);
transition: width 0.4s ease;
}

/* Animazione battito "sporco" */
@keyframes pulse-dirty {
0% { transform: scale(1) rotate(-3deg); filter: brightness(1); }
50% { transform: scale(1.05) rotate(2deg); filter: brightness(1.2); }
100% { transform: scale(1) rotate(-3deg); filter: brightness(1); }
}

/* Classe per nascondere il loader */
#loader.hidden {
opacity: 0;
visibility: hidden;
}
/* --- FIX LINEUP POSTER (MOBILE) --- */
@media (max-width: 768px) {
/* Trasforma la griglia in una colonna singola */
.recap-layout {
display: flex;
flex-direction: column;
gap: 2rem;
}

.lineup-poster {
transform: rotate(0deg); /* Raddrizza il contenitore su mobile per facilitare la lettura */
padding: 1.5rem 1rem;
width: 100%;
box-shadow: 8px 8px 0px var(--celeste); /* Ombra ridotta */
}

.lineup-artists {
font-size: 1.1rem; /* Testo leggermente più piccolo per far entrare i nomi */
line-height: 1.6;
text-align: center;
}

.lineup-poster h4 {
font-size: 1.3rem;
margin-bottom: 1rem;
}


.gallery-frame {
transform: rotate(0deg); /* Lo raddrizziamo per massimizzare lo spazio */
width: 100%;
/* Cambiamo il rapporto: il primo numero è la larghezza, il secondo l'altezza. 
   Aumentando il secondo (es. 3 / 4 o 1 / 1.2) il box diventa più alto. */
aspect-ratio: 1 / 1.2; 
margin-top: 1rem;
border: 8px solid var(--white);
}

.slide {
/* Con l'altezza aumentata, 'cover' assicura che la foto riempia tutto il nuovo spazio */
object-fit: cover; 
}
}
/* --- STILE CREDITI FOTO --- */
.photo-credit {
position: absolute;
bottom: 1px;
right: 3px;
color: rgba(255, 255, 255, 0.8); /* Bianco leggermente trasparente */
font-family: sans-serif; /* Font pulito per i crediti */
font-size: 0.5rem;
letter-spacing: 1px;
z-index: 10;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Ombra per renderlo leggibile su ogni foto */
text-transform: uppercase;
}

/* Modifica specifica per mobile */
@media (max-width: 768px) {
.photo-credit {
bottom: 1px;
right: 3px;
font-size: 0.5rem;
}
}

/* --- SEZIONE PALETTE LINEE CURVE --- */
.palette-bridge {
    width: 100%;
    height: 150px; /* Altezza della transizione */
    display: flex;
    overflow: hidden;
    background: var(--white); /* Parte dal bianco */
}

.color-stripe {
    flex: 1;
    height: 100%;
    /* Crea l'effetto curva in verticale */
    border-radius: 50% 50% 0 0 / 20px 20px 0 0; 
    transform: translateY(10px);
}

/* Colori della palette ANIMA */
.stripe-yellow  { background-color: var(--yellow); }
.stripe-orange  { background-color: var(--orange); }
.stripe-purple  { background-color: var(--purple); }
.stripe-green   { background-color: var(--green); }
.stripe-celeste { background-color: var(--celeste); }
.stripe-black   { background-color: var(--black); }
/* --- BANNER INFORMATIVO COOKIE (Stile ANIMA) --- */
@keyframes cookieSlideIn {
    0% { transform: translate(-50%, 100%); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes cookieFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 0);
    width: 90%;
    max-width: 600px;
    background-color: var(--yellow);
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    padding: 1.2rem;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: cookieSlideIn 0.6s ease-out forwards;
}
.cookie-banner.show { display: flex; }
.cookie-banner.fade-out { animation: cookieFadeOut 0.4s ease-in forwards; }
.cookie-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
    text-align: center; 
    font-family: 'League Spartan', sans-serif;
}
.cookie-content p { margin: 0; font-size: 1rem; font-weight: 500; color: var(--black); }
.cookie-content a { color: var(--purple); font-weight: 700; text-decoration: underline; }
.cta-banner-btn {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Caraque Bold', sans-serif;
    border: 2px solid var(--black);
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 4px 4px 0px var(--white);
}
.cta-banner-btn:hover { transform: scale(1.05); }

@media (min-width: 768px) {
    .cookie-content { flex-direction: row; justify-content: space-between; text-align: left; }
}
/* ==========================================================
   ANIMA V2 — REDESIGN COMPATTO / MOBILE FIRST
   Mantiene palette e identità, ma riduce l'effetto "mega box".
   ========================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-size: 16px;
}

/* NAV: sempre visibile, molto più semplice da usare anche col pollice */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 3px solid var(--yellow);
    backdrop-filter: blur(10px);
}

.site-nav-inner {
    width: min(1180px, 100%);
    min-height: 58px;
    margin: 0 auto;
    padding: 0.35rem clamp(0.75rem, 3vw, 1.4rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 72px;
    height: 44px;
    border-radius: 9px;
    background: var(--yellow);
    transform: rotate(-2deg);
}

.nav-brand img {
    display: block;
    width: 58px;
    max-height: 36px;
    object-fit: contain;
}

.nav-links {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    flex: 0 0 auto;
    color: var(--white);
    text-decoration: none;
    font-family: 'Caraque Bold', 'League Spartan', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.72rem 0.85rem;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--black);
    background: var(--yellow);
    border-color: var(--yellow);
    outline: none;
}

/* HERO: impatto sì, ma non occupa mezza pagina */
.hero-section {
    padding: 1.35rem 5% 1rem !important;
}

.hero-logo {
    max-width: 235px !important;
}

.hero-subtitle {
    margin-top: 0.65rem !important;
    padding: 0.38rem 1rem !important;
    font-size: clamp(0.9rem, 2.6vw, 1.2rem) !important;
}

.paint-drip {
    height: 28px !important;
}

/* SEZIONI: meno vuoto e una larghezza più leggibile */
.content-section {
    padding: clamp(1.2rem, 2.8vw, 2rem) 4vw clamp(2rem, 4vw, 3rem);
}

.content-section > * {
    width: min(100%, 1080px);
    margin-left: auto;
    margin-right: auto;
}

/* CONTENITORI: da enormi bolle a card editoriali più leggere */
.graffiti-bubble {
    max-width: 980px;
    padding: clamp(1.35rem, 2.7vw, 2rem) clamp(1.15rem, 2.5vw, 1.8rem);
    border-width: 5px;
    border-radius: 34px 16px 42px 20px / 20px 42px 18px 36px;
    box-shadow: 8px 8px 0 var(--black);
}

.bubble-black {
    box-shadow: 8px 8px 0 var(--yellow);
}

.graffiti-bubble + .graffiti-bubble {
    margin-top: 1.6rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    margin-bottom: 0.7rem;
}

p {
    font-size: clamp(0.98rem, 1.5vw, 1.08rem);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.text-side p,
.graffiti-bubble > p {
    max-width: 74ch;
    margin-left: auto;
    margin-right: auto;
}

/* INTRO: il puppet diventa un accento, non metà del layout */
.intro-flex-container {
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-top: 1.1rem;
    align-items: center;
}

.puppet-side {
    flex-basis: 180px;
}

/* FESTIVAL CARDS */
.scattered-wrapper {
    max-width: 980px;
}

.scattered-grid {
    gap: 1.15rem;
    margin-top: 1.15rem;
}

.scattered-grid .graffiti-bubble {
    padding: 1.35rem !important;
    border-width: 5px !important;
    border-radius: 24px !important;
    box-shadow: 7px 7px 0 var(--black) !important;
}

/* GALLERIA: più "cinema", meno blocco gigante */
.gallery-frame {
    max-width: 700px !important;
    aspect-ratio: 16 / 10 !important;
    border-width: 5px !important;
    border-radius: 12px !important;
    box-shadow: 7px 7px 0 var(--black) !important;
    transform: rotate(0.5deg) !important;
}

/* EDIZIONI */
.editions-layout {
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
}

.lineup-poster {
    padding: 1.45rem 1.2rem;
    border-width: 5px;
    border-radius: 14px;
    box-shadow: 7px 7px 0 var(--celeste);
}

.lineup-artists {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* MISSIONE */
.mission-grid {
    gap: 1rem;
    margin-top: 1.3rem;
}

.mission-box {
    padding: 1.25rem;
    border-width: 4px;
    border-radius: 24px 10px 26px 14px;
    box-shadow: 6px 6px 0 var(--black);
}

.mission-box p {
    font-size: 1rem;
}

.slogan-box {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    padding: 1.25rem;
    border-width: 4px;
    border-radius: 20px 34px 18px 30px;
    margin-top: 1.5rem;
    box-shadow: 6px 6px 0 var(--black);
}

.palette-bridge {
    height: 70px;
}

#contatti {
    padding: 2rem 5% !important;
}

/* TABLET */
@media (max-width: 900px) {
    .site-nav-inner {
        padding-right: 0.55rem;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .editions-layout {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* MOBILE: qui cambia davvero l'esperienza */
@media (max-width: 680px) {
    html {
        scroll-padding-top: 64px;
    }

    .site-nav-inner {
        min-height: 54px;
        gap: 0.55rem;
        padding-left: 0.55rem;
    }

    .nav-brand {
        width: 54px;
        height: 38px;
    }

    .nav-brand img {
        width: 44px;
        max-height: 31px;
    }

    .nav-links a {
        font-size: 0.72rem;
        padding: 0.62rem 0.72rem;
    }

    .hero-section {
        padding: 0.9rem 4vw 0.75rem !important;
    }

    .hero-logo {
        max-width: 180px !important;
    }

    .paint-drip {
        height: 18px !important;
    }

    .content-section {
        padding: 0.9rem 0.8rem 1.8rem;
    }

    .graffiti-bubble {
        width: 100%;
        padding: 1.05rem 0.95rem !important;
        border-width: 4px !important;
        border-radius: 22px 10px 26px 12px / 12px 26px 10px 22px !important;
        box-shadow: 5px 5px 0 var(--black) !important;
        transform: none !important;
    }

    .bubble-black {
        box-shadow: 5px 5px 0 var(--yellow) !important;
    }

    h2 {
        font-size: clamp(1.55rem, 8vw, 2rem) !important;
        text-shadow: 2px 2px 0 var(--white) !important;
        margin-bottom: 0.8rem;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    p {
        font-size: 0.98rem !important;
        line-height: 1.48;
    }

    .intro-flex-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.8rem;
        margin-top: 0.75rem;
    }

    .puppet-side {
        flex: 0 0 86px;
        width: 86px;
        position: sticky;
        top: 70px;
    }

    .text-side {
        min-width: 0;
    }

    blockquote {
        margin: 0.8rem 0 !important;
        padding-left: 0.7rem !important;
        font-size: 0.95rem;
    }

    .scattered-grid,
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .scattered-grid .graffiti-bubble {
        padding: 1rem !important;
    }

    .gallery-frame {
        width: calc(100% - 2px) !important;
        aspect-ratio: 4 / 3 !important;
        border-width: 4px !important;
        box-shadow: 5px 5px 0 var(--black) !important;
        transform: none !important;
        margin-top: 0.5rem !important;
    }

    .editions-layout {
        display: flex !important;
        overflow-x: auto;
        gap: 0.8rem !important;
        padding: 0.2rem 0.2rem 0.7rem;
        margin-top: 1rem !important;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .editions-layout::-webkit-scrollbar { display: none; }

    .editions-layout .lineup-poster {
        flex: 0 0 min(86vw, 330px);
        scroll-snap-align: start;
        padding: 1rem 0.85rem;
        border-width: 4px;
        transform: none !important;
        box-shadow: 5px 5px 0 var(--celeste);
    }

    .lineup-artists {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .mission-box {
        grid-column: auto !important;
        padding: 1rem;
        border-width: 3px;
        box-shadow: 4px 4px 0 var(--black);
    }

    .slogan-box {
        padding: 1rem;
        margin-top: 1rem;
    }

    .palette-bridge {
        height: 42px;
    }

    .cookie-banner {
        bottom: 0.7rem;
        width: calc(100% - 1.2rem);
        padding: 0.8rem;
        border-width: 3px;
        box-shadow: 5px 5px 0 var(--black);
    }

    .cookie-content p {
        font-size: 0.88rem !important;
    }
}

/* Telefoni molto stretti: niente elementi affiancati */
@media (max-width: 380px) {
    .intro-flex-container {
        flex-direction: column;
    }

    .puppet-side {
        position: static;
        width: 80px;
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================
   ANIMA V3 — NAV SENZA LOGO + INTRO MOBILE PIÙ LEGGERA
   ========================================================== */

/* La barra ora è solo navigazione: niente logo/brand. */
.site-nav-inner {
    justify-content: center;
}

.nav-links {
    width: 100%;
    justify-content: center;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
}

.nav-links a {
    scroll-snap-align: center;
}

@media (max-width: 900px) {
    .site-nav-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .nav-links {
        justify-content: flex-start;
        padding: 0.15rem 0.65rem 0.2rem;
        gap: 0.28rem;
    }
}

/* Mobile: COS'È ANIMA smette di essere una grande "bolla".
   Rimane giallo e riconoscibile, ma diventa un blocco editoriale piatto e compatto. */
@media (max-width: 680px) {
    .site-nav-inner {
        min-height: 48px;
    }

    .nav-links a {
        font-size: 0.69rem;
        padding: 0.58rem 0.68rem;
    }

    #anima {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.55rem;
    }

    #anima > .bubble-yellow:first-of-type {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1rem 1rem 0.95rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
    }

    #anima > .bubble-yellow:first-of-type h2 {
        max-width: 12ch;
        margin: 0 0 0.75rem !important;
        text-align: left !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 0.96;
        text-shadow: 2px 2px 0 var(--white) !important;
    }

    #anima .intro-flex-container {
        position: relative;
        display: block;
        margin-top: 0 !important;
    }

    #anima .puppet-side {
        position: absolute;
        top: -3.2rem;
        right: -0.35rem;
        width: 62px;
        height: auto;
        opacity: 0.95;
        pointer-events: none;
    }

    #anima .puppet-img-side {
        width: 62px;
        filter: drop-shadow(1px 2px 1px rgba(0,0,0,.45));
    }

    #anima .text-side {
        width: 100%;
    }

    #anima .text-side p {
        font-size: 0.94rem !important;
        line-height: 1.42;
        margin: 0 0 0.68rem;
        max-width: none;
    }

    #anima .text-side p:first-child {
        max-width: calc(100% - 58px);
        font-size: 0.98rem !important;
        line-height: 1.34;
    }

    #anima blockquote {
        margin: 0.65rem 0 !important;
        padding: 0.45rem 0 0.45rem 0.7rem !important;
        border-left-width: 3px !important;
        font-size: 0.91rem;
        line-height: 1.35;
    }

    #anima > .bubble-yellow:first-of-type > div:last-child {
        margin-top: 0.8rem !important;
        padding-top: 0.7rem !important;
        text-align: left !important;
    }

    #anima > .bubble-yellow:first-of-type > div:last-child a {
        padding: 0.45rem 0.7rem !important;
        border-width: 2px !important;
        border-radius: 999px !important;
        font-size: 0.78rem !important;
        gap: 0.45rem !important;
    }

    #anima > .bubble-yellow:first-of-type > div:last-child svg {
        width: 17px;
        height: 17px;
    }

    /* Il secondo box non si incolla al primo e resta più piccolo. */
    #anima > .bubble-black {
        width: calc(100% - 1.6rem);
        margin-left: 0.8rem;
        margin-right: 0.8rem;
        margin-top: 0.9rem !important;
        margin-bottom: 0.8rem !important;
        padding: 0.95rem 0.9rem !important;
    }
}

@media (max-width: 380px) {
    #anima .puppet-side {
        display: block;
        position: absolute;
        top: -3rem;
        right: -0.2rem;
        width: 54px;
    }

    #anima .puppet-img-side {
        width: 54px;
    }
}

/* ==========================================================
   ANIMA V4 — MOBILE EDITORIAL SYSTEM
   Estende alle altre sezioni la logica pulita di "COS'È ANIMA".
   Desktop resta invariato; sotto 680px spariscono i mega-contenitori.
   ========================================================== */
@media (max-width: 680px) {
    /* Regola comune: la sezione è il contenitore. */
    #festival,
    #memorie,
    #edizioni,
    #missione {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0.55rem !important;
        padding-bottom: 1.15rem !important;
    }

    #festival > *,
    #memorie > *,
    #edizioni > *,
    #missione > * {
        width: 100% !important;
        max-width: none !important;
    }

    /* ---------- FESTIVAL ---------- */
    #festival .scattered-wrapper {
        margin: 0 !important;
    }

    #festival .scattered-wrapper > .bubble-white:first-child {
        margin: 0 !important;
        padding: 1rem 1rem 0.95rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--white) !important;
    }

    #festival .scattered-wrapper > .bubble-white:first-child h2 {
        max-width: 14ch;
        margin: 0 0 0.7rem !important;
        text-align: left !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 0.98;
        color: var(--black) !important;
        text-shadow: 2px 2px 0 var(--yellow) !important;
    }

    #festival .scattered-wrapper > .bubble-white:first-child p {
        margin: 0 !important;
        max-width: none !important;
        font-size: 0.94rem !important;
        line-height: 1.43;
        text-align: left !important;
    }

    #festival .scattered-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.55rem !important;
        margin: 0.7rem 0.8rem 0 !important;
    }

    #festival .scattered-grid .graffiti-bubble {
        width: 100% !important;
        margin: 0 !important;
        padding: 0.9rem 0.9rem 0.82rem !important;
        border: 0 !important;
        border-left: 5px solid var(--black) !important;
        border-radius: 0 12px 12px 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    #festival .scattered-grid .graffiti-bubble:nth-child(2) {
        border-left-color: var(--yellow) !important;
    }

    #festival .scattered-grid h3 {
        margin: 0 0 0.4rem !important;
        font-size: 1.05rem !important;
        line-height: 1;
    }

    #festival .scattered-grid p {
        margin: 0 !important;
        max-width: none !important;
        font-size: 0.9rem !important;
        line-height: 1.4;
    }

    /* ---------- MEMORIE ---------- */
    #memorie > .bubble-black {
        margin: 0 !important;
        padding: 0.95rem 1rem 1rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: var(--black) !important;
    }

    #memorie > .bubble-black > h2 {
        max-width: 12ch;
        margin: 0 0 0.45rem !important;
        text-align: left !important;
        color: var(--black) !important;
        text-shadow: 2px 2px 0 var(--yellow) !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 0.98;
    }

    #memorie > .bubble-black > p:first-of-type {
        margin: 0 0 0.8rem !important;
        text-align: left !important;
        color: var(--black) !important;
        font-size: 0.94rem !important;
        line-height: 1.4;
        max-width: 31ch;
    }

    #memorie .gallery-frame {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        aspect-ratio: 16 / 11 !important;
        border: 4px solid var(--black) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    #memorie > .bubble-black > p:last-of-type {
        margin: 0.55rem 0 0 !important;
        text-align: left !important;
        color: rgba(0,0,0,.72) !important;
        font-size: 0.74rem !important;
        line-height: 1.25;
    }

    /* ---------- EDIZIONI ---------- */
    #edizioni > .bubble-yellow {
        margin: 0 !important;
        padding: 1rem 0 0.95rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--yellow) !important;
        overflow: hidden;
    }

    #edizioni > .bubble-yellow > h2,
    #edizioni > .bubble-yellow > p {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    #edizioni > .bubble-yellow > h2 {
        max-width: 12ch;
        margin-top: 0 !important;
        margin-bottom: 0.55rem !important;
        text-align: left !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 0.98;
        color: var(--black) !important;
        text-shadow: 2px 2px 0 var(--white) !important;
    }

    #edizioni > .bubble-yellow > p {
        margin-bottom: 0.45rem !important;
        text-align: left !important;
        font-size: 0.92rem !important;
        line-height: 1.4;
        max-width: 32ch !important;
    }

    #edizioni .editions-layout {
        position: relative;
        display: flex !important;
        gap: 0.65rem !important;
        width: 100% !important;
        margin: 0.35rem 0 0 !important;
        padding: 1.45rem 1rem 0.3rem !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #edizioni .editions-layout::before {
        content: "SCORRI LE EDIZIONI  →";
        position: absolute;
        top: 0.25rem;
        left: 1rem;
        color: rgba(0,0,0,.72);
        font-family: 'Caraque Bold', sans-serif;
        font-size: 0.68rem;
        letter-spacing: .06em;
    }

    #edizioni .editions-layout::-webkit-scrollbar { display: none; }

    #edizioni .lineup-poster {
        flex: 0 0 min(82vw, 305px) !important;
        min-height: auto !important;
        scroll-snap-align: start;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0.85rem 0.75rem !important;
        border: 3px solid var(--white) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    #edizioni .lineup-poster > div:first-child {
        margin-bottom: 0.8rem !important;
        padding: 0.3rem 0.55rem !important;
        font-size: 0.75rem !important;
        transform: none !important;
    }

    #edizioni .lineup-poster h4 {
        margin: 0 0 0.7rem !important;
        padding-bottom: 0.55rem !important;
        font-size: 1rem !important;
        line-height: 1.05;
        border-bottom-width: 2px !important;
    }

    #edizioni .lineup-artists {
        margin-bottom: 0.65rem !important;
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    /* ---------- MISSIONE ---------- */
    #missione > .bubble-white {
        margin: 0 !important;
        padding: 1rem 1rem 0.95rem !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: var(--white) !important;
    }

    #missione > .bubble-white > h2 {
        max-width: 14ch;
        margin: 0 0 0.55rem !important;
        text-align: left !important;
        color: var(--black) !important;
        text-shadow: 2px 2px 0 var(--yellow) !important;
        font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
        line-height: 0.98;
    }

    #missione > .bubble-white > p {
        margin: 0 0 0.75rem !important;
        text-align: left !important;
        max-width: none !important;
        font-size: 0.92rem !important;
        line-height: 1.4;
    }

    #missione .mission-grid {
        display: block !important;
        margin: 0 !important;
    }

    #missione .mission-box {
        position: relative;
        margin: 0 !important;
        padding: 0.8rem 0 0.82rem 0.85rem !important;
        border: 0 !important;
        border-left: 4px solid currentColor !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    #missione .mission-box + .mission-box {
        margin-top: 0.25rem !important;
        border-top: 1px solid rgba(0,0,0,.12) !important;
    }

    #missione .mission-box:nth-child(1) { color: var(--purple) !important; }
    #missione .mission-box:nth-child(2) { color: var(--green) !important; }
    #missione .mission-box:nth-child(3) { color: var(--orange) !important; }

    #missione .mission-box h3 {
        margin: 0 0 0.32rem !important;
        color: currentColor !important;
        font-size: 1rem !important;
        line-height: 1;
    }

    #missione .mission-box p {
        margin: 0 !important;
        color: var(--black) !important;
        font-size: 0.88rem !important;
        line-height: 1.38;
    }

    #missione .slogan-box {
        margin: 0.8rem 0 0 !important;
        padding: 0.8rem 0.85rem !important;
        border: 0 !important;
        border-left: 5px solid var(--yellow) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
        font-size: 0.92rem !important;
        line-height: 1.35;
    }

    /* Chiusura e footer: meno spazio morto. */
    #missione + section {
        padding: 1.65rem 1rem !important;
    }

    #missione + section h2 {
        margin-bottom: 0.45rem !important;
        font-size: clamp(1.7rem, 8vw, 2.2rem) !important;
    }

    #missione + section p {
        margin: 0 !important;
    }

    #contatti .footer-legal-info p {
        margin-bottom: 0.4rem !important;
        font-size: 0.82rem !important;
    }
}
