/* ================================================================
   spartitimb2026.css
   Stile unificato per MbutoZone - Spartiti
   Versione 2026 - Moderna, leggera e professionale
   ================================================================ */

/* ================================================================
   0. VARIABILI GLOBALI
   ================================================================ */

:root {
    --blue-darkest: #002b5e;
    --blue-dark: #003366;
    --blue-navy: #003d7a;
    --blue-accent: #0055a4;
    --blue-bg-light: #e8f0fe;
    --blue-bg-light-2: #d4e4f7;
    --blue-bg-soft: #dce8f8;
    --blue-border-soft: #c5d8f0;
    --blue-link: #88bbdd;
    --yellow-accent: #ffcc00;
    --text-body: #1a2a3a;
    --text-muted: #334455;
    --text-soft: #667788;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-page: #f0f4f9;
    --border-soft: #e8edf4;
    --focus-ring: 3px solid #ffcc00;
}

/* ================================================================
   1. RESET & BASE
   ================================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--surface-page);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: all 0.25s ease;
}

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

/* Focus visibile per navigazione da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    color: var(--blue-darkest);
    padding: 12px 20px;
    z-index: 100001;
    font-weight: 700;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Rispetta la preferenza utente per il movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}


/* ================================================================
   2. HEADER
   ================================================================ */

.main-header {
    background: linear-gradient(135deg, var(--blue-darkest) 0%, var(--blue-navy) 50%, var(--blue-accent) 100%);
    padding: 12px 24px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    min-height: 60px;
}

/* NASCONDI ricerca e sottotitolo nell'header (elementi non pubblicitari) */
.main-header .search-box-header,
.header-subtext {
    display: none !important;
}

/* NOTA: NON nascondere mai annunci con CSS. Le regole per nascondere
   .adsbygoogle sono state rimosse perché vietate dalle policy AdSense. */

/* -------------------- HEADER LEFT (logo + testo) -------------------- */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 75px;
    width: auto;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* -------------------- TESTO MACCHINA DA SCRIVERE -------------------- */
.header-text {
    display: flex;
    align-items: center;
    margin-left: 4px;
}

.typewriter-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    word-spacing: 8px;
    white-space: pre-wrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.typewriter-text .char {
    display: inline-block;
    opacity: 0;
    animation: typeChar 0.05s ease forwards;
    white-space: pre;
}

.typewriter-text .char.space-char {
    min-width: 8px;
    opacity: 1 !important;
    animation: none !important;
}

@keyframes typeChar {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #ffcc00;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

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


/* ================================================================
   3. MENU DESKTOP
   ================================================================ */

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.desktop-menu .menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f0f4f9;
    border: none;
    border-radius: 12px;
    color: #003366;
    font-weight: 600;
    font-size: 0.85em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 
        5px 5px 12px rgba(0, 0, 0, 0.08),
        -3px -3px 10px rgba(255, 255, 255, 0.9),
        inset 0 0 0 rgba(0, 0, 0, 0),
        inset 0 0 0 rgba(255, 255, 255, 0);
}

.desktop-menu .menu-btn:hover {
    box-shadow: 
        2px 2px 6px rgba(0, 0, 0, 0.06),
        -1px -1px 4px rgba(255, 255, 255, 0.9),
        inset 3px 3px 8px rgba(0, 0, 0, 0.05),
        inset -2px -2px 6px rgba(255, 255, 255, 0.5);
    transform: translateY(2px);
    color: #002b5e;
}

.desktop-menu .menu-btn:active {
    box-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.08),
        inset 4px 4px 10px rgba(0, 0, 0, 0.08),
        inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    transform: translateY(4px);
}

