:root {
    /* Nuova palette vivace stile Instagram */
    --c-blue: #d6e8f0;
    --c-grey: #a0a6a9;
    --c-red: #d15654;
    --c-peach: #ffa270;
    --c-green: #b6cdae;
    --c-purple: #e0bdf6;
    --c-yellow: #f5b027; /* il colore della macchia d'accento */
    
    /* Colori pastello derivati dai campioni immagine dell'utente */
    --c-pastel-orange: #f9c1b1;  /* da #E95027 */
    --c-pastel-yellow: #ffe29e;  /* da #FFC231 */
    --c-pastel-blue: #bcd4fc;    /* da #4988F1 */
    --c-pastel-green: #b7ecd3;   /* da #20A357 */
    --c-pastel-brown: #dfc9b8;   /* da #997052 */
    --c-pastel-pink: #fbc4db;    /* da #F377A9 */
    --c-pastel-cream: #faf8ee;   /* da #F3EFD6 */
    --c-pastel-grey: #e2e5e6;    /* da #2D2C2C */
    
    --text-black: #1a1a1a;
    --text-white: #fdfdfd;
    --bg-white: #f4f4f4;
    --bg-brown: #997052;

}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-black);
    line-height: 1.4;
    padding-top: 80px; /* Spazio per la navbar fissa */
}

/* --- UTILITY TIPOGRAFICHE DEL BRAND --- */
.text-sunflower {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
    -webkit-text-stroke: 1.5px var(--text-black);
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.text-festival {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* --- BARRA DI NAVIGAZIONE --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--text-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

/* Stato navbar in glassmorphism quando sovrapposta alla slide hero */
.main-nav.transparent-nav {
    background-color: var(--text-black);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-nav.transparent-nav .nav-logo .text-sunflower {
    -webkit-text-stroke: 1.2px var(--text-white);
}

.main-nav.transparent-nav .nav-logo .text-festival {
    color: var(--c-yellow);
}

.main-nav.transparent-nav .nav-links a {
    color: var(--text-white);
}

.main-nav.transparent-nav .nav-links a:hover,
.main-nav.transparent-nav .nav-links a.active {
    color: var(--c-yellow);
}

.main-nav.transparent-nav .menu-toggle span {
    background-color: var(--text-white);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-decoration: none;
    line-height: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: rotate(-3deg);
}

.nav-logo img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: rotate(-1deg) scale(1.05);
}

.nav-logo .text-sunflower {
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    -webkit-text-stroke: 1.2px var(--text-black);
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav-logo .text-festival {
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--c-yellow);
    transform: scale(1.1) rotate(-2deg);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}


/* --- TRANSIZIONI DROPDOWN NAVBAR E TENDINA DI PAGINA --- */
/* Stile della tendina di pagina */
.page-curtain {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--text-black);
    z-index: 100000; /* Deve sovrapporsi a tutto, inclusa la navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    pointer-events: none;
    border-bottom: 8px solid #FFC231;
}

html.no-curtain .page-curtain {
    display: none !important;
}

.page-curtain.slide-out {
    transform: translateY(100%);
}

.curtain-content {
    text-align: center;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.curtain-logo {
    height: 180px;
    width: auto;
    animation: 
        curtainLogoIntro 1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        curtainLogoFloat 4s ease-in-out infinite 1s;
    transform-origin: center;
}

@keyframes curtainLogoIntro {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-90deg);
        filter: drop-shadow(0 0 0px rgba(255, 194, 49, 0));
    }
    70% {
        opacity: 1;
        transform: scale(1.15) rotate(10deg);
        filter: drop-shadow(0 0 20px rgba(255, 194, 49, 0.6));
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 194, 49, 0.3));
    }
}

@keyframes curtainLogoFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 194, 49, 0.3));
    }
    50% {
        transform: translateY(-8px) scale(1.04) rotate(3deg);
        filter: drop-shadow(0 0 25px rgba(255, 194, 49, 0.75));
    }
}


/* --- EFFETTO MACCHINA DA SCRIVERE PER IL TESTO CORSIVO DELLA TENDINA --- */
.curtain-cursive-text {
    font-family: 'Dancing Script', cursive;
    font-size: 8.5rem;
    color: #FFC231;
    text-shadow: 4px 4px 0px rgba(255, 194, 49, 0.15);
    white-space: nowrap;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    opacity: 0; /* Hide initially before animation starts */
    clip-path: inset(-20px 100% -20px -20px);
    animation: typewriterEffect 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.curtain-cursive-text::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 5px;
    background-color: #FFC231;
    box-shadow: 0 0 6px rgba(255, 194, 49, 0.5);
    pointer-events: none;
    opacity: 0; /* Hide initially before animation starts */
    animation: 
        cursorMove 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both,
        blinkCursor 0.6s step-end infinite 0.2s;
}

@keyframes typewriterEffect {
    from {
        opacity: 1;
        clip-path: inset(-20px 100% -20px -20px);
    }
    to {
        opacity: 1;
        clip-path: inset(-20px -30px -20px -20px);
    }
}

@keyframes cursorMove {
    from {
        opacity: 1;
        left: 0;
    }
    to {
        opacity: 1;
        left: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .page-curtain {
        display: none !important;
    }
    .curtain-cursive-text {
        font-size: 4.5rem;
    }
    .curtain-cursive-text::after {
        width: 3px;
    }
}

/* Stile del dropdown coerente con il tema brutalist */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .nav-dropdown .dropdown-trigger {
    background-color: #FFC231;
    color: var(--text-black);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 3px solid var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
    font-size: 1rem;
    transform: rotate(-1deg);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-links .nav-dropdown .dropdown-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-links .nav-dropdown .dropdown-trigger:hover {
    background-color: var(--text-white);
    color: var(--text-black);
    border-color: var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
    transform: rotate(1deg) scale(1.05);
    text-decoration: none;
}

/* Rotazione dello chevron su hover/attivo della navbar */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-trigger i {
        transform: rotate(180deg);
    }
    .main-nav.transparent-nav .nav-dropdown .dropdown-trigger:hover {
        background-color: var(--text-white);
        color: var(--text-black);
    }
}

.nav-dropdown.active .dropdown-trigger i {
    transform: rotate(180deg);
}

/* Stato del trigger navbar in glassmorphism */
.main-nav.transparent-nav .nav-dropdown .dropdown-trigger {
    background-color: #FFC231;
    color: var(--text-black);
    border-color: var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
}

/* Stato cliccato/aperto: bianco con contorno nero, sovrascrive hover e transparent-nav */
.nav-links .nav-dropdown.active .dropdown-trigger,
.main-nav.transparent-nav .nav-dropdown.active .dropdown-trigger {
    background-color: var(--text-white) !important;
    color: var(--text-black) !important;
    border-color: var(--text-black) !important;
    box-shadow: 4px 4px 0px var(--text-black) !important;
}

/* Blocco del menu a tendina */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-white, #f4f4f4);
    min-width: 340px;
    border: 3px solid var(--text-black);
    box-shadow: 6px 6px 0px var(--text-black);
    z-index: 1010;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 15px;
    text-align: left;
}

/* Ponte per colmare lo spazio hover tra trigger e contenuto */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    z-index: -1;
}

/* Supporta il toggle dello stato attivo su tutte le dimensioni di schermo */
.nav-dropdown.active .dropdown-content {
    display: block;
}

/* Hover su desktop */
@media (min-width: 992px) {
    .nav-dropdown:hover .dropdown-content {
        display: block;
        animation: dropFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dropdown-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-black);
    margin-bottom: 0.1rem;
    letter-spacing: 0.5px;
}

.dropdown-item p {
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.7);
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.dropdown-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--text-black);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 3px solid var(--text-black);
    border-radius: 8px;
    box-shadow: 3px 3px 0px var(--text-black);
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
}

.dropdown-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--text-black);
    color: var(--text-black) !important;
}

.dropdown-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

.dropdown-btn.bg-yellow {
    background-color: var(--c-yellow);
}

.dropdown-btn.bg-red {
    background-color: var(--c-red);
    color: var(--text-white);
}

.dropdown-btn.bg-red:hover {
    color: var(--text-white) !important;
}

.dropdown-divider {
    height: 3px;
    background-color: var(--text-black);
    margin: 1.2rem 0;
}

/* --- SIMPLE DROPDOWN SYSTEM --- */
.nav-links .nav-dropdown.simple-dropdown .dropdown-trigger {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--text-white) !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    text-decoration: none !important;
}

