* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #4285f4;
    --blue-dark: #2563eb;
    --violet: #7c3aed;
    --cyan: #06b6d4;

    --text: #172033;
    --muted: #667085;

    --white: rgba(255, 255, 255, 0.78);
    --border: rgba(255, 255, 255, 0.72);

    --mouse-x: 0px;
    --mouse-y: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        linear-gradient(
            135deg,
            #eef6ff 0%,
            #f7f3ff 48%,
            #edfbff 100%
        );

    overflow-x: hidden;
}


/* =========================
   SFONDO
========================= */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.48;
    animation: floatOrb 16s ease-in-out infinite;
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -160px;
    left: -100px;
    background:
        radial-gradient(
            circle,
            rgba(66, 133, 244, 0.35),
            rgba(66, 133, 244, 0)
        );
}

.orb-2 {
    width: 520px;
    height: 520px;
    right: -180px;
    top: 15%;
    background:
        radial-gradient(
            circle,
            rgba(124, 58, 237, 0.26),
            rgba(124, 58, 237, 0)
        );

    animation-delay: -5s;
}

.orb-3 {
    width: 430px;
    height: 430px;
    left: 30%;
    bottom: -220px;
    background:
        radial-gradient(
            circle,
            rgba(6, 182, 212, 0.25),
            rgba(6, 182, 212, 0)
        );

    animation-delay: -10s;
}

@keyframes floatOrb {

    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(40px, -30px, 0) scale(1.08);
    }

    66% {
        transform: translate3d(-30px, 35px, 0) scale(0.94);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}


/* GRIGLIA */

.grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(70, 100, 150, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(70, 100, 150, 0.045) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 20%,
            transparent 80%
        );

    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {

    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(50px, 50px, 0);
    }
}


/* PARTICELLE */

.particles span {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: rgba(66, 133, 244, 0.38);

    box-shadow:
        0 0 14px rgba(66, 133, 244, 0.25);

    animation:
        particleMove
        var(--duration, 12s)
        ease-in-out
        infinite;
}

.particles span:nth-child(1) {
    left: 8%;
    top: 18%;
    --duration: 11s;
}

.particles span:nth-child(2) {
    left: 18%;
    top: 72%;
    --duration: 14s;
}

.particles span:nth-child(3) {
    left: 29%;
    top: 33%;
    --duration: 17s;
}

.particles span:nth-child(4) {
    left: 42%;
    top: 12%;
    --duration: 13s;
}

.particles span:nth-child(5) {
    left: 54%;
    top: 76%;
    --duration: 16s;
}

.particles span:nth-child(6) {
    left: 64%;
    top: 29%;
    --duration: 12s;
}

.particles span:nth-child(7) {
    left: 74%;
    top: 62%;
    --duration: 15s;
}

.particles span:nth-child(8) {
    left: 84%;
    top: 18%;
    --duration: 18s;
}

.particles span:nth-child(9) {
    left: 91%;
    top: 78%;
    --duration: 13s;
}

.particles span:nth-child(10) {
    left: 11%;
    top: 91%;
    --duration: 16s;
}

.particles span:nth-child(11) {
    left: 48%;
    top: 48%;
    --duration: 14s;
}

.particles span:nth-child(12) {
    left: 88%;
    top: 43%;
    --duration: 17s;
}

@keyframes particleMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translate(30px, -45px) scale(1.8);
        opacity: 0.8;
    }
}


/* =========================
   PAGINA
========================= */

.page {
    position: relative;
    z-index: 1;

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;
    padding:
        80px
        0
        180px;

    transform:
        translate3d(
            var(--mouse-x),
            var(--mouse-y),
            0
        );

    transition:
        transform 0.5s ease;
}


/* =========================
   HERO
========================= */

.hero {
    display: flex;
    align-items: center;
    flex-direction: column;

    text-align: center;
}


/* BADGE */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 9px 15px;

    border: 1px solid rgba(66, 133, 244, 0.16);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.62);

    box-shadow:
        0 8px 30px rgba(66, 133, 244, 0.08);

    color: #45617f;

    font-size: 0.82rem;
    font-weight: 600;

    backdrop-filter: blur(12px);

    animation:
        fadeDown
        0.8s
        ease
        both;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.12);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}


/* TITOLO */

