/* --- IMPOSTAZIONI GLOBALI E VARIABILI --- */
:root {
    --bg-white: #ffffff;
    --bg-gray: #f5f5f7;  /* Sfondo principale */
    --bg-dark: #1a1a1a;
    --bg-event: #e6e8f0; /* Nuovo: Blu-Grigio per "Connessi" */
    --bg-partnership: #e6f0e8; /* Nuovo: Verde-Grigio per "Partnership" */
    
    --text-black: #1a1a1a;
    --text-white: #f5f5f7;
    
    /* Colori del gradiente statico per lo studio */
    --static-yellow-light: #FFFBEB; 
    --static-yellow-dark: #FEF7DA;
    
    --primary-yellow: #FFD700;
    --font-main: 'League Spartan', sans-serif;
    --transition-fluid: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    /* font-size: 16px; */
    font-size: 80%; /* MODIFICA: Testo ridimensionato come richiesto */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-gray); /* SFONDO PRINCIPALE GRIGIO */
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TIPOGRAFIA --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center; 
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.75rem; }

p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center; /* Paragrafi centrati di default */
    max-width: 65ch; 
    margin-left: auto; 
    margin-right: auto;
}

/* Regole per il testo su sfondi scuri */
.dark-section {
    background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 255, 0.2), transparent 80%), 
                var(--bg-dark);
    color: var(--text-white);
}
.dark-section h2, .dark-section h3, .dark-section p {
    color: var(--text-white);
}

a {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
}
strong a {
    font-weight: inherit;
}

