@import url('https://fonts.cdnfonts.com/css/nimbus-sans-d-ot');
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-lt-w1g');
@import url("https://rsms.me/inter/inter.css");

@supports (font-variation-settings: normal) {
    html {
        font-family: "Inter var", sans-serif;
    }
}

:root {
    --default-hiding-transition: ease-in-out;

    /* palette più chiara */
    --bg-body: #0b1220;
    --bg-main-overlay: rgba(15, 23, 42, 0.82);
    --accent: #fde047;
    --accent-soft: rgba(250, 224, 47, 0.22);
    --accent-strong: #eab308;
    --text-primary: #f9fafb;
    --text-muted: #6b7280;
    --border-subtle: rgba(148, 163, 184, 0.3);
    --card-bg: rgba(15, 23, 42, 0.96);
    --glass-bg: rgba(15, 23, 42, 0.9);
}

* {
    cursor: url("dot-black.svg") 25 25, none;
    box-sizing: border-box;
}

html,
body,
main {
    font-family: "Nimbus Sans D OT", "Helvetica Neue LT W1G", sans-serif;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

main {
    transition: opacity 1.1s cubic-bezier(0.37, 0, 0.63, 1);
    opacity: 0;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.22), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(250, 224, 47, 0.18), transparent 55%),
        url("bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-body);
    user-select: none;
}

main.loaded {
    opacity: 1;
}

/* HEADER / NAV ------------------------------------------------ */

header {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    border-radius: 2.5rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92));
    color: white;
    height: calc(100% - 3rem);
    display: flex;
    flex-direction: column-reverse;
    width: clamp(3.4rem, 7vw, 4.6rem);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    z-index: 10;
    padding: 2.25rem 1.15rem;
    transition: border-radius .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
    backdrop-filter: blur(22px);
}

header:hover,
header:has(:hover) {
    border-radius: 1.25rem;
    transform: translateY(-4px);
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    box-shadow:
        0 22px 60px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.3);
}

header,
header * {
    cursor: url("dot-white.svg") 25 25, none;
}

.header-logo {
    display: flex;
    justify-content: center;
}

.logo-pill {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.35);
    transition: transform .4s ease, box-shadow .3s ease;
}

.header-logo img {
    width: 1.55rem;
    height: 1.55rem;
    transition: transform 18s linear;
}

.header-logo:hover img {
    transform: rotate(10000deg);
}

.header-logo:hover .logo-pill {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 18px 35px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.55);
}

header h4 {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 600;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    font-size: .82rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #e5e7eb;
    text-shadow: 0 0 6px rgba(15, 23, 42, 0.7);
}

header a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

header a div {
    height: 100%;
    display: flex;
    padding: 1rem 0;
    position: relative;
}

.nav-item-vertical::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block: .6rem;
    margin-inline: auto;
    width: .18rem;
    border-radius: 999px;
    background: linear-gradient(to bottom, transparent, rgba(148, 163, 184, 0.8), transparent);
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: 50% 100%;
    transition: opacity .2s ease, transform .2s ease;
}

header a:hover h4 {
    color: #e5e7eb;
}

header a:hover .nav-item-vertical::before {
    opacity: 1;
    transform: scaleY(1);
}

header a:hover {
    text-decoration: none;
}

header .header-line {
    height: calc(100% - 5rem);
    width: 0.09rem;
    background: linear-gradient(to bottom, transparent, rgba(191, 219, 254, 0.7), transparent);
    margin: 1rem 0;
    transition: margin .25s ease, opacity .2s ease;
    opacity: .9;
}

header .header-line:hover {
    margin: 1.5rem 0;
    opacity: 1;
}

header .header-dot {
    font-size: .8rem;
    text-align: center;
    color: rgba(191, 219, 254, 0.9);
    transition: transform 0.3s ease, color .2s ease;
}

header .header-dot:hover {
    transform: scale(1.5);
    color: var(--accent);
}

/* HERO / MAIN ------------------------------------------------ */

