* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5e3fb5;
    --primary-dark: #4a2f91;
    --primary-light: #7c5ec7;
    --accent-color: #00d4ff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-color: #e9ecef;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 70px;
}

header {
    background: var(--bg-white);
    box-shadow: 0 2px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.navbar {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(90deg, #d9a6ff 0%, #a7f4f7 100%);
    box-shadow: 0 0.0625rem 0.375rem 0 rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.containernav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logoPiccolo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}



.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    transition: all 0.3s ease;
}



.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(94, 63, 181, 0.1);
}

.logo-Header {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.logoGrande {
    max-width: 600px;
    height: auto;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.aboutus-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
}

.aboutus-desc p {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

.container {
    width: 90%;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: baseline;
}

.container>details {
    flex: 1 1 48%;
    min-width: 31em;
    box-sizing: border-box;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    max-width: 70%;
    margin: 0 auto;
}

.container>div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: -webkit-fill-available;
    height: 2px;
    background: var(--accent-color);
}

.container p {
    color: var(--text-dark);
    margin: 1.5rem 0 0rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.container li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.container li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.container a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.container a:hover {
    color: var(--primary-dark);
}

@keyframes glitch {

    0%,
    100% {
        text-shadow:
            2px 0 var(--accent-color),
            -2px 0 var(--primary-color);
    }

    25% {
        text-shadow:
            -2px 0 var(--accent-color),
            2px 0 var(--primary-color);
    }

    50% {
        text-shadow:
            2px 0 var(--primary-color),
            -2px 0 var(--accent-color);
    }
}

.logoGrande:hover {
    animation: glitch 0.5s infinite;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 20px var(--shadow);
        gap: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem auto;
    }

    .logoGrande {
        max-width: 200px;
    }

    .aboutus-desc {
        padding: 1.5rem 1rem 2rem;
    }

    .aboutus-desc p {
        font-size: 1rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .containernav {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .container>div {
        padding: 1.5rem;
    }

    .logoGrande {
        max-width: 150px;
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: slideInFromTop 0.6s ease;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

details {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.container summary {
    display: flex;
    align-items: center;
    gap: 0.4em;
    cursor: pointer;
    list-style: none;
}

.container summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '▼';
    display: inline-block;
    color: #00bcd4;
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

details:not([open]) summary::before {
    transform: rotate(-90deg);
}

.container summary h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5em;
}

details[open] {
    border-color: #007bff;
}

.aboutus {
    background-color: white;
    text-align: center;
    padding-top: 2rem;
}

.aboutus h3 {
    background-color: white;
    font-size: 2rem;
    color: #222;
    letter-spacing: 2px;
}

.members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: fit-content;
    margin: auto;
}

.member {
    padding: 1rem;
    width: 20%;
    background-color: #f4fafe;
}

@media (max-width: 1400px) {
    .members>* {
        flex: 1 1 30%;
        max-width: 30%;
    }
}

@media (max-width: 1100px) {
    .members>* {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 650px) {
    .members>* {
        flex: 1 1 90%;
        max-width: 90%;
    }

    body {
        font-size: 0.9em;
    }

    .aboutus-desc p:first-child {
        font-size: 1.2em;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    footer dl:last-child {
        margin-top: 1em;
    }

    .container>details {
        min-width: 100%;
    }
}

.member {
    position: relative;
    padding-left: 1.5rem;
}

.member::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        #00ffff,
        #ff00ff
    );
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
}

.member .name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #630691;
    margin-bottom: 0.5rem;
}

.member dl {
    margin: 0;
    text-align: left;
}

.member dt {
    font-weight: bold;
    color: #444;
}

.member dd {
    margin: 0 0 0.5rem 0;
    color: #555;
}

.member a {
    color: #630691;
    text-decoration: none;
}

footer {
    border-top: 1px solid #ddd;
    background-color: white;
    padding: 2em;
}

footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

footer dl {
    margin: 0;
}

footer dl:last-child {
    flex-basis: 100%;
}

footer dt {
    font-weight: bold;
}

footer dd {
    margin: 0;
}

footer a {
    color: #630691;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer div {
    flex-basis: 100%;
    text-align: center;
    margin-top: 1em;
    font-weight: 100;
}

.version-tag {
    display: inline-block;
    width: max-content;
    margin-left: 1em;
    border: 1px solid #ccc;
    color: #555;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.8em;
    background: #f9f9f9;
}

details>div {
    padding-left: 1.5em;
}

.nascondi {
    display: none;
}

#rtb {
    order: -1;
}

#glossary h1 {
    text-align: center;
    margin-top: 1em;
    color: var(--bg-white);
}

.alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1rem;
    background: linear-gradient(135deg, rgba(94, 63, 181, 0.05), rgba(0, 212, 255, 0.05));
    border-radius: 12px;
    margin: 1rem auto;
    max-width: 1500px;
}

.alphabet-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.alphabet-bar a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(94, 63, 181, 0.3);
}

.glossary-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.letter-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

.letter-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.glossary-terms {
    margin-top: 1rem;
}

.glossary-terms dt {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.glossary-terms dt::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.glossary-terms dd {
    margin-left: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.glossary-terms dd:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .alphabet-bar {
        gap: 0.3rem;
        padding: 1.5rem 0.5rem;
    }

    .alphabet-bar a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .letter-section {
        padding: 1.5rem;
    }

    .letter-section h2 {
        font-size: 2rem;
    }

    .glossary-terms dt {
        font-size: 1.1rem;
    }

    .glossary-terms dd {
        font-size: 1rem;
        margin-left: 1.5rem;
    }

    .glossary-content {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .alphabet-bar a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .letter-section h2 {
        font-size: 1.8rem;
    }
}