/* --- HEADER E NAVIGAZIONE --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

header nav a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem;
}
header nav a:hover { color: var(--primary-yellow); }

.header-logo {
    height: 40px;
    width: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* --- SEZIONE EROE --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-white); /* SFONDO BIANCO */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero-logo {
    width: 150px;
    animation: logoIntro 2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes logoIntro {
    0% { opacity: 0; transform: scale(0.5) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

#hero-title {
    opacity: 0;
    animation: titleFadeIn 1.5s ease 1s forwards;
}

@keyframes titleFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- LAYOUT SEZIONI --- */
.content-section {
    padding: 6rem 5%;
    width: 100%;
    position: relative; 
    overflow: hidden; 
}
.partnership-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.event-gallery-section {
    padding-top: 0;
    padding-bottom: 6rem;
}

/* Contenitore di testo base */
.text-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto; 
    position: relative; 
    z-index: 2;
}


/* --- CONTENITORI "EFFETTO VETRO" E STATICI --- */
.glass-yellow-container,
.glass-white-container,
.static-yellow-container {
    width: 100%;
    max-width: 1000px;
    padding: 4rem;
    border-radius: 24px;
    margin: 0 auto;
    text-align: center;
    position: relative; 
    z-index: 2;
}
.glass-yellow-container p,
.glass-white-container p,
.static-yellow-container p {
    text-align: center;
}

/* Vetro Giallo TRASPARENTE (per Missione) */
.glass-yellow-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* Vetro Bianco TRASPARENTE (per Contatti) */
.glass-white-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* NUOVO: Box Giallo STATICO (per Studio) */
.static-yellow-container {
    /* Gradiente statico come da immagine */
    background: linear-gradient(135deg, var(--static-yellow-light), var(--static-yellow-dark));
    color: var(--text-black);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}
.static-yellow-container .cta-button {
    background-color: var(--text-black);
    color: var(--bg-white);
}


/* --- LAYOUT SPECIFICI PER SEZIONE --- */

/* MISSIONE (Griglia dentro vetro) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left; 
}
.values-grid .value-item h3 { text-align: left; }
.values-grid .value-item p { 
    font-size: 1rem; 
    text-align: left; 
    margin: 0; 
}

/* SEZIONE STUDIO (Vinile) */
/* MODIFICA: Aggiunto sfondo bianco alla sezione */
.studio-section {
    background-color: var(--bg-white);
}

.studio-stack-wrapper {
    display: grid; 
    place-items: center; 
    position: relative;
    width: 100%;
}
.spinning-vinyl {
    position: absolute;
    width: 88%; /* MODIFICA: Rimpicciolito da 90% */
    max-width: 670px; /* MODIFICA: Rimpicciolito da 700px */
    height: auto;
    opacity: 0.8; 
    z-index: 1; /* Sta dietro */
    animation: spin 20s linear infinite;
    grid-area: 1 / 1;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.studio-stack-wrapper .static-yellow-container {
    grid-area: 1 / 1; /* Sovrapposto e centrato */
    z-index: 2; /* Sta sopra il vinile */
}

/* GALLERIA ORIZZONTALE (Desktop) */
.horizontal-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 FOTO */
    gap: 0; /* SENZA SPAZI */
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    z-index: 2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.horizontal-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Nasconde gli slider su desktop */
.studio-mobile-slider, .event-mobile-slider, .anima-mobile-slider  {
    display: none;
}


/* SEZIONE EVENTO (Nuovo colore) */
.event-bg {
    /* background-color: var(--bg-event); */
    background-color: var(--bg-gray); /* MODIFICA: Sfondo grigio come #about */
}

/* SEZIONE PARTNERSHIP (Nuovo colore) */
.partnership-bg {
    /* background-color: var(--bg-partnership); */
    background-color: var(--bg-white); /* MODIFICA: Sfondo bianco */
}

/* GALLERIA EVENTO (Slider - usata solo su mobile) */
.gallery-container {
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
    overflow: hidden;
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.gallery-slider {
    display: flex;
    gap: 1rem; /* Spazio uniforme tra le foto */
    width: max-content; /* FONDAMENTALE: impedisce alle foto di andare a capo */
    animation: scroll 25s linear infinite; /* Velocità fluida */
}
.gallery-slider img {
    height: 250px;
    width: auto;
    /* Rimuoviamo il margine laterale qui perché usiamo gap nel genitore per precisione */
    margin: 0; 
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Impedisce alle immagini di schiacciarsi */
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Si sposta esattamente di metà larghezza (dove inizia la copia delle foto) */
        transform: translateX(-50%); 
    }
}

/* --- BOTTONI (Call to Action) --- */
.cta-button {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0 auto;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: var(--primary-yellow);
    color: var(--text-black);
    transition: var(--transition-fluid);
    transform-origin: center;
}
.cta-button:hover {
    transform: scale(1.05);
}
/* Stile per bottone su sfondo scuro */
.cta-button.dark { 
    background-color: var(--bg-white);
    color: var(--bg-dark);
}

/* ### CORREZIONE QUI ### */
/* --- SEZIONE CONTATTI (Nuovo layout) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Due colonne uguali */
    gap: 2rem;
    margin-top: 3rem;
}

.contact-column {
    text-align: center;
}

/* Regole per .contact-title-wrapper RIMOSSE 
   perché l'elemento HTML non esiste più.
*/

/* Il titolo h3 è ora centrato da .contact-column */
.contact-column h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem; /* Mantiene lo spazio sotto il titolo */
}

/* NUOVO: Wrapper per (icona + link) */
.contact-link-wrapper {
    display: flex;
    justify-content: center; /* Centra il gruppo icona+link */
    align-items: center;
    gap: 0.75rem; /* Spazio tra icona e link */
}

.contact-icon {
    height: 28px; 
    width: 28px;
}

.contact-column a {
    font-size: 1.5rem;
    font-weight: 700;
    word-wrap: break-word; /* Manda a capo l'email se è troppo lunga */
    /* display: block; NON più necessario grazie a flex */
}

.contact-column a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
footer p {
    font-size: 0.9rem;
    color: #555;
    text-align: center; 
}
/* Regole duplicate rimosse */

