:root {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --brand-blue: #3b82f6;
    --brand-green: #10b981;
    --brand-red: #ef4444;
    --brand-pink: #ec4899;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Navigazione */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-blue);
}

.btn-wa-header {
    background-color: #059669;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-wa-header:hover {
    background-color: #10b981;
}

/* Sezioni Principali */
.page-section {
    padding: 40px 0 60px 0;
    min-height: calc(100vh - 200px);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--brand-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--brand-blue);
    border-radius: 50%;
    display: inline-block;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Player Streaming Video 16:9 */
.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

#clappr-container {
    width: 100% !important;
    height: 100% !important;
}

#clappr-container > div {
    width: 100% !important;
    height: 100% !important;
}

/* Layout Pagina Chi Siamo & Mappa */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.about-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.highlight-box {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--brand-blue);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 20px;
}

.map-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 16px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Griglia Schede Social e Contatti */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: transform 0.2s, border-color 0.2s;
}

.custom-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-blue);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.icon-fb { background-color: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-ig { background-color: rgba(236, 72, 153, 0.15); color: #ec4899; }
.icon-yt { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Footer & Note Legali */
footer {
    padding: 30px 0;
    background-color: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-copy {
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 10.5px;
    line-height: 1.4;
    color: #64748b;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

.footer-disclaimer a {
    color: #64748b;
    text-decoration: underline;
    word-break: break-all;
}

.footer-disclaimer a:hover {
    color: var(--brand-blue);
}

/* Banner Cookie GDPR */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: none;
}

.cookie-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cookie-accept {
    background-color: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cookie-reject {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}