:root {
    /* Color Palette V2 - Design Final */
    --bg: #FDFCF0;              /* Beige caldo */
    --bg-soft: #f3ebdd;
    --text: #282223;            /* Nero profondo */
    --text-soft: #5c544b;
    --accent: #ff6b2d;          /* Arancio */
    --accent-dark: #e53c00;

    /* Boot Vars */
    --term-bg: #120800;
    --term-text: #F25C05;
    --term-glow: rgba(242, 92, 5, 0.4);
	
	/*Background Size*/
	--bg-size: cover;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

/* BASE (Desktop First logic) */
html, body {
    width: 100%; height: 100%;
    background-color: var(--term-bg);
    font-family: 'Space Grotesk', sans-serif;
    overflow: hidden; /* Questo verrà sovrascritto su mobile */
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==================== 1. INTRO BOOT (Invariato) ==================== */
#intro-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--term-bg);
    background-image: linear-gradient(rgba(18, 8, 0, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    color: var(--term-text);
    font-family: 'VT323', monospace; font-size: 18px; line-height: 1.3;
    z-index: 9999; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 20vh; overflow: hidden; transform-origin: center center;
}
#boot-console { width: 100%; max-width: 650px; display: flex; flex-direction: column; justify-content: flex-start; padding: 0 20px; }
.log-line { display: flex; align-items: center; gap: 15px; margin-bottom: 4px; opacity: 0; text-shadow: 0 0 2px var(--term-glow); animation: fadeInLine 0.05s forwards; }
@keyframes fadeInLine { to { opacity: 1; } }
.status-ok { font-weight: bold; color: var(--term-text); }
.log-line.final-msg { margin-top: 20px; font-size: 22px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; animation: blinkFinal 1s infinite; }
@keyframes blinkFinal { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.crt-off-anim { animation: turnOff 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes turnOff {
    0% { transform: scale(1, 1); opacity: 1; filter: brightness(1); }
    40% { transform: scale(1, 0.005); opacity: 1; filter: brightness(2); }
    100% { transform: scale(0, 0.005); opacity: 0; filter: brightness(0); }
}
.crt-on-anim { display: block !important; animation: turnOn 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes turnOn {
    0% { transform: scale(0, 0.005); opacity: 0; filter: brightness(30); background: #fff;}
    40% { transform: scale(1, 0.005); opacity: 1; filter: brightness(10); }
    100% { transform: scale(1, 1); opacity: 1; filter: brightness(1); }
}

/* ==================== 2. SITE LAYOUT (Desktop) ==================== */
#modern-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg); color: var(--text);
    display: none; transform-origin: 50vw 50vh; z-index: 10;
}

.cursor {
    position: fixed; left: 0; top: 0; width: 14px; height: 14px;
    background-color: var(--accent); border-radius: 50%; pointer-events: none;
    z-index: 10000; transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out; box-shadow: 0 0 10px rgba(242,92,5,0.4);
    mix-blend-mode: normal;
}

.cursor.on-orange {
    background-color: #000 !important;
}

.cursor.hovered { transform: translate(-50%, -50%) scale(2.5); opacity: 0.7; }

/* Header */
header.nav-bar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 35px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 900; background: transparent;
}
.nav-group-right { display: flex; align-items: center; gap: 50px; }
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.brand-logo:hover { opacity: 0.85; }
.logo-icon {
    width: 32px;
    height: 32px;
    background-image: url('../assets/Logo_dark.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}
.logo-unconventional {
    font-family: 'Chillax-Regular', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--accent);
    transition: color 0.3s ease;
}
.logo-minds {
    font-family: 'Chillax-Regular', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text);
    transition: color 0.3s ease, opacity 0.3s ease;
}
.nav-links { display: flex; gap: 40px; }
.nav-item {
    font-family: 'Roboto Mono', sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: 0.05em;
    color: #555; cursor: pointer; position: relative; transition: color 0.3s;
}
.nav-item:hover, .nav-item.active { color: var(--accent); font-weight: 700; }
.nav-item.active.on-orange {
    color: #fff !important;
}

.talk-btn {
    border: 2px solid #000; background: #000; color: var(--accent);
    padding: 20px 28px; font-family: 'Roboto Mono', sans-serif; font-size: 1rem; font-weight: 500;
    transition: all 0.3s; cursor: pointer;
}
.talk-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Scroller logic */
.progress-bar { display: none; } /* Removed orange progress bar */
.scroll-container { position: fixed; top: 0; left: 0; height: 100%; display: flex; will-change: transform; }

/* Contenitore per la progress line e la stella */
.progress-wrapper {
    position: fixed;
    bottom: 19px;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 400;
    pointer-events: none;
}

.section {
    height: 100vh; width: 100vw; flex-shrink: 0; position: relative;
    display: flex; flex-direction: column; justify-content: center; padding: 0 8vw;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.s-home {
    text-align: justify;
	background-image: url('../assets/img/background_orange.webp');
    background-repeat: repeat;
	background-size: --bg-size;
}

/* Linea in basso (ora gestita dal progress-line separato) */
.section::before {
    content: "";
    display: none;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
}

/* Stella mobile lungo la linea */
.section::after {
    content: "";
    display: none;
}

/* Stella fissa che si muove - ora absolute rispetto al wrapper */
.progress-star {
    position: absolute;
    top: 50%;
    font-size: 45px;
    color: #151515;
    opacity: 0.9;
    z-index: 1;
    transition: left 0.3s ease-out, color 0.1s;
    pointer-events: none;
    transform: translate(-50%, -50%); /* Centra perfettamente sulla linea */
}
.progress-star.on-orange {
    color: #fff !important;
}

/* Specific widths for desktop scrolling */
.s-os { width: 100vw; }
.s-proto { width: 100vw; }
.s-inv { width: 100vw; }
.s-cont { width: 100vw; border-right: none; }

/* General Desktop Styling */
.sec-tag {
    font-weight: 500; text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'Roboto Mono', monospace; font-size: 1.2rem; color: var(--accent); letter-spacing: 1px;
}
.intro-blk { position: absolute; top: 17vh; left: 8vw; width: 100%; z-index: 5; }
.tit-2 { font-family: 'Nata Sans', sans-serif; font-weight: 900; font-size: 7rem; line-height: 1; text-transform: uppercase; color: var(--text); margin: 0 0 10px 0; }
.sub-2 { font-size: 1.5rem; color: white; width: 100%; line-height: 1.3; font-family: 'Roboto Mono', monospace; text-transform: uppercase; font-weight: 500; }

.s-cont .sec-tag { left: auto; right: 8vw; text-align: right; }
.s-cont .intro-blk { left: auto; right: 8vw; text-align: right; width: auto; display: flex; flex-direction: column; align-items: flex-end; }
.s-cont .sub-2 { text-align: right; }
.stage { position: absolute; top: 40vh; bottom: 15vh; left: 8vw; right: 8vw; }

/* Content Styles (Desktop) */
.hero-title { font-family: 'Nata Sans', sans-serif; font-weight: 900; color: var(--text); font-size: 12vw; line-height: 0.80; letter-spacing: -5px; margin-left: -6px; margin-bottom: 10px; margin-top: 10px; }
.hero-title span { color: var(--accent); }

/* Hero Content - Layout orizzontale tags + description */
.hero-content {
    display: flex;
	flex-direction: column;
    gap: 60px;
    align-items: flex-start;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.hero-main {
    grid-column: 1 / 2;
}

.hero-aside {
    grid-column: 2 / 3;
    text-align: justify;
    font-family: 'Nata Sans', sans-serif;
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
    margin-top: 10px;
	align-self: center;
}

.hero-tags {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
	margin-top: 50px;
	transform: scaleX(1.3);  /* stira orizzontalmente */
    transform-origin: left;
}
.h-tag {
    font-family: 'Roboto Mono';
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-desc {
    text-align: justify;
    font-family: 'Nata Sans', sans-serif;
    font-size: 1.3rem;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text);
	margin-top: 10px;
}

.hero-desc h2 {
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 12px;
	transform: scaleX(1.35);  /* stira orizzontalmente */
    transform-origin: left;  /* ancoraggio a sinistra */
}

/* Robot Image Styles */
.hero-robot-wrap {
    position: absolute;
    top: 14vh;
    bottom: 60px;
    right: 5vw;
    width: 45%;
    max-width: 600px;
    pointer-events: none;
    z-index: 1;
    display: block;
}
.hero-robot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* OS Styles - Design V2 con doppio bordo */
.s-os {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
}
.s-os::before {
    background: rgba(255,255,255,0.35);
}
.s-os::after {
    color: #fff;
}
.s-os .sec-tag {
    color: white;
}
.s-os .tit-2 {
    font-size: 7rem;
    font-weight: 900;
    letter-spacing: -2px;
}
.s-os .sub-2 {
    color: white;
}
.os-wrap { display: flex; gap: 40px;  width: 100%; align-items: stretch; }
.os-card {
    flex: 1;
    padding: 32px 30px;
    min-height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 3px solid #ffffff;
    transition: transform 0.4s, background 0.4s;
    z-index: 2;
}

.os-card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid #ffffff;
    opacity: 0;
    transition: all 0.4s;
    z-index: 1;
}

.os-card:hover {
    transform: translate(-10px, -12px);
    background-color: rgba(0, 0, 0, 0.182);
}

.os-card:hover .os-card-border {
    opacity: 1;
    top: 10px;
    left: 10px;
    bottom: -10px;
    right: -10px;
}
.os-card h3 { font-family: 'Nata Sans', sans-serif; font-size: 2rem; margin-bottom: 20px; padding-bottom: 20px; position: relative; z-index: 2; color: #fff; font-weight: 800; line-height: 1.1; }
.os-card h3::after { content: ''; position: absolute; bottom: 0; left: -30px; right: -30px; height: 3px; background: #fff; }
.os-card p { font-size: 1.5rem; color: #000; line-height: 1.5; position: relative; z-index: 2; margin-bottom: 24px; flex-grow: 1; }
.os-mono { font-family: 'Roboto Mono'; font-size: 1.2rem; color: white; margin-top: auto; position: relative; z-index: 2; text-transform: uppercase; letter-spacing: 0.18em; }
.os-img-wrap {
    position: absolute;
    inset: 0; /* top:0; left:0; right:0; bottom:0; */
    z-index: 1;
    overflow: hidden;
}

.os-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.4s, filter 0.4s, opacity 0.4s;
    opacity: 0;
}

/* overlay scuro */
.os-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.703);
    opacity: 0;
    transition: opacity 0.4s;
}

.os-card:hover .os-img {
    opacity: 0.4;
    transform: scale(1.05); /* leggero zoom per effetto dinamico */
    filter: grayscale(100%);
}

.os-card:hover .os-img-wrap::before {
    opacity: 1;
}

.os-card:hover .os-img-wrap {
    background-color: black;
}

.os-card:hover p {
    color: #fff;
}

/* Protocol Styles - Design V2 compatte */
.s-proto {
    background-color: var(--bg);
	background-image: url('../assets/img/background_orange.webp');
    background-repeat: repeat;
	background-size: --bg-size;
}
.time-rail { width: 100%; height: 2px; background: #e4ddcf; position: absolute; top: 4px; left: 0; z-index: 5; }
.time-fill { position: absolute; top:0; left:0; height:100%; width:0%; background: var(--accent); }
.robo-head { position: absolute; right: -15px; top: -14px; width: 30px; height: 30px; background: var(--bg); border: 2px solid #000; border-radius: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 3px; }
.eye { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; animation: blink 4s infinite; }
@keyframes blink { 0%,95%,100% {transform: scaleY(1);} 97% {transform: scaleY(0.1);} }

.proto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    height: auto;
    min-height: 70%;
    padding-top: 52px;
    align-items: stretch;
}
.p-card {
    border: 1px solid #000;
    padding: 26px 26px 26px;
    padding-bottom: 90px;
    background: #fdf7ec;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0.3;
    transform: translateY(24px);
    transition: all 0.5s;
    position: relative;
    min-height: 400px;
}
.p-card.active {
    opacity: 1;
    transform: translateY(0);
    border-top: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.05);
}
/* Last card same style as others */
.p-card:last-child {
    background: #fdf7ec;
    color: var(--text);
}
.p-card:last-child .p-title {
    color: var(--text);
}
.p-card:last-child .p-desc {
    color: var(--text);
}
.p-num {
    font-family: 'Roboto Mono';
    color: var(--accent);
    font-size: 1.3rem;
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px;
    background: #191514;
    letter-spacing: 0.16em;
}
.p-title { font-family: 'Nata Sans', sans-serif; font-weight: 900; font-size: 1.7rem; margin-bottom: 10px; text-transform: uppercase; }
.p-desc { font-size: 1.3rem; line-height: 1.4; color: var(--text); font-family: 'Nata Sans'; font-weight: 600; }

/* Investors - Design V2 */
.s-inv {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
}
.s-inv::before {
    background: rgba(255,255,255,0.35);
}
.s-inv::after {
    color: #fff;
}
.s-inv .sec-tag {
    color: #ffe0c9;
}
.inv-container {
    width: 100%;
    height: auto;
    padding: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    background: transparent;
}
.inv-tit {
    font-family: 'Nata Sans', sans-serif;
    font-weight: 900;
    font-size: 7rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    max-width: 100%;
    color: var(--text);
}
.inv-stats {
    display: flex;
    gap: 32px;
}
.inv-stats > div {
    background: #191514;
    padding: 30px 40px;
    font-family: 'Roboto Mono';
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    gap: 10px;
}
.inv-stats small { display: block; color: #fff; font-size: 0.9rem; }
.inv-stats span { color: var(--accent); font-size: 1.3rem; font-weight: 500; }

/* Contacts - Design V2 */
.s-cont {
    background-color: var(--bg);
	background-image: url('../assets/img/background_orange.webp');
    background-repeat: repeat;
	background-size: --bg-size;
}
.s-cont .stage {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 100vh;
    width: 100%;
}
.s-cont .intro-blk {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    text-align: left;
    align-items: flex-start;
    flex: 0 0 auto;
}
.s-cont .tit-2 {
    color: var(--text);
    font-size: 12vw;
	line-height: 0.8;
}
.s-cont .tit-2 .highlight {
    color: var(--accent);
}
.s-cont .sub-2 {
    text-transform: none;
    color: var(--text);
    font-size: 2rem;
    font-family: 'Nata Sans', sans-serif;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
	margin-top: 30px;
}
.contact-stack { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 22px; flex: 0 0 auto; }
.c-btn {
    background: transparent;
    border: 3px solid var(--accent);
    padding: 40px;
    width: 540px;
    height: 26%;
    min-height: 100px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.c-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--accent);
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s;
    z-index: -1;
}
.c-btn:nth-child(2) {
    margin-top: 0;
}
.c-btn:nth-child(3) {
    color: var(--accent);
    border-color: #000;
}
.c-btn:nth-child(3)::before {
    border-color: #000;
}
.c-btn:hover {
    transform: translate(-10px, -12px);
    background: var(--accent);
}
.c-btn:nth-child(3):hover {
    background: #000;
}
.c-btn:hover::before {
    opacity: 1;
    top: 10px;
    left: 10px;
    bottom: -10px;
    right: -10px;
}
.c-txt { text-align: left; }
.c-sub { font-family: 'Roboto Mono'; font-size: 1.3rem; color: #000; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.18em; }
.c-tit { font-family: 'Nata Sans', sans-serif; font-weight: 900; font-size: 2.2rem; color: #000; }
.c-btn:nth-child(3) .c-sub { color: var(--accent); }
.c-btn:nth-child(3) .c-tit { color: var(--accent); }
.c-arr { font-size: 2rem; }
.footer { position: absolute; bottom: 26px; right: 8vw; left: auto; font-family: 'Roboto Mono'; font-size: 0.7rem; color: #aaa; letter-spacing: 0.16em; text-align: right; text-transform: uppercase; }


/* ============================================================
   3. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Retina 15" MacBook Pro & similar (1680px effective) */
@media (max-width: 1680px) {
    .hero-title { font-size: 9vw; }
    .tit-2 { font-size: 4.5rem; }
    .sub-2 { font-size: 1.1rem; }
    .hero-desc { font-size: 1rem; }
    .hero-desc h2 { font-size: 1.5rem; }
    .hero-aside { font-size: 1.1rem; }
    .inv-tit { font-size: 4.5rem; }
    .s-cont .tit-2 { font-size: 6rem; }
    .s-os .tit-2 { font-size: 4.5rem; }
    .s-proto .tit-2 { font-size: 3.8rem; }
    .os-card p { font-size: 1.1rem; }
    .os-card h3 { font-size: 1.7rem; }
    .p-title { font-size: 1.6rem; }
    .p-desc { font-size: 0.95rem; }
    .c-tit { font-size: 1.7rem; }
    .c-sub { font-size: 1rem; }
    .progress-star { font-size: 35px; }
}

/* Retina 13" MacBook & similar (1440px effective) */
@media (max-width: 1440px) {
    .hero-title { font-size: 6.5vw; }
    .tit-2 { font-size: 3rem; }
    .sub-2 { font-size: 0.9rem; }
    .hero-desc { font-size: 0.85rem; }
    .hero-desc h2 { font-size: 1.2rem; }
    .hero-aside { font-size: 1rem; }
    .sec-tag { font-size: 0.85rem; }
    .inv-tit { font-size: 3rem; }
    .inv-stats span { font-size: 1rem; }
    .inv-stats { font-size: 1.2rem; }
    .s-cont .tit-2 { font-size: 4.5rem; }
    .s-os .tit-2 { font-size: 3rem; }
    .s-proto .tit-2 { font-size: 2.5rem; }
    .os-card p { font-size: 0.95rem; }
    .os-card h3 { font-size: 1.4rem; }
    .os-mono { font-size: 0.85rem; }
    .p-title { font-size: 1.2rem; }
    .p-desc { font-size: 0.8rem; }
    .p-num { font-size: 0.8rem; }
    .c-tit { font-size: 1.4rem; }
    .c-sub { font-size: 0.85rem; }
    .progress-star { font-size: 30px; }
}

@media (max-width: 1280px) {
    .hero-title { font-size: 5.5vw; }
    .tit-2 { font-size: 2.5rem; }
    .sub-2 { font-size: 0.85rem; }
    .hero-desc { font-size: 0.8rem; }
    .hero-desc h2 { font-size: 1rem; }
    .hero-aside { font-size: 0.9rem; }
    .sec-tag { font-size: 0.75rem; }
    .os-card h3 { font-size: 1.2rem; }
    .os-card p { font-size: 0.85rem; }
    .os-mono { font-size: 0.75rem; }
    .inv-tit { font-size: 2.5rem; }
    .inv-stats span { font-size: 0.95rem; }
    .inv-stats { font-size: 1.1rem; }
    .c-tit { font-size: 1.3rem; }
    .s-cont .tit-2 { font-size: 3.8rem; }
    .s-cont .sub-2 { font-size: 0.85rem; }
    .s-os .tit-2 { font-size: 2.5rem; }
    .s-proto .tit-2 { font-size: 2rem; }
    .p-title { font-size: 1.1rem; }
    .p-desc { font-size: 0.75rem; }
    .p-num { font-size: 0.75rem; }
    .c-sub { font-size: 0.8rem; }
    .progress-star { font-size: 26px; }
}

/* Tablet Landscape & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .hero-title { font-size: 7vw; }
    .tit-2 { font-size: 2.8rem; }
    .sub-2 { font-size: 0.95rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-desc h2 { font-size: 1.2rem; }
    .hero-aside { font-size: 0.95rem; }
    .sec-tag { font-size: 0.8rem; }

    /* OS Cards più strette */
    .os-wrap { gap: 20px; }
    .os-card { min-width: 280px; }
    .os-card h3 { font-size: 1.5rem; }
    .os-card p { font-size: 0.95rem; }
    .os-mono { font-size: 0.8rem; }
    .s-os .tit-2 { font-size: 2.8rem; }

    /* Protocol cards più compatte */
    .p-card { min-width: 220px; padding: 30px 20px; }
    .p-title { font-size: 1.4rem; }
    .p-desc { font-size: 0.85rem; }
    .p-num { font-size: 0.8rem; }
    .s-proto .tit-2 { font-size: 2.3rem; }

    /* Contact buttons */
    .c-tit { font-size: 1.5rem; }
    .c-sub { font-size: 0.7rem; }
    .s-cont .tit-2 { font-size: 4rem; }
    .s-cont .sub-2 { font-size: 1rem; }
    .inv-tit { font-size: 2.8rem; }
    .inv-stats { font-size: 1.1rem; }
    .inv-stats span { font-size: 0.9rem; }
}

/* MOBILE ENGINE (APPROCCIO VERSIONE 31)
   Qui resettiamo tutta la logica desktop e passiamo allo scroll nativo
   ============================================================ */
@media (max-width: 768px) {
    /* Reset Cursor & Interaction */
    * { cursor: auto !important; }
    .cursor { display: none; }

    /* Hide progress bar and star on mobile */
    .progress-wrapper { display: none; }
    .progress-line { display: none; }
    .progress-star { display: none; }

    /* Native Scroll ON */
    html, body {
        overflow-y: auto !important;
        height: auto !important;
        width: 100% !important;
    }

    #modern-layer {
        position: relative;
        transform: none !important;
        overflow-x: hidden;
    }

    .scroll-container {
        position: relative;
        height: auto;
        display: block; /* Stop flex horizontal */
        width: 100%;
        transform: none !important; /* Stop JS transforms */
        flex-direction: column;
    }

    /* SECTIONS VERTICAL */
    .section {
        width: 100% !important;
        height: auto;
        min-height: 90vh;
        padding: 100px 20px;
        border-right: none;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Header Mobile */
    header.nav-bar {
        padding: 20px;
        background: #ffffff;
        border-bottom: 1px solid #eee;
        position: fixed;
    }
    .nav-links { display: none; } /* Hide links for cleanliness on small screens */
    .talk-btn { padding: 10px 15px; font-size: 0.7rem; }
    .brand-logo { max-width: 60%; }
    .logo-icon { width: 24px; height: 24px; }
    .logo-icon::before { width: 8px; height: 8px; }
    .logo-unconventional { font-size: 0.65rem; }
    .logo-minds { font-size: 0.65rem; }

    /* Content Reflow */
    .sec-tag { position: relative; top: auto; left: 0; margin-bottom: 15px; display:block; }
    .intro-blk { position: relative; top: auto; left: 0; width: 100%; margin-bottom: 30px; }
    .stage { position: relative; top: auto; left: 0; right: 0; bottom: auto; height: auto; width: 100%; }

    /* Robot Mobile Styles */
    .hero-robot-wrap {
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
        width: 80%;
        max-width: 400px;
        margin: 40px auto;
        display: block;
    }
    .hero-robot {
        width: 100%;
        height: auto;
    }

    /* Title Adjustments */
    .hero-title { font-size: 16vw; margin-top: 0px; margin-left: 0; letter-spacing: -1px; line-height: 0.85; }
    .tit-2 { font-size: 2.5rem !important; }
    .sub-2 { font-size: 0.75rem !important; }

    /* Last section title bigger on mobile */
    .s-cont .tit-2 { font-size: 4.5rem !important; line-height: 0.9; }

    /* Hero Content Mobile - Rimani verticale */
    .hero-content {
        flex-direction: column;
        gap: 20px;
    }
    .hero-tags {
        flex-direction: column;
        gap: 8px;
    }
    .h-tag {
        font-size: 0.7rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    .hero-main {
        order: 1;
    }

    .hero-aside {
        order: 2;
        text-align: left;
        font-size: 1rem;
        line-height: 1.4;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .hero-desc h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* OS Vertical Stack */
    .os-wrap { flex-direction: column; gap: 20px; }
    .os-card { min-height: 350px; border-top: 4px solid #ffffff; box-shadow: none; }

    /* Protocol Vertical */
    .time-rail { display: none; }
    .proto-grid {
        display: flex; flex-direction: column;
        gap: 20px; padding-top: 0;
    }
    .p-card {
        opacity: 1; transform: none;
        min-height: 280px;
        border-top: 4px solid #000; /* Simulo il look "attivo" sempre */
        padding-bottom: 80px;
    }

    /* Investors Fix */
    .inv-container { width: 100%; height: auto; margin: 0; padding: 40px 20px; }
    .inv-stats { flex-direction: column; gap: 20px; }
    .inv-tit { font-size: 2.5rem; }

    /* Contact Stack Fix */
    .contact-stack { width: 100%; margin-top: 10px; justify-content: flex-start; align-items: stretch; }
    .c-btn { width: 100%; height: auto; padding: 30px 20px; margin-bottom: 0; flex-direction: row; }
    .c-tit { font-size: 1.5rem; }

    /* Contact Override (Scont) */
    .s-cont .stage { flex-direction: column; align-items: flex-start; gap: 15px; }
    .s-cont .intro-blk { margin-bottom: 0; }
    .s-cont .sec-tag, .s-cont .intro-blk { text-align: left; align-items: flex-start; right: auto; }
    .footer { position: relative; right: auto; bottom: 0; left: 0; margin-top: 50px; text-align: left; width: 100%; }

    /* Boot Console Adjust */
    #intro-layer { padding-top: 100px; }
    #boot-console { font-size: 12px; padding: 0 15px; }
}
