/* Add your CSS styling here */
:root {
    --fs-hero: clamp(32px, 4vw, 56px);
    --fs-h1: clamp(26px, 3vw, 40px);
    --fs-h2: clamp(20px, 2.2vw, 30px);
    --fs-h3: clamp(16px, 1.6vw, 22px);
    --fs-body-lg: clamp(16px, 1.6vw, 20px);
    --fs-body: 16px;
    --fs-small: 13px;
    --fs-xs: 12px;
    --color-text: #1E2732;
    --color-text-secondary: #F3F6FB;
    --color-primary: #2C7AD7;
    --color-primary-deep: #0B2C4F;
    --color-accent-ice: #7ED5FF;
    --color-accent-warm: #F2B661;
    --color-field: #5C8A3F;
    --color-panel: #F3F6FB;
    --color-border: #B8C7DA;
}

body {
    position: relative;
    /* Ensure the relative positioning for absolute children */
    min-height: 100vh;
    height: auto;
    /* Full viewport height */
    margin: 0;
    /* Reset margins */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    display: flex;
    /* Flexbox layout for the body */
    font-family: "Sora", "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--color-text);
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.15;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.25;
}

p {
    font-size: var(--fs-body);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: url("/static/images/background_2.22ca3def59ba.png?v=2") center/cover no-repeat;
    opacity: 0.4;
    /* Apply opacity to the pseudo-element only */
    z-index: -1;
    /* Ensure it stays behind all other content */
}

.main-content {
    margin-left: 220px;
    width: 100%;
    /* Same as the width of the sidebar */
    padding: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: space-between; /* Space between top links and sponsor */
    height: 100vh;
    width: 200px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-x: hidden;
    padding: 20px 0; /* Vertical padding */
    border-right: 2px solid var(--color-border);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .link-section a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 20px;
    color: var(--color-primary-deep);
    display: block;
}

.sidebar .link-section a:hover {
    color: var(--color-accent-ice);
}

.sponsor {
    padding: 10px 15px;
    margin-top: auto; /* Pushes to the bottom */
    text-decoration: none; /* Prevents underlining */
    color: var(--color-panel); /* Set a fixed color */
    opacity: 0.9;
    font-size: 20px;
    margin-bottom: 20px;
}

.sponsor a {
    color: inherit; /* Inherits color from the parent class .sponsor */
    margin-bottom: 50px;
    margin-top: 10px;
    font-size: 20px;
    justify-self: center;
}

.sponsor img {
    width: 90%; /* Ensure the images use the full width of the sidebar */
    height: auto;
    margin-top: 10px;
    justify-self: center;
}

@media (max-width: 768px) {
    body {
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sidebar {
        position: relative !important;
        width: 100vw !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background-color: var(--color-primary-deep) !important;
        padding: 6px 0 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        z-index: 1000;
    }

    .sidebar .link-section {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 4px !important;
        width: 100%;
    }

    .sidebar .link-section a {
        font-size: 13px !important;
        padding: 4px 8px !important;
        white-space: nowrap;
        border-radius: 4px;
        color: var(--color-panel) !important;
        background-color: transparent;
    }

    .sponsor {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        font-size: 14px;
        padding: 4px 0 0 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .sponsor-title {
        font-weight: bold;
        margin: 2px 0 !important;
        font-size: 13px;
    }

    .sponsor-logos {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0;
    }

    .logo-box {
        width: 80px; /* aumentato da 70 */
        height: 70px; /* aumentato da 60 */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-sizing: border-box;
    }

    .logo-box img {
        max-height: 60px; /* aumentato da 50 */
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .main-content main {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    .footer {
        text-align: center !important;
        font-size: 14px !important;
        padding: 10px !important;
    }
}