.nav-links .nav-dropdown.simple-dropdown .dropdown-trigger:hover {
    color: var(--c-yellow) !important;
    transform: scale(1.1) rotate(-2deg) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-links .nav-dropdown.simple-dropdown.active .dropdown-trigger {
    background: none !important;
    color: var(--c-yellow) !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: underline !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

.dropdown-content.simple {
    min-width: 220px !important;
    padding: 0.5rem !important;
}

.dropdown-link {
    display: block !important;
    padding: 0.8rem 1.2rem !important;
    color: var(--text-black) !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    border: 2px solid transparent !important;
}

.dropdown-link:hover {
    background-color: var(--c-yellow) !important;
    color: var(--text-black) !important;
    border-color: var(--text-black) !important;
}

/* Adjustments on mobile */
@media (max-width: 768px) {
    .nav-links .nav-dropdown.simple-dropdown .dropdown-trigger {
        font-size: 1.8rem !important;
        color: var(--text-black) !important;
        padding: 0.5rem 1.5rem !important;
        margin-bottom: 0.2rem !important;
        display: inline-flex !important;
        justify-content: center !important;
    }
    
    .nav-links .nav-dropdown.simple-dropdown .dropdown-trigger:hover,
    .nav-links .nav-dropdown.simple-dropdown .dropdown-trigger:focus {
        color: var(--text-black) !important;
        background: none !important;
        transform: none !important;
        text-decoration: none !important;
    }
    
    .nav-links .nav-dropdown.simple-dropdown.active .dropdown-trigger,
    .nav-links .nav-dropdown.simple-dropdown.active .dropdown-trigger:hover,
    .nav-links .nav-dropdown.simple-dropdown.active .dropdown-trigger:focus,
    .main-nav.transparent-nav .nav-dropdown.simple-dropdown.active .dropdown-trigger,
    .main-nav.transparent-nav .nav-dropdown.simple-dropdown.active .dropdown-trigger:hover,
    .main-nav.transparent-nav .nav-dropdown.simple-dropdown.active .dropdown-trigger:focus {
        background: none !important;
        color: var(--text-black) !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
        text-decoration: none !important;
        text-shadow: none !important;
    }
    
    .dropdown-content.simple {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 12px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 90% !important;
        max-width: 260px !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, padding 0.3s ease, margin 0.3s ease !important;
    }
    
    .nav-dropdown.simple-dropdown.active .dropdown-content.simple {
        background-color: var(--bg-white, #f4f4f4) !important;
        border: 3px solid var(--text-black) !important;
        box-shadow: 4px 4px 0px var(--text-black) !important;
        padding: 0.8rem !important;
        margin: 0.5rem auto 0 auto !important;
        max-height: 500px !important;
        opacity: 1 !important;
    }
    
    .dropdown-content.simple .dropdown-link {
        font-size: 1.2rem !important;
        font-weight: 800 !important;
        color: var(--text-black) !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.6rem 1rem !important;
        margin: 0.2rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    
    .dropdown-content.simple .dropdown-link:hover,
    .dropdown-content.simple .dropdown-link:active {
        background-color: var(--c-yellow) !important;
        color: var(--text-black) !important;
        border: 2px solid transparent !important;
        box-shadow: none !important;
        transform: none !important;
        border-radius: 6px !important;
    }
}


/* Stili del dropdown su mobile */
@media (max-width: 768px) {
    .nav-links .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links .nav-dropdown .dropdown-trigger {
        font-size: 1.8rem;
        width: auto;
        padding: 0.5rem 1.5rem;
        margin-bottom: 0.5rem;
        display: inline-flex;
        justify-content: center;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        color: var(--text-black);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .nav-links .nav-dropdown .dropdown-trigger i {
        font-size: 1.4rem;
    }
    
    @media (hover: hover) {
        .nav-links .nav-dropdown .dropdown-trigger:hover {
            background: none;
            color: var(--text-white);
            transform: rotate(-2deg) scale(1.05);
            text-shadow: 3px 3px 0px var(--text-black);
        }
        .main-nav.transparent-nav .nav-dropdown .dropdown-trigger:hover {
            color: var(--text-white);
        }
    }

    .nav-links .nav-dropdown.active .dropdown-trigger,
    .main-nav.transparent-nav .nav-dropdown.active .dropdown-trigger {
        background-color: var(--text-white);
        color: var(--text-black);
        border-radius: 50px;
        padding: 0.5rem 1.5rem;
        box-shadow: 4px 4px 0px var(--text-black);
        transform: rotate(-2deg) scale(1.05);
        text-shadow: none;
    }

    /* Fa comportare correttamente il trigger del menu mobile trasparente */
    .main-nav.transparent-nav .nav-dropdown .dropdown-trigger {
        background: none;
        color: var(--text-black);
        border: none;
        box-shadow: none;
    }

    /* Evita che il trigger del dropdown diventi bianco/invisibile al focus/hover su mobile */
    .nav-links .nav-dropdown .dropdown-trigger:hover,
    .nav-links .nav-dropdown .dropdown-trigger:focus,
    .main-nav.transparent-nav .nav-dropdown .dropdown-trigger:hover,
    .main-nav.transparent-nav .nav-dropdown .dropdown-trigger:focus {
        color: var(--text-black) !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Ripristina lo stato attivo corretto anche se con focus o hover */
    .nav-links .nav-dropdown.active .dropdown-trigger:hover,
    .nav-links .nav-dropdown.active .dropdown-trigger:focus,
    .main-nav.transparent-nav .nav-dropdown.active .dropdown-trigger:hover,
    .main-nav.transparent-nav .nav-dropdown.active .dropdown-trigger:focus {
        background-color: var(--text-white) !important;
        color: var(--text-black) !important;
        border-radius: 50px !important;
        padding: 0.5rem 1.5rem !important;
        box-shadow: 4px 4px 0px var(--text-black) !important;
        transform: rotate(-2deg) scale(1.05) !important;
        text-shadow: none !important;
    }
    
    .dropdown-content {
        position: relative;
        top: 0;
        right: 0;
        width: 90%;
        max-width: 320px;
        min-width: unset;
        box-shadow: 4px 4px 0px var(--text-black);
        margin: 0.5rem auto 0 auto;
        border-radius: 12px;
        background-color: var(--bg-white, #f4f4f4);
        /* Espansione fluida invece del toggle display */
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    }

    .nav-dropdown.active .dropdown-content {
        max-height: 1000px;
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- INTESTAZIONI COMUNI DI PAGINA --- */
.page-header {
    background-color: var(--text-black);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--c-yellow);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.page-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* --- CONTENUTO HOMEPAGE --- */
.full-width-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.info-section {
    position: relative;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.info-block.reverse {
    flex-direction: row-reverse;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--c-yellow);
    margin-bottom: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
}

.info-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.info-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.torn-paper-large {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--c-blue); /* Può essere sovrascritto inline */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 15px white;
    padding: 15px; /* spazio per il bordo bianco */
}

.torn-paper-large.shape-2 { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }

.torn-paper-inner {
    width: 100%;
    height: 100%;
    background-color: #333;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
}

/* --- GALLERIA A MASONRY --- */
.gallery-container {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 2rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
}

.gallery-item .torn-paper-frame {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    padding-bottom: 100%; /* Per alcune versioni quadrate */
}

.gallery-item.tall .torn-paper-frame { padding-bottom: 150%; }
.gallery-item.wide .torn-paper-frame { padding-bottom: 75%; }

.gallery-caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--c-yellow);
    text-align: center;
    margin-top: 1rem;
    text-transform: uppercase;
}


/* --- CONTENITORE GRIGLIA (EDIZIONE 2026) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Card base */
.festival-card {
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 0;
}

/* Colori di sfondo */
.bg-blue { background-color: var(--c-blue); }
.bg-grey { background-color: var(--c-grey); }
.bg-red { background-color: var(--c-red); }
.bg-peach { background-color: var(--c-peach); }
.bg-green { background-color: var(--c-green); }
.bg-purple { background-color: var(--c-purple); }

/* Sezione superiore della card */
.card-top {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    z-index: 10;
}

.venue { font-size: 1rem; font-weight: 900; text-transform: uppercase; line-height: 1.1; width: 33%; }

.card-logo {
    text-align: center;
    line-height: 0.9;
    width: 33%;
    transform: rotate(-3deg);
}
.card-logo .text-sunflower {
    font-size: 0.95rem;
    -webkit-text-stroke: 0.8px var(--text-black);
    display: block;
}
.card-logo .text-festival {
    font-size: 0.95rem;
}
.card-logo .year {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.ticket-info {
    position: relative;
    width: 33%;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    justify-content: flex-end;
}
.ticket-info span { position: relative; z-index: 2; }

.yellow-corner-blob {
    position: absolute; top: -2.5rem; right: -2.5rem; width: 120px; height: 120px; fill: var(--c-yellow); z-index: 1;
}

/* Sezione immagine ed effetto carta strappata */
.image-section {
    position: absolute;
    top: 15%; left: 0; width: 100%; height: 60%;
    display: flex; justify-content: center; align-items: center; z-index: 5;
}

.bg-blob-yellow {
    position: absolute; width: 80px; color: var(--c-yellow); z-index: -1; animation: float 6s infinite ease-in-out;
}

.torn-paper-frame {
    width: 70%;
    height: 100%;
    background-color: white;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 10px white, inset 0 0 15px rgba(0,0,0,0.1);
    transition: transform 2s ease;
}

.torn-paper-frame.shape-2 { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
.torn-paper-frame.shape-3 { border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%; }
.torn-paper-frame.shape-4 { border-radius: 50% 50% 30% 70% / 60% 40% 50% 50%; }
.torn-paper-frame.shape-5 { border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%; }
.torn-paper-frame.shape-6 { border-radius: 70% 30% 40% 60% / 50% 40% 60% 50%; }

.torn-paper-frame:hover { transform: scale(1.05); }

/* Scala il frame quando la card è in hover */
.festival-card:hover .torn-paper-frame {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%; height: 100%;
    background-color: #333;
    background-size: cover; background-position: center;
    transform: scale(0.95);
    border-radius: inherit;
    transition: transform 2s ease;
}

/* Sezione inferiore della card (onda gialla + testo) */
.card-bottom {
    position: absolute; bottom: 0; width: 100%; height: 35%;
    z-index: 10; display: flex; flex-direction: column; justify-content: flex-end;
}

.footer-wave {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    fill: var(--c-yellow); z-index: -1;
}

.footer-text { padding: 0 2rem 2rem 2rem; }

.artist-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    line-height: 0.9;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}
.artist-date { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 900; }

/* Immagini placeholder con gradiente */
.img-angie { background: linear-gradient(45deg, #111, #333); }
.img-daria { background: linear-gradient(135deg, #222, #444); }
.img-mercanti { background: linear-gradient(225deg, #333, #555); }

/* Animazioni */
.reveal-up {
    opacity: 0;
    transform: translateY(70px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-65px) scale(0.95);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(65px) scale(0.95);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.float-anim-1 { animation: float-gentle 6s ease-in-out infinite; }
.float-anim-2 { animation: float-gentle 7s ease-in-out infinite alternate-reverse; }
.bg-text-anim { animation: scroll-massive-text 40s linear infinite; }

@keyframes float-gentle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes scroll-massive-text {
    0%   { transform: translateX(-100%) translateY(-50%) rotate(-5deg); }
    100% { transform: translateX(100vw) translateY(-50%) rotate(-5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* --- MEGA HERO E MIGLIORIE HOMEPAGE --- */
.home-body { padding-top: 80px; }
.home-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-content {
    position: relative;
    z-index: 20; /* Assicura che il pulsante resti sopra l'onda in caso di sovrapposizione */
    max-width: 800px;
}

.giant-title {
    line-height: 0.75;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.giant-title .text-sunflower {
    font-family: 'Monument Extended', sans-serif;
    font-size: 8.5vw;
    font-weight: 400;
    -webkit-text-stroke: 0.25vw var(--text-white);
    color: transparent;
    display: block;
    position: relative;
    z-index: 1;
    letter-spacing: -0.04em;
    will-change: transform;
}
.giant-title .text-festival {
    font-family: 'Monument Extended', sans-serif;
    font-size: 8.5vw;
    font-weight: 400;
    color: var(--text-white);
    display: block;
    position: relative;
    z-index: 2;
    margin-top: -2.5vw;
    letter-spacing: -0.04em;
    will-change: transform;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3vw;
    color: var(--text-white);
    margin-top: 2vw;
    margin-bottom: 3vw;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* Pulsante in stile brutalist */
.brutalist-button {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-black);
    text-decoration: none;
    padding: 1rem 3rem;
    border: 4px solid var(--text-black);
    border-radius: 50px;
    box-shadow: 6px 6px 0px var(--text-black);
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.brutalist-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--text-black);
}

.brutalist-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-black);
}

/* Adesivi e badge */
.sticker {
    position: absolute;
    z-index: 20;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.badge-starburst {
    width: 120px;
    height: 120px;
    background-color: var(--c-red);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: rotate(15deg);
    border: 4px solid var(--text-black); /* Il clip-path non gestisce bene il bordo, ma lo manteniamo per logica */
}
/* Simula un bordo per la stella usando il filtro drop-shadow sul parent se necessario, per ora va bene piatto */

.badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--c-peach);
    color: var(--text-black);
    border: 3px solid var(--text-black);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transform: rotate(-10deg);
}

.badge-rect {
    background-color: var(--c-green);
    color: var(--text-black);
    padding: 0.5rem 1rem;
    border: 3px solid var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
}

.tape-strip {
    background-color: rgba(255,255,255,0.8);
    color: var(--text-black);
    padding: 0.2rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* simula il bordo di nastro strappato */
    clip-path: polygon(0% 5%, 100% 0%, 95% 95%, 5% 100%);
}

.bg-peach { background-color: var(--c-peach); color: var(--text-black); }
.bg-green { background-color: var(--c-green); color: var(--text-black); }
.bg-white { background-color: var(--text-white); color: var(--text-black); }

.badge-yellow { background-color: var(--c-yellow); color: var(--text-black); }
.badge-red { background-color: var(--c-red); color: var(--text-black); }

/* Testo scorrevole */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-top: 3px solid var(--text-black);
    border-bottom: 3px solid var(--text-black);
    padding: 0.5rem 0;
    position: relative;
    z-index: 50;
}

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 0 2rem;
}

/* Divisore ondulato */
.wave-divider {
    position: absolute;
    bottom: -1px; /* corregge il gap di rendering sui subpixel */
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 15;
}

.wave-divider.inverted {
    top: -1px;
    bottom: auto;
    transform: rotate(180deg);
}

/* Testo di sfondo enorme */
.bg-massive-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(-100%) translateY(-50%) rotate(-5deg);
    font-size: 10vw;
    color: var(--text-black);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}
.bg-massive-text .text-sunflower {
    -webkit-text-stroke: 2px var(--text-black);
    color: transparent;
}

/* Classi di supporto */
.bg-yellow { background-color: var(--c-yellow); }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

/* --- FOOTER DEL SITO --- */
.site-footer {
    background-color: var(--text-black);
    color: var(--text-white);
    padding: 6rem 2rem 2rem 2rem;
    border-top: none;
    position: relative;
    overflow-x: hidden;
}

/* SVG divisore ondulato del footer */
.footer-wave-divider {
    position: absolute;
    top: -79px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 10;
    pointer-events: none;
}

.footer-wave-divider path:nth-child(1) {
    fill: var(--text-black) !important;
}

.footer-wave-divider path:nth-child(2) {
    stroke: var(--c-yellow) !important;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.footer-col {
    flex: 1;
}

.footer-contacts h3,
.footer-socials h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: var(--c-yellow);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.footer-contacts p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer-contacts a {
    color: var(--text-white);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    color: var(--text-black);
    line-height: 0.95;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px rgba(255, 194, 49, 0.85));
}

.footer-logo .text-sunflower {
    font-size: 2.2rem;
    -webkit-text-stroke: 1.5px var(--text-black);
    display: block;
}

.footer-logo .text-festival {
    font-size: 2.6rem;
    display: block;
}

.footer-brand .realization-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-white);
    margin-top: 0.5rem;
}

.footer-association-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 1rem auto 0 auto;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.footer-association-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px rgba(255, 194, 49, 0.85));
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

.social-icons a svg {
    overflow: visible;
}

.social-icons a svg path {
    fill: currentColor !important;
    transition: fill 0.2s ease;
}

/* Instagram */
.social-icons a[aria-label="Instagram"]:hover svg path,
.social-icons a[aria-label="Instagram"]:active svg path {
    fill: url(#rgInstagram) !important;
}

/* TikTok */
.social-icons a[aria-label="TikTok"] svg {
    filter: none !important;
    transition: filter 0.2s ease;
}
.social-icons a[aria-label="TikTok"]:hover svg,
.social-icons a[aria-label="TikTok"]:active svg {
    filter: drop-shadow(-2px -1.5px 0px #ff0050) drop-shadow(2px 1.5px 0px #00f2fe) !important;
}
.social-icons a[aria-label="TikTok"]:hover svg path,
.social-icons a[aria-label="TikTok"]:active svg path {
    fill: #ffffff !important;
}

/* Spotify */
.social-icons a[aria-label="Spotify"]:hover svg path,
.social-icons a[aria-label="Spotify"]:active svg path {
    fill: #1DB954 !important;
}

/* Facebook */
.social-icons a[aria-label="Facebook"]:hover svg path,
.social-icons a[aria-label="Facebook"]:active svg path {
    fill: #1877F2 !important;
}

.social-icons a:hover {
    transform: scale(1.2) rotate(8deg);
}

.policy-link a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--c-yellow);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.edizioni-link-container {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.edizioni-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--c-yellow);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--c-yellow);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}

.edizioni-link:hover {
    background-color: var(--c-yellow);
    color: var(--text-black);
}

.policy-link a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 2rem;
    width: 100%;
}

.developer-credit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-white);
    text-align: center;
}

.developer-credit a {
    color: var(--text-black);
    background-color: var(--c-yellow);
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.developer-credit a:hover {
    transform: rotate(3deg) scale(1.1);
}



/* --- CONTO ALLA ROVESCIA --- */
.countdown-section {
    background-color: var(--text-white);
    padding: 6rem 2rem 2rem 2rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

.countdown-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-black);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.count-box {
    background-color: var(--text-black);
    color: var(--c-yellow);
    border: 4px solid var(--text-black);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
    padding: 1rem 2rem;
    border-radius: 15px;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.count-box:nth-child(1) { animation: bobbing-1 4s ease-in-out infinite alternate; }
.count-box:nth-child(2) { animation: bobbing-2 4.5s ease-in-out infinite alternate; }
.count-box:nth-child(3) { animation: bobbing-3 5s ease-in-out infinite alternate; }
.count-box:nth-child(4) { animation: bobbing-4 3.8s ease-in-out infinite alternate; }

.count-box:hover {
    transform: scale(1.1) translateY(-10px) !important;
    box-shadow: 10px 10px 0px var(--text-black);
    color: var(--text-white) !important;
    cursor: default;
}

@keyframes bobbing-1 {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes bobbing-2 {
    0% { transform: translateY(0) rotate(3deg); }
    100% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes bobbing-3 {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes bobbing-4 {
    0% { transform: translateY(0) rotate(2deg); }
    100% { transform: translateY(-12px) rotate(-3deg); }
}

.count-box .num { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 3.5rem; line-height: 1; display: block; }
.count-box .label { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; color: white; }

.countdown-container.fade-out {
    animation: fade-scale-out 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes fade-scale-out {
    0% { transform: scale(1); opacity: 1; filter: blur(0); }
    100% { transform: scale(0.7) rotate(-4deg); opacity: 0; filter: blur(8px); display: none; }
}

.countdown-expired-message {
    animation: sf-scene-appear 0.5s ease both;
    max-width: 880px;
    margin: 2rem auto;
    position: relative;
    z-index: 5;
    padding: 0.5rem 1rem 2.5rem;
}

@keyframes sf-scene-appear {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== MESSAGGIO "FESTIVAL TERMINATO" (in sostituzione del countdown) ===== */
#festival-ended-message {
    max-width: 780px;
    margin: 2rem auto;
    padding: 0.5rem 1rem 1rem;
    animation: sf-scene-appear 0.6s ease both;
}

.fe-scene {
    position: relative;
}

.fe-sparkles {
    z-index: 30;
}

.fe-card {
    position: relative;
    background: #090909;
    border: 4px solid var(--c-yellow);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(245, 176, 39, .3), 10px 10px 0px var(--c-yellow);
    font-family: 'Montserrat', sans-serif;
    animation: fe-card-appear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
    will-change: transform;
}

@keyframes fe-card-appear {
    0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fe-bg-logo {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 420px;
    height: auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.fe-top-strip {
    background: var(--c-yellow);
    color: var(--text-black);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}

.fe-top-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: fe-shine 4.5s ease-in-out 1.2s infinite;
}

@keyframes fe-shine {
    0%        { transform: translateX(-100%); }
    40%, 100% { transform: translateX(200%); }
}

.fe-body {
    padding: 2.75rem 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.fe-body::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(ellipse, rgba(245,176,39,.08) 0%, transparent 70%);
    pointer-events: none;
}

.fe-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0;
}

.fe-headline {
    line-height: 0.95;
}

.fe-line1 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.4rem, 8vw, 4rem);
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: block;
}

.fe-line2 {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.4rem, 8vw, 4rem);
    color: var(--c-yellow);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    display: block;
    text-shadow: 0 0 40px rgba(245,176,39,.5);
}

.fe-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #f0f0f0;
    max-width: 540px;
    margin: 0;
}

.fe-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 380px;
}

.fe-div-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,176,39,.45), transparent);
}

.fe-div-sun {
    font-size: 1.5rem;
    color: var(--c-yellow);
    filter: drop-shadow(0 0 10px rgba(245, 176, 39, .8));
    animation: fe-sun-spin 6s linear infinite;
}

@keyframes fe-sun-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fe-next-year-container {
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.fe-next-year-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: var(--c-yellow);
    color: var(--text-black);
    border: 4px solid var(--text-black);
    border-radius: 16px;
    box-shadow: 8px 8px 0px var(--text-black);
    padding: 1.2rem 2.8rem;
    transform: rotate(-2.5deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: default;
}

.fe-next-year-badge:hover {
    transform: rotate(1.5deg) scale(1.06);
    box-shadow: 12px 12px 0px var(--text-black);
    background: var(--text-white);
}

.fe-next-year-badge span {
    font-family: 'Monument Extended', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
}

.fe-next-year-badge .fe-year-highlight {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    color: var(--text-black);
    line-height: 1.05;
    margin-top: 0.2rem;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0px var(--text-white);
    -webkit-text-stroke: 2px var(--text-black);
}

.fe-followup {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    margin: 0.25rem 0 0;
    max-width: 500px;
}

.fe-social-row {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.25rem;
}

.fe-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--text-black);
    background: var(--c-yellow);
    border: 3px solid var(--text-black);
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--text-black);
    padding: 0.65rem 1.3rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fe-social-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-black);
    color: var(--text-black);
}

