/* =================================================================
   DASTO DJ - CSS OTTIMIZZATO PER SEO E PERFORMANCE
   ================================================================= */

/* --- VARIABILI CSS --- */
:root {
    --bg: #050505;
    --accent: #25d366; /* Verde WhatsApp / Brand */
    --accent-hover: #1faa52;
    --glass: rgba(10, 10, 10, 0.75);
    --glass-light: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-muted: #888888;
    --text-dark: #555555;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Accessibilità - Focus States */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Selezione testo personalizzata */
::selection {
    background: var(--accent);
    color: #000;
}

::-moz-selection {
    background: var(--accent);
    color: #000;
}

/* --- CANVAS BACKGROUND ANIMATO --- */
#canvas-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    filter: blur(100px) saturate(150%);
    pointer-events: none;
    opacity: 0.8;
}

/* --- LAYOUT PRINCIPALE --- */
.container {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 450px;
    margin: 20px auto;
    background: var(--glass);
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 400px 1fr;
        gap: 60px;
        min-height: 90vh;
        margin: 5vh auto;
        padding: 50px;
    }

    .left {
        position: sticky;
        top: 5vh;
        height: fit-content;
    }

    .right {
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 15px;
        max-height: 80vh;
    }

    /* Scrollbar personalizzata */
    .right::-webkit-scrollbar {
        width: 6px;
    }

    .right::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .right::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 10px;
        transition: var(--transition);
    }

    .right::-webkit-scrollbar-thumb:hover {
        background: var(--border-hover);
    }
}

@media (max-width: 1023px) {
    .left {
        margin-bottom: 40px;
    }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

strong {
    font-weight: 700;
    color: var(--text-primary);
}

em {
    font-style: italic;
    color: var(--text-muted);
}

/* --- LOGO --- */
.logo-container {
    margin-bottom: 25px;
}

.logo {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-align: center;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.subtitle {
    display: block;
    font-size: 0.38em;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    -webkit-text-fill-color: var(--text-muted);
}

/* --- SOUNDCLOUD PLAYER --- */
.player-wrapper {
    margin: 20px 0;
}

.soundcloud-frame {
    width: 100%;
    height: 120px;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- SOCIAL FAST LINKS --- */
.social-fast-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--glass-light);
}

.social-link:hover,
.social-link:focus {
    opacity: 1;
    color: var(--accent) !important;
    transform: translateY(-2px);
    background: rgba(37, 211, 102, 0.1);
}

.social-link i {
    font-size: 16px;
}

/* --- BUTTONS / CTA --- */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 15px;
    background: var(--glass-light);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(37, 211, 102, 0.05);
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    background: var(--accent);
    color: #000;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

.btn i {
    font-size: 16px;
}

/* --- SECTION TITLES --- */
.section-title {
    font-size: 11px;
    color: var(--text-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.subsection-title {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 25px 0 15px;
    font-weight: 700;
}

/* --- SEO CONTENT --- */
.seo-content {
    margin-bottom: 40px;
}

.intro-text {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

.intro-text p {
    margin-bottom: 15px;
}

/* --- SERVICES GRID --- */
.services-section {
    margin: 40px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-box {
    background: var(--glass-light);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--accent);
}

.service-box h4 {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-box p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- PRICING / WHY CHOOSE --- */
.why-choose-section {
    margin: 50px 0;
}

.pricing-card {
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.pricing-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
}

.pricing-list {
    list-style: none;
    margin-top: 20px;
}

.pricing-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.pricing-list i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-note {
    font-size: 12px;
    color: var(--text-dark);
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background: rgba(37, 211, 102, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 5px;
}

/* --- COVERAGE SECTION --- */
.coverage-section {
    margin: 50px 0;
}

.coverage-card {
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.coverage-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 25px;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .coverage-grid {
        grid-template-columns: 1fr;
    }
}

.coverage-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.coverage-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.coverage-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.coverage-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coverage-item p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- GALLERY / REELS --- */
.gallery-section {
    margin: 50px 0;
}

.gallery-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

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

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

.item.reel {
    aspect-ratio: 9/16;
    background: #111;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.item.reel:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
    transform: scale(1.02);
}

.reel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: var(--transition);
}

.item.reel:hover .reel-img {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.item.reel:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-overlay i {
    font-size: 32px;
    color: var(--text-primary);
    transition: var(--transition);
}

.item.reel:hover .play-overlay i {
    color: var(--accent);
    transform: scale(1.2);
}

.play-overlay span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* --- MAP SECTION --- */
.map-section {
    margin: 50px 0;
}

.map-intro {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

#map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

#map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.contact-info {
    background: var(--glass-light);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    font-size: 13px;
    line-height: 1.8;
}

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

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* --- SEO TEXT SECTION --- */
.seo-text-section {
    margin: 50px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.seo-text-content h3 {
    font-size: 16px;
    color: var(--accent);
    margin: 25px 0 12px;
    font-weight: 700;
}

.seo-text-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 18px;
}

/* --- FOOTER --- */
.seo-footer {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 450px;
    margin: 20px auto;
    background: var(--glass);
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
    .seo-footer {
        max-width: 1200px;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-locations,
.footer-genres {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
    background: rgba(37, 211, 102, 0.1);
}

.footer-copy {
    font-size: 10px;
    color: var(--text-dark);
    margin-top: 15px;
    letter-spacing: 0.5px;
}

/* --- ACCESSIBILITY IMPROVEMENTS --- */
/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 5px 0;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- PRINT STYLES --- */
@media print {
    #canvas-bg,
    .social-fast-links,
    .soundcloud-frame,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container,
    .seo-footer {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}