:root {
    --bg-primary: #111111;
    --bg-card: #1a1a1a;
    --text-main: #FFFFFF;
    --text-muted: #D1D5DB;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --border-color: #2D2D2D;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.text-muted {
    color: #D1D5DB !important;
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.navbar {
    background-color: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.navbar.navbar-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    visibility: hidden;
}

.navbar.navbar-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.brand-logo {
    display: block;
    height: auto;
}

.brand-logo-header {
    width: clamp(56px, 6vw, 72px);
}

.brand-logo-footer {
    width: clamp(112px, 11vw, 144px);
}

.hero-logo {
    display: block;
    width: clamp(160px, 35vw, 220px);
    height: auto;
    margin: 0 auto 2.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    margin-top: 2px;
}

.btn-brand {
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-brand:hover {
    background-color: var(--accent-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-brand {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    transition: all 0.2s ease-in-out;
}

.btn-outline-brand:hover {
    border-color: var(--accent-blue);
    color: var(--text-main);
    background-color: rgba(37, 99, 235, 0.1);
}

.hero-section {
    position: relative;
    background: linear-gradient(rgba(17,17,17,0.7), rgba(17,17,17,0.9)), url('https://placehold.co/1920x1080/111111/2563EB?text=BAS+Eventi') center/cover no-repeat;
    padding: 0px 0 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.card-custom {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.google-review-card {
    min-height: 220px;
}

.google-review-stars {
    color: #FBBF24;
}

.gallery-carousel {
    max-width: 1100px;
}

.gallery-viewport {
    height: clamp(280px, 58vw, 640px);
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gallery-slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-slide:hover img {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(1rem, 3vw, 2rem);
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    background: linear-gradient(transparent, rgba(17, 17, 17, 0.85));
}

.gallery-status {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.gallery-controls[hidden] {
    display: none;
}

.gallery-control {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-control:hover,
.gallery-control:focus-visible {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue);
}

.gallery-counter {
    min-width: 4.5rem;
    color: var(--text-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .navbar {
        transition: none;
    }

    .gallery-track,
    .gallery-slide img {
        transition: none;
    }
}

footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-main);
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.content-narrow {
    max-width: 700px;
}

.logistics-copy {
    max-width: 600px;
}

.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

figcaption.gallery-caption {
    display: none;
}