/* Stile per le info legali aggiunte */
/* --- FOOTER LEGALE CORRETTO --- */
.footer-legal-info {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    display: flex;            /* Attiva la modalità flessibile */
    justify-content: center;  /* Centra tutto orizzontalmente */
    align-items: center;      /* Allinea tutto verticalmente al centro */
    gap: 2rem;                /* Spazio pulito tra le tre voci */
    flex-wrap: wrap;          /* Permette di andare a capo se lo schermo è piccolo */
}

.footer-legal-info p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 !important;     /* IMPORTANTE: Annulla i margini automatici del tema */
    max-width: none;          /* Rimuove il limite di larghezza del testo */
    text-align: center;
}
/* --- ANIMAZIONI ON-SCROLL (Fade In) --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN (per Mobile) --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }

    .header-logo { display: none; }
    .nav-wrapper { justify-content: center; }
    header nav { gap: 1rem; padding: 0; justify-content: center; }
    header nav a { font-size: 0.9rem; }

    .content-section { padding: 4rem 5%; }

    .glass-yellow-container,
    .glass-white-container,
    .static-yellow-container {
        padding: 2rem;
    }
    /* 1. Manteniamo l'overflow visibile */
    .studio-section {
        overflow: visible !important; 
    }

    /* 2. Riduciamo lo spazio tra le sezioni */
    .studio-stack-wrapper {
        display: block !important;
        position: relative;
        
        
    }

    /* 3. Ingrandiamo il vinile e lo posizioniamo */
    .spinning-vinyl {
        display: block !important;
        
        /* AUMENTATO: Da 200px a 280px (più largo) */
        width: 300px !important;       
        height: auto !important;
        
        position: absolute !important;
        
        /* ALZATO: Da -100px a -135px 
           (Deve salire di più perché il disco è più grande, 
           così spunta bene da dietro) */
        top: -100px !important;        
        
        /* Centratura standard */
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        
        z-index: 0 !important;
        opacity: 1 !important;
    }

    /* Assicurati che il box giallo copra la metà inferiore del disco */
    .static-yellow-container {
        position: relative;
        z-index: 2;
        /* Importante: assicurati che abbia uno sfondo, altrimenti il disco si vede in trasparenza */
        background: linear-gradient(135deg, var(--static-yellow-light), var(--static-yellow-dark));
    }
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
    .spinning-vinyl {
        display: none; /* Nasconde il vinile su mobile */
    }

    /* Stili responsive per la griglia della missione */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .values-grid .value-item p,
    .values-grid .value-item h3 {
        text-align: center; 
        margin: 0 auto 1rem auto;
    }

    /* GALLERIE: Nasconde la griglia e mostra lo slider */
    .horizontal-gallery {
        display: none;
    }


    /* 1. TRUCCO MAGICO: Nasconde tutti i <br> (spazi vuoti manuali) 
       dentro le sezioni Studio ed Evento solo su mobile. 
       Questo elimina i buchi enormi. */
       .studio-section br,
       .event-gallery-section br {
           display: none;
       }
   
       /* 2. Impostazioni Slider Mobile */
       .studio-mobile-slider,
       .event-mobile-slider,
       .anima-mobile-slider {
           display: block !important;
           
           /* Ora che i <br> sono nascosti, possiamo gestire lo spazio con precisione.
              Metti 0 se la vuoi attaccata, o 1rem per un minimo di respiro. */
           margin-top: 0rem !important; 
           
           margin-bottom: 3rem !important; /* Spazio sotto per non attaccarla al testo successivo */
           width: 100vw; /* Larghezza totale schermo */
           position: relative;
           left: 50%;
           right: 50%;
           margin-left: -50vw;
           margin-right: -50vw;
       }
   
       /* Regola specifica per avvicinare ancora di più quella dello studio se serve */
       .studio-mobile-slider {
           margin-top: 5rem !important;
           margin-bottom: 1rem !important;
       }
   

    .gallery-slider img {
        height: 200px; /* Immagini slider mobile */
    }

    /* --- SPOSTATO DENTRO LA MEDIA QUERY --- */
    /* Stili responsive per la griglia contatti */
    .contact-grid {
        grid-template-columns: 1fr; /* Impila le colonne */
        gap: 3rem; /* Aumenta lo spazio tra le colonne impilate */
    }
    
    .contact-column a {
        font-size: 1.2rem; /* Riduci un po' la mail su mobile */
    }
    
    /* Stili responsive per il footer */
    .footer-legal-info {
        flex-direction: column;
        gap: 0.5rem; /* Gap ridotto per stacking verticale */
    }
}
/* --- PARENTESI EXTRA E STILI FUORI POSTO RIMOSSI --- */
/* Stili per la transizione ANIMA DIRTY FEST */
.anima-transition-wrapper {
    width: 100%;
    text-align: center;
    background-color: transparent; /* Si adatta al colore della sezione precedente */
    padding-top: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anima-top-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px; /* Spazio tra il logo e l'inizio della colata */
    z-index: 2;
}

