/*
Theme Name: Moreno Corelli - Jazz & Cinema
Theme URI: https://morenocorelli.it
Description: Tema jazz/cinematografico per Moreno Corelli
Author: Moreno Corelli Team
Template: astra
Version: 2.0.0
*/

/* ========================================
   IMPORT FONT JAZZ VINTAGE
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&family=Courier+Prime:ital@0;1&display=swap');

/* ========================================
   VARIABILI - MODALITÀ NOTTE (Jazz Club)
   ======================================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1410;
    --bg-accent: #2d1f16;
    --text-primary: #e8d5c4;
    --text-secondary: #b89968;
    --accent-gold: #d4af37;
    --accent-brass: #b87333;
    --accent-red: #8b2635;
    --border: #4a3728;
    --shadow: rgba(0, 0, 0, 0.8);
    --glow: rgba(212, 175, 55, 0.3);
    --vinyl-black: #1c1c1c;
    --film-grain: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
}

/* MODALITÀ GIORNO (Cinema Vintage) */
body.light-mode {
    --bg-primary: #f5ebe0;
    --bg-secondary: #ede0d4;
    --bg-accent: #e6ccb2;
    --text-primary: #2d1f16;
    --text-secondary: #5a4a3a;
    --accent-gold: #b8860b;
    --accent-brass: #8b6914;
    --accent-red: #a0522d;
    --border: #c9b79c;
    --shadow: rgba(45, 31, 22, 0.2);
    --glow: rgba(184, 134, 11, 0.2);
}

/* ========================================
   RESET E BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.9;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow-x: hidden;
}

/* Effetto pellicola/grain */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--film-grain);
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
}

/* ========================================
   HEADER - STILE MARQUEE CINEMA
   ======================================== */
.site-header {
    background: linear-gradient(180deg, var(--vinyl-black) 0%, var(--bg-secondary) 100%);
    border-bottom: 3px double var(--accent-gold);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px var(--shadow), inset 0 -1px 0 var(--accent-brass);
    transition: all 0.5s ease;
}

.site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 0.3rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px var(--glow),
        0 0 20px var(--glow),
        2px 2px 0 var(--accent-brass),
        4px 4px 0 rgba(0,0,0,0.3);
    animation: neonFlicker 3s infinite alternate;
}

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

.site-tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.site-tagline::before,
.site-tagline::after {
    content: '♪';
    margin: 0 1rem;
    color: var(--accent-brass);
}

.main-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    margin-top: 1rem;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-right: 1px solid var(--border);
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', sans-serif;
    position: relative;
    overflow: hidden;
}

.main-navigation a:last-child {
    border-right: none;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--glow), transparent);
    transition: left 0.5s ease;
}

.main-navigation a:hover::before {
    left: 100%;
}

.main-navigation a:hover,
.main-navigation a.current {
    color: var(--accent-gold);
    background: var(--bg-accent);
    text-shadow: 0 0 10px var(--glow);
}

/* SWITCHER - STILE VINILE */
.mode-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 2000;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--vinyl-black) 30%, var(--accent-gold) 31%, var(--accent-gold) 35%, var(--vinyl-black) 36%);
    border: 3px solid var(--accent-brass);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 5px 20px var(--shadow),
        inset 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-switcher:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 8px 30px var(--shadow), 0 0 20px var(--glow);
}

.mode-switcher span {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px var(--glow));
}

/* ========================================
   HOMEPAGE - CINEMA OPENING
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-accent) 100%);
}

/* Effetto spotlight */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
    opacity: 0.2;
    animation: spotlightPulse 8s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% { opacity: 0.2; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.4; transform: translateX(-50%) scale(1.1); }
}

/* Linee cinematografiche */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--accent-gold);
    border-radius: 5px;
    box-shadow: 
        0 0 50px var(--shadow),
        inset 0 0 30px rgba(0,0,0,0.5);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-shadow: 
        0 0 20px var(--glow),
        0 0 40px var(--glow),
        3px 3px 0 var(--accent-brass),
        6px 6px 0 rgba(0,0,0,0.4);
    letter-spacing: 10px;
    animation: titleReveal 2s ease;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: scale(0.8) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    animation: fadeInUp 2.5s ease;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '—';
    margin: 0 1rem;
    color: var(--accent-brass);
}

.hero-quote {
    font-size: 1.3rem;
    line-height: 2.2;
    color: var(--text-primary);
    border-left: 5px solid var(--accent-gold);
    padding-left: 2rem;
    margin: 2rem auto;
    max-width: 700px;
    font-family: 'Courier Prime', monospace;
    animation: fadeInUp 3s ease;
    position: relative;
}

.hero-quote::before {
    content: '"';
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 5rem;
    color: var(--accent-brass);
    opacity: 0.6;
}

/* ========================================
   SEZIONI - STILE ALBUM LINER NOTES
   ======================================== */
.content-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: 8px;
    text-shadow: 2px 2px 0 var(--accent-brass);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    box-shadow: 0 0 10px var(--glow);
}

/* ========================================
   DISCOGRAFIA - VINILE 3D
   ======================================== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.album-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    border: 2px solid var(--accent-brass);
    border-radius: 3px;
    padding: 2.5rem;
    box-shadow: 
        0 15px 40px var(--shadow),
        inset 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Texture vinile */
.album-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.album-card:hover {
    transform: translateY(-15px) rotateY(8deg) rotateX(3deg);
    box-shadow: 
        0 25px 60px var(--shadow),
        0 0 30px var(--glow);
    border-color: var(--accent-gold);
}