h1 {
    max-width: 900px;

    margin-top: 28px;

    font-size:
        clamp(
            3rem,
            8vw,
            6.5rem
        );

    line-height: 0.95;

    letter-spacing: -0.065em;

    font-weight: 800;

    color: #172033;

    animation:
        fadeUp
        0.9s
        0.1s
        ease
        both;
}

h1 span {
    display: inline-block;

    background:
        linear-gradient(
            100deg,
            #2563eb,
            #7c3aed,
            #06b6d4
        );

    background-size: 200% 200%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        gradientText
        5s
        ease
        infinite;
}

@keyframes gradientText {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.subtitle {
    max-width: 640px;

    margin-top: 25px;

    color: var(--muted);

    font-size:
        clamp(
            1rem,
            2vw,
            1.2rem
        );

    line-height: 1.7;

    animation:
        fadeUp
        0.9s
        0.2s
        ease
        both;
}


/* =========================
   LOGIN CARD
========================= */

.login-card {
    position: relative;

    width: min(480px, 100%);

    margin-top: 40px;

    padding: 30px;

    border:
        1px solid
        rgba(255, 255, 255, 0.85);

    border-radius: 28px;

    background:
        rgba(255, 255, 255, 0.68);

    box-shadow:
        0 30px 80px rgba(42, 73, 125, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(24px);

    animation:
        cardAppear
        1s
        0.3s
        ease
        both;
}

.login-card::before {
    content: "";

    position: absolute;

    inset: -1px;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(66, 133, 244, 0.18),
            transparent 40%,
            rgba(124, 58, 237, 0.16)
        );

    z-index: -1;

    opacity: 0;

    transition: opacity 0.4s ease;
}

.login-card:hover::before {
    opacity: 1;
}


/* GOOGLE ICON */

.google-logo {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.9);

    box-shadow:
        0 12px 30px rgba(50, 80, 120, 0.1);
}

.google-logo svg {
    width: 31px;
    height: 31px;
}


/* TESTO */

.login-text {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 24px;
}

.login-text strong {
    font-size: 1.2rem;
}

.login-text span {
    color: var(--muted);
    font-size: 0.9rem;
}


/* BOTTONE */

.google-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;

    min-height: 58px;

    padding: 0 22px;

    border: 0;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    text-decoration: none;

    font-size: 0.98rem;
    font-weight: 700;

    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.24);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.google-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.28),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.6s ease;
}

.google-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(37, 99, 235, 0.3);
}

.google-button:hover::before {
    left: 140%;
}

.google-button:active {
    transform: translateY(0);
}

.google-button svg {
    width: 21px;
    height: 21px;

    transition:
        transform 0.25s ease;
}

.google-button:hover svg {
    transform: translateX(4px);
}


/* SICUREZZA */

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 18px;

    color: #718096;

    font-size: 0.78rem;
}

.secure-note svg {
    width: 16px;
    height: 16px;

    color: #22a06b;
}


/* =========================
   FEATURES
========================= */

