@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Sora', system-ui, sans-serif;
    color: #fff;
    background: linear-gradient(160deg, rgba(10, 24, 42, 0.87) 0%, rgba(10, 24, 42, 0.72) 100%), url('assets/background.jpg') center/cover no-repeat;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 720px;
    margin: 0 auto;
}

nav a {
    text-decoration: none;
    color: #f5f5f5;
    font-size: 18px;
}

nav a:hover {
    color: #733cf5;
}

nav a:visited {
    color: #f5f5f5;
}

nav .OtherLinks {
    display: flex;
    gap: 16px;
}

nav .navdot {
    height: 10px;
    width: 10px;
    background-color: #733cf5;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

nav span {
    font-size: 18px;
    color: #f5f5f5;
    text-decoration: none;
}

.navText {
    font-size: 15px;
    font-weight: 500;
}

.login {
    background: #733cf5;
    color: #ffffff;
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: 0.15s;
}

.presentazione {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.slides-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide0-header {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c5cfc;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.slide0-header::before,
.slide0-header::after {
    content: '';
    width: 24px;
    height: 1px;
    background: #7c5cfc;
    opacity: 0.6;
}

.slide0-title {
    font-size: clamp(44px, 8vw, 88px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-align: center;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease 0.25s, transform 0.55s ease 0.25s;
}

.slide0-description {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.38);
    font-weight: 300;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.slide0-tags {
    margin-top: 48px;
    display: flex;
    flex-direction: row;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}

.slide0-tag {
    padding: 9px 22px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.slide.active .slide0-header,
.slide.active .slide0-title,
.slide.active .slide0-description,
.slide.active .slide0-tags {
    opacity: 1;
    transform: none;
}

.sg-layout {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sg-header {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
}

.slide.active .sg-header {
    opacity: 1;
    transform: none;
}

.sg-emoji {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.sg-num {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 5px;
}

.sg-name {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
}

.sg-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.38);
    margin-top: 4px;
}

.members-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.member.visible {
    opacity: 1;
    transform: none;
}

.m-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 600;
}

.m-info {
    flex: 1;
}

.m-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.m-task {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.m-badge {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 99px;
    flex-shrink: 0;
}

.sf-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sf-big {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 300;
    letter-spacing: -0.025em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.sf-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.38);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.sf-school {
    margin-top: 20px;
    padding: 18px 32px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.sf-school-name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sf-school-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.slide.active .sf-big,
.slide.active .sf-sub,
.slide.active .sf-school {
    opacity: 1;
    transform: none;
}

.bottombar {
    flex-shrink: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    user-select: none;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.13);
}

.arrow:active {
    transform: scale(0.92);
}

.arrow svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    stroke-width: 1.8;
}

.arrow.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
    cursor: pointer;
}

.dot.active {
    width: 22px;
    border-radius: 3px;
    background: #7c5cfc;
}

.t-purple {
    --gc: #7c5cfc;
    --ga: rgba(124, 92, 252, 0.18);
    --gb: rgba(124, 92, 252, 0.12);
}

.t-blue {
    --gc: #3b82f6;
    --ga: rgba(59, 130, 246, 0.18);
    --gb: rgba(59, 130, 246, 0.12);
}

.t-teal {
    --gc: #14b8a6;
    --ga: rgba(20, 184, 166, 0.18);
    --gb: rgba(20, 184, 166, 0.12);
}

.t-amber {
    --gc: #f59e0b;
    --ga: rgba(245, 158, 11, 0.18);
    --gb: rgba(245, 158, 11, 0.12);
}

.t-green {
    --gc: #22c55e;
    --ga: rgba(34, 197, 94, 0.18);
    --gb: rgba(34, 197, 94, 0.12);
}

.themed .sg-emoji {
    background: var(--ga);
}

.themed .m-avatar {
    background: var(--gb);
    color: var(--gc);
}

.themed .m-badge {
    background: var(--ga);
    color: var(--gc);
    border: 1px solid;
    border-color: color-mix(in srgb, var(--gc) 40%, transparent);
}

.themed .sg-name {
    color: #fff;
}

.fs-btn {
    position: fixed;
    top: 13px;
    right: 16px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.15s;
}

.fs-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.fs-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

@media (max-width: 600px) {
    .slide {
        padding: 24px 20px;
    }

    .sg-layout {
        gap: 18px;
    }

    .tb-key-hint {
        display: none;
    }

    .member {
        padding: 11px 14px;
    }
}

@media (max-width: 400px) {
    .sg-name {
        font-size: 24px;
    }
}