.fe-social-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px var(--text-black);
}

@media (max-width: 650px) {
    .fe-body { padding: 2rem 1.25rem 1.75rem; gap: 1.1rem; }
    .fe-details { gap: 0.75rem; }
    .fe-detail-item { padding: 0.55rem 0.8rem; }
}


/* ===== CARD "OGGI E' IL FESTIVAL" ===== */

#today-festival-message {
    max-width: 780px;
    margin: 2.5rem auto 0;
    padding: 0 1rem;
}

.today-festival-card {
    background: var(--text-black);
    border: 5px solid var(--c-yellow);
    border-radius: 20px;
    box-shadow:
        0 0 50px rgba(245,176,39,.45),
        10px 10px 0px var(--c-yellow);
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    animation: today-card-in 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes today-card-in {
    0%   { opacity: 0; transform: translateY(60px) scale(0.88); }
    60%  { opacity: 1; transform: translateY(-8px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0)   scale(1);    }
}

.today-card-header {
    background: var(--c-yellow);
    padding: 1.8rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.today-card-header::before {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 80%; height: 220%;
    background: rgba(255,255,255,.22);
    transform: rotate(30deg);
    pointer-events: none;
    animation: today-header-shine 5s ease-in-out 1.5s infinite;
}
@keyframes today-header-shine {
    0%       { left: -60%; }
    35%, 100% { left: 130%; }
}

.today-sunflower-anim {
    display: block;
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 0.6rem;
    animation: today-sun-spin 8s linear infinite;
    filter: drop-shadow(0 0 18px rgba(255,180,0,.8));
}
@keyframes today-sun-spin {
    0%   { transform: rotate(0deg)   scale(1);    }
    50%  { transform: rotate(180deg) scale(1.12); }
    100% { transform: rotate(360deg) scale(1);    }
}

.today-main-title {
    font-family: 'Monument Extended', sans-serif;
    font-size: clamp(1.8rem, 5.5vw, 3.2rem);
    font-weight: 900;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
    animation: today-title-pulse 2.2s ease-in-out infinite alternate;
}
.today-main-title > span { display: block; }
@keyframes today-title-pulse {
    0%   { text-shadow: 3px 3px 0px rgba(0,0,0,.15); }
    100% { text-shadow: 5px 5px 0px rgba(0,0,0,.3), 0 0 25px rgba(209,86,84,.4); }
}

.today-card-body {
    padding: 2rem 2.5rem;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.today-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 0;
}

.today-time-badge {
    font-family: 'Monument Extended', sans-serif;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 900;
    color: var(--c-yellow);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1;
    animation: today-time-glow 1.6s ease-in-out infinite alternate;
}
@keyframes today-time-glow {
    0%   { text-shadow: 0 0 20px rgba(245,176,39,.4),  4px 4px 0px rgba(245,176,39,.25); }
    100% { text-shadow: 0 0 55px rgba(245,176,39,.95), 4px 4px 0px rgba(245,176,39,.6);  }
}

.today-free-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Monument Extended', sans-serif;
    font-weight: 900;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-black);
    background: var(--c-yellow);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    margin: 0 auto;
}
.today-free-entry .fa-star {
    font-size: 0.7em;
    opacity: 0.7;
}

.today-location {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(245,176,39,.3);
    border-radius: 14px;
    padding: 1rem 1.4rem;
}
.today-location > i {
    font-size: 2rem;
    color: var(--c-yellow);
    flex-shrink: 0;
}
.today-location-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.today-location-text strong {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--c-yellow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.today-location-text span {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,.78);
}

.today-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.today-howto-item {
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 0.9rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.today-howto-item:hover {
    border-color: rgba(245,176,39,.45);
    background: rgba(245,176,39,.08);
}
.today-howto-item > i {
    font-size: 1.5rem;
    color: var(--c-yellow);
}
.today-howto-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.today-howto-item strong {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-white);
    letter-spacing: 0.06em;
}
.today-howto-item > div > span {
    font-size: 0.7rem;
    color: rgba(255,255,255,.6);
    font-weight: 600;
    line-height: 1.35;
}

.today-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}
.today-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    cursor: pointer;
}
.today-cta-primary {
    background: var(--c-yellow);
    color: var(--text-black);
    border-color: var(--c-yellow);
    box-shadow: 5px 5px 0px rgba(245,176,39,.45);
}
.today-cta-primary:hover {
    transform: translate(-3px,-3px);
    box-shadow: 8px 8px 0px rgba(245,176,39,.55);
    color: var(--text-black);
}
.today-cta-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255,255,255,.28);
    box-shadow: 5px 5px 0px rgba(255,255,255,.08);
}
.today-cta-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    transform: translate(-3px,-3px);
    box-shadow: 8px 8px 0px rgba(255,255,255,.14);
    color: var(--text-white);
}
.today-cta-info {
    background: transparent;
    color: var(--c-yellow);
    border-color: rgba(245,176,39,.4);
    box-shadow: 5px 5px 0px rgba(245,176,39,.12);
}
.today-cta-info:hover {
    background: rgba(245,176,39,.1);
    border-color: var(--c-yellow);
    transform: translate(-3px,-3px);
    box-shadow: 8px 8px 0px rgba(245,176,39,.22);
    color: var(--c-yellow);
}

@media (max-width: 650px) {
    .today-howto-grid { grid-template-columns: 1fr; }
    .today-card-body  { padding: 1.5rem 1.2rem; gap: 1.2rem; }
    .today-cta-btn    { font-size: 0.88rem; padding: 0.75rem 1.4rem; }
    .today-location   { flex-direction: column; text-align: center; }
    .today-location > i { font-size: 2.5rem; }
}

/* ===== PANNELLO DI CELEBRAZIONE SF ===== */

.sf-cel-scene {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.sf-celebration {
    position: relative;
    background: #090909;
    border: 4px solid var(--c-yellow);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 0 70px rgba(245,176,39,.35),
        10px 10px 0px var(--c-yellow);
    animation: sf-cel-appear 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.25s both;
    font-family: 'Montserrat', sans-serif;
    will-change: transform;
}

.sf-cel-bg-logo {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    max-width: 480px;
    height: auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}
@keyframes sf-cel-appear {
    0%   { opacity: 0; transform: perspective(1200px) rotateX(-45deg) translateY(-80px) scale(0.75); }
    60%  { opacity: 1; transform: perspective(1200px) rotateX(5deg)  translateY(12px)  scale(1.01); }
    100% { opacity: 1; transform: perspective(1200px) rotateX(0)     translateY(0)     scale(1);    }
}

/* ─── Striscia superiore ─── */
.sf-cel-top-strip {
    background: var(--c-yellow);
    color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: sf-cel-strip-in 0.6s ease 0.9s both;
    position: relative;
    overflow: hidden;
}
.sf-cel-top-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: sf-cel-shine 4s ease-in-out 1.8s infinite;
}
@keyframes sf-cel-shine {
    0%       { transform: translateX(-100%); }
    40%, 100% { transform: translateX(200%); }
}
@keyframes sf-cel-strip-in {
    0%   { opacity: 0; transform: scaleX(0.6); }
    100% { opacity: 1; transform: scaleX(1); }
}

/* ─── Corpo ─── */
.sf-cel-body {
    padding: 3rem 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    text-align: center;
    position: relative;
    z-index: 2;
}
.sf-cel-body::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(245,176,39,.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ─── Sopratitolo ─── */
.sf-cel-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
    animation: sf-cel-fade-up 0.6s ease 1s both;
}
.sf-cel-eyebrow > span { display: inline; }

/* ─── Titolo ─── */
.sf-cel-headline {
    line-height: 0.92;
    animation: sf-cel-fade-up 0.7s ease 1.05s both;
}
.sf-cel-line1 {
    font-family: 'Monument Extended', sans-serif;
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
}
.sf-cel-line1 > span { display: inline; }
.sf-cel-line2 {
    font-family: 'Monument Extended', sans-serif;
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 900;
    color: var(--c-yellow);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
    animation: sf-cel-line2-glow 2.8s ease-in-out 2s infinite alternate;
}
.sf-cel-line2 > span { display: inline; }
@keyframes sf-cel-line2-glow {
    0%   { text-shadow: 0 0 30px rgba(245,176,39,.35); }
    100% { text-shadow: 0 0 80px rgba(245,176,39,.9), 0 0 140px rgba(245,176,39,.4); }
}

/* ─── Divisore ─── */
.sf-cel-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 480px;
    animation: sf-cel-fade-up 0.6s ease 1.25s both;
}
.sf-cel-div-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245,176,39,.45), transparent);
}
.sf-cel-div-sun {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 10px rgba(245,176,39,.8));
    animation: sf-cel-sun-spin 5s linear infinite;
}
@keyframes sf-cel-sun-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── Riga dettagli ─── */
.sf-cel-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: sf-cel-fade-up 0.6s ease 1.4s both;
}
.sf-cel-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.sf-cel-dlabel {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.sf-cel-dlabel > span { display: inline; }
.sf-cel-dvalue {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 0.03em;
}
.sf-cel-dvalue > span { display: inline; }
.sf-cel-free { color: var(--c-yellow) !important; }
.sf-cel-detail-sep {
    font-size: 1.6rem;
    color: rgba(255,255,255,.18);
    line-height: 1;
}

/* ─── Luogo ─── */
.sf-cel-venue {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: sf-cel-fade-up 0.6s ease 1.55s both;
}
.sf-cel-venue > i { color: var(--c-yellow); flex-shrink: 0; }

/* ─── CTA ─── */
.sf-cel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-black);
    background: var(--c-yellow);
    border: 3px solid var(--c-yellow);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 0 35px rgba(245,176,39,.4), 6px 6px 0px rgba(245,176,39,.35);
    animation: sf-cel-cta-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.75s both,
               sf-cel-cta-pulse 2.8s ease-in-out 2.8s infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sf-cel-cta > span { display: inline; }
.sf-cel-cta:hover {
    transform: translate(-4px,-4px);
    box-shadow: 0 0 60px rgba(245,176,39,.7), 10px 10px 0px rgba(245,176,39,.5);
    color: var(--text-black);
}
@keyframes sf-cel-cta-in {
    0%   { opacity: 0; transform: scale(0.65); }
    65%  { opacity: 1; transform: scale(1.07); }
    100% { opacity: 1; transform: scale(1);    }
}
@keyframes sf-cel-cta-pulse {
    0%, 100% { box-shadow: 0 0 35px rgba(245,176,39,.4),  6px 6px 0px rgba(245,176,39,.35); }
    50%       { box-shadow: 0 0 65px rgba(245,176,39,.85), 6px 6px 0px rgba(245,176,39,.55); }
}

/* ─── Striscia scorrevole in basso ─── */
.sf-cel-bottom-strip {
    background: var(--c-yellow);
    color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    animation: sf-cel-strip-in 0.6s ease 2s both;
}
.sf-cel-marquee-inner {
    display: inline-block;
    animation: sf-cel-marquee 20s linear infinite;
}
@keyframes sf-cel-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Keyframes condivisi ─── */
@keyframes sf-cel-fade-up {
    0%   { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0);    }
}

/* ─── Mobile ─── */
@media (max-width: 650px) {
    .sf-cel-body       { padding: 2rem 1.4rem; gap: 1.3rem; }
    .sf-cel-line1,
    .sf-cel-line2      { -webkit-text-stroke-width: 2px; }
    .sf-cel-detail-sep { display: none; }
    .sf-cel-details    { gap: 1.2rem; }
    .sf-cel-cta        { font-size: 0.9rem; padding: 0.85rem 1.8rem; }
    .sf-cel-venue      { font-size: 0.78rem; text-align: center; flex-direction: column; }
}

/* ===== SF MEGA TICKET — Design Migliorato ===== */

/* Lampo a schermo intero alla comparsa del ticket */
.sf-screen-flash {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #fff7d4 0%, rgba(255,255,255,0.88) 40%, transparent 70%);
    z-index: 99999;
    pointer-events: none;
    animation: sf-flash-out 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes sf-flash-out {
    0%   { opacity: 1; transform: scale(0.4); }
    35%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0; transform: scale(1.6); }
}

.sf-sparkles-container {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    pointer-events: none;
    overflow: hidden;
    z-index: 30;
    border-radius: 24px;
}
.sf-sparkle {
    position: absolute;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sf-sparkle-twinkle var(--sf-dur, 2s) linear forwards;
    opacity: 0;
}


/* --- SEZIONE STATISTICHE --- */
.stats-section {
    background-color: var(--text-white);
    padding: 4rem 2rem 6rem 2rem;
    text-align: center;
    position: relative;
    z-index: 20;
}

.stats-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--text-black);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    color: var(--text-black);
    border: 4px solid var(--text-black);
    box-shadow: 8px 8px 0px var(--text-black);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    min-width: 250px;
    flex: 1;
    max-width: 280px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 12px 12px 0px var(--text-black);
}

.stat-box.bg-orange { background-color: var(--c-pastel-orange); }
.stat-box.bg-yellow { background-color: var(--c-pastel-yellow); }
.stat-box.bg-green { background-color: var(--c-pastel-green); }
.stat-box.bg-blue { background-color: var(--c-pastel-blue); }

.stat-box:nth-child(1) { transform: rotate(-1.5deg); }
.stat-box:nth-child(2) { transform: rotate(2deg); }
.stat-box:nth-child(3) { transform: rotate(-2.5deg); }
.stat-box:nth-child(4) { transform: rotate(1.5deg); }

.stat-box:nth-child(1):hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.02); }
.stat-box:nth-child(2):hover { transform: translateY(-8px) rotate(2deg) scale(1.02); }
.stat-box:nth-child(3):hover { transform: translateY(-8px) rotate(-2.5deg) scale(1.02); }
.stat-box:nth-child(4):hover { transform: translateY(-8px) rotate(1.5deg) scale(1.02); }

.stat-icon {
    font-size: 2.2rem;
    color: var(--text-black);
    margin-bottom: 0.5rem;
}

.stat-num {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.1;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-black);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 1rem 4rem 1rem;
    }
    .stats-section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .stats-container {
        gap: 1.5rem;
    }
    .stat-box {
        min-width: 100%;
        transform: none !important;
        box-shadow: 6px 6px 0px var(--text-black);
    }
    .stat-box:hover {
        transform: translateY(-4px) !important;
        box-shadow: 8px 8px 0px var(--text-black);
    }
}

.section-divider-line {
    width: 80%;
    max-width: 1000px;
    height: 6px;
    background-color: var(--text-black);
    margin: 1rem auto 3rem auto;
    border-radius: 3px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

/* --- MINI PLAYER SPOTIFY --- */
.spotify-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px; /* Aumentato a 380px per evitare che i controlli si schiaccino */
    height: 90px;
    z-index: 10000;
    border-radius: 12px;
    box-shadow: 4px 4px 0px var(--text-black);
    border: 3px solid var(--text-black);
    background-color: var(--c-yellow);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    transform: translateX(0);
}

.spotify-iframe-wrapper {
    flex: 1;
    height: 80px;
    padding: 0 10px 0 50px;
    transition: opacity 0.3s ease;
}

.spotify-toggle-btn {
    position: absolute;
    left: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--text-black);
    background-color: white;
    color: var(--text-black);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 2px 2px 0px var(--text-black);
}

.spotify-toggle-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: var(--c-peach);
}

.spotify-player-container.collapsed {
    transform: translateX(calc(100% - 54px));
}



/* --- SEZIONE MAPPA --- */
.map-section {
    background-color: var(--c-peach);
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 5px solid var(--text-black);
}

.map-container {
    margin-top: 3rem;
    position: relative;
    max-width: 800px;
    width: 100%;
}

.festival-map-img,
.festival-map-iframe {
    width: 100%;
    border: 6px solid var(--text-black);
    box-shadow: 10px 10px 0px var(--text-black);
    background-color: white;
    transform: rotate(2deg);
}