.paint-drip {
    display: block;
    width: 100%;
    height: 60px; /* Altezza dell'effetto colata */
    margin-bottom: -1px; /* Evita linee vuote tra l'SVG e la sezione gialla */
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .anima-top-logo {
        max-width: 180px;
    }
    .paint-drip {
        height: 40px;
    }
}
/* --- FOOTER POLICIES --- */
.footer-policies {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer-policies a {
    font-size: 0.9rem;
    color: #555;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.footer-policies a:hover {
    color: var(--text-black);
}

/* --- ANIMAZIONI --- */
@keyframes cookieSlideIn {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes cookieFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- BANNER INFORMATIVO COOKIE (Stile HOMI APS) --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 0); /* Centrato orizzontalmente */
    width: 90%;
    max-width: 600px;
    background-color: var(--bg-white);
    border: 1px solid rgba(26, 26, 26, 0.1); /* Leggero bordo scuro */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    display: none; /* Nascondiamo di default */
    justify-content: center;
    align-items: center;
    
    /* Applicazione dell'animazione di entrata */
    animation: cookieSlideIn 0.6s ease-out forwards;
}

/* Classe per mostrare il banner via JS */
.cookie-banner.show {
    display: flex;
}

/* Classe per l'animazione di uscita via JS */
.cookie-banner.fade-out {
    animation: cookieFadeOut 0.4s ease-in forwards;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-black);
}

.cookie-content p a {
    color: var(--primary-yellow);
    text-decoration: underline;
    font-weight: 700;
}

.cookie-content p a:hover {
    color: var(--text-black);
}