.album-cover {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle, var(--vinyl-black) 25%, var(--accent-gold) 26%, var(--accent-gold) 28%, var(--vinyl-black) 29%);
    border: 5px solid var(--accent-brass);
    border-radius: 3px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-gold);
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8),
        0 10px 30px var(--shadow);
    transition: all 0.5s ease;
}

.album-card:hover .album-cover {
    transform: rotate(15deg);
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8),
        0 15px 40px var(--shadow),
        0 0 20px var(--glow);
}

/* Grooves del vinile */
.album-cover::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        transparent 0px,
        transparent 3px,
        rgba(255,255,255,0.02) 3px,
        rgba(255,255,255,0.02) 6px
    );
}

.album-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 1px 1px 0 var(--accent-brass);
}

.album-year {
    color: var(--text-secondary);
    font-style: italic;
    font-family: 'Courier Prime', monospace;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.album-year::before {
    content: '◆ ';
    color: var(--accent-brass);
}

.album-tracks {
    list-style: none;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.album-tracks li {
    padding: 0.8rem 0 0.8rem 2rem;
    border-bottom: 1px dotted var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Courier Prime', monospace;
}

.album-tracks li::before {
    content: '♪';
    position: absolute;
    left: 0;
    color: var(--accent-brass);
    opacity: 0;
    transition: all 0.3s ease;
}

.album-tracks li:hover {
    color: var(--accent-gold);
    padding-left: 2.5rem;
    background: rgba(212, 175, 55, 0.05);
}

.album-tracks li:hover::before {
    opacity: 1;
}

/* TIMELINE - STILE PELLICOLA */
.timeline {
    position: relative;
    padding: 3rem 0;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        transparent 0%,
        var(--accent-gold) 10%,
        var(--accent-gold) 90%,
        transparent 100%
    );
    box-shadow: 0 0 10px var(--glow);
}

/* Perforazioni pellicola */
.timeline::after {
    content: '';
    position: absolute;
    left: calc(50% - 15px);
    top: 0;
    bottom: 0;
    width: 30px;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 15px,
        var(--bg-primary) 15px,
        var(--bg-primary) 20px
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding: 0 3rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 4rem);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 4rem);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--accent-gold) 40%, var(--accent-brass) 100%);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 
        0 0 0 4px var(--accent-brass),
        0 0 20px var(--glow);
}

.timeline-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    padding: 2.5rem;
    border: 2px solid var(--accent-brass);
    border-radius: 3px;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: var(--accent-brass);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: var(--accent-brass);
}

.timeline-date {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 var(--accent-brass);
}

/* BIOGRAFIA */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.bio-image {
    width: 100%;
    height: 600px;
    background: radial-gradient(circle, var(--vinyl-black) 30%, var(--accent-gold) 31%, var(--accent-gold) 33%, var(--vinyl-black) 34%);
    border: 5px solid var(--accent-brass);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--accent-gold);
    box-shadow: 
        0 20px 50px var(--shadow),
        inset 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.bio-image::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        transparent 0px,
        transparent 4px,
        rgba(255,255,255,0.02) 4px,
        rgba(255,255,255,0.02) 8px
    );
}

.bio-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--accent-gold);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-shadow: 1px 1px 0 var(--accent-brass);
}

.bio-text p {
    margin-bottom: 2rem;
    line-height: 2.2;
    text-align: justify;
}

/* FOOTER - CREDITS STYLE */
.site-footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--vinyl-black) 100%);
    border-top: 3px double var(--accent-gold);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 5rem;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.5);
}

.footer-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Courier Prime', monospace;
    line-height: 2;
}

.footer-quote::before,
.footer-quote::after {
    content: '♪';
    margin: 0 1rem;
    color: var(--accent-brass);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 5px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
    }
    
    .album-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before,
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 80px;
        padding-right: 2rem;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        right: auto;
        left: -30px;
        border-left-color: transparent;
        border-right-color: var(--accent-brass);
    }
}

/* ========================================
   HERO SLIDESHOW
   ======================================== */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: grayscale(30%) sepia(20%);
}

.hero-slide.active {
    opacity: 0.25;
}

/* Overlay scuro per leggibilità testo */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(26, 20, 16, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    z-index: 10;
}

/* ========================================
   HERO SLIDESHOW BACKGROUND
   ======================================== */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: grayscale(30%) sepia(20%) brightness(1.1);
}

.hero-slide.active {
    opacity: 0.6;
}

/* Overlay scuro per leggibilità */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(26, 20, 16, 0.35) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.hero-section {
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Foto biografia - override stile vinile */
.bio-image[style*="background-image"] {
    background: none !important;
    border: 5px solid var(--accent-brass);
    box-shadow: 
        0 20px 50px var(--shadow),
        inset 0 0 0 rgba(0,0,0,0);
    filter: grayscale(20%) sepia(15%);
}

.bio-image[style*="background-image"]::before {
    display: none;
}

/* Foto biografia reale */
.bio-image-photo {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 5px solid var(--accent-brass);
    border-radius: 3px;
    box-shadow: 0 20px 50px var(--shadow);
    filter: grayscale(15%) sepia(10%) contrast(1.1);
}

/* Hero background fisso durante scroll */
.hero-slide {
    background-attachment: fixed;
}

.hero-section {
    background-attachment: fixed;
}

/* Hero background fisso durante scroll */
.hero-slide {
    background-attachment: fixed;
}

.hero-section {
    background-attachment: fixed;
}

/* Stile singoli */
.single-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-brass);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.single-item:hover {
    background: var(--bg-accent);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow);
}
