
        /* =========================================
   STILE BASATO SUL PDF "SITO.PDF"
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: visible !important;
}

body {
    background-color: #1c1425; 
    color: #ffffff;
    overflow-x: hidden; 
    width: 100%;
}

/* =========================================
   1. IL MENU IN ALTO (Header)
   ========================================= */
/* 1. STATO INIZIALE (In cima alla pagina: totalmente trasparente) */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 1.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
    gap: 100px;
    
    /* La transizione va inserita qui dentro, così vale sia in entrata che in uscita */
    transition: all 0.4s ease-in-out;
    animation: fadeDown 1s ease-out forwards;
    
    /* Nessun effetto vetro o colore */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

/* 2. STATO SCROLL (Quando scendi: appare il vetro, il taglio netto e la rifrazione) */
/* STATO SCROLL (La navbar scura, distorcente e tagliente della SECONDA FOTO) */
.main-header.scrolled {
    opacity: 1;
    visibility: visible;
    
    /* 1. Sfondo scuro violaceo per far risaltare il vetro (come in foto 2) */
    background: rgba(28, 20, 37, 0.4) !important; 
    
    /* 2. LA MAGIA: Il tuo ordine originale dei filtri che deforma le lettere! */
    backdrop-filter: brightness(0.8) blur(5px) url(#glass-refraction) !important;
    -webkit-backdrop-filter: brightness(0.8) blur(5px) url(#glass-refraction) !important;
    
    /* 3. Il taglio orizzontale netto e luminoso in basso */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    
    /* 4. Ombra per staccarlo dal resto del sito */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

.logo {
    margin-left: 20px; 
}

.logo-link {
    font-family: 'Playfair Display', serif !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    color: #ffd900 !important; 
    text-decoration: none !important; 
    display: flex;
    align-items: center;
    gap: 10px;
}

.mia-immagine-logo {
    width: 50px; 
    height: auto; 
    filter: brightness(0) saturate(80%) invert(84%) sepia(54%) saturate(940%) hue-rotate(351deg) brightness(105%) contrast(105%);
}

/* I link centrali */
nav {
    display: flex;
    gap: 60px;
}

nav a {
    position: relative; 
    text-decoration: none;
    color: #ffffff; 
    font-size: 16px; /* Scegli tu la dimensione adatta, 40px era enorme! */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 5px; 
    transition: color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    color: #ffd700;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; 
    height: 2px; 
    background-color: #ffd700; 
    transition: width 0.4s ease-out; 
}

nav a:hover::after {
    width: 100%; 
}

/* Pulsante COMMISSION OPEN */
.btn-commission {
    border: 2px solid #ffee00;
    color: #fbff00;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-right: 50px;
}

.btn-commission:hover {
    background-color: #fbff00;
    color: #000000;
}

/* =========================================
   2. REGOLE GENERALI PER LE SEZIONI
   ========================================= */
section {
    min-height: 100vh; 
    padding: 120px 10%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Helvetica Neue', Arial, sans-serif; /* Mantiene la coerenza del resto del sito */
    font-size: 3.5rem; 
    text-transform: uppercase;
    margin-bottom: 50px;
    line-height: 1;
}

/* Suddivisione dei colori per "IL MIO LAVORO" come in foto */
/* Nota: dovrai spezzare il testo nell'HTML */
.section-title .white-text {
    color: #ffffff;
    font-weight: 300; /* Leggero per "IL MIO" */
    display: block;
}

.section-title .yellow-text {
    color: #ffd700; /* Il giallo del logo */
    font-weight: 700; /* Grassetto per "LAVORO" */
    display: block;
}

/* =========================================
   SEZIONE HERO - STILI PRINCIPALI
   ========================================= */
   
.hero-container {
    position: relative;
    align-items: center;
    background-color: #0b0c10; 
    overflow: hidden;
    text-align: center;
    z-index: 1;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
}

.purple-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 23, 235, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    top: 10%;
    left: 20%;
}

.yellow-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -10%;
    right: 10%;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 60px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    color: #facc15; 
    font-size: 0.9rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 10; 
    transition: top 0.1s linear;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
}

/* --- IL TUO NOME E COGNOME: GOTICO, GIGANTE, LUMINOSO --- */
/* SALVATORE */
.hero-title .nome, .hero-title .nome .letter {
    font-family: 'Pirata One', serif !important;
    font-size: 14rem !important;
    font-weight: normal !important; /* Importante per non farlo "cicciotto" */
    letter-spacing: 4px; 
    
    background: linear-gradient(to right, #c7d2fe, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    text-shadow: 
        0 0 10px rgba(199, 210, 254, 0.5),  /* Nucleo luminoso (azzurro chiaro) */
        0 0 20px rgba(199, 210, 254, 0.4),  /* Bagliore intermedio */
        0 0 40px rgba(199, 210, 254, 0.3),  /* Aura diffusa */
        0 0 80px rgba(255, 255, 255, 0.2);  /* Riflesso bianco etereo */
    z-index: 20; 
}

/* ANNICELLI */
.hero-title .cognome, .hero-title .cognome .letter {
    font-family: 'Pirata One', serif !important;
    font-size: 14rem !important;
    font-weight: normal !important; /* Importante per non farlo "cicciotto" */
    letter-spacing: 4px; 
    
    color: #fde047;
    text-shadow: 0px 0px 25px rgba(234, 179, 8, 0.7);
    z-index: 30; 
    position: relative; 
}

/* Base per l'animazione e per il glow che non si taglia */
.nome, .cognome {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    overflow: visible !important; /* Questo impedisce al glow di tagliarsi */
    white-space: nowrap;
    position: relative;
    opacity: 0; 
    visibility: hidden;
    animation: slideInText 1.0s ease-out forwards;
    transition: top 0.1s linear;
}

.nome { animation-delay: 0.4s; }
.cognome { animation-delay: 0.4s; }
.letter { display: inline-block !important; }

/* Ritardi per SALVATORE */
.nome .letter:nth-child(1) { animation-delay: 1.0s; }
.nome .letter:nth-child(2) { animation-delay: 1.1s; }
.nome .letter:nth-child(3) { animation-delay: 1.2s; }
.nome .letter:nth-child(4) { animation-delay: 1.3s; }
.nome .letter:nth-child(5) { animation-delay: 1.4s; }
.nome .letter:nth-child(6) { animation-delay: 1.5s; }
.nome .letter:nth-child(7) { animation-delay: 1.6s; }
.nome .letter:nth-child(8) { animation-delay: 1.7s; }
.nome .letter:nth-child(9) { animation-delay: 1.8s; }

/* Ritardi per ANNICELLI */
.cognome .letter:nth-child(1) { animation-delay: 1.0s; }
.cognome .letter:nth-child(2) { animation-delay: 1.1s; }
.cognome .letter:nth-child(3) { animation-delay: 1.2s; }
.cognome .letter:nth-child(4) { animation-delay: 1.3s; }
.cognome .letter:nth-child(5) { animation-delay: 1.4s; }
.cognome .letter:nth-child(6) { animation-delay: 1.5s; }
.cognome .letter:nth-child(7) { animation-delay: 1.6s; }
.cognome .letter:nth-child(8) { animation-delay: 1.7s; }
.cognome .letter:nth-child(9) { animation-delay: 1.8s; }

.hero-social, .hero-description {
    z-index: 5;
    position: relative;
    transition: top 0.1s linear;
}

.hero-social {
    color: #a8b2d1;
    font-size: 0.9rem;
    margin-top: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-description {
    color: #ccd6f6;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 14px 30px;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(90deg, #facc15, #eab308);
    color: #111; 
    border: none;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ec4899; 
    border: 2px solid #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3), inset 0 0 10px rgba(236, 72, 153, 0.2);
}

.btn-secondary:hover {
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), inset 0 0 15px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    color: #facc15;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: #facc15;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.8);
}

/* =========================================
   STRISCIA SCORREVOLE (Ticker)
   ========================================= */
.ticker-container {
    width: 100%;
    overflow: hidden; 
    background-color: #1c1425; 
    padding: 8px 0;
    box-sizing: border-box;
    border-top: 1px solid #ffcc00;    
    border-bottom: 1px solid #ffcc00;
    margin: 1px 0;
}

.ticker-wrap {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite; 
}

.ticker-item {
    padding: 0 3rem;
    font-family: 'Playfair Display', serif !important;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    white-space: nowrap;
}

.ticker-item.white { color: #ffffff; }
.ticker-item.yellow { color: #ffcc00; }
.ticker-item.pearl { color: #ffffff; } /* Aggiunta per sicurezza dal tuo HTML */

/* =========================================
   SEZIONE GRIGLIA PORTFOLIO
   ========================================= */
/* --- SEZIONE PORTFOLIO: ESTETICA MAGAZINE --- */
.portfolio-header {
    text-align: left; /* Allinea tutto a sinistra */
    margin-bottom: 60px;
    padding-left: 20px; /* Identico al margine del logo */
    max-width: 1200px; /* Mantiene il titolo allineato alla griglia sotto */
    margin-left: auto;
    margin-right: auto;
}

.portfolio-label {
    display: block;
    color: #ff2a74;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 0.9;
    text-transform: uppercase;
}

.white-text {
    color: #ffffff;
    font-weight: 300;
    display: block;
}

.yellow-text {
    color: #ffd700;
    font-weight: 700;
    display: block;
}
.grid-section {
    background-color: #0b0713; 
    padding: 100px 5%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* FORZA LE IMMAGINI A STARE DENTRO I BOX */
.portfolio-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* L'effetto ingrandimento al passaggio del mouse */
.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Overlay Viola (il gradiente che volevi) */
.overlay {
   pointer-events: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(138, 43, 226, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

a.portfolio-item {
    display: block !important;
    text-decoration: none;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mantiene tutto in basso */
    align-items: flex-start;  /* Allinea tutto a sinistra */
    width: 100%;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* Il quadratone grande a sinistra */
.item-big {
    grid-column: span 2;
    grid-row: span 2;
    height: 720px;
}
/* Overlay Viola (Sfumatura) */
.overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(128, 0, 128, 0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.portfolio-item:hover .overlay { opacity: 1; }

.badge {
    background-color: #ff007f;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 10px;
}

.overlay p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.badge {
    background-color: #ff007f;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    width: fit-content;
    
    /* Aggiungi questo per distanziare il badge dal testo sottostante */
    margin-bottom: 15px; 
    display: block; /* Fondamentale per far funzionare il margin-bottom */
}

.description {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    /* Eventuale margine superiore se preferisci bilanciare diversamente */
    margin-top: 5px; 
}

/* =========================================
   SEZIONE CONTATTI
   ========================================= */
.contact-section { 
    /* Riduciamo lo spazio sopra e sotto. Prima era 100px */
    padding: 40px 5% 30px 5%; 
    background-color: #0b0713; 
    color: #fff; 
    
    /* Questo calcola l'altezza dello schermo meno l'intestazione e il footer, 
       centrando il contenuto senza farlo sbordare */
    min-height: calc(100vh - 180px); 
    display: flex;
    align-items: center; /* Centra il blocco verticalmente */
}

.contact-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; /* Ridotto da 80px a 50px per guadagnare spazio verticale */
    max-width: 1100px; 
    margin: 0 auto; 
    width: 100%; /* Essenziale affinché mantenga la larghezza corretta */
}
.contact-subtitle { color: #00e5ff; font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; }
.contact-title { font-size: 3.5rem; font-family: 'Playfair Display', serif; margin: 20px 0; line-height: 1.1; }
.highlight-text { color: #ffd700; }

/* =========================================
   BOTTONI SOCIAL (Stile da Screenshot)
   ========================================= */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spazio tra i bottoni */
}

.social-btn { 
    display: flex; 
    align-items: center; 
    padding: 15px 20px; 
    border-radius: 12px; 
    text-decoration: none; 
    color: #fff; 
    transition: all 0.3s ease; 
    border: 1px solid transparent;
}

.contact-description {
    margin-bottom: 30px; /* Abbassato da 50 a 30 per far salire il layout */
    line-height: 1.5;
    color: #ccc;
}
/* Stile per centrare perfettamente i loghi SVG nei quadratini */
.social-icon {
    display: flex; 
    justify-content: center; 
    align-items: center;
    width: 42px; 
    height: 42px; 
    border-radius: 10px; 
    margin-right: 15px;
}

.social-icon svg {
    /* Il fill currentColor fa ereditare il colore bianco definito per l'icona */
    fill: currentColor; 
}

.social-text {
    display: flex; 
    flex-direction: column;
}

.social-text strong { 
    font-size: 1rem; 
    color: #fff; 
    letter-spacing: 0.5px;
}

.social-text span { 
    font-size: 0.75rem; 
    margin-top: 2px;
}

.arrow-icon { 
    margin-left: auto; /* Spinge la freccia a destra */
    font-size: 1.2rem; 
}

/* Stile Specifico Instagram (Magenta) */
.instagram-btn {
    background: rgba(193, 53, 132, 0.05); /* Sfondo scurissimo magenta */
    border-color: #5a1936; 
}
.instagram-btn .social-icon { 
    background: #8a1c50; 
    color: #fff; 
}
.instagram-btn .arrow-icon, 
.instagram-btn .social-text span { 
    color: #d64787; 
}
.instagram-btn:hover { 
    border-color: #d64787; 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(193, 53, 132, 0.15); 
}

/* Stile Specifico Linktree (Azzurro/Ottanio) */
.linktree-btn {
    background: rgba(0, 180, 182, 0.05); /* Sfondo scurissimo ottanio */
    border-color: #124d4e;
}
.linktree-btn .social-icon { 
    background: #156a64; 
    color: #fff; 
}
.linktree-btn .arrow-icon, 
.linktree-btn .social-text span { 
    color: #35c4c6; 
}
.linktree-btn:hover { 
    border-color: #35c4c6; 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(0, 180, 182, 0.15); 
}

/* Form Style */
.contact-form-wrapper { background: #151020; padding: 40px; border-radius: 16px; border: 1px solid #2a2040; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #aaa; font-size: 0.7rem; margin-bottom: 8px; letter-spacing: 1px; }
.contact-form input, .contact-form select, .contact-form textarea { 
    width: 100%; padding: 12px; background: #0b0713; border: 1px solid #2a2040; color: #fff; border-radius: 8px;
}
.submit-btn { 
    width: 100%; padding: 15px; background: #ffd700; color: #000; 
    border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.submit-btn:hover { background: #e5c100; }

/* Responsive */
@media (max-width: 900px) {
    .contact-container { grid-template-columns: 1fr; }
}



/* =========================================
   ANIMAZIONI
   ========================================= */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInText {
    0% { opacity: 0; transform: translateX(50px); visibility: hidden;}
    100% { opacity: 1; transform: translateX(0); visibility: visible; }
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.hero-anim {
    opacity: 0; 
    animation: fadeUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* =========================================
   WATERMARKS E FILIGRANE
   ========================================= */
.watermark {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

.watermark-1 { top: 10%; left: 5%; width: 1000px; height: 1000px; background-image: url('Goth\ Anime\ Girl\ Obemon.png'); }
.watermark-2 { bottom: -200px; right: -300px; width: 1200px; height: 1200px; background-image: url('Salvatore\ Annicelli.png'); opacity: 0.10 !important; }
.watermark-3 { bottom: -400px; right: 100px; width: 1200px; height: 1200px; background-image: url('Illustration.png'); }
.watermark-4 { bottom: -400px; left: 10px; width: 1200px; height: 1200px; background-image: url('Illustration2.png'); }

/* =========================================
   SCROLLBAR CUSTOM
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0620; }
::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #e6c200; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }
  .contact-form-wrapper {
    padding: 25px;
  }
  .contact-title {
    font-size: 34px;
  }
}

.cinematic-light-pass {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 5; 
    pointer-events: none;
    
    /* 1. Usiamo la tua palette: un azzurrino elettrico che sfuma nel bianco puro */
    /* La trasparenza è data dai valori di alpha (0.4, 0.6) */
    background: linear-gradient(
        60deg, 
        transparent 40%, 
        rgba(199, 210, 254, 0.4) 50%,  /* Il tuo azzurrino del nome */
        rgba(255, 255, 255, 0.6) 55%,  /* Bianco luminoso */
        transparent 60%
    );
    
    /* 2. Blur: serve a togliere l'effetto "strisciata grigia" e farlo sembrare luce */
    filter: blur(25px);
    
    /* 3. Metodo di fusione "overlay" o "screen": fa interagire la luce con il colore sottostante */
    mix-blend-mode: screen; 
    
    /* Animazione fluida */
    transform: rotate(20deg) translateX(-100%);
    animation: cinematicSweep 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cinematicSweep {
    0% { 
        transform: rotate(20deg) translateX(-100%); 
        opacity: 0;
    }
    10% { opacity: 1; } /* Entrata morbida */
    90% { opacity: 1; } 
    100% { 
        transform: rotate(20deg) translateX(100%); 
        opacity: 0; /* Uscita morbida */
    }
}

.nome {
    display: inline-block;
    /* Glow azzurrino ammorbidito */
    filter: drop-shadow(0 0 3px rgba(0, 162, 255, 0.5)); 
    color: #ffffff;
}

.cognome {
    display: inline-block;
    /* Glow giallo ammorbidito */
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)); 
    color: #ffd700;
}

.letter {
    display: inline-block;
    position: relative;
    /* Animazione che scatta ogni 5 secondi */
    animation: glitch-glow 3s infinite;
}

@keyframes glitch-glow {
    /* Stato normale all'inizio */
    0%, 15% { 
        transform: translate(0, 0); 
        color: #ffd700; 
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
    /* Il glitch si attiva quasi subito (tra il 16% e il 19% del tempo) */
    16%, 19% { 
        transform: translate(-2px, 1px); 
        color: #ff00ff; 
        filter: drop-shadow(2px 0 2px #00ffff);
    }
    /* Ritorna normale e aspetta fino alla fine dei 5 secondi */
    20%, 100% { 
        transform: translate(0, 0); 
        color: #ffd700;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }
}

.divider {
    width: 150px; /* Regola la lunghezza come preferisci */
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff00ff, transparent);
    animation: move-line 3s infinite linear;
    
    /* Avvicinamento alla scritta */
    margin: -10px auto 15px auto; 
}


@keyframes move-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

body {
    overflow-x: hidden; /* Evita che il glitch crei barre di scorrimento laterali */
    background-color: #0f0f0f; /* Un nero molto profondo per far risaltare il glitch */
}

.instagram-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border: 2px solid #FFD700; /* Colore giallo */
    color: #FFD700;
    text-decoration: none;
    font-family: 'Cinzel Decorative', cursive; /* O il font che preferisci */
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
}

.instagram-link-btn:hover {
    background: #FFD700;
    color: #000;
}

.ig-icon {
    width: 24px;
    height: 24px;
    filter: invert(80%) sepia(85%) saturate(545%) hue-rotate(1deg) brightness(105%) contrast(101%);
    transition: filter 0.3s ease;
}

.instagram-link-btn:hover .ig-icon {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(0%) contrast(100%);
}

/* Stato iniziale: elemento invisibile e spostato in basso di 50px */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out; /* Regola 0.8s per renderlo più o meno veloce */
}

/* Stato finale: elemento visibile e nella sua posizione originale */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* SEZIONE U'ANM - Layout base */
.uanm-section {
    padding: 100px 5%;
    background-color: #0b0713;
    color: #fff;
}

.uanm-container {
    max-width: 1100px; /* Larghezza che replica il tuo design */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* HEADER U'ANM */
.uanm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.uanm-title-area {
    display: flex;
    flex-direction: column;
}

.uanm-category {
    color: #ffd700; /* Giallo */
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    font-weight: 700;
}

.uanm-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    margin: 10px 0 0 0;
    line-height: 1;
}

.pink-exclamation {
    color: #ff007f; /* Rosa accesso */
}

.uanm-subtitle-area {
    max-width: 420px;
    color: #a0a0a0; /* Grigio chiaro */
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
}

.uanm-subtitle-area strong {
    color: #fff;
}

/* GRIGLIA CONTENUTO */
.uanm-content-row {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* TESTO E BLOCCHI */
.uanm-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.cyan-title {
    color: #00e5ff; /* Ciano */
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.text-block p {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.text-block strong {
    color: #fff;
}

/* STATISTICHE (Numeri) */
.uanm-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number, .stat-text {
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    color: #666; /* Grigio scuro */
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* IMMAGINI */
.uanm-image-column {
    flex: 1.1; /* Prende poco più spazio del testo per bilanciare visivamente */
    display: flex;
    gap: 20px;
}

.uanm-img {
width: 50%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Questa riga dice al browser di animare i cambiamenti in 0.3 secondi in modo fluido */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.uanm-img:hover {
    transform: scale(1.03); /* Ingrandisce l'immagine del 3% (effetto elegante e non eccessivo) */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); /* Aumenta leggermente l'ombra per dare un senso di "sollevamento" */
}

/* RESPONSIVE (Per cellulari) */
@media (max-width: 900px) {
    /* --- HEADER MOBILE: Logo a sinistra, Hamburger a destra --- */
    .main-header {
        justify-content: space-between !important; 
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    
    .main-header .logo {
        margin-left: 0 !important; /* Rimuove il margine che aveva sul PC */
    }

    .uanm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .uanm-content-row {
        flex-direction: column;
    }
    .uanm-image-column {
        width: 100%;
    }
}

/* SEZIONE COMICON/OFF - Layout e Sfondo Viola */
.comicon-section {
    padding: 100px 5%;
    background-color: #0b0713; /* Stesso sfondo viola scuro di U'ANM! */
    color: #fff;
}

.comicon-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* HEADER COMICON/OFF */
.comicon-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.comicon-title-area {
    display: flex;
    flex-direction: column;
}

.comicon-category {
    color: #00e5ff; /* Ciano per l'etichetta dell'evento */
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    font-weight: 700;
}

.comicon-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin: 10px 0 0 0;
    line-height: 1.1;
    font-weight: 900;
}

.yellow-year {
    color: #ffd700; /* Giallo per l'anno */
    display: block;
    font-family: 'Playfair Display', serif;
}

.comicon-subtitle-area {
    max-width: 450px;
    color: #a0a0a0;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.5;
}

.comicon-subtitle-area p:first-child {
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.subtitle-desc {
    margin: 0;
}

/* GRIGLIA PRINCIPALE */
.comicon-main-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* CONTENITORE IMMAGINE PRINCIPALE CON COPERTURA DELLO ZOOM */
.comicon-featured-box {
    flex: 1.2;
    border-radius: 12px;
    overflow: hidden; /* Taglia l'immagine che esce dai bordi durante l'hover */
    aspect-ratio: 4 / 3; /* Mantiene le proporzioni corrette della foto */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* COLONNA TESTI A DESTRA */
.comicon-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pink-title {
    color: #ff007f; /* Rosa acceso */
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
}

.comicon-text-block p {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.comicon-text-block strong {
    color: #fff;
}

/* BOTTONE ARTICOLO */
.btn-comicon-off {
    align-self: flex-start;
    padding: 12px 24px;
    border: 1px solid #00e5ff;
    color: #00e5ff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-comicon-off:hover {
    background-color: #00e5ff;
    color: #0b0713;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* GALLERIA DELLE 3 FOTO INFERIORI */
.comicon-gallery-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.gallery-item-box {
    flex: 1;
    border-radius: 12px;
    overflow: hidden; /* Taglia lo zoom all'interno */
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* STRUTTURA DELLE IMMAGINI PER LO ZOOM INTERNO */
.zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transizione ultra fluida */
}

/* EFFETTO HOVER: L'immagine si ingrandisce dentro la box senza alterare il layout esterno */
.comicon-featured-box:hover .zoom-img,
.gallery-item-box:hover .zoom-img {
    transform: scale(1.06); /* Ingrandimento interno del 6% */
}

/* DIDASCALIA CREDITI IN FONDO */
.comicon-caption {
    font-size: 0.75rem;
    color: #555;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

/* RESPONSIVE PER SMARTPHONE */
@media (max-width: 900px) {
    .comicon-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .comicon-subtitle-area {
        text-align: center !important;
    }

    .comicon-main-row, 
    .comicon-gallery-row {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important; /* Impedisce che sbordi fuori dallo schermo */
        gap: 30px !important;
    }
.comicon-featured-box, 
    .gallery-item-box {
        width: 100% !important; /* Occupa tutto lo spazio del telefono, non viene tagliata */
        max-width: 100% !important;
        height: auto !important;
    }
   
}

/* SEZIONE CHI SONO - Layout e Sfondo */
.about-section {
    padding: 120px 5%;
    background-color: #0b0713; /* Stesso sfondo viola scuro fisso */
    color: #fff;
    overflow: hidden; /* Previene sbavature durante le animazioni */
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

/* =========================================
   COLONNA SINISTRA: GRIGLIA IMMAGINI (FIXED)
========================================= */
.about-images-column {
    flex: 1;
    display: grid;
    /* Ripristiniamo la griglia stabile e corretta */
    grid-template-columns: 1.2fr 1fr; 
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    position: relative;
}

/* --- FOTO TUA (SENZA SFONDO) --- */
.img-main {
    grid-column: 1;
    grid-row: 1 / span 2; /* Occupa tutta l'altezza a sinistra */
    background-color: transparent !important; /* Niente box grigio */
    box-shadow: none !important; /* Niente ombra a quadrato */
    border-radius: 0 !important;
    overflow: visible !important; /* Permette all'ingrandimento di uscire dai bordi */
    z-index: 2; /* Ti mette in primo piano */
}

.img-main .zoom-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostra tutto senza tagliare */
    object-position: bottom center; /* Ti tiene ancorato al pavimento */
    
    /* IL SUPERPOTERE È QUI: Ingrandisce la foto. Modifica 1.8 a piacimento (es. 1.5, 2.0...) */
    transform: scale(3.5); 
    
    transform-origin: bottom center; /* Fa in modo che l'ingrandimento vada verso l'alto */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}


/* --- LE DUE IMMAGINI A DESTRA (CON BOX E SFONDO) --- */
.img-top-right, .img-bottom-right {
    border-radius: 12px;
    overflow: hidden; /* Taglia l'immagine dentro il box */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.img-top-right {
    grid-column: 2;
    grid-row: 1;
}

.img-bottom-right {
    grid-column: 2;
    grid-row: 2;
}

.img-top-right .zoom-img,
.img-bottom-right .zoom-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-top-right:hover .zoom-img,
.img-bottom-right:hover .zoom-img {
    transform: scale(1.08); /* Ingrandimento interno */
}

/* Badge Giallo (Obemon.las) */
.obemon-badge {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background-color: #ffd700;
    color: #0b0713;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Animazione Floating per il badge */
.floating {
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* =========================================
   COLONNA DESTRA: TESTI E BOTTONI
========================================= */
.about-text-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-category {
    color: #ff00ff; /* Convertito in Magenta */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin: 0;
}

/* Rinominata per coerenza, cambiala anche nell'HTML se la usi */
.magenta-text { 
    color: #ff00ff; /* Convertito in Magenta */
}

.about-bio {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.about-bio p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Bottoni Social */
.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* --- STILE COMPLETO DEL BOTTONE MAGENTA --- */

/* 1. La box attorno, il testo e la struttura di base */
.instagram-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #ff00ff; /* Bordo Magenta */
    color: #ff00ff; /* Testo Magenta */
    transition: all 0.3s ease;
}

/* 2. Il cambiamento quando passi sopra col mouse (Hover) */
.instagram-link-btn:hover {
    background-color: #ff00ff; /* Sfondo diventa Magenta */
    color: #fff; /* Testo diventa Bianco */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4); /* Ombra luminosa Magenta */
}

/* 3. Il Logo (Icona) Magenta a riposo */
.ig-icon {
    width: 24px;
    height: 24px;
    /* Filtro per rendere il logo nero originale in Magenta */
    filter: invert(11%) sepia(100%) saturate(6011%) hue-rotate(297deg) brightness(114%) contrast(130%);
    transition: filter 0.3s ease;
}

/* 4. Il Logo diventa Bianco quando passi sopra col mouse */
.instagram-link-btn:hover .ig-icon {
    /* Filtro per rendere l'icona bianca e farla risaltare sullo sfondo magenta */
    filter: brightness(0) invert(1);
}
/* Stile base del bottone TIKTOK */
.tiktok-link-btn {
    border: 1px solid #0099ff;
    color: #0099ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px; /* Ridotto per bilanciare l'altezza del bottone */
    text-decoration: none;
    
    /* Ricordati di inserire il nome del font che usi per Instagram */
    font-family: 'NomeDelTuoFont', serif; 
    font-size: 18px; /* Ridotto da 28px per pareggiare Instagram */
    text-transform: uppercase;
    line-height: 1; /* Previene altezze sballate causate dal font */
    
    transition: all 0.3s ease;
}

/* Effetto Hover */
.tiktok-link-btn:hover {
    background-color: #0099ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
}

/* Stile dell'icona SVG (riportata in scala) */
.tiktok-icon {
    width: 28px;  /* Ridotto drasticamente da 45px */
    height: 28px; /* Ridotto drasticamente da 45px */
    margin-right: 12px; /* Spazio proporzionato tra icona e testo */
    
    /* Colore azzurro */
    filter: invert(46%) sepia(95%) saturate(3048%) hue-rotate(190deg) brightness(101%) contrast(106%);
    transition: filter 0.3s ease;
}

/* L'icona diventa bianca al passaggio del mouse */
.tiktok-link-btn:hover .tiktok-icon {
    filter: brightness(0) invert(1);
}

/* =========================================
   RESPONSIVE (SMARTPHONE)
========================================= */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-images-column {
        width: 100%;
        max-width: 500px; /* Evita che diventi gigantesca su tablet */
        margin: 0 auto;
    }
    
    .about-title {
        font-size: 3rem;
    }

    /* --- SEZIONE CHI SONO SU MOBILE: TENPIAMO SOLO ELARIN --- */

    /* 1. Nascondiamo completamente "io sito.png" e "sol 3.2.png" */
    .img-main, 
    .img-top-right {
        display: none !important; 
    }

    /* 2. Sistemiamo il contenitore generale delle immagini */
    .about-images-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
    }

    /* 3. Trasformiamo "elarin witch cap1.jpg" nell'unica immagine protagonista del telefono */
    .img-bottom-right {
        display: block !important;
        width: 100% !important;
        max-width: 400px !important; /* Evita che si sgrani diventando enorme */
        height: 350px !important;    /* Dà un'altezza pulita e fissa al box */
        border-radius: 12px !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }

    /* Assicuriamo che l'immagine all'interno riempia bene il box */
    .img-bottom-right .zoom-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transform: scale(1) !important; /* Reset di eventuali zoom forzati precedenti */
    }
}

/* =========================================
   FOOTER STYLE
   ========================================= */
.site-footer {
    background-color: #0b0713;
    padding: 25px 5%; /* Ridotto da 40px a 25px per non rubare troppo spazio */
    border-top: 1px solid #151020;
    margin-bottom: 0; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left .footer-logo {
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.footer-left .footer-subtitle {
    color: #666;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-right p {
    color: #666;
    font-size: 0.75rem;
    margin: 0; /* Essenziale per evitare che l'ultimo testo crei scorrimento bianco in basso */
}

/* Responsività per il footer su schermi piccoli */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

html, body {
    margin: 0;
    padding: 0;
}








/* =========================================
   FIX RESPONSIVE: PROTEZIONE DESKTOP E MENU MOBILE
   ========================================= */

/* 1. NASCONDIAMO GLI ELEMENTI MOBILE SU PC */
#mobile-menu-btn, #mobile-dropdown, #scroll-bar { 
    display: none; 
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}

@media (max-width: 900px) {

    /* --- 1. HEADER MOBILE: Logo a sinistra, Hamburger a destra --- */
    .main-header {
        justify-content: space-between !important; 
        padding: 15px 20px !important;
        gap: 0 !important;
    }
    
    .main-header .logo {
        margin-left: 0 !important; 
    }
    
    /* Nascondiamo la navbar del PC */
    .main-header nav, .main-header .btn-commission {
        display: none !important;
    }

    /* --- 2. MENU HAMBURGER --- */
    #mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: relative;
        cursor: pointer;
        z-index: 2001;
    }
    #mobile-menu-btn .bar {
        width: 25px; height: 3px; background-color: #ffd700;
        transition: all 0.3s ease; border-radius: 2px;
    }
    #mobile-menu-btn.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #mobile-menu-btn.open .bar:nth-child(2) { opacity: 0; }
    #mobile-menu-btn.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- 3. TENDINA MOBILE --- */
    #mobile-dropdown {
        display: flex; flex-direction: column; align-items: center; gap: 30px;
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: rgba(11, 7, 19, 0.98);
        height: 0; overflow: hidden;
        transition: all 0.4s ease;
    }
    #mobile-dropdown.active {
        padding: 40px 0; height: 100vh;
    }
    #mobile-dropdown a {
        color: #fff; font-size: 1.2rem; font-weight: bold; text-decoration: none; text-transform: uppercase; letter-spacing: 2px;
    }
    .btn-commission-mobile {
        border: 2px solid #ffee00; color: #fbff00 !important; padding: 12px 30px; border-radius: 30px; margin-top: 10px;
    }

    /* --- 4. BARRA PROGRESSO --- */
    #scroll-bar {
        display: block; position: absolute; bottom: 0; left: 0;
        height: 3px; width: 0%; background: linear-gradient(90deg, #ffd700, #ff8c00);
        z-index: 2000;
    }

    /* --- 5. ADATTAMENTO SEZIONI E TESTI GIGANTI --- */
    section { padding: 60px 5% !important; }
    
    .hero-title .nome, .hero-title .nome .letter,
    .hero-title .cognome, .hero-title .cognome .letter {
        font-size: 4.5rem !important; 
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 250px !important;
    }
    .item-big { grid-column: span 1 !important; grid-row: span 1 !important; height: 250px !important; }
    
    .about-images-column { display: flex !important; flex-direction: column !important; gap: 20px !important; }
    .img-main .zoom-img { transform: scale(1.2) !important; }

    /* --- 6. CENTRATURA E FIX SEZIONE COMICON/OFF SU MOBILE --- */
    .comicon-section {
        padding: 60px 5% !important;
    }
    .comicon-container {
        width: 100% !important;
        max-width: 100% !important;
        gap: 25px !important;
    }
    .comicon-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .comicon-subtitle-area {
        text-align: center !important;
        max-width: 100% !important;
    }
    .comicon-main-row, 
    .comicon-gallery-row {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 20px !important;
    }
    .comicon-featured-box, 
    .gallery-item-box {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    .comicon-text-column {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
}

/* Gestione dei titoli Comicon tra PC e Mobile */
    .desktop-only-title { 
        display: none !important; 
    }
    
    .mobile-only-title { 
        display: block !important; 
        font-size: 3.2rem !important; /* Regola la grandezza se ti sembra troppo grande o piccolo */
        line-height: 1 !important;    /* Avvicina la riga COMICON a OFF */
    }

    /* Stile per la card dell'esperienza di docenza */
.experience-card {
    position: relative;
    background: rgba(28, 20, 37, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Effetto al passaggio del mouse (hover) coerente con il tuo stile */
.experience-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 128, 0.5); /* Richiama il tuo accento magenta */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Anno / Badge in alto a destra */
.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 128, 0.15);
    color: #ff0080;
    border: 1px solid rgba(255, 0, 128, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Titolo dell'esperienza */
.experience-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 8px;
    padding-right: 70px; /* Lascia spazio per il badge dell'anno */
}

/* Nome della scuola */
.experience-location {
    color: #00f0ff; /* Richiama il tuo accento cyan */
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Descrizione */
.experience-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}



/* Regole responsive per smartphone */
@media screen and (max-width: 480px) {
    .experience-card {
        padding: 20px 15px; /* Riduciamo leggermente i margini interni su mobile */
    }

    .experience-badge {
        position: static; /* Il badge dell'anno scende sotto al titolo per non schiacciarlo */
        display: inline-block;
        margin-bottom: 10px;
    }

    .experience-card h3 {
        padding-right: 0; /* Rimuoviamo lo spazio vuoto che serviva su desktop */
        font-size: 1.1rem;
    }
}

/* Sposta leggermente a sinistra l'immagine 8.jpg solo su smartphone */
@media screen and (max-width: 480px) {
    .uanm-image-column img[src="8.jpg"] {
        margin-left: -15px; /* Regola questo valore in base a quanto vuoi spostarla */
        /* Oppure puoi usare transform: translateX(-10px); se preferisci */
    }
}

@media screen and (max-width: 480px) {
    /* Avvicina uanm.jpg al bordo sinistro */
    .uanm-image-column img[src="uanm.jpg"] {
        margin-left: -10px; /* Modifica i pixel per avvicinarla quanto vuoi */
    }
}

/* =========================================
   LIGHTBOX PORTFOLIO
   ========================================= */

/* Lo sfondo scuro a tutto schermo */
.lightbox-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Disattiva i click quando è invisibile */
    transition: opacity 0.3s ease;
}

/* Classe che aggiungeremo col JS per mostrare la lightbox */
.lightbox-modal.attivo {
    opacity: 1;
    pointer-events: all;
}

/* L'immagine ingrandita */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    object-fit: contain;
}

/* La "X" per chiudere */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}