.cookie-buttons .cta-button {
    margin: 0;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Responsive per mobile */
@media (min-width: 768px) {
    .cookie-banner {
        width: auto;
        bottom: 3rem;
    }
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
/* =========================================================
   RÀRECHE — editoriale, più chiara e più leggera
   Higuen Serif è usato soltanto in questa sezione.
   texture.png è risolta correttamente dal CSS: ../img/texture.png
   ========================================================= */
@font-face {
    font-family: 'Higuen Serif';
    src: url('../static/font/Higuen Serif.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.rareche-section {
    --rareche-cream: #b4b18d;
    --rareche-cream-soft: #b4b18d;
    --rareche-teal: #5f8f84;
    --rareche-teal-deep: #3f746c;
    --rareche-clay: #88766e;
    --rareche-moss: #34462c;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: -1px;
    padding: 5.7rem 0 6.5rem;
    color: var(--rareche-cream);
    background:
        radial-gradient(circle at 15% 22%, rgba(187, 215, 196, .24), transparent 31%),
        radial-gradient(circle at 85% 78%, rgba(189, 154, 140, .20), transparent 34%),
        linear-gradient(112deg, var(--rareche-teal-deep) 0%, var(--rareche-teal) 51%, var(--rareche-clay) 100%);
}

/* Transizioni morbide verso ANIMA (nero) e CONNESSI (grigio chiaro). */
.rareche-section::before,
.rareche-section::after {
    content: '';
    position: absolute;
    left: -7%;
    width: 114%;
    pointer-events: none;
    z-index: 1;
}

.rareche-section::before {
    top: -59px;
    height: 108px;
    background: #111;
    border-radius: 0 0 52% 48% / 0 0 100% 100%;
    transform: rotate(-.35deg);
}

.rareche-section::after {
    bottom: -70px;
    height: 126px;
    background: var(--bg-gray);
    border-radius: 52% 48% 0 0 / 100% 100% 0 0;
    transform: rotate(.25deg);
}

.rareche-section,
.rareche-section * {
    font-family: 'Higuen Serif', Georgia, serif;
}

.rareche-texture-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../img/texture.png');
    background-repeat: repeat;
    background-size: 620px auto;
    opacity: .15;
    mix-blend-mode: soft-light;
}

.rareche-organic-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-color: var(--rareche-moss);
    background-image: url('../img/texture.png');
    background-repeat: repeat;
    background-size: 520px auto;
    background-blend-mode: soft-light;
}

.rareche-organic-shape-left {
    left: -170px;
    top: 12%;
    width: clamp(220px, 21vw, 360px);
    height: 72%;
    border-radius: 43% 57% 49% 51% / 18% 27% 73% 82%;
    transform: rotate(-2deg);
    opacity: .33;
}

.rareche-organic-shape-right {
    right: -145px;
    top: 8%;
    width: clamp(210px, 18vw, 320px);
    height: 54%;
    border-radius: 58% 42% 46% 54% / 31% 65% 35% 69%;
    opacity: .15;
}

.rareche-shell {
    width: min(1160px, 88%);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.rareche-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.15rem;
    color: var(--rareche-cream-soft);
    font-size: clamp(.86rem, .95vw, 1rem);
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rareche-heading {
    max-width: 980px;
    margin: 0 auto 2.25rem;
    text-align: center;
    position: relative;
    inset: auto;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 2;
}

.rareche-kicker,
.rareche-lead,
.rareche-story p,
.rareche-atmosphere p,
.rareche-closing,
.rareche-closing-sub {
    color: var(--rareche-cream);
}

.rareche-kicker {
    margin: 0 auto .35rem;
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
    letter-spacing: .045em;
}

.rareche-heading h2 {
    margin: 0;
    color: var(--rareche-cream);
    font-size: clamp(4.8rem, 8vw, 7.6rem);
    font-weight: 400;
    line-height: .87;
    letter-spacing: .075em;
}

.rareche-lead {
    max-width: 680px;
    margin: 1.05rem auto 0;
    font-size: clamp(1.15rem, 1.5vw, 1.42rem);
    line-height: 1.42;
    opacity: .95;
}

.rareche-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .75fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
    padding: 2.05rem 0 1.9rem;
    border-top: 1px solid rgba(238, 229, 201, .32);
    border-bottom: 1px solid rgba(238, 229, 201, .22);
}

.rareche-story,
.rareche-atmosphere {
    min-width: 0;
}

.rareche-story-label {
    margin: 0 0 .65rem;
    color: rgba(238, 229, 201, .68) !important;
    font-size: .86rem !important;
    line-height: 1.2 !important;
    letter-spacing: .16em;
    text-align: left !important;
    text-transform: uppercase;
}

.rareche-story h3 {
    max-width: 760px;
    margin: 0 0 1rem;
    color: var(--rareche-cream);
    font-size: clamp(1.8rem, 2.5vw, 2.65rem);
    font-weight: 400;
    line-height: 1.06;
    text-align: left;
}

.rareche-story p,
.rareche-atmosphere p {
    max-width: none;
    margin: 0 0 .85rem;
    font-size: clamp(1.02rem, 1.15vw, 1.15rem);
    line-height: 1.55;
    text-align: left;
}

.rareche-atmosphere {
    padding-left: clamp(1.2rem, 2.2vw, 2.2rem);
    border-left: 1px solid rgba(238, 229, 201, .25);
}

.rareche-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.rareche-keywords span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .4rem .78rem .34rem;
    border: 1px solid rgba(238, 229, 201, .34);
    border-radius: 999px;
    background: rgba(238, 229, 201, .055);
    color: var(--rareche-cream);
    font-size: .92rem;
    letter-spacing: .05em;
}