.main-content {
    width: 100%;
    height: 100%;
    padding: 0 2.5rem 4.5rem 9.5rem;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-copy {
    max-width: 40rem;
    padding: 1.75rem 2rem 2.25rem;
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at 0 0, rgba(250, 224, 47, 0.26), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.96));
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(22px);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 120%, rgba(59, 130, 246, 0.4), transparent 55%);
    opacity: 0.25;
    pointer-events: none;
}

.pill-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: var(--text-muted);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.2), transparent 55%);
    position: relative;
    z-index: 1;
}

.pill-label::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: radial-gradient(circle, var(--accent), var(--accent-strong));
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.text-logo {
    line-height: 1.1;
    font-weight: 800;
    font-size: max(3.5rem, 6vw);
    /*margin: .5rem 0 .55rem;*/
    position: relative;
    z-index: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: linear-gradient(120deg, #f9fafb, #e5e7eb 35%, #fde047 70%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-logo .brand-dot {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.text-logo.shimmer {
    -webkit-mask: linear-gradient(-60deg, #000 40%, #0009, #000 80%) right/500% 150%;
    mask: linear-gradient(-60deg, #000 40%, #0009, #000 80%) right/500% 150%;
    background-repeat: no-repeat;
    animation: shimmer 6s infinite;
    animation-delay: 1s;
}

.hero-subtitle {
    margin: 0 0 1.3rem;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 30rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    position: relative;
    z-index: 1;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-hero.primary {
    background: radial-gradient(circle at 0 0, #fef3c7, #facc15);
    color: #111827;
    box-shadow:
        0 12px 25px rgba(250, 204, 21, 0.45),
        0 0 0 1px rgba(251, 191, 36, 0.6);
}

.btn-hero.primary:hover {
    transform: translateY(-2px);
    background: radial-gradient(circle at 0 0, #fffbeb, #facc15);
    box-shadow:
        0 18px 35px rgba(250, 204, 21, 0.6),
        0 0 0 1px rgba(251, 191, 36, 0.9);
}

.btn-hero.ghost {
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
    border-color: rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.85),
        0 0 0 1px rgba(15, 23, 42, 0.7);
}

.btn-hero.ghost:hover {
    transform: translateY(-2px);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    border-color: rgba(148, 163, 184, 0.9);
}

/* BG ICONS / DECOR ----------------------------------------- */

.bg-icons {
    justify-content: flex-end;
    max-height: 40vh;
    margin-top: 1.5rem;
    margin-right: 3rem;
    margin-bottom: 1rem;
    mix-blend-mode: normal;     /* prima era lighten, su alcuni schermi spariva */
    opacity: 0.95;
}

.globe img {
    height: min(19vw, 110%);
    background: radial-gradient(circle at 50% 30%, #f9fafb, #e5e7eb);
    border-radius: 50%;
    transform: rotate(23.5deg);
    transition: transform 0.5s ease, background 0.5s ease, box-shadow .5s ease;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.55),
        0 0 0 1px rgba(148, 163, 184, 0.5);
}

.stars img {
    height: max(6vw, calc((25vh - 1.5rem)/3));
    width: max(6vw, calc((25vh - 1.5rem)/3));
    transition: transform 16s linear, filter .3s ease, opacity .3s ease;
    opacity: 1;                 /* più visibili */
    filter: drop-shadow(0 0 10px rgba(148, 163, 184, 0.7));
}

.globe:hover img {
    transform: rotateY(180deg) rotateX(180deg);
    background: radial-gradient(circle at 50% 30%, #eff6ff, #e0f2fe);
}

.circles {
    margin-right: .75rem;
}

.circle {
    width: 5.2vw;
    height: 5.2vw;
    margin: .3vw 0;
    border-radius: 50%;
}

.empty-circle {
    background-color: rgba(15, 23, 42, 0.9);
    border: .35vw solid rgba(148, 163, 184, 0.9);
    transition: transform 0.35s ease, box-shadow .3s ease;
}

.empty-circle:hover,
.filled-circle:hover {
    transform: translateY(.65vw);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.filled-circle {
    background: radial-gradient(circle at 30% 20%, #f9fafb, #e5e7eb);
    transition: transform 0.35s ease, box-shadow .3s ease;
}

.half-circle {
    border: .35vw solid rgba(148, 163, 184, 0.85);
    overflow: hidden;
    transition: transform 139s linear, box-shadow .3s ease;
    background-color: rgba(15, 23, 42, 0.9);
}

.half-circle:hover {
    transform: rotate(10000deg);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
}

.half-circle .one {
    height: 100%;
    width: 50%;
    background-color: rgba(148, 163, 184, 0.95);
    border-right: .35vw solid rgba(148, 163, 184, 0.95);
}

.half-circle .two {
    display: inline-block;
    background-color: rgba(15, 23, 42, 0.95);
    height: 100%;
    width: 50%;
}

.bar {
    height: min(17.5vw, 100%);
    width: min(1.5vw, 4rem);
    margin-left: max(.5rem, 1vw);
    margin-right: max(1rem, 2.25vw);
    transition: transform 0.4s ease;
    transform-origin: 50% 100%;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
}

.bar-wrapper:hover .bar {
    transform: rotate(-12.5deg);
}

.bar .bar-block {
    height: 100%;
    width: 100%;
}

.bar .bar-block:nth-child(odd) {
    background: linear-gradient(180deg, #e5e7eb, #cbd5f5);
}

.bar .bar-block:nth-child(even) {
    background-color: #020617;
}

/* IMMAGINI -------------------------------------------------- */

img {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.stars {
    filter: brightness(0.98);
}

.stars img {
    height: max(6vw, calc((25vh - 1.5rem)/3));
    width: max(6vw, calc((25vh - 1.5rem)/3));
    transition: transform 16s linear, filter .3s ease;
    opacity: .85;
}

.stars img:nth-child(even) {
    transform: rotate(45deg);
}

.stars img:hover {
    transform: rotate(10000deg);
    filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.7));
}

.stars img:nth-child(odd):hover {
    animation-name: spin;
}

.stars img:nth-child(even):hover {
    animation-name: rotated-star-spin;
}

/* PRELOADER ------------------------------------------------- */

/* Preloader container */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* portato sopra tutto */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(20,28,40,0.72) 0%, rgba(8,16,28,0.66) 100%);
    cursor: url("dot-white.svg") 25 25, default;
    transition: opacity 0.3s ease;
}

/* Circle Progress component */
circle-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease;
    z-index: 10;
}

/* Circle Progress parts */
circle-progress::part(base) {
    width: 3.5rem;
    height: 3.5rem;
}

circle-progress::part(text) {
    display: none;
}

circle-progress::part(value) {
    stroke: #fff;
    stroke-width: 8px; /* più moderno, meno massiccio */
    transition: stroke 0.3s ease;
}

circle-progress::part(circle) {
    stroke: #444; /* colore più neutro */
}

/* Shimmer effect for loading animation */
circle-progress.shimmer {
    -webkit-mask: linear-gradient(-60deg, #000 50%, #0009, #000 80%) right/600% 150%;
    mask: linear-gradient(-60deg, #000 50%, #0009, #000 80%) right/600% 150%;
    background-repeat: no-repeat;
    animation: shimmer 3s infinite;
    animation-delay: 1.5s;
}

/* Static circle behind loader - aggiornato colore */
.static-circle-progress {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(0, 123, 255, 0.2); /* blu chiaro trasparente */
    border-radius: 50%;
    position: absolute;
    z-index: 5;
    transition: transform 0.6s ease, background-color 0.3s ease;
}

/* Shimmer keyframes */
@keyframes shimmer {
    0% { background-position: -600% 0; }
    100% { background-position: 600% 0; }
}


/* .preloader {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(20,28,40,.72) 0%, rgba(8,16,28,.66) 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url("dot-white.svg") 25 25, none;
}

circle-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s ease;
    z-index: 1;
}

circle-progress::part(base) {
    width: 3.5rem;
    height: 3.5rem;
}

circle-progress::part(text) {
    display: none;
}

circle-progress::part(value) {
    stroke: #fff;
    stroke-width: 50px;
}

circle-progress::part(circle) {
    stroke: #000;
}

circle-progress.shimmer {
    -webkit-mask: linear-gradient(-60deg, #000 50%, #0009, #000 80%) right/600% 150%;
    mask: linear-gradient(-60deg, #000 50%, #0009, #000 80%) right/600% 150%;
    background-repeat: no-repeat;
    animation: shimmer 3s infinite;
    animation-delay: 1.5s;
}

.static-circle-progress {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #fff;
    border-radius: 50%;
    transition: transform .6s ease;
    position: absolute;
    z-index: -1;
} */

/* BULLETIN -------------------------------------------------- */

.bulletin {
    width: 100%;
    max-width: max(35vw, 20rem);
    max-height: 40vh;
    padding: 1rem 1.25rem;
    border-radius: 1.25rem;
    position: fixed;
    top: 2.5rem;
    left: 9.5rem;
    overflow-y: auto;
    z-index: 12;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .25s ease;
}

.bulletin.bulletin-moving {
    transform: scale(0.98);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.bulletin-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bulletin-body {
    height: 100%;
    text-align: justify;
    position: relative;
    z-index: 1;
}

.bulletin-head h3 {
    font-weight: 700;
}

.bulletin-text {
    font-size: max(1.02rem, 1.1vw);
    line-height: max(1.7vw, 1.35rem);
    margin-bottom: 0;
    font-weight: 300;
    color: var(--text-primary);
}

.bulletin-close {
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
    text-align: center;
    line-height: 2rem;
    background-color: rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    flex-shrink: 0;
}

.bulletin-close i {
    line-height: 2rem;
}

.bulletin-close:hover {
    background: rgba(148, 163, 184, 0.35);
    color: #f9fafb;
    transform: translateY(-1px);
}

.acrylic {
    backdrop-filter: blur(18px);
}

.acrylic.acrylic-light {
    background-color: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}

/* POWERED BY ------------------------------------------------ */

.powered-by {
    background-color: rgba(15, 23, 42, 0.96);
    height: 1.9rem;
    text-align: center;
    font-size: .78rem;
    color: #e5e7eb;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    padding: .25rem .9rem;
    border-radius: 2rem;
    transition: color .2s ease, border-radius .2s ease, background-color .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
    z-index: 11;
}

.powered-by:hover {
    background-color: #f9fafb;
    color: #111827;
    border-radius: .75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.powered-by span {
    padding: 0 .1rem;
}

/* SEARCH OVERLAY ------------------------------------------- */

.search-for-something {
    font-family: "Inter", sans-serif;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(250, 224, 47, 0.32), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.3), transparent 55%),
        #020617;
    color: #f9fafb;
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    padding: 3rem 2rem;
    z-index: 50;
    transition: opacity .3s var(--default-hiding-transition),
        pointer-events .3s var(--default-hiding-transition),
        user-select .3s var(--default-hiding-transition),
        transform .3s var(--default-hiding-transition);
    opacity: 1;
    pointer-events: all;
    align-items: center;
    cursor: url("dot-white.svg") 25 25, none;
}


.search-inner {
    max-width: 34rem;
    width: 100%;
    padding: 2.5rem 2.75rem 3rem;
    border-radius: 1.75rem;
    background: radial-gradient(circle at 0 0, rgba(250, 204, 21, 0.2), transparent 55%),
                rgba(15, 23, 42, 0.96);
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.search-inner::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, transparent, rgba(250, 204, 21, 0.22), transparent 55%);
    opacity: .2;
    mix-blend-mode: screen;
}

.search-for-something h1 {
    font-size: 2.15rem;
    margin-bottom: .75rem !important;
}

.search-subtitle {
    font-size: .98rem;
    color: var(--text-muted);
    max-width: 26rem;
}

.search-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem;
}

.search-for-something a {
    color: inherit;
    text-decoration: none;
}

.search-for-something .rounded-button {
    width: 100%;
    margin-top: .2rem;
    padding: .7rem 1rem;
    border: 1.5px solid rgba(148, 163, 184, 0.6);
    border-radius: .9rem;
    font-size: 1.05rem;
    transition: background-color .18s ease, color .18s ease, border-radius .16s ease, border-color .16s ease, transform .16s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-for-something .rounded-button.primary {
    background: radial-gradient(circle at 0 0, #fef3c7, #facc15);
    color: #111827;
    border-color: rgba(253, 224, 71, 0.9);
    box-shadow:
        0 14px 30px rgba(250, 204, 21, 0.5),
        0 0 0 1px rgba(251, 191, 36, 0.9);
}

.search-for-something .rounded-button.secondary {
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
}

.search-for-something .rounded-button:hover,
.search-for-something a:hover .rounded-button {
    transform: translateY(-2px);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
}

.search-for-something .rounded-button.primary:hover {
    background: radial-gradient(circle at 0 0, #fffbeb, #facc15);
}

.search-for-something .rounded-button.secondary:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.9);
}

.search-for-something.hidden {
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transform: translateY(10px);
}

.search-for-something .close-button {
    color: #9ca3af;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .9rem;
    text-shadow: 0 0 2rem #000;
    cursor: url("dot-white.svg") 25 25, none;
    transition: color .2s ease;
}

.search-for-something .close-button:hover {
    color: #e5e7eb;
}

/* MARQUEE / FOOTER (se li usi) ----------------------------- */

footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
}

.marquee {
    height: 2rem;
    color: #6b7280;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
}

/* ANIMATIONS ----------------------------------------------- */

@keyframes sweep {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotated-star-spin {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

@keyframes shimmer {
    20%,
    100% {
        mask-position: left;
        -webkit-mask-position: left;
    }
}

/* RESPONSIVE ------------------------------------------------ */

@media screen and (max-width: 650px) {
    header {
        flex-direction: row;
        width: calc(100% - 2rem);
        height: max(3.5rem, 8vh);
        left: 1rem;
        top: auto;
        bottom: 1.25rem;
        padding: .65rem 1rem;
        text-align: center;
        transition: bottom 0.3s var(--default-hiding-transition), border-radius 0.2s ease, transform .2s ease;
    }

    header.hidden {
        bottom: -1.5rem;
    }

    header h4 {
        transform: none;
        writing-mode: horizontal-tb;
        letter-spacing: .08em;
        font-size: .72rem;
    }

    .main-content {
        padding: 5.5rem 1.25rem 15vh 1.25rem;
    }

    .hero-copy {
        padding: 1.5rem 1.6rem 1.9rem;
        margin-bottom: .5rem;
        box-shadow:
            0 16px 40px rgba(15, 23, 42, 0.7),
            0 0 0 1px rgba(148, 163, 184, 0.28);
    }

    .hero-subtitle {
        font-size: .95rem;
        max-height: none;
    }

    .btn-hero {
        min-height: 2.7rem;
    }

    .search-inner {
        max-width: 100%;
    }

    .text-logo {
        position: relative;
        width: 100%;
        font-size: min(20vw, 2.7rem);
        letter-spacing: .08em;
    }

    .hero-actions {
        gap: .5rem;
    }

    .btn-hero {
        flex: 1;
        justify-content: center;
    }

    footer {
        bottom: auto;
        top: 1.25rem;
    }

    .marquee {
        padding-top: .25rem;
        height: 2.5rem;
        margin-top: .75rem;
    }

    .spinning-copyright {
        width: 5rem;
        height: 5rem;
    }

    header a,
    header a div {
        min-height: 100%;
        width: 26vw;
    }

    header a div {
        justify-content: center;
    }

    header .header-line {
        display: none;
    }

    header .header-dot:hover {
        transform: none;
    }

    .header-logo {
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
        right: .9rem;
    }

    .logo-pill {
        width: 2.2rem;
        height: 2.2rem;
    }

    .header-logo img {
        width: 1.35rem;
        height: 1.35rem;
    }

    .bg-icons {
        width: 100%;
        margin: 0 0 1.5rem 0;
        position: relative;
        right: 0;
        opacity: 1;
        mix-blend-mode: normal;   /* su mobile niente blend strano */
    }

    .globe img {
        height: 22vh;
    }

    .stars img {
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(148, 163, 184, 0.8));
    }

    .circle {
        width: max(7vw, calc((23vh - 1.5rem)/3));
        height: max(7vw, calc((23vh - 1.5rem)/3));
        border: min(.15rem, .75vw) solid rgba(148, 163, 184, 0.9);
        margin: .15rem 0;
    }

    .circles {
        margin: 0;
    }

    .empty-circle,
    .half-circle {
        border: min(.15rem, .75vw) solid rgba(148, 163, 184, 0.9);
    }

    .empty-circle:hover,
    .filled-circle:hover {
        transform: translateY(1.5vw);
    }

    .bar {
        height: max(10vw, calc((23vh - 1rem)));
        width: .7rem;
        margin-right: 1rem;
    }

    .powered-by {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0;
        height: 1.7rem;
        z-index: 30;
    }

    .powered-by:hover {
        border-radius: 0;
        background-color: rgba(15, 23, 42, 0.96);
        color: #e5e7eb;
    }

    .bulletin {
        width: calc(100% - 2rem);
        max-width: 100%;
        max-height: calc(32.5vh);
        top: 5.6rem;
        left: 1rem;
    }

    .bulletin-text {
        font-size: .95rem;
        line-height: 1.4;
    }

    .search-for-something {
        padding: 2.5rem 1.5rem;
    }

    .search-inner {
        padding: 2.2rem 1.8rem 2.4rem;
    }

    .search-for-something .rounded-button {
        font-size: 1rem;
    }

    
}

@media screen and (max-height: 600px) and (max-width: 650px) {
    .bg-icons {
        position: absolute;
        top: max(6rem, 7rem - 14vh);
        right: 1.5rem;
    }

    .circle {
        height: calc((23vh - 1.5rem)/3);
        width: calc((23vh - 1.5rem)/3);
    }

    .stars img {
        height: calc((25vh - 1.5rem)/3);
        width: calc((25vh - 1.5rem)/3);
    }

    .text-logo {
        font-size: min(17vh, 3.8rem);
    }

    header {
        height: 3.25rem;
        bottom: 1rem;
    }

    .main-content {
        padding-bottom: calc(1rem + 3.25rem + 2vh);
        padding-top: calc(1.5rem + 3rem);
    }

    .marquee {
        margin-top: .25rem;
        font-size: 1rem;
    }
}

/* OVERRIDE GRANDEZZA GLOBE (DESKTOP) */
.bg-icons {
    max-height: 52vh;          /* un po' più alto */
    align-items: center;
}

.globe img {
    height: clamp(200px, 24vw, 260px);  /* molto più grande e reattivo */
    width: auto;
}

/* MOBILE */
@media (max-width: 650px) {
    .globe img {
        height: clamp(160px, 28vh, 180px);
        width: auto;
    }

    .bg-icons {
        max-height: none;
        margin-bottom: 1.25rem;
    }
}

/* Preloader should not block interactivity unless explicitly active */
.preloader {
  z-index: 9998 !important;
  pointer-events: none; /* allow clicks if preloader isn't actively shown */
}

/* limit the global custom cursor to non-touch devices (desktop) */
@media (hover: hover) and (pointer: fine) {
  * {
    cursor: url("dot-black.svg") 25 25, auto;
  }
}
@media (hover: none) and (pointer: coarse) {
  /* on touch devices do not use custom cursor */
  * { cursor: auto !important; }
}


/* Ensure elements which should receive clicks are on top */
.search-inner, .search-hinner, .rounded-button, .search-for-something .close-button {
  pointer-events: auto !important;
  z-index: 10000 !important;
}

/* fallback: if any element unwittingly covered the page, ensure it isn't fullscreen invisible */
*[style*="pointer-events: none"] { -webkit-tap-highlight-color: transparent; }