html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Colori pastello principali */
:root {
    --pastel-yellow: #fff8c2;
    --pastel-green: #c9f7d5;
    --pastel-blue: #cde9ff;
    --pastel-accent: #ffe4b5;
    --pastel-text: #333333;
}

.pastel-body {
    background: linear-gradient(135deg, var(--pastel-yellow), var(--pastel-blue));
    min-height: 100vh;
    color: var(--pastel-text);
}

/* Layout */
.wrapper {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: linear-gradient(180deg, var(--pastel-blue), var(--pastel-green));
    color: var(--pastel-text);
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar .components {
    padding-left: 0;
}

    .sidebar .components li {
        padding: 10px 20px;
    }

        .sidebar .components li a {
            display: block;
            color: var(--pastel-text);
            text-decoration: none;
            border-radius: 4px;
            padding: 8px 10px;
            transition: background-color 0.2s ease;
        }

            .sidebar .components li a:hover {
                background-color: rgba(255, 255, 255, 0.7);
            }

.sidebar-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 10px 20px;
    color: #555;
    opacity: 0.8;
}

/* Content wrapper */
.content-wrapper {
    margin-left: 250px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Navbar */
.pastel-navbar {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pastel-toggle-btn {
    border-radius: 20px;
}

/* Footer */
.pastel-footer {
    background-color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sidebar hidden (mobile) */
#sidebar.collapsed {
    margin-left: -250px;
}

#content.expanded {
    margin-left: 0;
}

/* Video background solo per Home */
.video-background-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.video-background {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 248, 194, 0.5), rgba(205, 233, 255, 0.6));
}

/* Home hero */
.home-hero {
    padding: 60px 20px;
    text-align: center;
    color: #222;
}

.home-hero-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsività */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .content-wrapper {
        margin-left: 0;
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    #content.expanded {
        margin-left: 250px;
    }
}