.features {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 80px;

    animation:
        fadeUp
        1s
        0.5s
        ease
        both;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 22px;

    border:
        1px solid
        rgba(255,255,255,0.8);

    border-radius: 20px;

    background:
        rgba(255,255,255,0.48);

    backdrop-filter: blur(14px);

    box-shadow:
        0 15px 40px rgba(42,73,125,0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 50px rgba(42,73,125,0.1);
}

.feature-icon {
    flex-shrink: 0;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 14px;
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.feature-icon.blue {
    background: rgba(66,133,244,0.11);
    color: #2563eb;
}

.feature-icon.violet {
    background: rgba(124,58,237,0.11);
    color: #7c3aed;
}

.feature-icon.cyan {
    background: rgba(6,182,212,0.11);
    color: #0891b2;
}

.feature strong {
    display: block;

    margin-bottom: 6px;

    font-size: 0.92rem;
}

.feature p {
    color: var(--muted);

    font-size: 0.8rem;

    line-height: 1.5;
}


/* =========================
   COOKIE BAR
========================= */

.cookie-bar {
    position: fixed;

    z-index: 100;

    left: 20px;
    right: 20px;
    bottom: 20px;

    animation:
        cookieAppear
        0.6s
        0.8s
        ease
        both;
}

.cookie-content {
    width: min(1000px, 100%);

    margin: auto;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 15px 18px;

    border:
        1px solid
        rgba(255,255,255,0.85);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.82);

    box-shadow:
        0 15px 50px rgba(31,52,82,0.15);

    backdrop-filter: blur(22px);
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text strong {
    display: block;

    margin-bottom: 3px;

    font-size: 0.85rem;
}

.cookie-text p {
    color: var(--muted);

    font-size: 0.74rem;

    line-height: 1.4;
}

.cookie-button {
    flex-shrink: 0;

    border: 0;
    border-radius: 10px;

    padding: 10px 17px;

    background: #172033;

    color: white;

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.cookie-button:hover {
    transform: translateY(-2px);

    background: #2563eb;
}

.cookie-bar.hidden {
    display: none;
}


/* =========================
   ANIMAZIONI
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardAppear {

    from {
        opacity: 0;
        transform:
            translateY(35px)
            scale(0.96);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes cookieAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   ACCESSIBILITÀ
========================= */

button:focus-visible,
a:focus-visible {
    outline:
        3px solid
        rgba(37,99,235,0.45);

    outline-offset: 4px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

    .page {
        width: min(
            100% - 32px,
            680px
        );

        padding-top: 60px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 19px;
    }
}


/* =========================
   SMARTPHONE
========================= */

@media (max-width: 600px) {

    .page {
        width: calc(100% - 24px);

        padding:
            40px
            0
            150px;
    }

    h1 {
        font-size: clamp(
            3rem,
            17vw,
            5rem
        );
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .login-card {
        padding: 24px 18px;

        border-radius: 22px;
    }

    .features {
        margin-top: 55px;
    }

    .cookie-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-content {
        align-items: flex-start;

        padding: 13px;

        border-radius: 16px;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text p {
        font-size: 0.7rem;
    }

    .cookie-button {
        padding: 9px 12px;
    }

    .gradient-orb {
        opacity: 0.35;
    }
}


/* =========================
   RIDUZIONE MOVIMENTO
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* =====================================================
   NAVBAR
===================================================== */

.navbar-wrapper {
    position: relative;
    z-index: 50;

    width: 100%;

    padding:
        18px 24px 0;
}

.navbar {
    width: min(1180px, 100%);
    height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 12px 0 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.82);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.68);

    box-shadow:
        0 12px 45px rgba(42, 73, 125, 0.08);

    backdrop-filter: blur(22px);
}


/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--text);

    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: white;

    font-size: 1.1rem;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}

.brand-name {
    font-size: 1rem;
    font-weight: 750;
}


/* MENU */

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-left: 45px;
}

.nav-link {
    position: relative;

    padding: 10px 14px;

    border-radius: 10px;

    color: #5d6b82;

    text-decoration: none;

    font-size: 0.83rem;
    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;

    background:
        rgba(37, 99, 235, 0.07);
}


/* AREA UTENTE */

.nav-user {
    position: relative;

    margin-left: auto;
}


/* LOGIN */

.nav-login {
    display: flex;
    align-items: center;

    min-height: 43px;

    padding: 0 17px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.28);
}


/* PROFILO */

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    border: 0;

    padding: 5px 9px 5px 5px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.55);

    color: var(--text);

    cursor: pointer;

    font: inherit;

    transition:
        background 0.2s ease;
}

.user-profile:hover {
    background:
        rgba(255, 255, 255, 0.9);
}


/* AVATAR */

.avatar {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: white;

    font-size: 0.78rem;
    font-weight: 800;

    box-shadow:
        0 5px 15px rgba(37, 99, 235, 0.2);
}

.avatar-large {
    width: 48px;
    height: 48px;
}


/* DATI UTENTE */

.user-info {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    max-width: 150px;
}

.user-info strong {
    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 0.76rem;
}

.user-info small {
    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #7a8799;

    font-size: 0.64rem;
}

.user-arrow {
    width: 16px;
    height: 16px;

    color: #7a8799;

    transition:
        transform 0.2s ease;
}

.user-profile[aria-expanded="true"] .user-arrow {
    transform: rotate(180deg);
}


/* DROPDOWN */

.user-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 280px;

    padding: 10px;

    border:
        1px solid
        rgba(255,255,255,0.85);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.9);

    box-shadow:
        0 20px 55px rgba(30,50,80,0.15);

    backdrop-filter: blur(24px);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.97);

    transform-origin: top right;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* USER DROPDOWN */

.dropdown-user {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px;
}

.dropdown-user > div {
    min-width: 0;
}

.dropdown-user strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 0.8rem;
}

.dropdown-user span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #7a8799;

    font-size: 0.66rem;
}


/* DIVISORE */

.dropdown-divider {
    height: 1px;

    margin: 7px 4px;

    background:
        rgba(30, 50, 80, 0.07);
}