.festival-map-img {
    height: auto;
    padding: 10px;
}

.festival-map-iframe {
    height: 450px;
    display: block;
}

/* Stili responsive */

/* Pulsante toggle menu (nascosto su desktop) */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    outline: none;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--c-yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Tre barre uniformi: 26×3 px con gap 6px.
   Totale altezza gruppo: 3×3 + 2×6 = 21px.
   Centro gruppo: 10.5px. Centro barra 1: 1.5px → Δ = 9px. */
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transform-origin: center;
    will-change: transform;
    transition:
        transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease,
        background-color 0.3s ease;
}

/* Trasforma l'hamburger in una X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Blocco dello scroll quando il menu mobile e' aperto */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .card-logo .text-sunflower { font-size: 0.8rem; -webkit-text-stroke: 0.5px var(--text-black); }
    .card-logo .text-festival { font-size: 0.85rem; }
    .artist-name { font-size: 3rem; }
    .giant-title { font-size: 6rem; }
}

@media (max-width: 992px) {
    .home-hero {
        padding: 4rem 1.5rem 6rem 1.5rem;
        min-height: auto;
    }
    .brutalist-photo-frame {
        max-width: 380px;
        transform: rotate(1.5deg);
    }
}

@media (max-width: 768px) {
    /* Overlay personalizzato della navigazione mobile */
    .main-nav {
        padding: 0 1.5rem;
        height: 70px;
        justify-content: space-between;
        gap: 0.7rem;
    }

    /* Language switcher stays in the top navbar (not inside the hamburger
       overlay), clustered next to the menu toggle at the right edge */
    .menu-toggle {
        order: 2;
        margin-left: 0.4rem;
    }

    .lang-switcher {
        order: 1;
        margin-left: auto;
    }

    body,
    .home-body {
        padding-top: 70px;
    }

    .bg-massive-text {
        display: none;
    }

    .nav-logo {
        display: flex !important;
    }
    .nav-logo .text-sunflower,
    .nav-logo .text-festival {
        font-size: 0.75rem;
        -webkit-text-stroke: 0.8px var(--text-black);
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--c-yellow);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: clamp(0.6rem, 1.8vh, 1.5rem);
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
        border-left: 6px solid var(--text-black);
        padding: clamp(4.6rem, 10vh, 5.5rem) 2rem max(clamp(1.2rem, 3.5vh, 3.5rem), env(safe-area-inset-bottom, 1.2rem)) 2rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        will-change: transform;
    }



    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-family: 'Montserrat', sans-serif;
        font-weight: 900;
        font-size: 1.8rem;
        color: var(--text-black);
        text-transform: uppercase;
        width: 100%;
        text-align: center;
        transition: transform 0.2s ease, color 0.2s ease;
        display: inline-block;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links a:hover, .nav-links a.active {
        color: var(--text-white) !important;
        transform: scale(1.04) !important;
        text-shadow: none !important;
        text-decoration: none;
    }

    /* Ingresso scaglionato: i link scorrono all'apertura del menu */
    .nav-links > a,
    .nav-links > .nav-dropdown {
        opacity: 0;
        translate: 20px 0;
        transition: color 0.2s ease;
    }

    .nav-links.active > a,
    .nav-links.active > .nav-dropdown {
        opacity: 1;
        translate: 0 0;
        transition: opacity 0.38s ease, translate 0.42s cubic-bezier(0.23, 1, 0.32, 1), color 0.2s ease;
    }

    .nav-links.active > *:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.active > *:nth-child(2) { transition-delay: 0.14s; }
    .nav-links.active > *:nth-child(3) { transition-delay: 0.20s; }
    .nav-links.active > *:nth-child(4) { transition-delay: 0.26s; }
    .nav-links.active > *:nth-child(5) { transition-delay: 0.32s; }
    .nav-links.active > *:nth-child(6) { transition-delay: 0.38s; }

    /* Forza i link del menu mobile a essere neri anche se la navbar madre e' trasparente */
    .main-nav.transparent-nav .nav-links a {
        color: var(--text-black);
    }

    .main-nav.transparent-nav .nav-links a:hover,
    .main-nav.transparent-nav .nav-links a.active {
        color: var(--text-white) !important;
        text-shadow: none !important;
    }
    
    /* Miglioramenti mobile della sezione hero */
    .home-hero .sticker {
        font-size: 0.8rem;
    }
    .home-hero .sticker.badge-starburst {
        top: 5% !important;
        left: -15px !important;
        transform: scale(0.6) rotate(15deg);
    }
    .home-hero .sticker.badge-circle {
        bottom: 5% !important;
        right: -15px !important;
        transform: scale(0.65) rotate(-10deg);
    }
    .home-hero .sticker.tape-strip {
        top: 2% !important;
        right: 2% !important;
        transform: scale(0.7);
    }
    .giant-title .text-sunflower {
        font-family: 'Monument Extended', sans-serif;
        font-size: clamp(2rem, 9.5vw, 3.5rem);
        font-weight: 400;
        -webkit-text-stroke: 1.5px var(--text-white);
        letter-spacing: -0.04em;
    }
    .giant-title .text-festival {
        font-family: 'Monument Extended', sans-serif;
        font-size: clamp(2rem, 9.5vw, 3.5rem);
        font-weight: 400;
        color: var(--text-white);
        margin-top: -0.3em;
        letter-spacing: -0.04em;
    }
    .hero-subtitle {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-top: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
        line-height: 1;
        letter-spacing: 1px;
    }
    .brutalist-button {
        font-size: 1.4rem;
        padding: 0.8rem 2rem;
        border-width: 3px;
        box-shadow: 4px 4px 0px var(--text-black);
    }
    
    /* Adattamenti mobile del conto alla rovescia */
    .countdown-section {
        padding: 4rem 1rem 2rem 1rem;
    }
    .countdown-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .countdown-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
        max-width: 500px;
        margin: 0 auto;
    }
    .count-box {
        min-width: 0;
        padding: 0.8rem 0.2rem;
        border-width: 3px;
        box-shadow: 4px 4px 0px var(--text-black);
    }
    .count-box .num {
        font-size: 2.2rem;
    }
    .count-box .label {
        font-size: 0.8rem;
    }
    
    /* Layout mobile dei blocchi informativi */
    .info-section {
        padding: 3rem 1rem;
        gap: 3rem;
    }
    .info-block, .info-block.reverse { 
        flex-direction: column; 
        gap: 2rem; 
        text-align: center; 
    }
    .info-text h2 { 
        font-size: 2.5rem; 
    }
    .info-text p {
        font-size: 1.1rem;
    }
    .info-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .info-image .sticker.tape-strip {
        font-size: 0.9rem;
        padding: 0.2rem 1.2rem;
    }
    
    /* Adattamenti mobile della griglia line-up */
    .grid-container { 
        grid-template-columns: 1fr; 
        gap: 2rem;
        padding: 1.5rem;
    }
    .festival-card { 
        border: 4px solid var(--text-black);
        box-shadow: 6px 6px 0px var(--text-black);
        border-radius: 16px;
    }
    .card-logo .text-sunflower { 
        font-size: 0.95rem;
        -webkit-text-stroke: 0.6px var(--text-black);
    }
    .card-logo .text-festival {
        font-size: 0.95rem;
    }
    .artist-name { 
        font-size: 2.6rem; /* Evita problemi di a-capo/taglio del testo su mobile */
    }
    
    /* Galleria archivio vibes */
    .gallery-container { 
        column-count: 1; 
        padding: 2rem 1rem;
    }
    
    /* Adattamenti del logo footer su mobile */
    .footer-logo {
        font-size: 3.5rem;
    }
    
    /* Contenitore mappa */
    .map-section {
        padding: 4rem 1rem;
    }
    
    .home-map-section {
        padding: 4rem 1rem;
    }

    .home-map-title .word-dove {
        font-size: clamp(1.5rem, 8vw, 2.8rem);
    }
    
    .home-map-title .word-trovarci {
        font-family: 'Anton', sans-serif;
        font-size: clamp(2.8rem, 13vw, 4.2rem);
        -webkit-text-stroke: 1.5px var(--text-black);
        letter-spacing: 0.03em;
    }
    .festival-map-img,
    .festival-map-iframe {
        border-width: 4px;
        box-shadow: 6px 6px 0px var(--text-black);
    }
    .festival-map-iframe {
        height: 350px;
    }
    
    /* Player Spotify richiudibile su mobile */
    .spotify-player-container {
        right: 15px;
        bottom: 15px;
    }
    .spotify-player-container:not(.collapsed) {
        width: calc(100% - 30px);
    }
    
    /* Layout mobile del footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-socials {
        align-items: center;
        text-align: center;
    }

    /* Link con ancora: lascia spazio per la nav fissa */
    :target {
        scroll-margin-top: 80px;
    }

    /* Aree di tocco piu' grandi per i link del footer */
    .footer-socials a {
        padding: 0.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    /* Indicatore del link attivo nel menu mobile giallo */
    .nav-links > a.active {
        color: var(--text-white);
        position: relative;
    }
    .nav-links > a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background-color: var(--text-black);
        border-radius: 2px;
    }
}

/* --- FOTO INTERATTIVA (EFFETTO HOVER VIVACE) --- */
.interactive-photo {
    position: relative;
    cursor: pointer;
}

.cover-image {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    width: calc(100% - 30px); height: calc(100% - 30px);
    z-index: 2;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    filter: brightness(0.9) contrast(1.05) saturate(0.85);
}

.interactive-photo:hover .cover-image {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.05) contrast(1.1) saturate(1.2);
}

/* --- PLACEHOLDER CON VIGNETTATURA PER IMMAGINI UTENTE --- */
.img-association {
    background-color: var(--c-peach);
    background-image: url('assets/loghi/logo_ass.png'), linear-gradient(45deg, #ffa270, #f5b027);
}

.img-vibes {
    background-color: var(--c-red);
    background-image: url('assets/slide3.png'), linear-gradient(135deg, #d15654, #ff6b6b);
}

/* --- CARD INFORMAZIONI DI CONTATTO --- */
.contact-info-card {
    position: relative;
    background-color: var(--c-yellow);
    border: 4px solid var(--text-black);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 8px 8px 0px var(--text-black);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1.5rem;
}

.contact-info-card:hover {
    transform: translate(-6px, -6px) rotate(-1deg);
    box-shadow: 14px 14px 0px var(--text-black);
}

.contact-info-card::before {
    content: " INFO & RECAPITI";
    position: absolute;
    top: -18px;
    left: 20px;
    background-color: var(--text-black);
    color: var(--c-yellow);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    padding: 0.4rem 1.2rem;
    border: 3px solid var(--text-black);
    border-radius: 6px;
    box-shadow: 2px 2px 0px var(--text-black);
    transform: rotate(-2deg);
    z-index: 10;
}

/* Link pulsante di contatto dentro la card recapiti */
.contact-btn-link:hover {
    transform: translate(-3px, -3px) !important;
    box-shadow: 6px 6px 0px var(--text-black) !important;
    background: var(--c-yellow) !important;
    color: var(--text-black) !important;
}
.contact-btn-link:active {
    transform: translate(1px, 1px) !important;
    box-shadow: 1px 1px 0px var(--text-black) !important;
}

/* --- SEZIONE MAPPA SUNFLOWER --- */
.home-map-section {
    background-color: var(--bg-white);
    padding: 6rem 2rem 8rem 2rem;
    text-align: center;
    border-top: none;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.home-map-title {
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.home-map-title > span {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
    -webkit-text-stroke: 2px var(--text-black);
    color: #FFC231;
    display: block;
}

.home-map-title .word-dove {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
}

.home-map-title .word-trovarci {
    font-size: 5rem;
    line-height: 1;
    letter-spacing: 0.02em;
}

.smartphone-map-container {
    width: 325px;
    height: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.smartphone-phone-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    border: 12px solid var(--text-black);
    border-radius: 40px;
    box-shadow: 8px 8px 0px var(--text-black);
    overflow: hidden;
}

/* Tacca */
.smartphone-top-notch {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 20px;
    background-color: var(--text-black);
    border-radius: 10px;
    z-index: 20;
    pointer-events: none;
}

/* Barra Home */
.smartphone-bottom-bar {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background-color: var(--text-black);
    border-radius: 2px;
    z-index: 20;
    opacity: 0.6;
    pointer-events: none;
}

/* Schermo */
.smartphone-inner-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #FFC231 0%, #ff6b6b 100%);
}

.smartphone-wallpaper-logo {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: url('assets/loghi/logo-nobg.png') no-repeat center/contain;
    /* Bagliore bianco morbido esterno + ombra scura forte per farlo risaltare */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

/* Widget in stile iOS per smartphone */
.smartphone-widget {
    width: 100%;
    height: 120px;
    background-color: var(--text-white);
    border: 3px solid var(--text-black);
    border-radius: 20px;
    box-shadow: 4px 4px 0px var(--text-black);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 10;
}

.smartphone-widget:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 6px 6px 0px var(--text-black);
}

.widget-map-preview {
    width: 100%;
    height: 100%;
    padding: 1.2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #e5e9f0;
    background-image: radial-gradient(var(--text-black) 1px, transparent 1px);
    background-size: 15px 15px;
    position: relative;
}


.widget-icon {
    font-size: 2.5rem;
    color: var(--c-red);
    background-color: var(--text-white);
    padding: 0.5rem;
    border: 3px solid var(--text-black);
    border-radius: 12px;
    box-shadow: 2px 2px 0px var(--text-black);
    z-index: 2;
    animation: bounce-widget-icon 2s infinite ease-in-out;
}

@keyframes bounce-widget-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.widget-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-black);
    text-transform: uppercase;
}

.widget-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: rgba(26,26,26,0.7);
}

.widget-watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 180px;
    height: 180px;
    opacity: 0.5; /* Aumentato a 0.5 per renderlo ancora più visibile */
    pointer-events: none;
    z-index: 1;
}

.widget-click-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--c-red);
    text-transform: uppercase;
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse-widget-text 1.5s infinite ease-in-out;
}

@keyframes pulse-widget-text {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* Contenitori schermata Home e schermata Mappa */
.smartphone-home-screen, 
.smartphone-map-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.smartphone-home-screen {
    z-index: 2;
    transform: translateX(0);
    opacity: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 20px 20px 20px;
    box-sizing: border-box;
}

.smartphone-map-container.map-active .smartphone-home-screen {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.smartphone-map-screen {
    z-index: 1;
    transform: translateX(100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #f5f5f7;
}

.smartphone-map-container.map-active .smartphone-map-screen {
    z-index: 3;
    transform: translateX(0);
    opacity: 1;
}

/* Barra di stato */
.smartphone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.smartphone-status-bar .status-icons {
    display: flex;
    gap: 5px;
}

/* Griglia delle app */
.smartphone-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

.smartphone-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.app-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 3px solid var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-black);
    box-shadow: 2px 2px 0px var(--text-black);
    transition: transform 0.2s ease;
}

.smartphone-app:hover .app-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.app-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-black);
    margin-top: 0.3rem;
}

.app-icon-box.bg-red { background-color: var(--c-red); }
.app-icon-box.bg-blue { background-color: var(--c-blue); }
.app-icon-box.bg-purple { background-color: #a855f7; }
.app-icon-box.bg-green { background-color: var(--c-green); }

.glowing-app-icon {
    animation: icon-glow 1.5s infinite ease-in-out;
}

@keyframes icon-glow {
    0%, 100% {
        box-shadow: 2px 2px 0px var(--text-black), 0 0 0px var(--c-green);
    }
    50% {
        box-shadow: 2px 2px 0px var(--text-black), 0 0 15px var(--c-green);
        transform: scale(1.05);
    }
}

.sunflower-map-link {
    text-decoration: none;
    margin-top: auto;
    margin-bottom: 2rem;
    display: block;
}

.phone-tap-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-white);
    background-color: var(--text-black);
    padding: 0.8rem 1rem;
    border: 3px solid var(--text-black);
    border-radius: 12px;
    box-shadow: 4px 4px 0px var(--c-red);
    text-align: center;
    transition: all 0.2s ease;
    animation: pulse-prompt 1.8s infinite ease-in-out;
}

