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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #333333;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Band Members Photos */
.band-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.band-member-photo {
    text-align: center;
}

.photo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #b22222;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Specific positioning for individual members */
.band-member-photo:nth-child(1) .photo-circle img { /* Alberto */
    object-position: 40% top;
}

.band-member-photo:nth-child(4) .photo-circle img { /* Mario */
    object-position: center 20%;
}

.band-member-photo h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.band-member-photo p {
    font-size: 0.95rem;
    color: #b0b0b0;
    font-weight: 500;
}

/* Header */
header {
    background: #000000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b22222;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/hero.png') center/cover no-repeat;
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}


.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #b22222;
    color: white;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #8b1a1a;
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

section:not(.hero):not(.band-section):not(.gallery-section) {
    background: #ffffff;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.band-section {
    background: #1a1a1a;
    color: #e0e0e0;
}

.band-section h2,
.concerts-section h2,
.contact-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

.band-section h2 {
    color: #ffffff;
}

.band-section > .container > p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
}

.band-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.member {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #3a3a3a;
    transition: transform 0.3s ease;
    color: #cccccc;
}

.member:hover {
    transform: translateY(-5px);
}

.member h3 {
    color: #b22222;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Concerts Section */
.concerts-section {
    background: #fafafa;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Collage Background */
.collage-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.collage-image {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    filter: grayscale(50%) blur(1px);
    transition: all 0.5s ease;
    animation: floatAnimation 20s infinite ease-in-out;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotation));
    }
    25% {
        transform: translateY(-10px) rotate(calc(var(--rotation) + 5deg));
    }
    50% {
        transform: translateY(5px) rotate(calc(var(--rotation) - 3deg));
    }
    75% {
        transform: translateY(-5px) rotate(calc(var(--rotation) + 3deg));
    }
}

.concerts-section .container {
    position: relative;
    z-index: 1;
    background: rgba(250, 250, 250, 0.9);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.concert-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.concert-item {
    display: flex;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    align-items: center;
    gap: 1.5rem;
}

.date-info {
    min-width: 120px;
}

.date {
    background: #b22222;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
}

.details h3 {
    color: #1a1a1a;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.details p {
    color: #666666;
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.details .location {
    color: #b22222;
    font-weight: 500;
}

.details .city {
    color: #808080;
}

.details .notes {
    font-style: italic;
    color: #808080;
    margin-top: 0.2rem;
}

.loading {
    text-align: center;
    color: #666666;
    padding: 2rem;
    font-style: italic;
}

/* Map Section */
.map-section {
    background: white;
}

.map-section p {
    text-align: center;
    color: #666666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.concert-map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none; /* Nascosto fino al caricamento */
}


.map-loading {
    text-align: center;
    color: #666666;
    padding: 3rem;
    font-style: italic;
    font-size: 1.1rem;
}

/* Stili personalizzati per popup mappa */
.leaflet-popup-content {
    text-align: center;
    line-height: 1.4;
}

.leaflet-popup-content strong {
    color: #b22222;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    background: #fafafa;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #b22222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.contact-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: #8b1a1a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

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

.contact-item p {
    color: #666666;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

.gallery-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
}

.carousel-slide {
    flex: 0 0 calc(25% - 0.75rem);
    cursor: pointer;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover img,
.carousel-slide:hover video {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #b22222;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #b22222;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(178,34,34,0.8);
    border-color: #b22222;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive Carousel */
@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 0.667rem);
    }
}

@media (max-width: 900px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
    
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}


/* Footer */
footer {
    background: #000000;
    color: #cccccc;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Facebook Fixed Icon */
.facebook-fixed-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #1877f2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.facebook-fixed-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    background: #166fe5;
}

.facebook-fixed-icon svg {
    width: 28px;
    height: 28px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        font-size: 1.2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-links a {
        color: white;
        font-size: 1.5rem;
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.3s;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .concert-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.25rem 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .mobile-menu-toggle {
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    pointer-events: none; /* Prevent interaction with YouTube UI */
}

/* Allow interaction only with our custom sound button */
.video-wrapper .sound-toggle {
    pointer-events: auto;
}

.sound-toggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sound-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .video-section {
        padding: 2rem 0;
    }

    .sound-toggle {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }

    .sound-icon {
        width: 20px;
        height: 20px;
    }

    .facebook-fixed-icon {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .facebook-fixed-icon svg {
        width: 24px;
        height: 24px;
    }
}