.desktop-menu .menu-btn-primary {
    background: linear-gradient(145deg, #e8f0fe, #d4e4f7);
    color: #003366;
    box-shadow: 
        5px 5px 12px rgba(0, 51, 102, 0.12),
        -3px -3px 10px rgba(255, 255, 255, 0.9),
        inset 0 0 0 rgba(0, 0, 0, 0),
        inset 0 0 0 rgba(255, 255, 255, 0);
}

.desktop-menu .menu-btn-primary:hover {
    box-shadow: 
        2px 2px 6px rgba(0, 51, 102, 0.08),
        -1px -1px 4px rgba(255, 255, 255, 0.9),
        inset 3px 3px 8px rgba(0, 51, 102, 0.08),
        inset -2px -2px 6px rgba(255, 255, 255, 0.5);
    color: #002b5e;
}

.desktop-menu .menu-btn-primary:active {
    box-shadow: 
        1px 1px 3px rgba(0, 51, 102, 0.1),
        inset 4px 4px 10px rgba(0, 51, 102, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.3);
}

.desktop-menu .menu-btn .icon {
    font-size: 1.2em;
    line-height: 1;
}


/* ================================================================
   4. HAMBURGER (solo mobile)
   ================================================================ */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: #ffcc00;
}


/* ================================================================
   5. MOBILE NAV
   ================================================================ */

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, #002b5e 0%, #003d7a 100%);
    z-index: 9999;
    padding: 60px 24px 30px;
    overflow-y: auto;
    transition: right 0.35s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
    right: 0;
    display: block;
}

.mobile-nav .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mobile-nav .close-btn:hover {
    opacity: 1;
}

.mobile-nav .mobile-nav-heading {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .mobile-nav-heading:first-of-type {
    margin-top: 0;
}

.mobile-nav .song-btn {
    display: block;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e8f0fe;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.95em;
}

.mobile-nav .song-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-nav-overlay.active {
    display: block;
}


/* ================================================================
   6. LAYOUT PRINCIPALE
   ================================================================ */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    flex: 1;
    display: flex;
    gap: 28px;
    width: 100%;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 220px;
}


/* ================================================================
   7. BOX GENERALI
   ================================================================ */

.box {
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8edf4;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.box h2,
.box h3,
.box .box-title {
    margin: 0;
    padding: 14px 20px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border-soft);
    color: var(--blue-darkest);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.box-content {
    padding: 16px 20px;
}

.box-blue-dark {
    background: #002b5e;
    border-color: #002b5e;
}

.box-blue-dark h2,
.box-blue-dark h3,
.box-blue-dark .box-title {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.box-blue-dark .box-content {
    padding: 12px 16px;
}

.box-blue-mid {
    background: #0055a4;
    border-color: #0055a4;
}

.box-blue-mid h2,
.box-blue-mid h3,
.box-blue-mid .box-title {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.box-blue-mid .box-content {
    padding: 12px 16px;
}

.box-blue-light {
    background: #e8f0fe;
    border-color: #c5d8f0;
}

.box-blue-light h3,
.box-blue-light .box-title {
    background: var(--blue-bg-soft);
    border-bottom: 1px solid var(--blue-border-soft);
    color: var(--blue-darkest);
}

/* Box "in evidenza" (es. Canzoni del momento) - stesso sistema, solo accento cromatico */
.box-featured {
    border-color: var(--blue-dark);
}

.box-featured h2 {
    font-size: 1.1em;
    text-transform: none;
    letter-spacing: 0;
    color: var(--blue-darkest);
    justify-content: center;
    background: var(--blue-bg-soft);
    padding: 16px 20px;
}

/* Box ricerca e box pubblicitario: variante neutra */
.box-neutral {
    background: var(--surface-alt);
    border-color: var(--border-soft);
}

.box-ad {
    background: var(--surface-alt);
    border-color: var(--border-soft);
    text-align: center;
    padding: 12px;
}

.search-hint {
    font-size: 0.85em;
    color: var(--text-soft);
    margin-top: 10px;
    text-align: center;
}


/* ================================================================
   8. SONG BUTTON
   ================================================================ */

.song-btn {
    display: block;
    padding: 10px 16px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    color: #1a2a3a;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.95em;
    position: relative;
    padding-left: 16px;
}

.song-btn:last-child {
    margin-bottom: 0;
}

.song-list {
    display: flex;
    flex-direction: column;
}

.song-btn::before {
    content: '♪';
    position: absolute;
    left: 16px;
    color: #0055a4;
    opacity: 0;
    transition: all 0.25s ease;
}

.song-btn:hover {
    background: #003366;
    color: #fff;
    border-color: #003366;
    padding-left: 36px;
    transform: translateX(4px);
}

.song-btn:hover::before {
    opacity: 1;
    color: #fff;
    left: 10px;
}

.box-blue-dark .song-btn,
.box-blue-mid .song-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e8f0fe;
}

.box-blue-dark .song-btn:hover,
.box-blue-mid .song-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.box-blue-dark .song-btn::before,
.box-blue-mid .song-btn::before {
    color: #ffcc00;
}


/* ================================================================
   9. NAV LIST
   ================================================================ */

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #1a2a3a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-weight: 500;
    gap: 10px;
}

.nav-list li a:hover {
    background: #e8f0fe;
    color: #003366;
    padding-left: 18px;
}

.box-blue-dark .nav-list li a,
.box-blue-mid .nav-list li a {
    color: #e8f0fe;
}

.box-blue-dark .nav-list li a:hover,
.box-blue-mid .nav-list li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.box-blue-dark .nav-list li,
.box-blue-mid .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}