@keyframes pulse-prompt {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); box-shadow: 4px 4px 0px var(--c-yellow); }
}

.sunflower-map-link:hover .phone-tap-prompt {
    background-color: var(--c-yellow);
    color: var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
}

.smartphone-app-header {
    display: flex;
    align-items: center;
    padding: 35px 15px 10px 15px;
    background-color: var(--text-white);
    border-bottom: 3px solid var(--text-black);
}

.map-back-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--c-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.map-back-btn:hover {
    color: var(--text-black);
}

.app-header-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--text-black);
    margin-left: 2rem;
}

.smartphone-map-frame {
    flex-grow: 1;
    width: 100%;
    height: calc(100% - 100px);
    position: relative;
}

.smartphone-map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-label-badge .map-pin-icon {
    position: absolute;
    top: -32px;
    left: -30px;
    width: 42px;
    height: 42px;
    transform: scaleX(-1) rotate(5deg);
    filter: drop-shadow(-3px 4px 2px rgba(0, 0, 0, 0.35));
}

.map-buttons-container {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.map-action-buttons {
    display: none;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.smartphone-map-container.map-active + .map-buttons-container .map-action-buttons,
.smartphone-map-container.map-active ~ .map-buttons-container .map-action-buttons {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* --- SEZIONE FEED SOCIAL --- */
.social-feeds-section {
    margin-top: 5rem;
    width: 100%;
    border-top: 3px dashed var(--text-black);
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible !important;
}

.social-feeds-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.social-feeds-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-black);
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Card social in stile brutalist */
.social-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1220px;
    margin-bottom: 4rem;
    padding: 12px;
    box-sizing: border-box;
    overflow: visible !important;
}

.social-brutalist-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text-black);
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border: 3px solid var(--text-black);
    border-radius: 12px;
    box-shadow: 6px 6px 0px var(--text-black);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    background-color: var(--text-white);
}

.social-brutalist-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--text-black);
}

.social-brutalist-card.instagram:hover {
    background-color: var(--c-red);
    color: var(--text-white);
}

.social-brutalist-card.tiktok:hover {
    background-color: var(--text-black);
    color: var(--c-yellow);
}

.social-brutalist-card.facebook:hover {
    background-color: var(--c-blue);
    color: var(--text-black);
}

.social-brutalist-card.spotify:hover {
    background-color: var(--c-green);
    color: var(--text-black);
}

.social-brutalist-card svg {
    transition: transform 0.2s ease;
}
.social-brutalist-card:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Griglia feed live con wrapper iframe e placeholder */
.iframe-container {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iframe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    margin-top: 2rem;
}

.iframe-wrapper {
    position: relative;
    max-width: 325px;
    width: 100%;
    height: 620px;
    background-color: var(--text-white);
    border: 12px solid var(--text-black);
    border-radius: 40px;
    box-shadow: 6px 6px 0px var(--text-black);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    margin: 0 auto;
}

/* Tacca superiore smartphone / Dynamic Island */
.iframe-wrapper::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 20px;
    background-color: var(--text-black);
    border-radius: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Barra Home inferiore smartphone */
.iframe-wrapper::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background-color: var(--text-black);
    border-radius: 2px;
    z-index: 10;
    opacity: 0.6;
    pointer-events: none;
}

.iframe-wrapper:hover {
    transform: translate(-4px, -4px) rotate(0.5deg);
    box-shadow: 10px 10px 0px var(--text-black);
}

.iframe-wrapper iframe {
    width: 100%;
    height: calc(100% - 40px);
    border: none;
    display: block;
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1;
}

.spotify-wrapper {
    background-color: #121212 !important;
}

/* Placeholder per le schermate di caricamento */
.iframe-placeholder {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-black);
    pointer-events: none;
}

.iframe-placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: icon-pulse 1.5s infinite ease-in-out;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 8px rgba(0,0,0,0.1)); }
}

.iframe-placeholder p {
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Temi di sfondo personalizzati per i placeholder in stile Sunflower Fest */
.instagram-wrapper .iframe-placeholder {
    background-color: var(--c-peach);
}
.instagram-wrapper .iframe-placeholder-icon {
    color: #e1306c;
}

.tiktok-wrapper .iframe-placeholder {
    background-color: var(--c-yellow);
}
.tiktok-wrapper .iframe-placeholder-icon {
    color: var(--text-black);
    filter: drop-shadow(-2px -1.5px 0px #ff0050) drop-shadow(2px 1.5px 0px #00f2fe);
}

.spotify-wrapper .iframe-placeholder {
    background-color: var(--c-green);
}
.spotify-wrapper .iframe-placeholder-icon {
    color: #1ed760;
}

/* Dissolvenza del loader al caricamento dell'iframe */
.iframe-placeholder.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Adattamenti responsive per le nuove sezioni social */
@media (max-width: 1200px) {
    .social-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .iframe-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 2rem auto 0 auto;
    }
}

@media (max-width: 580px) {
    .social-cards-grid {
        grid-template-columns: 1fr;
    }
    .social-feeds-title {
        font-size: 1.8rem;
    }
    .social-feeds-subtitle {
        font-size: 1rem;
    }
}

/* Effetto hover con aberrazione cromatica per TikTok */
.social-brutalist-card.tiktok:hover svg {
    filter: drop-shadow(-2px -1.5px 0px #ff0050) drop-shadow(2px 1.5px 0px #00f2fe);
}

.social-icons a[aria-label="TikTok"]:hover svg {
    filter: drop-shadow(-2px -1.5px 0px #ff0050) drop-shadow(2px 1.5px 0px #00f2fe);
}

/* --- SISTEMA SLIDER ARTISTI LINE-UP --- */
.artists-slider-section {
    padding: 6rem 3rem;
    position: relative;
    background-color: var(--bg-white);
    background-image: radial-gradient(circle, rgba(26,26,26,0.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    overflow: hidden;
}

.artists-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.artists-title-group {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    position: relative;
}

.slider-title {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
    color: var(--text-black);
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.slider-controls {
    display: flex;
    gap: 1rem;
}

.slider-control-btn {
    width: 54px;
    height: 54px;
    border: 4px solid var(--text-black);
    border-radius: 50%;
    background-color: var(--text-white);
    color: var(--text-black);
    font-size: 1.6rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0px var(--text-black);
    transition: all 0.2s ease;
}

.slider-control-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.slider-control-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--text-black);
}

.artists-slider-container {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 2.5rem 1rem 4.5rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.artists-slider-container::-webkit-scrollbar { display: none; }

.artists-slider-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
}

/* ============================
   Artist Slider Cards
   ============================ */
.artist-slider-card {
    width: 300px;
    height: 460px;
    border: 4px solid var(--text-black);
    border-radius: 20px;
    box-shadow: 8px 8px 0px var(--text-black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

/* Colori pastel per ogni variante */
.artist-slider-card.bg-peach  { background-color: var(--c-pastel-orange); }
.artist-slider-card.bg-blue   { background-color: #8ab3fa; }
.artist-slider-card.bg-yellow { background-color: var(--c-pastel-yellow); }
.artist-slider-card.bg-red    { background-color: var(--c-pastel-pink); }
.artist-slider-card.bg-purple { background-color: var(--c-pastel-pink); }
.artist-slider-card.bg-green  { background-color: var(--c-pastel-green); }
.artist-slider-card.bg-grey   { background-color: var(--c-pastel-grey); }
.artist-slider-card.bg-brown  { background-color: var(--c-pastel-brown); }
.artist-slider-card.bg-cream  { background-color: var(--c-pastel-cream); }

.artist-slider-card:hover {
    box-shadow: 14px 14px 0px var(--text-black);
    z-index: 50;
}
.artist-slider-card:active {
    transform: translateY(2px);
    box-shadow: 4px 4px 0px var(--text-black);
}

/* Striscia in cima alla card */
.card-top-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.1rem;
    height: 44px;
    min-height: 44px;
    border-bottom: 3px solid var(--text-black);
    background-color: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transform-style: preserve-3d;
}
.artist-slider-card:hover .card-top-strip {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.card-lineup-num {
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-black);
    letter-spacing: 1px;
}

.card-date-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.58rem;
    font-weight: 900;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
}

/* Foto full-bleed */
.card-full-photo {
    flex: 1;
    background-size: cover;
    background-position: center top;
    position: relative;
    overflow: hidden;
    filter: grayscale(20%) brightness(0.88) contrast(95%);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}
.artist-slider-card:hover .card-full-photo {
    transform: scale(1.12) rotate(1.5deg);
    filter: grayscale(0%) brightness(1.05) contrast(102%);
}

/* Gradient overlay sul testo */
.card-photo-overlay {
    position: absolute;
    top: 0;
    bottom: 46px;
    left: 0;
    right: 0;
    padding: 2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 0.95) 0%,
        rgba(15, 15, 15, 0.55) 40%,
        transparent 65%
    );
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 3;
}

/* Accento luminoso di colore blu (abbinato allo sfondo) che si attiva su hover */
.card-photo-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(138, 179, 250, 0.28) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.artist-slider-card:hover .card-photo-overlay::before {
    opacity: 1;
}

/* Badge genere musicale */
.card-genre-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    background-color: var(--c-yellow);
    color: var(--text-black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.22rem 0.6rem;
    border: 2px solid var(--text-black);
    border-radius: 4px;
    align-self: flex-start;
    box-shadow: 2px 2px 0 var(--text-black);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.artist-slider-card:hover .card-genre-pill {
    transform: translateZ(22px) scale(1.06);
    box-shadow: 3px 3px 0 var(--text-black);
}

/* Nome artista */
.artist-card-name {
    position: relative;
    z-index: 2;
    font-family: 'Monument Extended', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 3px 3px 0 var(--text-black);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.artist-slider-card:hover .artist-card-name {
    transform: translateZ(32px);
    text-shadow: 4px 4px 0 var(--text-black);
}

/* Chip data/ora */
.card-time-chip {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(253, 253, 253, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.25s ease, color 0.25s ease;
}
.artist-slider-card:hover .card-time-chip {
    transform: translateZ(16px);
    color: rgba(253, 253, 253, 0.88);
}

/* Barra CTA in fondo */
.card-cta-bar {
    height: 46px;
    min-height: 46px;
    background-color: var(--text-black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-top: 3px solid var(--text-black);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s ease;
    transform-style: preserve-3d;
}
.artist-slider-card:hover .card-cta-bar {
    background-color: var(--c-yellow);
    color: var(--text-black);
    transform: translateZ(18px);
}
.card-cta-bar i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.artist-slider-card:hover .card-cta-bar i {
    transform: translateX(5px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .artists-slider-header { margin-bottom: 2rem; }
    .slider-title { font-size: 2.2rem; }
    .slider-control-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-width: 3px;
        box-shadow: 3px 3px 0px var(--text-black);
    }
    .artist-slider-card {
        width: 260px;
        height: 410px;
    }
    .card-top-strip {
        height: 40px;
        min-height: 40px;
    }
    .card-photo-overlay {
        top: 0;
        bottom: 42px;
    }
    .artist-slider-card:hover .card-top-strip {
        transform: translateY(-100%);
        opacity: 0;
    }
    .artist-card-name { font-size: 1.3rem; }
    .card-cta-bar {
        height: 42px;
        min-height: 42px;
        font-size: 0.72rem;
    }
}


/* --- SISTEMA PAGINE ARTISTA A SCHERMO INTERO --- */
.artist-modals-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

.artist-modals-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.artist-full-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    flex-direction: column;
    transform: translateY(100vh);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

/* Versioni leggermente piu' intense dei colori pastello delle card per le modali a schermo intero */
.artist-full-page.bg-orange { background-color: #f39f86; color: var(--text-black) !important; }
.artist-full-page.bg-peach  { background-color: #f39f86; color: var(--text-black) !important; }
.artist-full-page.bg-yellow { background-color: #ffd073; color: var(--text-black) !important; }
.artist-full-page.bg-blue   { background-color: #8ab3fa; color: var(--text-black) !important; }
.artist-full-page.bg-green  { background-color: #89d9b4; color: var(--text-black) !important; }
.artist-full-page.bg-brown  { background-color: #cba385; color: var(--text-black) !important; }
.artist-full-page.bg-purple { background-color: #f897c2; color: var(--text-black) !important; }
.artist-full-page.bg-cream  { background-color: #e9e4ce; color: var(--text-black) !important; }
.artist-full-page.bg-grey   { background-color: #b8bebf; color: var(--text-black) !important; }

.artist-modals-overlay.active .artist-full-page.active {
    display: flex;
    transform: translateY(0);
}

.full-page-header {
    height: 110px;
    width: 100%;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    position: relative;
    background-color: transparent;
    z-index: 100;
}

.header-logo-container img {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.header-logo-container img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px rgba(255, 194, 49, 0.85));
}

.full-page-close-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text-black);
    background-color: var(--text-white);
    border: 3px solid var(--text-black);
    border-radius: 50px;
    padding: 0.45rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 4px 4px 0px var(--c-yellow);
    transition: all 0.2s ease;
}

.full-page-close-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.full-page-close-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--text-black);
}

.header-logo-container {
    font-size: 1.1rem;
    line-height: 0.95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
}

.header-logo-container .text-sunflower {
    -webkit-text-stroke: 1.2px var(--text-black);
    color: transparent;
    text-transform: uppercase;
}

.header-logo-container .text-festival {
    color: var(--text-black);
    text-transform: uppercase;
}

/* Griglia contenuto pagina intera */
.full-page-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.full-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 5rem;
    width: 100%;
    align-items: start;
}

.full-page-media-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: start;
    width: 100%;
}

.full-page-media-col .torn-paper-frame {
    width: 90%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    border: 6px solid var(--text-black);
    box-shadow: 12px 12px 0px var(--text-black);
    background-color: var(--text-white);
    border-radius: 12px !important;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.full-page-media-col .torn-paper-frame:hover {
    transform: scale(1.02) rotate(1deg);
}

.full-page-media-col .placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0 !important;
    transform: scale(1.05) !important;
}

/* Adesivi stella/cerchio dentro la colonna media */
.sticker-badge {
    position: absolute;
    bottom: -1rem;
    right: 0;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    border: 4px solid var(--text-black);
    z-index: 15;
    text-transform: uppercase;
}

.sticker-badge.badge-starburst {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: rotate(15deg);
}

.sticker-badge.badge-circle {
    border-radius: 50%;
    transform: rotate(-10deg);
    box-shadow: 4px 4px 0px var(--text-black);
}

/* Colonna testo dettagli */
.full-page-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.full-page-time-badge {
    font-size: 1.1rem;
    font-weight: 900;
    padding: 0.5rem 1.4rem;
    border: 3px solid var(--text-black);
    border-radius: 8px;
    background-color: var(--text-white);
    color: var(--text-black);
    margin-bottom: 1.2rem;
}

.full-page-title {
    font-family: 'Monument Extended', sans-serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--text-black);
    line-height: 0.95;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.full-page-genre-tag {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-black);
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.brutalist-divider {
    width: 100%;
    height: 4px;
    background-color: var(--text-black);
    margin: 2.2rem 0;
}

.full-page-bio {
    width: 100%;
}

.full-page-bio h2,
.full-page-socials-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--text-black);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.full-page-description {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.75;
    color: var(--text-black);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.full-page-description:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .full-page-description {
        text-align: left;
    }
}

.full-page-socials-container {
    width: 100%;
}

.full-page-socials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 1.2rem;
}

.brutalist-social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-black);
    background-color: var(--text-white);
    border: 3px solid var(--text-black);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--text-black);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brutalist-social-btn:hover {
    transform: translate(-4px, -4px) rotate(-1deg);
    box-shadow: 8px 8px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.brutalist-social-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-black);
}

.brutalist-social-btn.instagram:hover {
    background-color: var(--c-peach);
}

.brutalist-social-btn.tiktok:hover {
    background-color: var(--c-yellow);
    filter: drop-shadow(-2px -1.5px 0px #ff0050) drop-shadow(2px 1.5px 0px #00f2fe);
}

.brutalist-social-btn.spotify:hover {
    background-color: var(--c-green);
    color: #1ed760;
}


/* ADATTAMENTI RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .artists-slider-section {
        padding: 5rem 2rem;
    }
    
    .full-page-header {
        padding: 0 2rem;
        height: 100px;
    }
    
    .full-page-content {
        padding: 3rem 2rem;
    }
    
    .full-page-grid {
        gap: 3rem;
    }
    
    .full-page-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .artists-slider-header {
        margin-bottom: 2rem;
    }
    
    .slider-title {
        font-size: 2.2rem;
    }
    
    .slider-cursive-text {
        font-size: 4.6rem;
        top: 55%;
        left: -10px;
    }
    
    
    .slider-control-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-width: 3px;
        box-shadow: 3px 3px 0px var(--text-black);
    }
    
    .artist-slider-card {
        width: 280px;
        height: 425px;
    }
    
    .card-img-wrapper {
        height: 220px;
    }
    
    .card-info-box {
        margin-top: 220px;
        padding: 1rem 1.2rem;
    }
    
    .artist-card-name {
        font-size: 1.4rem;
    }
    
    .artist-card-genre {
        margin-bottom: 0.8rem;
    }
    
    .full-page-header {
        padding: 0 1.5rem;
        height: 92px;
    }
    
    .full-page-close-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1000;
        padding: 0.45rem 1.2rem;
        font-size: 0.95rem;
        border-width: 2px;
        box-shadow: 3px 3px 0px var(--text-black);
    }
    
    .close-btn-desktop-text {
        display: none;
    }
    
    .full-page-content {
        padding: 2.5rem 1.5rem;
    }
    
    .full-page-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .full-page-media-col .torn-paper-frame {
        max-width: 280px;
        width: 100%;
        border-width: 4px;
        box-shadow: 6px 6px 0px var(--text-black);
    }
    
    .sticker-badge {
        width: 90px;
        height: 90px;
        font-size: 1.2rem;
        border-width: 3px;
        bottom: -0.5rem;
        right: 1.5rem;
    }
    
    .full-page-info-col {
        align-items: center;
        text-align: center;
    }
    
    .full-page-title {
        font-size: clamp(1.2rem, 7.2vw, 2.5rem);
        text-align: center;
        align-self: center;
        word-wrap: break-word;
        max-width: 100%;
        line-height: 1.1;
    }
    
    .full-page-genre-tag {
        font-size: 1.15rem;
    }
    
    .full-page-socials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .brutalist-social-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* --- PLAYER AUDIO PERSONALIZZATO SUNFLOWER --- */
.sunflower-player {
    width: 100%;
    margin-top: 1.5rem;
    background-color: var(--text-white);
    border: 4px solid var(--text-black);
    box-shadow: 6px 6px 0px var(--text-black);
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sunflower-player:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--text-black);
}

/* Assicura che lo stile di sfondo si comporti bene sui dettagli con sfondo rosso "via-mercanti" */
.artist-full-page.bg-red .sunflower-player {
    border-color: var(--text-black);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--text-black);
    background-color: var(--c-yellow);
    color: var(--text-black);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--text-black);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-play-btn:hover {
    transform: scale(1.08) translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--text-black);
    background-color: var(--c-peach);
}

.player-play-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

.player-track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-track-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.player-progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border: 2px solid var(--text-black);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--c-yellow);
    transition: width 0.1s linear;
}