/* VOCI */

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 10px;

    border-radius: 10px;

    color: #4f5e74;

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-item:hover {
    background:
        rgba(37, 99, 235, 0.07);

    color: #2563eb;
}

.dropdown-icon {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background:
        rgba(37, 99, 235, 0.07);
}

.dropdown-icon svg {
    width: 16px;
    height: 16px;
}

.logout-item {
    color: #dc2626;
}

.logout-item:hover {
    color: #dc2626;

    background:
        rgba(220, 38, 38, 0.07);
}


/* =====================================================
   HAMBURGER
===================================================== */

.hamburger {
    display: none;

    width: 44px;
    height: 44px;

    margin-left: auto;

    padding: 0;

    border: 0;
    border-radius: 12px;

    background:
        rgba(255,255,255,0.7);

    cursor: pointer;
}

.hamburger span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    border-radius: 5px;

    background: #344054;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =====================================================
   MENU MOBILE
===================================================== */

.mobile-menu {
    display: none;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.mobile-link {
    padding: 14px;

    border-radius: 12px;

    color: #526075;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
    background:
        rgba(37,99,235,0.07);

    color: #2563eb;
}

.mobile-login,
.mobile-logout {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin-top: 8px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 700;
}

.mobile-logout {
    background:
        rgba(220,38,38,0.08);

    color: #dc2626;
}

.mobile-user {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 8px;
    padding: 12px;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.55);
}

.mobile-user strong,
.mobile-user small {
    display: block;
}

.mobile-user strong {
    font-size: 0.8rem;
}

.mobile-user small {
    margin-top: 3px;

    color: #7a8799;

    font-size: 0.65rem;
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 35px;
}

.primary-button,
.secondary-button {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 20px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 0.82rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    box-shadow:
        0 10px 25px rgba(37,99,235,0.22);
}

.primary-button svg {
    width: 18px;
    height: 18px;
}

.primary-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 30px rgba(37,99,235,0.28);
}

.secondary-button {
    border:
        1px solid
        rgba(37,99,235,0.12);

    background:
        rgba(255,255,255,0.65);

    color: #526075;
}

.secondary-button:hover {
    transform: translateY(-3px);

    background:
        rgba(255,255,255,0.9);
}


/* =====================================================
   RESPONSIVE NAVBAR
===================================================== */

@media (max-width: 850px) {

    .navbar-wrapper {
        padding:
            12px
            12px
            0;
    }

    .navbar {
        height: 64px;

        padding:
            0
            10px
            0
            14px;

        border-radius: 18px;
    }

    .nav-links,
    .nav-user {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu {
        display: block;

        width: min(
            1180px,
            calc(100% - 24px)
        );

        margin:
            10px auto 0;

        padding: 10px;

        border:
            1px solid
            rgba(255,255,255,0.85);

        border-radius: 18px;

        background:
            rgba(255,255,255,0.9);

        box-shadow:
            0 20px 50px rgba(30,50,80,0.12);

        backdrop-filter: blur(22px);

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px)
            scale(0.98);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0)
            scale(1);
    }
}


@media (max-width: 600px) {

    .brand-name {
        font-size: 0.92rem;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

/* Footer principale */
.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 22px 40px;

    background: rgba(255, 255, 255, 0.78);

    border-top: 1px solid rgba(15, 23, 42, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Contenitore interno del footer */
.footer-content {
    width: min(1400px, 100%);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* Parte sinistra */
.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #64748b;
    font-size: 0.85rem;
}

/* Nome istituto */
.footer-left strong {
    color: #1e3a8a;
    font-size: 0.95rem;
}

/* Parte destra */
.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;

    color: #64748b;
    font-size: 0.85rem;
}

/* Link */
.footer-right a {
    color: #475569;
    text-decoration: none;
    cursor: pointer;

    transition: color 0.2s ease;
}

/* Hover sui link */
.footer-right a:hover {
    color: #2563eb;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }
}


/* =========================================================
   RESPONSIVE - SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

    .site-footer {
        padding: 20px 15px;
    }

    .footer-content {
        gap: 12px;
    }

    .footer-left {
        flex-direction: column;
        gap: 5px;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }
}


/* =========================================================
   SCHERMI MOLTO PICCOLI
   ========================================================= */

@media (max-width: 380px) {

    .footer-left,
    .footer-right {
        font-size: 0.78rem;
    }
}