/* Foto rettangolari e leggere: un nastro continuo, senza maschere sagomate. */
.rareche-photo-viewport {
    width: 100%;
    overflow: hidden;
    margin: 2.45rem 0 1.85rem;
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.rareche-photo-viewport::before,
.rareche-photo-viewport::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(238, 229, 201, .19);
    z-index: 3;
    pointer-events: none;
}

.rareche-photo-viewport::before { top: 0; }
.rareche-photo-viewport::after { bottom: 0; }

.rareche-photo-track {
    display: flex;
    width: max-content;
    padding: .75rem 0;
    will-change: transform;
    animation: rareche-scroll 52s linear infinite;
}

.rareche-photo-group {
    display: flex;
    flex: none;
    gap: .65rem;
    padding-right: .65rem;
}

.rareche-photo-group img {
    display: block;
    flex: none;
    width: clamp(265px, 24vw, 370px);
    height: clamp(185px, 17vw, 245px);
    object-fit: cover;
    border-radius: 2px;
    box-shadow: none;
    filter: saturate(.93) contrast(.98);
}

.rareche-photo-viewport:hover .rareche-photo-track {
    animation-play-state: paused;
}

@keyframes rareche-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--rareche-loop-distance, -2600px), 0, 0); }
}

.rareche-footer-copy {
    text-align: center;
    padding-bottom: .15rem;
}

.rareche-closing {
    margin: 0 auto .16rem;
    max-width: 900px;
    font-size: clamp(1.75rem, 2.7vw, 2.55rem);
    line-height: 1.12;
}

.rareche-closing-sub {
    margin: 0 auto;
    max-width: 760px;
    color: rgba(238, 229, 201, .82);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .rareche-section {
        padding: 5.15rem 0 6rem;
    }

    .rareche-story-grid {
        grid-template-columns: 1fr;
        gap: 1.55rem;
    }

    .rareche-atmosphere {
        padding: 1.45rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(238, 229, 201, .22);
    }
}

@media (max-width: 768px) {
    .rareche-section {
        padding: 4.8rem 0 5.6rem;
    }

    .rareche-section::before {
        top: -48px;
        height: 84px;
    }

    .rareche-section::after {
        bottom: -55px;
        height: 100px;
    }

    .rareche-shell {
        width: min(90%, 680px);
    }

    .rareche-organic-shape-left {
        left: -175px;
        top: 8%;
        width: 250px;
        opacity: .24;
    }

    .rareche-organic-shape-right {
        display: none;
    }

    .rareche-meta {
        flex-direction: column;
        gap: .22rem;
        margin-bottom: 1rem;
        text-align: center;
        font-size: .78rem;
    }

    .rareche-heading {
        margin-bottom: 1.75rem;
    }

    .rareche-heading h2 {
        font-size: clamp(4rem, 17vw, 5.65rem);
        letter-spacing: .05em;
    }

    .rareche-lead {
        width: 94%;
        font-size: 1.08rem;
    }

    .rareche-story-grid {
        padding: 1.55rem 0 1.45rem;
    }

    .rareche-story h3 {
        font-size: 1.8rem;
    }

    .rareche-story p,
    .rareche-atmosphere p {
        font-size: 1.03rem;
        line-height: 1.5;
    }

    .rareche-keywords {
        gap: .45rem;
    }

    .rareche-keywords span {
        min-height: 30px;
        font-size: .84rem;
    }

    .rareche-photo-viewport {
        margin: 1.8rem 0 1.55rem;
    }

    .rareche-photo-track {
        animation-duration: 44s;
    }

    .rareche-photo-group img {
        width: 245px;
        height: 175px;
    }

    .rareche-closing {
        font-size: 1.75rem;
    }

    .rareche-closing-sub {
        width: 92%;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rareche-photo-track {
        animation: none;
    }
}


/* =========================================================
   ANIMA DIRTY FEST — home: sezione più ampia, leggibile e bilanciata
   ========================================================= */
.anima-home-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(246, 220, 0, .08), transparent 35%),
        #111;
    color: #fff;
    margin-top: -1px;
    padding: 4rem 5% 5.4rem;
}