.player-time-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(26, 26, 26, 0.7);
}

.player-status-msg {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--c-red);
    margin-top: 0.4rem;
    text-align: left;
    display: none;
}

.artist-full-page.bg-red .player-status-msg {
    color: #ffd2d2; /* Migliore visibilita' su sfondo rosso */
}

/* --- STILE CONTROLLO VOLUME PLAYER SUNFLOWER --- */
.player-volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    margin-right: 0.2rem;
}

.player-volume-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--text-black);
    background-color: var(--text-white);
    color: var(--text-black);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--text-black);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-volume-btn:hover {
    transform: scale(1.05) translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.player-volume-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

/* Contenitore dello slider del volume */
.volume-slider-wrapper {
    width: 0;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

/* Comportamenti hover/focus su desktop */
.player-volume-container:hover .volume-slider-wrapper,
.player-volume-container:focus-within .volume-slider-wrapper {
    width: 80px;
}

.player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 8px;
    background: var(--bg-white);
    border: 2px solid var(--text-black);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-red);
    border: 2px solid var(--text-black);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.player-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-red);
    border: 2px solid var(--text-black);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.player-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.25);
}

/* Layout responsive mobile: mantiene aperto lo slider del volume */
@media (max-width: 768px) {
    .volume-slider-wrapper {
        width: 70px;
    }
}

/* Animazione di pulsazione personalizzata sul titolo per attirare l'attenzione dopo lo scroll fluido */
.highlight-pulse {
    animation: pulseHighlight 1s ease-in-out;
}

@keyframes pulseHighlight {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1) rotate(-2deg);
        color: var(--c-red);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* --- SISTEMA CARD PAGINA NEWS ED EVENTI --- */
.page-header {
    background-image: radial-gradient(rgba(26, 26, 26, 0.12) 18%, transparent 19%);
    background-size: 16px 16px;
    background-color: var(--c-pastel-yellow);
    border-bottom: 4px solid var(--text-black);
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 14px;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--text-black) 0px,
        var(--text-black) 6px,
        transparent 6px,
        transparent 18px
    );
    opacity: 0.12;
}

/* Badge fluttuante per l'intestazione */
.header-badge-float {
    position: absolute;
    right: 12%;
    top: 20%;
    background-color: var(--c-yellow);
    color: var(--text-black);
    border: 3px solid var(--text-black);
    padding: 0.5rem 1rem;
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.75rem;
    transform: rotate(6deg);
    box-shadow: 4px 4px 0 var(--text-black);
    animation: floatingBadge 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingBadge {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-8px); }
}

/* Sezione ricerca e filtri */
.news-controls-container {
    max-width: 1100px;
    margin: 2.5rem auto 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.news-search-box {
    position: relative;
    width: 100%;
}

.news-search-box i {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(26,26,26,0.5);
    pointer-events: none;
    transition: color 0.2s ease;
}

.news-search-box:focus-within i {
    color: var(--text-black);
}

.news-search-input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-black);
    background-color: var(--text-white);
    border: 4px solid var(--text-black);
    border-radius: 50px;
    box-shadow: 6px 6px 0px var(--text-black);
    outline: none;
    transition: box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-search-input:focus {
    box-shadow: 8px 8px 0px var(--c-yellow);
    transform: translate(-2px, -2px);
}

.news-search-input::placeholder {
    color: rgba(26,26,26,0.45);
    font-weight: 600;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.filter-btn i {
    margin-right: 0.2rem;
}

.filter-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    background-color: var(--text-white);
    color: var(--text-black);
    border: 3px solid var(--text-black);
    border-radius: 50px;
    box-shadow: 4px 4px 0px var(--text-black);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
    transform: translate(-2px, -2px) scale(1.04);
    box-shadow: 6px 6px 0px var(--text-black);
    background-color: var(--c-pastel-yellow);
}

.filter-btn.active {
    background-color: var(--c-yellow);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-black);
}

.filter-btn[data-filter="annuncio"].active { background-color: var(--c-red); color: var(--text-white); }
.filter-btn[data-filter="contest"].active { background-color: var(--c-pastel-blue); }
.filter-btn[data-filter="collaborazione"].active { background-color: var(--c-purple); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem 1.5rem;
    align-items: start;
}

/* Predefinito: card verticale (per griglia a 2 colonne) */
.news-card {
    display: flex;
    flex-direction: column;
    background-color: var(--text-white);
    background-image: radial-gradient(rgba(26, 26, 26, 0.07) 12%, transparent 13%);
    background-size: 14px 14px;
    border: 4px solid var(--text-black);
    border-radius: 20px 6px 20px 6px;
    box-shadow: 8px 8px 0px var(--text-black);
    overflow: hidden;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.4s ease;
    position: relative;
}

/* Card in evidenza: larghezza piena, layout orizzontale */
.news-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 360px;
    border-radius: 36px 8px 36px 8px;
    box-shadow: 12px 12px 0px var(--text-black);
}

/* Filigrana numerica della card */
.card-num {
    position: absolute;
    bottom: 0.6rem;
    right: 1rem;
    font-family: 'Monument Extended', sans-serif;
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--text-black);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
    transition: opacity 0.35s ease;
}
.news-card:hover .card-num { opacity: 0.1; }



.news-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    display: none !important;
}

.news-card:hover {
    transform: translate(-5px, -5px) rotate(0.5deg) scale(1.025);
    box-shadow: 12px 12px 0px var(--text-black);
}
.news-card.featured:hover {
    transform: translate(-6px, -6px) rotate(0.3deg) scale(1.015);
}

/* Ombre hover colorate dinamicamente in base alla categoria */
.news-card[data-category="annuncio"]:hover {
    box-shadow: 18px 18px 0px var(--c-red);
}

.news-card[data-category="contest"]:hover {
    box-shadow: 18px 18px 0px var(--c-pastel-blue);
}

.news-card[data-category="line-up"]:hover {
    box-shadow: 18px 18px 0px var(--c-yellow);
}

.news-card[data-category="collaborazione"]:hover {
    box-shadow: 18px 18px 0px var(--c-purple);
}

/* Immagine card verticale (predefinita) */
.news-card-img-wrapper {
    width: 100%;
    min-width: 0;
    height: 230px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-right: none;
    border-bottom: 4px solid var(--text-black);
    clip-path: polygon(0 0, 100% 0, 100% 83%, 0 100%);
    background-color: var(--c-yellow);
}

/* Immagine card in evidenza (orizzontale) */
.news-card.featured .news-card-img-wrapper {
    width: 42%;
    min-width: 0;
    height: auto;
    flex-shrink: 0;
    border-right: 4px solid var(--text-black);
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

/* Linee diagonali overlay sopra il contenitore immagine */
.news-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(26,26,26,0.06) 25%, transparent 25%, transparent 50%, rgba(26,26,26,0.06) 50%, rgba(26,26,26,0.06) 75%, transparent 75%, transparent);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 2;
}

.news-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.1);
    filter: brightness(1.06) saturate(1.12);
}

/* Contenuto card verticale */
.news-card-content {
    flex: 1;
    padding: 1.6rem 1.8rem 1.6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Contenuto card in evidenza: centrato verticalmente */
.news-card.featured .news-card-content {
    padding: 2.4rem 2.4rem 2rem 2.6rem;
    justify-content: center;
}

.news-badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    color: var(--text-white);
    background-color: var(--c-red);
    padding: 0.35rem 1rem;
    border: 2.5px solid var(--text-black);
    border-radius: 50px;
    box-shadow: 2px 2px 0px var(--text-black);
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.04em;
}

.news-card.event .news-badge {
    background-color: var(--c-yellow);
    color: var(--text-black);
}

.news-title {
    font-family: 'Monument Extended', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--text-black);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    transition: color 0.25s ease;
    cursor: pointer;
}

.news-card.featured .news-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.news-card:hover .news-title {
    color: var(--c-red);
}

.news-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: rgba(26,26,26,0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(26,26,26,0.78);
    margin-bottom: 1.4rem;
}
.news-card.featured .news-excerpt {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.news-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.82rem;
    color: var(--text-white) !important;
    background-color: var(--c-red);
    border: 3px solid var(--text-black);
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    box-shadow: 4px 4px 0px var(--text-black);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background-color 0.2s, color 0.2s;
    cursor: pointer;
    margin-top: auto;
    letter-spacing: 0.03em;
}

.news-link:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--text-black);
    background-color: var(--c-yellow);
    color: var(--text-black) !important;
}

.news-link:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-black);
}

/* Stile dello stato vuoto */
.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--c-pastel-grey);
    border: 4px solid var(--text-black);
    border-radius: 24px;
    box-shadow: 8px 8px 0px var(--text-black);
}

.news-empty-state i {
    font-size: 3rem;
    color: var(--c-red);
    margin-bottom: 1.5rem;
}

.news-empty-state h3 {
    font-family: 'Monument Extended', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 1.8rem 1rem 4rem 1rem;
    }
    .news-card,
    .news-card.featured {
        flex-direction: column;
        min-height: auto;
        grid-column: 1 / 1;
        border-radius: 20px 6px 20px 6px;
    }
    .news-card-img-wrapper,
    .news-card.featured .news-card-img-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 200px;
        border-right: none;
        border-bottom: 4px solid var(--text-black);
        clip-path: none;
        transition: none !important;
    }
    .news-card:hover .news-card-img-wrapper,
    .news-card.featured:hover .news-card-img-wrapper {
        clip-path: none !important;
    }
    .news-card-content,
    .news-card.featured .news-card-content {
        padding: 1.4rem 1.5rem 1.4rem 1.6rem;
        justify-content: flex-start;
    }
    .news-title,
    .news-card.featured .news-title {
        font-size: 1.35rem;
    }
    .card-num { font-size: 4rem; }
    .news-controls-container {
        margin-top: 1.6rem;
    }
}

/* --- GRAFICHE DECORATIVE HOMEPAGE --- */
.deco-graphics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-deco {
    position: absolute;
    opacity: 0.08;
    font-weight: 900;
    color: var(--text-black);
    user-select: none;
}

.deco-flower {
    font-size: 8rem;
    top: 5%;
    left: 3%;
    opacity: 0.12;
}

.deco-starburst {
    font-size: 6rem;
    top: 45%;
    right: 5%;
    color: var(--c-red);
    opacity: 0.1;
}

.deco-cross-1 {
    font-size: 3rem;
    top: 25%;
    right: 15%;
    opacity: 0.15;
}

.deco-cross-2 {
    font-size: 4rem;
    bottom: 30%;
    left: 8%;
    color: var(--c-yellow);
    opacity: 0.2;
}

.deco-grid-dots {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 2%;
    opacity: 0.05;
    background-image: radial-gradient(var(--text-black) 2px, transparent 2px);
    background-size: 15px 15px;
}

/* --- FRECCE DI NAVIGAZIONE GLOBALI DELLA MODALE --- */
.global-modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--text-white);
    border: 4px solid var(--text-black);
    border-radius: 50%;
    color: var(--text-black);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 0px var(--text-black);
    z-index: 2100;
    transition: all 0.2s ease;
}

.artist-modals-overlay.active .global-modal-nav-btn {
    display: flex;
}

.global-modal-nav-btn:hover {
    transform: translateY(-50%) translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.global-modal-nav-btn:active {
    transform: translateY(-50%) translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--text-black);
}

.global-modal-nav-btn.prev-btn {
    left: 2rem;
}

.global-modal-nav-btn.next-btn {
    right: 2rem;
}

@media (max-width: 992px) {
    .global-modal-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        border-width: 3px;
        box-shadow: 3px 3px 0px var(--text-black);
    }
    .global-modal-nav-btn.prev-btn {
        left: 1rem;
    }
    .global-modal-nav-btn.next-btn {
        right: 1rem;
    }
}

