/* --- STILI GENERALI --- */
:root {
    --bg-color: #0d0d0d;
    /* Nero quasi totale per uno stile rock */
    --text-color: #f2f2f2;
    /* Bianco sporco per leggibilità */
    --accent-color: #ff3e3e;
    /* Rosso acceso come colore d'accento */
    --font-main: 'Poppins', sans-serif;
    --font-headings: 'Bebas Neue', sans-serif;
    /* Font impattante per titoli */
    --font-logo: 'Anton', sans-serif;
    /* Font massiccio per il logo */
}

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

html {
    scroll-behavior: smooth;
    /* Scorrimento morbido quando si clicca sul menu */
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}


a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-headings);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    text-transform: uppercase;
    color: var(--accent-color);
}

h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}


.section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* Box panel condiviso da tutte le sezioni */
#band .container,
#sponsor .container,
#contatti .container,
#suona-con-noi .container,
#mappa .container {
    width: min(1200px, calc(100% - 80px));
    margin: 0 auto;
    background-color: rgba(8, 8, 8, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

#contatti p {
    font-size: 1.08rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* --- HEADER & HAMBURGER MENU --- */
header {
    background-color: rgba(13, 13, 13, 0.95);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    width: 160px;
    height: 160px;
    margin: 0 10px;
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar a {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
}

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

.menu-toggle {
    display: none;
    /* Nascosto su desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- HOME SECTION --- */
#home {
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.3));
    justify-content: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
    width: min(1200px, calc(100% - 80px));
}

.event-info {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 20px;
    width: min(1200px, calc(100% - 80px));
    border-radius: 14px;
}

.event-dates {
    font-weight: bold;
    color: var(--text-color);
}

.event-location {
    color: var(--accent-color);
}

.event-subtitle {
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-color);
    margin-top: 16px;
    margin-bottom: 4px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.event-description {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    line-height: 1.7;
}

/* --- STILI SEZIONI --- */

.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.carousel {
    display: grid;
    gap: 40px;
}

.carousel-row {
    display: grid;
    gap: 16px;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.carousel-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 10px;
    padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
    height: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.carousel-track>.band-card-link {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

.carousel-button {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.carousel-dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 62, 62, 0.16);
}

.band-card-link {
    display: block;
}

.band-card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.band-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.band-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.band-card p {
    font-size: 0.9rem;
    color: #ccc;
}

.band-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-headings);
    font-size: 1.9rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    border: 2px solid rgba(255, 62, 62, 0.7);
    background: radial-gradient(circle at top, rgba(255, 62, 62, 0.2), rgba(0, 0, 0, 0.35));
}

.sponsor-logo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 62, 62, 0.7);
    background: radial-gradient(circle at top, rgba(255, 62, 62, 0.2), rgba(0, 0, 0, 0.35));
}

/* PAGINE SINGOLE BAND */
.band-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 70px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}

.band-detail {
    width: 100%;
    max-width: 960px;
    background-color: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px;
}

.band-photo {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
}

.band-photo-placeholder {
    width: 100%;
    min-height: 320px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.2), rgba(255, 255, 255, 0.04));
    display: grid;
    place-items: center;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    font-family: var(--font-headings);
    font-size: 2rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.band-description {
    font-size: 1.05rem;
    color: #dbdbdb;
    white-space: pre-line;
}

.location-info {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.location-details {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 1rem;
    padding-top: 8px;
}

.location-details p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.location-details i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.map-wrapper {
    flex: 1;
    min-width: 0;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-link:hover {
    color: #ffffff;
}

/* SPONSOR */
#sponsor {
    background-color: transparent;
    text-align: center;
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.sponsor-card-link {
    display: block;
}

.sponsor-logo {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 2rem;
    font-weight: bold;
    color: #8b8b8b;
    font-family: var(--font-headings);
    transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.sponsor-card-link:hover .sponsor-logo {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    color: #f2f2f2;
}

/* CONTATTI */
.contact-info {
    text-align: center;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 15px;
}

.social-links {
    margin-top: 30px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    gap: 30px;
}

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

/* FOOTER */
footer {
    background-color: #050505;
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .menu-toggle {
        display: block;
        /* Mostra l'hamburger */
    }

    .navbar {
        display: none;
        /* Nascondi il menu di default */
        position: absolute;
        top: 80px;
        /* Sotto l'header */
        left: 0;
        width: 100%;
        background-color: rgba(13, 13, 13, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.active {
        display: block;
        /* Mostra il menu quando attivo */
    }

    .navbar ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .navbar a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 15px;
    }

    #band .container,
    #sponsor .container,
    #contatti .container,
    #mappa .container {
        width: min(1000px, calc(100% - 24px));
        padding: 18px;
    }

    .location-info {
        flex-direction: column;
    }

    .location-details {
        flex: none;
        width: 100%;
    }

    .map-wrapper {
        width: 100%;
    }

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

@media (min-width: 641px) and (max-width: 1050px) {
    .carousel-track>.band-card-link {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .carousel-track>.band-card-link {
        flex: 0 0 100%;
    }

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

body {
    background-image: url('./resources/images/rockhub_definitivo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* Ensure sponsor logos fit the box without distortion */
.sponsor-logo {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}