/* ================================================================
   10. ARTIST SECTION
   ================================================================ */

.artist-section {
    display: block !important;
    margin-bottom: 12px;
    border-radius: 14px;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.artist-section summary .letter-icon {
    font-size: 1.2em;
}

.artist-section summary {
    cursor: pointer;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1em;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    transition: background 0.25s ease;
}

.artist-section summary:hover {
    background: #e8f0fe;
}

.artist-section summary::-webkit-details-marker {
    display: none;
}

.artist-section summary::after {
    content: '▾';
    margin-left: auto;
    font-size: 0.8em;
    color: #667788;
    transition: transform 0.3s ease;
}

.artist-section[open] summary::after {
    transform: rotate(180deg);
}

.artist-section .box-content {
    padding: 12px 16px;
}


/* ================================================================
   11. HERO SECTION
   ================================================================ */

.hero-section {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4f7 100%);
    padding: 36px 28px 28px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 85, 164, 0.08);
    text-align: center;
}

.hero-section h1 {
    font-size: 2em;
    color: #002b5e;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.05em;
    color: var(--text-muted);
    margin: 0 0 18px 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-lead {
    font-size: 1.05em;
    font-weight: 500;
    color: var(--blue-darkest);
    margin-bottom: 4px;
}

.hero-sub {
    font-size: 0.92em;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 400;
}

.hero-icon {
    font-size: 0.9em;
}

.breadcrumb {
    color: var(--text-soft);
    margin-bottom: 8px;
    font-size: 0.85em;
}

.breadcrumb a {
    color: var(--blue-dark);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #003366;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.3);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #003366;
    border: 2px solid #003366;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #003366;
    color: #fff;
    transform: translateY(-2px);
}


/* ================================================================
   12. QUICK SEARCH TAGS
   ================================================================ */

.quick-search {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-search .tag {
    display: inline-block;
    padding: 4px 14px;
    background: #e8f0fe;
    color: #003366;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-search .tag:hover {
    background: #003366;
    color: #fff;
    transform: translateY(-2px);
}


/* ================================================================
   13. ARTIST GRID & CARDS
   ================================================================ */

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.artist-grid .artist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.25s ease;
    border: 1px solid #e8edf4;
    text-align: center;
    gap: 4px;
}

.artist-grid .artist-item:hover {
    background: #003366;
    color: #fff;
    border-color: #003366;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.2);
}

.artist-grid .artist-item .artist-icon {
    font-size: 1.8em;
}

/* Content Card */
.content-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8edf4;
    text-decoration: none;
    color: #1a2a3a;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 51, 102, 0.15), 0 4px 12px rgba(0, 51, 102, 0.08);
    border-color: #003366;
    background: #ffffff;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 85, 164, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card .card-icon {
    font-size: 2em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.content-card:hover .card-icon {
    transform: scale(1.2) rotate(-5deg);
}

.content-card .card-info {
    flex: 1;
    z-index: 1;
    position: relative;
}

.content-card .card-title {
    font-weight: 700;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.content-card .card-artist {
    font-size: 0.85em;
    color: #667788;
    transition: color 0.3s ease;
}

.content-card:hover .card-title {
    color: #003366;
}

.content-card:hover .card-artist {
    color: #0055a4;
}

.content-card .card-arrow {
    font-size: 1.2em;
    color: #003366;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

.content-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Artist Card */
.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8edf4;
    text-decoration: none;
    color: #1a2a3a;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 51, 102, 0.18), 0 4px 12px rgba(0, 51, 102, 0.08);
    border-color: #003366;
    background: #ffffff;
}

.artist-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 85, 164, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.artist-card:hover::before {
    opacity: 1;
}

.artist-card .card-icon {
    font-size: 2.8em;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.artist-card:hover .card-icon {
    transform: scale(1.15) translateY(-4px);
}

.artist-card .card-name {
    font-weight: 700;
    margin-top: 8px;
    font-size: 1em;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.artist-card:hover .card-name {
    color: #003366;
}

.artist-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #003366, #0055a4);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.artist-card:hover::after {
    width: 70%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}


/* ================================================================
   13b. ALPHA GRID (indice lettere - due colonne)
   ================================================================ */

.alpha-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.alpha-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-weight: 700;
    color: var(--text-body);
    transition: all 0.25s ease;
}

.alpha-grid a:hover {
    background: var(--blue-dark);
    color: #fff;
    border-color: var(--blue-dark);
    transform: translateY(-2px);
}


/* ================================================================
   14. FOOTER
   ================================================================ */

footer {
    background: #002b5e;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 24px 20px;
    margin-top: 20px;
    border-top: 3px solid #0055a4;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.footer-col p {
    margin: 0 0 6px 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffcc00;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8em;
    text-align: center;
    opacity: 0.6;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #ffcc00;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-bottom p:not(:first-child) {
    margin-top: 4px;
}


/* ================================================================
   15. COOKIE BANNER
   ================================================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a2a3a;
    color: #e8f0fe;
    padding: 16px 24px;
    z-index: 99999;
    display: none;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #0055a4;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-banner-text {
    flex: 2;
    min-width: 260px;
}

.cookie-banner-text strong {
    font-size: 1em;
    display: block;
    margin-bottom: 2px;
}

.cookie-banner-text p {
    margin: 0 0 4px 0;
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.5;
}

.cookie-banner-links {
    font-size: 0.85em;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-banner-links a {
    color: var(--blue-link);
    text-decoration: underline;
}

.cookie-banner-links a:hover {
    color: var(--yellow-accent);
}

/* "Personalizza" è un bottone semantico ma visivamente identico a un link */
.link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--blue-link);
    text-decoration: underline;
    font: inherit;
    font-size: 1em;
    cursor: pointer;
}