/* Le posiziona in basso su mobile per non coprire la bio */
@media (max-width: 576px) {
    .global-modal-nav-btn {
        top: auto;
        bottom: 20px;
        transform: none;
        position: fixed;
    }
    .global-modal-nav-btn:hover {
        transform: translate(-2px, -2px);
    }
    .global-modal-nav-btn:active {
        transform: translate(1px, 1px);
    }
    .global-modal-nav-btn.prev-btn {
        left: 20px;
        bottom: 20px;
    }
    .global-modal-nav-btn.next-btn {
        right: 20px;
        bottom: 20px;
    }
}

/* --- TESTO CORSIVO DELLO SLIDER --- */
.slider-cursive-text {
    position: absolute;
    top: 55%;
    left: -15px;
    transform: translateY(-50%) rotate(-2deg);
    font-family: 'Dancing Script', cursive;
    font-size: 7.5rem;
    color: var(--c-yellow);
    opacity: 0.65;
    -webkit-text-stroke: 1px rgba(26, 26, 26, 0.35);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}


/* --- EFFETTO CARD IN VETRO --- */
.artists-slider-track.glass-cards-active .artist-slider-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.0) 100%) !important;
    backdrop-filter: blur(16px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(220%) !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    box-shadow:
        inset 2px 2px 0px rgba(255,255,255,0.4),
        inset -2px -2px 0px rgba(255,255,255,0.1),
        0 10px 40px 0 rgba(0,0,0,0.15),
        8px 8px 0px rgba(26,26,26,0.25) !important;
    color: var(--text-black) !important;
}

/* Riflessi vetro colorato per ogni classe colore */
.artists-slider-track.glass-cards-active .artist-slider-card.bg-peach  { background: linear-gradient(135deg, rgba(255,162,112,0.35) 0%, rgba(255,162,112,0.05) 60%, rgba(255,162,112,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-blue   { background: linear-gradient(135deg, rgba(214,232,240,0.35) 0%, rgba(214,232,240,0.05) 60%, rgba(214,232,240,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-yellow { background: linear-gradient(135deg, rgba(245,176,39,0.35) 0%, rgba(245,176,39,0.05) 60%, rgba(245,176,39,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-red    { background: linear-gradient(135deg, rgba(209,86,84,0.35) 0%, rgba(209,86,84,0.05) 60%, rgba(209,86,84,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-green  { background: linear-gradient(135deg, rgba(182,205,174,0.35) 0%, rgba(182,205,174,0.05) 60%, rgba(182,205,174,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-purple { background: linear-gradient(135deg, rgba(224,189,246,0.35) 0%, rgba(224,189,246,0.05) 60%, rgba(224,189,246,0.0) 100%) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card.bg-grey   { background: linear-gradient(135deg, rgba(160,166,169,0.35) 0%, rgba(160,166,169,0.05) 60%, rgba(160,166,169,0.0) 100%) !important; }

/* Mantiene gli elementi di testo puliti e leggibili sulle card in vetro */
.artists-slider-track.glass-cards-active .artist-slider-card .artist-card-name { color: var(--text-black) !important; }
.artists-slider-track.glass-cards-active .artist-slider-card .card-time-chip { color: rgba(26, 26, 26, 0.65) !important; }

/* Stati attivi dinamici per il pulsante in vetro */
.slider-control-btn.glass-toggle {
    margin-right: 0.5rem;
    font-size: 1.3rem;
}
.slider-control-btn.glass-toggle.active {
    background-color: var(--c-yellow);
    box-shadow: 2px 2px 0px var(--text-black);
    transform: translate(2px, 2px);
}

/* --- STILI PLAYER PERSONALIZZATO MULTI-TRACCIA --- */
.sunflower-player {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-track-selector {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
}
.player-track-selector::-webkit-scrollbar {
    display: none;
}

.track-select-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border: 3px solid var(--text-black);
    border-radius: 8px;
    background-color: var(--text-white);
    color: var(--text-black);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 2px 2px 0px var(--text-black);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.track-select-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.track-select-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

.track-select-btn.active {
    background-color: var(--text-black);
    color: var(--text-white);
    box-shadow: none;
    transform: none;
}

.player-btn-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.player-skip-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid var(--text-black);
    background-color: var(--text-white);
    color: var(--text-black);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--text-black);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-skip-btn:hover {
    transform: scale(1.06) translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.player-skip-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

@media (max-width: 576px) {
    .player-track-selector {
        gap: 0.5rem;
    }
    .track-select-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
}

/* --- MIGLIORIE SFONDO HOMEPAGE --- */
.home-body {
    background-color: #FFC231 !important;
}

.home-body .bg-white,
.home-body .full-width-wrapper,
.home-body .countdown-section,
.home-body .stats-section,
.home-body .artists-slider-section {
    background-color: #FFC231 !important;
}

.home-body .wave-divider path {
    fill: #FFC231 !important;
}

.sunflower-map-link:hover {
    color: var(--c-red) !important;
    background-color: rgba(26, 26, 26, 0.05);
}

/* --- STILE CARTOLINA PER LE CANDIDATURE --- */
.postcard-wrapper {
    perspective: 1000px;
}

.postcard-card {
    background-color: var(--c-pastel-cream, #faf8ee);
    border: 4px solid var(--text-black);
    border-radius: 16px;
    box-shadow: 8px 8px 0px var(--text-black);
    padding: 2.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 340px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.postcard-wrapper:hover .postcard-card {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 14px 14px 0px var(--text-black);
    background-color: var(--c-yellow) !important;
}

.postcard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.postcard-title-text {
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-black);
    letter-spacing: 1px;
    border: 3px solid var(--text-black);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background-color: var(--c-pastel-yellow);
    box-shadow: 2px 2px 0px var(--text-black);
}

/* Illustrazione francobollo */
.postcard-stamp {
    width: 80px;
    height: 100px;
    background-color: var(--text-black);
    border: 3px dashed var(--text-white);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    position: relative;
    transform: rotate(6deg);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.postcard-wrapper:hover .postcard-stamp {
    transform: rotate(-4deg) scale(1.05);
}

.stamp-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1.1;
    text-align: center;
}

.stamp-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* Divisione del corpo della cartolina */
.postcard-body {
    display: flex;
    gap: 1.8rem;
    flex-grow: 1;
}

.postcard-left-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.postcard-divider {
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--text-black),
        var(--text-black) 6px,
        transparent 6px,
        transparent 12px
    );
    align-self: stretch;
}

.postcard-right-col {
    flex: 1;
    display: flex;
    align-items: center;
}

.address-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.address-label {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(26,26,26,0.6);
}

.address-line {
    border-bottom: 2px solid var(--text-black);
    padding-bottom: 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-black);
}

.font-handwriting {
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    color: #2b3a8c !important; /* Colore inchiostro blu penna classico */
}

.postcard-message {
    padding-top: 0.5rem;
}

.postcard-click-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-white);
    background-color: var(--c-red);
    padding: 0.6rem 1rem;
    border: 3px solid var(--text-black);
    border-radius: 8px;
    box-shadow: 3px 3px 0px var(--text-black);
    align-self: flex-start;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.postcard-wrapper:hover .postcard-click-action {
    background-color: var(--text-black);
    color: var(--c-yellow);
    box-shadow: 3px 3px 0px var(--c-red);
}

@media (max-width: 768px) {
    .postcard-body {
        flex-direction: column;
        gap: 1.5rem;
    }
    .postcard-divider {
        width: 100%;
        height: 3px;
        background: repeating-linear-gradient(
            to right,
            var(--text-black),
            var(--text-black) 6px,
            transparent 6px,
            transparent 12px
        );
    }
    .postcard-card {
        padding: 1.5rem;
    }
}

/* Stile mobile del player personalizzato */
@media (max-width: 768px) {
    .sunflower-player {
        padding: 1.2rem 1.2rem;
    }

    .player-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .player-track-info {
        order: -1; /* Spinge il nome della traccia e la barra di avanzamento in alto */
        width: 100%;
    }

    .player-btn-group {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .player-volume-container {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.2rem;
    }

    .volume-slider-wrapper {
        width: 100px !important; /* Rende lo slider del volume un po' piu' grande e completamente visibile su mobile */
    }
}

/* --- STILE PLACEHOLDER LAZY LOADING --- */
.lazy-bg {
    background-image: none !important;
    background-color: rgba(26, 26, 26, 0.08);
    position: relative;
    overflow: hidden;
}

.lazy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: lazyShimmer 1.5s infinite;
}

@keyframes lazyShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Correzioni mobile per contenuto modale e player */
@media (max-width: 768px) {
    .artist-full-page {
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .full-page-content {
        display: block !important; /* Evita che il centraggio flex causi overflow orizzontale */
        padding: 2rem 1.2rem 120px 1.2rem !important; /* Padding inferiore extra per evitare che gli elementi siano coperti dai pulsanti di navigazione fissi */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .full-page-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        grid-template-columns: 1fr !important;
        min-width: 0 !important;
    }

    .full-page-info-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    .full-page-bio,
    .sunflower-player-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .full-page-description {
        width: 100% !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .sunflower-player {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }

    /* Assicura che i pulsanti di navigazione non blocchino il player o si sovrappongano in modo scorretto */
    .global-modal-nav-btn {
        z-index: 2200 !important; /* Resta sopra i player */
    }

    .player-track-name {
        word-break: break-word !important;
        white-space: normal !important;
    }

    .player-track-selector {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* --- GRIGLIA SEZIONE MAPPA E ACCORDION --- */
.map-section-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 1.5rem auto 0 auto;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.map-section-grid .smartphone-map-container {
    margin: 0;
}

.how-to-reach-container {
    flex: 1;
    min-width: 320px;
    max-width: 550px;
    text-align: left;
}

.reach-title {
    font-family: 'Monument Extended', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    -webkit-text-stroke: 1.5px var(--text-black);
    color: #FFC231;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--text-black);
}

.brutalist-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.accordion-item {
    border: 4px solid var(--text-black);
    border-radius: 16px;
    background-color: var(--text-white);
    box-shadow: 6px 6px 0px var(--text-black);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.accordion-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--text-black);
}

.accordion-header {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text-black);
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion-header span {
    display: flex;
    align-items: center;
}

.accordion-header span i {
    margin-right: 0.8rem;
    font-size: 1.3rem;
    color: var(--c-red);
}

.accordion-header:hover {
    background-color: rgba(26, 26, 26, 0.03);
}

.accordion-header .arrow-icon {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Stato attivo dell'accordion */
.accordion-item.active .arrow-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    border-bottom: 4px solid var(--text-black);
    background: repeating-linear-gradient(
        -45deg,
        var(--c-pastel-yellow),
        var(--c-pastel-yellow) 10px,
        #fcd975 10px,
        #fcd975 20px
    ) !important;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    padding: 0 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-black);
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 1200px;
    padding: 1.5rem;
}

.accordion-content p {
    margin-bottom: 0.8rem;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content strong {
    font-weight: 900;
    color: var(--c-red);
}

.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.8rem 0;
}

.accordion-content li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.accordion-content li::before {
    content: "✦";
    position: absolute;
    left: 0.4rem;
    color: var(--c-red);
    font-size: 1rem;
}

.mini-brutalist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-black) !important;
    background-color: var(--c-pastel-green);
    border: 2px solid var(--text-black);
    box-shadow: 3px 3px 0px var(--text-black);
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.mini-brutalist-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--text-black);
    background-color: var(--c-yellow);
}

.mini-brutalist-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--text-black);
}

@media (max-width: 1024px) {
    .map-section-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin-top: 2rem;
    }
    .how-to-reach-container {
        max-width: 100%;
        width: 100%;
    }
    .reach-title {
        font-size: 1.8rem;
        text-align: center;
    }
    /* Rendiamo le statistiche a 2 colonne invece di impilarle subito */
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- OVERRIDE COMPLETI DI RESPONSIVITA' --- */
@media (max-width: 768px) {
    /* Vincoli di sicurezza per il viewport */
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Tipografia fluida per i titoli principali */
    .page-title {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
    }
    .page-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.25rem) !important;
        padding: 0 1rem;
    }
    .giant-title .text-sunflower,
    .giant-title .text-festival {
        font-size: clamp(2rem, 12vw, 5.5rem) !important;
    }
    
    /* Correzioni al conto alla rovescia */
    .countdown-container {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
        max-width: 100% !important;
        padding: 0 0.5rem;
    }
    .count-box {
        padding: 0.6rem 0.1rem !important;
    }
    .count-box .num {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
    }
    .count-box .label {
        font-size: clamp(0.6rem, 2vw, 0.9rem) !important;
    }

    /* Ridimensionamento di form e pulsanti */
    input, textarea, select, button, .brutalist-button {
        min-height: 44px; /* Regola altezza area di tocco */
    }

    /* Adattamento responsive dei blocchi informativi */
    .info-block {
        padding: 2rem 1rem !important;
        gap: 1.5rem !important;
    }
    
    /* Correzione allineamento social network */
    .social-channels-grid {
        grid-template-columns: 1fr !important; /* Impila verticalmente per un allineamento chiaro */
        gap: 1rem !important;
        padding: 0 1rem;
    }

    /* Dimensionamento responsive della mappa: mantiene le proporzioni desktop dello smartphone */
    .smartphone-map-container {
        width: 325px !important;
        max-width: 325px !important;
        height: 620px !important;
    }

    /* Griglia lettere galleria su mobile/tablet */
    .sunflower-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 1.5rem !important;
        padding: 0 1.5rem !important;
    }
    .letter-card {
        height: 220px !important;
    }
    .letter-card .huge-letter {
        font-size: 5rem !important;
    }

    /* Correzione stile footer */
    .site-footer {
        padding: 3rem 1rem 1.5rem 1rem !important;
    }
    .footer-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2.5rem !important;
    }
    .footer-col {
        width: 100% !important;
        max-width: 100% !important;
    }
    .footer-association-logo {
        margin: 1rem auto 0 auto !important;
    }
}

@media (max-width: 600px) {
    /* Layout a 2 colonne per la griglia lettere SUNFLOWER sui viewport da smartphone */
    .sunflower-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 1rem !important;
        margin: 2rem auto !important;
    }
    .letter-card {
        height: 150px !important;
        border-width: 3px !important;
        box-shadow: 4px 4px 0px var(--text-black) !important;
    }
    .letter-card:hover {
        box-shadow: 6px 6px 0px var(--text-black) !important;
        transform: translate(-2px, -2px) !important;
    }
    .letter-card .huge-letter {
        font-size: 3.5rem !important;
        -webkit-text-stroke: 2px var(--text-black) !important;
    }
    .letter-card .letter-concept {
        font-size: 0.75rem !important;
        bottom: 8px !important;
        padding: 2px 6px !important;
    }
}

@media (max-width: 480px) {
    /* Impilamento statistiche su schermi molto piccoli */
    .stats-container {
        grid-template-columns: 1fr !important;
    }
    .stat-box {
        padding: 1.5rem 1rem !important;
    }

    /* Layout del conto alla rovescia su schermi minuscoli per evitare di schiacciare i numeri */
    .countdown-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    /* Adatta il padding dell'header di pagina */
    .page-header {
        padding: 3rem 1rem !important;
    }

    /* Dimensioni dei blocchi di testo */
    .info-text p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Ridimensionamento del messaggio della cartolina */
    .postcard-message {
        font-size: 1.2rem !important;
    }
    .postcard-click-action {
        font-size: 0.8rem !important;
    }

    /* Reset larghezza elementi iframe */
    iframe, video, img {
        max-width: 100% !important;
    }
}

/* =============================================
   FIX MOBILE: centratura mappa + sezione
   ============================================= */

/* Rimuove il doppio padding (sezione ha già padding: 1rem).
   Con padding: 0 la griglia si allinea al titolo "DOVE TROVARCI"
   e lo smartphone può essere centrato via margin auto. */
@media (max-width: 1024px) {
    .map-section-grid {
        padding: 0 !important;
    }

    .map-section-grid .smartphone-map-container {
        margin: 0 auto !important;
    }

    .how-to-reach-container {
        min-width: 0 !important;
    }
}

/* Su mobile portrait: mantiene le stesse dimensioni del desktop */
@media (max-width: 480px) {
    .smartphone-map-container {
        width: 325px !important;
        max-width: 325px !important;
        height: 620px !important;
    }
}

/* ============================================================
   NUOVO SUNFLOWER SPOTIFY PLAYER — .sf-music-player
   ============================================================ */

.sf-music-player {
    width: 100%;
    margin-top: 1.5rem;
    border: 4px solid var(--text-black);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 8px 8px 0px var(--text-black);
    display: flex;
    flex-direction: column;
    background-color: var(--text-black);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.sf-music-player:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px var(--text-black);
}

/* Barra header gialla */
.sf-player-header {
    background-color: var(--c-yellow);
    border-bottom: 4px solid var(--text-black);
    padding: 0.6rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
}

/* Label con icona Spotify */
.sf-player-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-black);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.sf-player-label .fa-spotify {
    font-size: 1.05rem;
    color: #1ed760;
    filter: drop-shadow(0 0 5px rgba(30, 215, 96, 0.5));
}

/* Barre equalizzatore animate */
.sf-player-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    flex-shrink: 0;
}

.sf-player-eq span {
    display: block;
    width: 4px;
    border-radius: 2px 2px 0 0;
    background-color: var(--text-black);
    animation: sf-eq-bounce 1.2s ease-in-out infinite;
    transform-origin: bottom center;
}

.sf-player-eq span:nth-child(1) { height: 8px;  animation-duration: 1.1s;  animation-delay: 0s; }
.sf-player-eq span:nth-child(2) { height: 16px; animation-duration: 0.88s; animation-delay: 0.18s; }
.sf-player-eq span:nth-child(3) { height: 10px; animation-duration: 1.35s; animation-delay: 0.06s; }
.sf-player-eq span:nth-child(4) { height: 14px; animation-duration: 0.98s; animation-delay: 0.32s; }
.sf-player-eq span:nth-child(5) { height: 6px;  animation-duration: 1.25s; animation-delay: 0.14s; }

@keyframes sf-eq-bounce {
    0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
    50%       { transform: scaleY(1);   opacity: 1; }
}

/* Pallini decorativi traffic-light */
.sf-player-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}

.sf-player-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-black);
}

.sf-player-dots span:nth-child(1) { opacity: 0.78; }
.sf-player-dots span:nth-child(2) { opacity: 0.44; }
.sf-player-dots span:nth-child(3) { opacity: 0.2; }

/* Area iframe Spotify */
.sf-player-body {
    background-color: #121212;
    line-height: 0;
    flex: 1;
}

.sf-player-body iframe {
    display: block;
    border: none;
    width: 100%;
    height: 152px;
}

/* Variante "in arrivo" (artisti senza Spotify) */
.sf-player-coming-soon-body {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    padding: 1.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 104px;
}

.sf-player-coming-soon-body .fa-compact-disc {
    font-size: 2.8rem;
    color: var(--c-yellow);
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(245, 176, 39, 0.45));
}