.anima-home-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.anima-home-hero {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.anima-home-logo {
    display: block;
    width: min(310px, 64vw);
    height: auto;
    margin: 0 auto 1.8rem;
    filter: drop-shadow(0 0 14px rgba(246, 220, 0, .32));
}

.anima-home-overline {
    margin: 0 auto .65rem;
    color: #f6dc00 !important;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.anima-home-section h2 {
    margin: 0 auto 1rem;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.9rem);
    line-height: .98;
}

.anima-home-intro {
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255,255,255,.9) !important;
    font-size: clamp(1.08rem, 1.45vw, 1.28rem);
    line-height: 1.6;
}

.anima-edition-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
    margin: 1.6rem auto 0;
}

.anima-edition-pills span {
    padding: .55rem .95rem .46rem;
    border: 1px solid rgba(246,220,0,.38);
    border-radius: 999px;
    color: #f6dc00;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.anima-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3.25rem;
}

.anima-home-card {
    min-height: 270px;
    padding: 2rem 1.8rem 1.9rem;
    border: 1px solid rgba(246,220,0,.22);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.anima-card-index {
    margin: 0 0 1rem;
    color: #f6dc00 !important;
    font-size: .82rem !important;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: left !important;
}

.anima-home-card h3 {
    margin: 0 0 .95rem;
    color: #fff;
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    line-height: 1.08;
    text-align: left;
}

.anima-home-card p:not(.anima-card-index) {
    margin: 0;
    max-width: none;
    color: rgba(255,255,255,.82) !important;
    font-size: 1.02rem;
    line-height: 1.55;
    text-align: left;
}

.anima-home-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 2.5rem;
}

.anima-home-cta {
    display: inline-flex;
    margin: 0;
    border: 0;
    background: #f6dc00;
    color: #111;
}

.anima-home-instagram {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.38);
    padding-bottom: .2rem;
    transition: color .25s ease, border-color .25s ease;
}

.anima-home-instagram:hover {
    color: #f6dc00;
    border-color: #f6dc00;
}

.anima-home-gallery {
    max-width: 1320px;
    margin-top: 4rem;
    margin-bottom: 0;
    border-radius: 16px;
}

.anima-home-gallery img {
    height: 330px;
}

@media (max-width: 950px) {
    .anima-home-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .anima-home-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .anima-home-section {
        padding: 3.4rem 5% 4.4rem;
    }

    .anima-home-logo {
        width: min(235px, 70vw);
        margin-bottom: 1.35rem;
    }

    .anima-home-section h2 {
        font-size: clamp(2.35rem, 10vw, 3.25rem);
    }

    .anima-home-intro {
        font-size: 1.05rem;
        line-height: 1.52;
    }

    .anima-home-grid {
        margin-top: 2.3rem;
        gap: .85rem;
    }

    .anima-home-card {
        padding: 1.6rem 1.4rem;
        border-radius: 18px;
    }

    .anima-home-actions {
        margin-top: 2rem;
        flex-direction: column;
    }
}

/* RÀRECHE — tutti i testi usano esattamente #b4b18d. */
.rareche-section,
.rareche-section h1,
.rareche-section h2,
.rareche-section h3,
.rareche-section h4,
.rareche-section h5,
.rareche-section h6,
.rareche-section p,
.rareche-section span,
.rareche-section strong,
.rareche-section em,
.rareche-section a {
    color: #b4b18d !important;
}

/* Se una foto manca, conserva comunque lo spazio: il loop resta perfettamente simmetrico. */
.rareche-photo-group img.is-missing {
    visibility: hidden;
}
