/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #d4af37;
    --text-color: #ffffff;
    --text-muted: #b0b0b0;
    --bg-dark: #0f0f0f;
    --bg-light: #1e1e1e;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/photo2.jpg') center/cover;
    opacity: 0.25;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.about h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.about-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 2;
}

/* Music Section */
.music-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.music-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.album-cover-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.album-cover {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.03);
}

@media (max-width: 480px) {
    .album-cover {
        width: 180px;
        height: 180px;
    }
}

/* Global Player Controls */
.player-controls-global {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.current-track-info {
    text-align: center;
    margin-bottom: 1rem;
}

.current-track-name {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-current,
.time-total {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 45px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #f4d03f);
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.volume-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* Track Container */
.track-container {
    margin-bottom: 3rem;
}

.track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--secondary-color);
    border-radius: 15px 15px 0 0;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.track:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.track.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid var(--accent-color);
}

.track-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.track-cover {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.track-cover:hover {
    transform: scale(1.05);
}

.track-number {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    min-width: 30px;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
}

.play-btn {
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    margin-left: 1rem;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* Lyrics Card - now attached to track */
.lyric-card {
    background: var(--secondary-color);
    border-radius: 0 0 15px 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    transition: var(--transition);
}

.track-container:hover .lyric-card {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.lyric-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    padding-right: 1rem;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.lyric-text.collapsed {
    max-height: 200px;
    position: relative;
}

.lyric-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color));
    pointer-events: none;
}

.lyric-text.expanded {
    max-height: none;
}

.lyric-text p {
    margin-bottom: 1rem;
}

.expand-lyrics-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.expand-lyrics-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.expand-lyrics-btn .expand-icon {
    transition: transform 0.3s ease;
}

.expand-lyrics-btn.active .expand-icon {
    transform: rotate(180deg);
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.video-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--accent-color);
    background: var(--primary-color);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .video-section .container {
        padding: 0 1.5rem;
    }

    .video-container {
        max-width: 100%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-section {
        padding: 4rem 0;
    }

    .video-section .container {
        padding: 0 1rem;
    }

    .video-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .video-container {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 12px;
    }

    .video-container iframe {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .video-section h2 {
        font-size: 1.5rem;
    }

    .video-container {
        border-radius: 10px;
    }

    .video-container iframe {
        border-radius: 10px;
    }
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.gallery h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    cursor: zoom-in;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Events Section */
.events-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.events-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-item {
    background: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
}

.event-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.event-item:hover img {
    transform: scale(1.05);
}

.event-info {
    padding: 1.5rem;
    text-align: center;
}

.event-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Current Event Section */
.section-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.current-event-section {
    margin-bottom: 4rem;
}

.current-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    border: 2px solid var(--accent-color);
}

.current-event-poster {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.current-event-poster img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.current-event:hover .current-event-poster img {
    transform: scale(1.05);
}

.current-event-info {
    text-align: center;
    width: 100%;
}

.current-event-info h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.current-event-info .event-date {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Archive Section */
.archive-section {
    margin-top: 4rem;
}

.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.archive-item {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.archive-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.archive-item:hover img {
    transform: scale(1.05);
}

.archive-info {
    padding: 1rem;
    text-align: center;
}

.archive-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.archive-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive adjustments for events */
@media (max-width: 768px) {
    .current-event {
        max-width: 100%;
        padding: 1.5rem;
    }

    .current-event-info h3 {
        font-size: 1.5rem;
    }

    .events-archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .archive-item img {
        height: 250px;
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-top: 1.5rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.whatsapp-link svg {
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .about h2,
    .music-section h2,
    .gallery h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .player-controls-global {
        padding: 1rem;
    }

    .track {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .track-info {
        gap: 1rem;
    }

    .track-cover {
        width: 60px;
        height: 60px;
    }

    .play-btn {
        margin-left: 0.5rem;
    }

    .volume-control {
        margin-top: 1rem;
    }

    .lyric-card {
        padding: 1.5rem;
    }

    .lyric-text {
        font-size: 0.9rem;
    }

    .whatsapp-link {
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
    }

    .footer-social {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .social-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .track-name {
        font-size: 0.95rem;
    }

    .progress-container {
        flex-wrap: wrap;
    }

    .volume-slider {
        width: 100%;
    }

    .track-info {
        flex-wrap: wrap;
    }

    .whatsapp-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .whatsapp-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   Animazioni — scroll reveal + movimento hero (22/09/2026)
   ========================================================================== */

/* Ken Burns lento sull'immagine di sfondo dell'hero */
.hero::before {
    animation: heroKenBurns 22s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* Gradiente di sfondo dell'hero in lento movimento */
.hero {
    background-size: 200% 200%;
    animation: heroGradientShift 14s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Indicatore di scroll animato sotto l'hero */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 14px;
    z-index: 2;
    opacity: 0.7;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 6px; opacity: 1; }
    70% { top: 20px; opacity: 0; }
    100% { top: 20px; opacity: 0; }
}

/* Reveal on scroll: sezioni e card entrano con fade+slide quando visibili */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.track-container.reveal {
    transition-delay: calc(var(--reveal-index, 0) * 0.08s);
}

.gallery-item {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Rispetta le preferenze utente su animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero {
        animation: none;
    }
    .scroll-indicator::before {
        animation: none;
    }
    .reveal,
    .gallery-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Lightbox: zoom su cover canzoni e foto galleria */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .lightbox-overlay {
        padding: 1rem;
    }
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}