.sf-coming-soon-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sf-coming-soon-text span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--c-yellow);
    letter-spacing: 0.5px;
}

.sf-coming-soon-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(253, 253, 253, 0.68);
    line-height: 1.5;
    margin: 0;
}

/* Animazione di entrata quando il fullscreen si apre */
.artist-full-page.active .sf-music-player {
    animation: fp-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

/* Mobile */
@media (max-width: 768px) {
    .sf-music-player {
        border-width: 3px;
        box-shadow: 5px 5px 0px var(--text-black);
        margin-top: 1rem;
    }

    .sf-player-header {
        min-height: 40px;
        padding: 0.5rem 0.9rem;
        gap: 0.5rem;
    }

    .sf-player-label {
        font-size: 0.62rem;
        letter-spacing: 1px;
    }
}

/* ============================================================
   ARTIST FULL-PAGE — Miglioramenti grafici & animazioni
   ============================================================ */

/* Texture diagonale di sfondo sulla pagina artista */
.artist-full-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--text-black),
        var(--text-black) 1px,
        transparent 1px,
        transparent 14px
    );
}
.artist-full-page > * { position: relative; z-index: 1; }

/* Staggered entry animations quando il modal si apre */
@keyframes fp-slide-left {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fp-slide-right {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fp-slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fp-expand {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

.artist-full-page.active .full-page-media-col {
    animation: fp-slide-left 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.artist-full-page.active .full-page-time-badge {
    animation: fp-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.artist-full-page.active .full-page-title {
    animation: fp-slide-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.artist-full-page.active .full-page-genre-tag {
    animation: fp-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.artist-full-page.active .brutalist-divider {
    animation: fp-expand 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    transform-origin: left;
}
.artist-full-page.active .full-page-bio {
    animation: fp-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}
.artist-full-page.active .sunflower-player-section {
    animation: fp-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}
.artist-full-page.active .full-page-socials-container {
    animation: fp-slide-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

/* Sticker badge: animazione float costante */
@keyframes sticker-float {
    0%, 100% { transform: rotate(-10deg) translateY(0px); }
    50%       { transform: rotate(-7deg)  translateY(-7px); }
}
.sticker-badge.badge-circle {
    animation: sticker-float 3s ease-in-out infinite !important;
}
.sticker-badge.badge-starburst {
    animation: sticker-float 4s ease-in-out infinite !important;
}

/* Titolo artista — ombra testo più drammatica */
.full-page-title {
    text-shadow: 5px 5px 0px rgba(0,0,0,0.15);
}

/* Bio section — pannello semi-trasparente */
.full-page-bio {
    background-color: rgba(255,255,255,0.3);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    backdrop-filter: blur(6px);
}

/* Genre tag — aspetto timbro */
.full-page-genre-tag {
    display: inline-block;
    border: 2.5px solid var(--text-black);
    border-radius: 4px;
    padding: 0.25rem 1rem;
    background-color: rgba(0,0,0,0.08);
    font-size: 1rem;
    letter-spacing: 2px;
    transform: rotate(-1deg);
    margin-bottom: 1.5rem;
}

/* Time badge — migliorato */
.full-page-time-badge {
    box-shadow: 4px 4px 0 var(--text-black);
    font-family: 'Monument Extended', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transform: rotate(0.5deg);
    display: inline-block;
}

/* Photo frame — ombra più drammatica */
.full-page-media-col .torn-paper-frame {
    box-shadow: 16px 16px 0px var(--text-black) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.full-page-media-col .torn-paper-frame:hover {
    transform: scale(1.02) rotate(1.5deg) !important;
    box-shadow: 20px 20px 0px var(--text-black) !important;
}

/* Brutalist divider — accent giallo */
.brutalist-divider {
    background: linear-gradient(to right, var(--c-yellow) var(--divider-progress, 40px), var(--text-black) var(--divider-progress, 40px));
    height: 5px;
    border-radius: 0;
    transition: background 0.3s ease;
}

/* Sunflower player — striscia NOW PLAYING */
.sunflower-player {
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
}
.sunflower-player::before {
    content: '♪ NOW PLAYING';
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-black);
    background-color: var(--c-yellow);
    border-bottom: 2px solid var(--text-black);
    padding: 0.35rem 1rem;
    margin: -1.2rem -1.8rem 1rem -1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sunflower-player::after {
    content: '';
    position: absolute;
    top: 2.1rem;
    right: 1.2rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-black);
    animation: player-dot-pulse 1.4s ease-in-out infinite;
}
@keyframes player-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.6); opacity: 0.4; }
}

/* Progress bar più alta */
.player-progress-bar-container {
    height: 14px !important;
    border-radius: 7px !important;
    background-color: rgba(0,0,0,0.1) !important;
    border: 2px solid var(--text-black) !important;
}
.player-progress-bar {
    border-radius: 7px !important;
    background: linear-gradient(to right, var(--c-yellow), #e8a020) !important;
    position: relative;
}

/* Play button — ring animato in hover */
.player-play-btn {
    position: relative;
}
.player-play-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--c-yellow);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.player-play-btn:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Social buttons — stagger hover delay */
.full-page-socials-grid .brutalist-social-btn:nth-child(1) { transition-delay: 0s; }
.full-page-socials-grid .brutalist-social-btn:nth-child(2) { transition-delay: 0.04s; }
.full-page-socials-grid .brutalist-social-btn:nth-child(3) { transition-delay: 0.08s; }
.full-page-socials-grid .brutalist-social-btn:nth-child(4) { transition-delay: 0.12s; }
.full-page-socials-grid .brutalist-social-btn:nth-child(5) { transition-delay: 0.16s; }

/* ============================================================
   LANGUAGE SWITCHER STYLES
   ============================================================ */
body.lang-en-active .lang-it {
    display: none !important;
}
body:not(.lang-en-active) .lang-en {
    display: none !important;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    border: 3px solid var(--text-black);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--text-white);
    box-shadow: 3px 3px 0px var(--text-black);
    margin-left: 1rem;
    height: 38px;
}

.lang-btn {
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    color: var(--text-black);
    transition: background-color 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.lang-btn.active {
    background-color: var(--c-yellow);
}

.lang-btn:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-switcher-divider {
    width: 2px;
    height: 16px;
    background-color: var(--text-black);
}

@media (max-width: 768px) {
    /* Compact pill that lives directly in the top navbar, next to the
       hamburger toggle, instead of inside the fullscreen menu overlay */
    .lang-switcher {
        margin: 0;
        width: fit-content;
        height: 36px;
        display: flex;
        background-color: var(--text-black);
        border: 2.5px solid var(--text-black);
        border-radius: 8px;
        box-shadow: 2px 2px 0px var(--text-black);
    }

    .lang-switcher .lang-btn {
        font-size: 0.75rem;
        font-weight: 900;
        padding: 0 0.7rem;
        color: var(--text-white);
        height: 100%;
        display: flex;
        align-items: center;
        background: transparent;
        border: none;
    }

    /* Round only the outer corners so they match the pill container
       (fixes the grey anti-aliased corner artifact from overflow:hidden
       clipping square button corners against the rounded pill edge) */
    .lang-switcher .lang-btn:first-child {
        border-radius: 5.5px 0 0 5.5px;
    }
    .lang-switcher .lang-btn:last-child {
        border-radius: 0 5.5px 5.5px 0;
    }

    /* Selected language: white button. Not selected: black button. */
    .lang-switcher .lang-btn.active {
        background-color: var(--text-white);
        color: var(--text-black);
    }

    .lang-switcher .lang-btn:not(.active):hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .lang-switcher .lang-switcher-divider {
        width: 2px;
        height: 16px;
        align-self: center;
        background-color: var(--text-white);
        opacity: 0.25;
    }
}

/* ============================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Disabilita animazioni costose (text-shadow/box-shadow/filter)
   che causano repaint continui. Le animazioni transform/opacity
   restano perché sono gestite dalla GPU.
   ============================================================ */
@media (max-width: 768px) {

    /* Backdrop-filter è proibitivo su mobile — off */
    .artists-slider-track.glass-cards-active .artist-slider-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Nav blur — off su mobile (già nascosta ma per sicurezza) */
    .navbar, nav {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }


    /* Text-shadow pulsing — triggera repaint ogni frame */
    .today-main-title,
    .sf-cel-line2,
    .today-time-badge {
        animation: none !important;
        text-shadow: none !important;
    }

    /* Box-shadow pulse — layout recalc ogni frame */
    .sf-cel-cta,
    .sf-badge-glow,
    [class*="badge-glow"] {
        animation: none !important;
        box-shadow: none !important;
    }

    /* Animazioni filter/drop-shadow — costose su mobile */
    .today-sunflower-anim,
    .sf-cel-div-sun {
        animation: none !important;
        filter: none !important;
    }

    /* Countdown bobbing — 4 elementi × animazione continua */
    .count-box,
    [class*="count-box"] {
        animation: none !important;
    }

    /* Float-gentle su vari elementi decorativi */
    [style*="float-gentle"],
    .float-gentle {
        animation: none !important;
    }



    /* Header shine della today-card */
    .today-card-header::before { animation: none !important; opacity: 0; }


    /* Top strip shine del pannello celebrazione */
    .sf-cel-top-strip::after { animation: none !important; opacity: 0; }

    /* Rallenta il sole rotante (è transform, quindi ok, ma meno frame) */
    .sf-cel-div-sun {
        animation: sf-cel-sun-spin 12s linear infinite !important;
    }

    /* will-change su elementi che animano ancora (solo transform/opacity) */
    .sf-celebration,
    .today-festival-card,
    .sf-cel-marquee-inner,
    .today-festival-card .today-cta-btn {
        will-change: transform;
    }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   Per utenti che hanno attivato "movimento ridotto" nel SO.
   ============================================================ */
/* ============================================================
   MAP FACADE — carica l'iframe solo al tap
   ============================================================ */
.map-facade {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: #e8e0d5
        repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(0,0,0,.04) 38px, rgba(0,0,0,.04) 40px)
        repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(0,0,0,.04) 38px, rgba(0,0,0,.04) 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: inherit;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease;
}
.map-facade:hover { background-color: #ddd6ca; }
.map-facade-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,.92);
    border: 2px solid var(--text-black);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-black);
    box-shadow: 4px 4px 0px var(--text-black);
    pointer-events: none;
}
.map-facade-overlay i {
    font-size: 2rem;
    color: #e53935;
}
.map-facade-overlay > span { display: block; }

/* ============================================================
   CONTENT-VISIBILITY
   Il browser salta rendering e layout per le sezioni fuori
   dallo schermo. Impatto enorme su mobile (riduce lo stall
   iniziale del thread principale).
   ============================================================ */
.countdown-section,
.info-section,
.gallery-container,
.stats-section,
.map-section,
.home-map-section,
.social-feeds-section,
.artists-slider-section,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* ============================================================
   DESKTOP OPTIMIZATIONS (≥769px)
   Le GPU desktop sono potenti ma il thread principale deve
   restare libero. Isola le aree di repaint e promuove gli
   elementi animati a layer composited.
   ============================================================ */
@media (min-width: 769px) {

    /* ── CSS Paint Containment ──
       Il browser limita i repaint a ciascuna sezione:
       un'animazione in .countdown-section non invalida il
       layout di .artists-slider-section e viceversa.       */
    .countdown-section,
    .artists-slider-section,
    .gallery-container {
        contain: paint;
    }

    /* ── Promuovi marquee e slider a layer GPU ──
       Questi elementi animano solo con transform → zero repaint. */
    .giant-title .text-sunflower,
    .giant-title .text-festival,
    .bg-massive-text,
    .sf-cel-marquee-inner,
    .artists-slider-track {
        will-change: transform;
    }

    /* ── Ferma le animazioni text-shadow/glow sul pannello celebrazione ──
       Visivamente: manteniamo il colore/ombra statica (definita
       nella regola base), togliamo solo il pulse infinito.         */
    .sf-cel-line2 {
        animation: none !important;
        text-shadow: 0 0 35px rgba(245,176,39,.5);
    }

    /* Mantieni l'animazione d'entrata del CTA, rimuovi il pulse infinito */
    .sf-cel-cta {
        animation: sf-cel-cta-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.75s both !important;
        box-shadow: 0 0 30px rgba(245,176,39,.35), 6px 6px 0px rgba(245,176,39,.3);
    }

    /* ── Ferma text-shadow pulsing nel messaggio "oggi è il giorno" ── */
    .today-time-badge {
        animation: none !important;
        text-shadow: 0 0 25px rgba(245,176,39,.45);
    }
    .today-main-title {
        animation: none !important;
    }
}

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