.link-button:hover {
    color: var(--yellow-accent);
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* I pulsanti Accetta / Rifiuta hanno pari peso visivo (dimensione, padding, contrasto)
   per garantire una scelta libera e non influenzata dal design, come richiesto
   dalle linee guida EDPB sui dark pattern e dal Garante Privacy. */
.cookie-btn-primary {
    background: var(--blue-accent);
    color: #fff;
    padding: 10px 30px;
    font-size: 0.95em;
    box-shadow: 0 2px 12px rgba(0, 85, 164, 0.3);
}

.cookie-btn-primary:hover {
    background: var(--blue-navy);
    transform: scale(1.02);
}

.cookie-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    opacity: 1;
    font-size: 0.95em;
    padding: 10px 28px;
    font-weight: 600;
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.cookie-btn-save {
    background: rgba(255, 255, 255, 0.12);
    color: #e8f0fe;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    font-size: 0.85em;
}

.cookie-btn-save:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-preferences-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.cookie-preferences-modal {
    background: #fff;
    color: #1a2a3a;
    border-radius: 16px;
    max-width: 540px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-preferences-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e8edf4;
}

.cookie-preferences-header h3 {
    margin: 0;
    color: #002b5e;
    font-size: 1.1em;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #333;
}

.cookie-preferences-body {
    padding: 20px 24px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    font-size: 0.95em;
}

.cookie-option-info p {
    margin: 4px 0 0 0;
    font-size: 0.85em;
    color: #667788;
    line-height: 1.4;
}

.cookie-option-status {
    font-size: 0.75em;
    color: #667788;
    background: #f0f0f0;
    padding: 2px 14px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-preferences-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #e8edf4;
    text-align: right;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
    background: #0055a4;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}


/* ================================================================
   16. RESPONSIVE
   ================================================================ */

/* Tablet e schermi medi */
@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar .box {
        margin-bottom: 0;
    }

    .sidebar .box:last-child {
        grid-column: 1 / -1;
    }

    .main-content .box-blue-dark,
    .main-content .box-blue-mid {
        display: none !important;
    }

    .logo-img {
        height: 60px !important;
    }

    .typewriter-text {
        font-size: 20px !important;
        letter-spacing: 1.5px;
        word-spacing: 6px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 16px;
        position: relative;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 50px;
    }

    .logo-img {
        height: 50px !important;
    }

    .header-left {
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .typewriter-text {
        font-size: 17px !important;
        letter-spacing: 1px;
        word-spacing: 4px;
    }

    .desktop-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        flex-shrink: 0;
    }

    /* NOTA: NON nascondere mai annunci con CSS. Le regole per nascondere
       .adsbygoogle sono state rimosse perché vietate dalle policy AdSense. */

    .main-content .box-blue-dark,
    .main-content .box-blue-mid {
        display: none !important;
    }

    .page-container {
        padding: 12px;
    }

    .sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-section {
        padding: 24px 16px 20px;
    }

    .hero-section h1 {
        font-size: 1.4em;
    }

    .hero-section p {
        font-size: 0.95em;
    }

    .box h2,
    .box h3,
    .box .box-title {
        font-size: 0.85em;
        padding: 12px 16px;
    }

    .box-content {
        padding: 12px 16px;
    }

    .song-btn {
        font-size: 0.85em;
        padding: 8px 14px;
    }

    .artist-section summary {
        padding: 12px 16px;
        font-size: 0.9em;
    }

    .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }

    .artist-grid .artist-item {
        padding: 12px 6px;
        font-size: 0.8em;
    }

    .artist-grid .artist-item .artist-icon {
        font-size: 1.4em;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card-grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .content-card {
        padding: 14px 16px;
    }

    .content-card .card-icon {
        font-size: 1.6em;
    }

    .content-card .card-title {
        font-size: 0.95em;
    }

    .content-card .card-arrow {
        font-size: 1em;
    }

    .artist-card {
        padding: 16px 8px;
    }

    .artist-card .card-icon {
        font-size: 2.2em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .cookie-banner {
        padding: 12px 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-text p {
        font-size: 0.85em;
    }

    .cookie-banner-actions {
        justify-content: center;
    }

    .cookie-btn-primary {
        padding: 8px 24px;
        font-size: 0.9em;
    }

    .cookie-btn-outline {
        padding: 5px 12px;
        font-size: 0.75em;
    }

    .cookie-btn-save {
        padding: 6px 14px;
        font-size: 0.8em;
    }

    .cookie-preferences-modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
        margin-top: auto;
        align-self: flex-end;
        width: 100%;
        animation: modalSlideUp 0.3s ease;
    }

    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .cookie-preferences-header {
        padding: 14px 18px;
    }

    .cookie-preferences-body {
        padding: 14px 18px;
    }

    .cookie-option {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .cookie-option-status {
        font-size: 0.7em;
        padding: 2px 10px;
    }
}

/* Mobile molto piccolo */
@media (max-width: 400px) {
    .main-header {
        padding: 8px 10px;
    }

    .logo-img {
        height: 40px !important;
    }

    .header-left {
        gap: 8px;
    }

    .typewriter-text {
        font-size: 14px !important;
        letter-spacing: 0.5px;
        word-spacing: 3px;
    }

    .hamburger-menu {
        width: 22px;
        height: 18px;
    }

    .hamburger-menu span {
        height: 2px;
    }

    .hero-section h1 {
        font-size: 1.2em;
    }

    .hero-section p {
        font-size: 0.85em;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 18px;
        font-size: 0.8em;
    }

    .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 6px;
    }

    .artist-grid .artist-item {
        padding: 8px 4px;
        font-size: 0.75em;
        border-radius: 6px;
    }

    .artist-grid .artist-item .artist-icon {
        font-size: 1.2em;
    }

    .card-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .artist-card {
        padding: 10px 4px;
        font-size: 0.75em;
    }

    .artist-card .card-icon {
        font-size: 1.4em;
    }

    .content-card {
        padding: 10px 12px;
    }

    .content-card .card-icon {
        font-size: 1.2em;
    }

    .content-card .card-title {
        font-size: 0.8em;
    }
}


/* ================================================================
   FINE
   ================================================================ */