/* style.css - Stile globale per il progetto I Bolscevichi */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&amp;family=Space+Mono:wght@400;700&amp;family=Inter:wght@300;400;600;700&amp;display=swap');

:root {
    --primary-yellow: #F4E04D;
    --dark-bg: #2C2C2C;
    --olive-dark: #5C5E3A;
    --olive-light: #7A7D4B;
    --text-light: #E8E8E8;
    --accent-orange: #FF6B35;
    --card-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px; height: 10px;
    background: var(--primary-yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}
.cursor-follower {
    position: fixed;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(244, 224, 77, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 20px; height: 20px; }
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower { width: 54px; height: 54px; opacity: 0.5; }
@media (max-width: 768px) { .cursor, .cursor-follower { display: none; } body { cursor: auto; } }

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 8px rgba(244,224,77,0.6);
}

/* ===== SPLASH SCREEN ===== */
#splash {
    position: fixed; inset: 0;
    background: #1a1a1a;
    z-index: 99997;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
#splash.hide {
    opacity: 0; transform: scale(1.05); pointer-events: none;
}
.splash-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 9rem);
    color: var(--primary-yellow);
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}
.splash-logo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, #1a1a1a 50%, transparent 100%);
    animation: scanline 1.5s ease forwards;
}
@keyframes scanline {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
.splash-sub {
    font-family: 'Space Mono', monospace;
    color: var(--olive-light);
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.3em;
    animation: fadeIn 1s ease 0.5s both;
}
.splash-bar {
    width: 200px; height: 3px;
    background: rgba(244,224,77,0.2);
    margin-top: 2.5rem;
    border-radius: 2px;
    overflow: hidden;
}
.splash-fill {
    height: 100%;
    background: var(--primary-yellow);
    animation: fillBar 1.8s ease forwards;
    box-shadow: 0 0 10px rgba(244,224,77,0.5);
}
@keyframes fillBar {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== NOISE OVERLAY ===== */
body::before {
    content: '';
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* Animated Background */
.bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.15;
}

/* ===== HEADER ===== */
header {
    position: relative; height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; overflow: hidden; padding: 2rem;
}
.hero-background {
    position: absolute; inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(122,125,75,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(92,94,58,0.3) 0%, transparent 50%);
    z-index: 0;
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}
@keyframes heroBgPulse {
    from { opacity: 0.8; transform: scale(1); }
    to   { opacity: 1; transform: scale(1.05); }
}
.header-content {
    position: relative; z-index: 1;
    animation: fadeInUp 1.2s ease-out;
    max-width: 900px;
}
.logo-title { margin-bottom: 3rem; text-align: center; }

/* ===== GLITCH TITLE ===== */
h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--primary-yellow);
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(244, 224, 77, 0.4);
    line-height: 0.9; margin-bottom: 1rem;
    position: relative;
}
h1::before, h1::after {
    content: attr(data-text);
    position: absolute; inset: 0;
    opacity: 0;
}
h1::before {
    color: var(--accent-orange);
    animation: glitch1 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
h1::after {
    color: #4daaff;
    animation: glitch2 4s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
    0%,90%,100% { opacity: 0; transform: none; }
    91% { opacity: 0.7; transform: translate(-3px, 2px) skewX(-5deg); }
    93% { opacity: 0; }
    95% { opacity: 0.5; transform: translate(3px, -2px) skewX(3deg); }
    97% { opacity: 0; }
}
@keyframes glitch2 {
    0%,90%,100% { opacity: 0; transform: none; }
    92% { opacity: 0.6; transform: translate(3px, -2px) skewX(4deg); }
    94% { opacity: 0; }
    96% { opacity: 0.4; transform: translate(-2px, 2px); }
    98% { opacity: 0; }
}

.title-divider {
    width: 200px; height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}
.title-divider::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.subtitle {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-light);
    margin-top: 2rem; opacity: 0.9; line-height: 1.4;
}
.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-yellow);
    width: 0;
    animation: typing 2s steps(20,end) 2s forwards, blink 0.7s step-end infinite;
}
@keyframes typing { to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }

.location-badge {
    display: inline-block;
    background: rgba(244, 224, 77, 0.1);
    border: 1px solid rgba(244, 224, 77, 0.3);
    padding: 0.5rem 1.5rem; border-radius: 25px;
    margin-top: 2rem;
    font-family: 'Space Mono', monospace; font-size: 1rem;
    color: var(--primary-yellow);
    animation: fadeIn 1s ease 1.5s both;
}
.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}
.scroll-indicator::before {
    content: '';
    display: inline-block;
    width: 24px; height: 24px;
    border-right: 2px solid var(--primary-yellow);
    border-bottom: 2px solid var(--primary-yellow);
    transform: rotate(45deg);
}

/* ===== NAV ===== */
nav {
    position: sticky; top: 0;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem; z-index: 100;
    border-bottom: 2px solid var(--primary-yellow);
}
nav ul {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 2rem; list-style: none;
    position: relative;
}
nav a {
    font-family: 'Space Mono', monospace;
    color: var(--text-light); text-decoration: none;
    font-weight: 600; font-size: 1.1rem;
    position: relative; transition: var(--transition);
    padding: 0.5rem 0;
}
nav a::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s;
}
nav a:hover, nav a.active { color: var(--primary-yellow); }
nav a:hover::after, nav a.active::after { width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== SECTIONS ===== */
section { padding: 6rem 0; position: relative; scroll-margin-top: 80px; }
section:nth-child(even) { background: rgba(92, 94, 58, 0.05); }

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--primary-yellow);
    margin-bottom: 3rem;
    position: relative; display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute; bottom: -10px; left: 0;
    width: 60%; height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), transparent);
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3rem;
}
.card {
    background: var(--card-bg);
    border: 1px solid rgba(244, 224, 77, 0.2);
    padding: 2.5rem; border-radius: 10px;
    transition: var(--transition);
    position: relative; overflow: hidden; height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244,224,77,0.1), transparent);
    transition: left 0.5s;
}
.card:hover::before { left: 100%; }
.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-yellow);
    box-shadow: 0 15px 50px rgba(244,224,77,0.15), 0 0 0 1px rgba(244,224,77,0.1);
}
.card-icon { font-size: 3.5rem; margin-bottom: 1.5rem; transition: var(--transition); }
.card:hover .card-icon { transform: scale(1.15) rotate(-3deg); }
.card h3 {
    font-family: 'Space Mono', monospace;
    color: var(--primary-yellow);
    margin-bottom: 1rem; font-size: 1.6rem; font-weight: 700;
}
.card p { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; }

/* ===== TEAM ===== */
.team-intro { font-size: 1.3rem; line-height: 1.8; margin-bottom: 3rem; opacity: 0.9; max-width: 900px; }
.team-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.value-item {
    text-align: center; padding: 2.5rem;
    background: rgba(244, 224, 77, 0.05);
    border-radius: 10px; border: 1px solid rgba(244, 224, 77, 0.1);
    transition: var(--transition); position: relative; overflow: hidden;
}
.value-item::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary-yellow);
    transition: width 0.4s;
}
.value-item:hover::after { width: 80%; }
.value-item:hover { background: rgba(244,224,77,0.1); transform: translateY(-5px) scale(1.02); border-color: var(--primary-yellow); }
.value-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.value-title { font-family: 'Bebas Neue', sans-serif; color: var(--primary-yellow); font-size: 2rem; margin-bottom: 1rem; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin: 4rem 0; }
.stat-box {
    text-align: center; padding: 2.5rem;
    background: linear-gradient(135deg, rgba(244,224,77,0.1), rgba(92,94,58,0.1));
    border-radius: 10px; border: 2px solid transparent; transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-box::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(244,224,77,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}
.stat-box:hover::before { opacity: 1; }
.stat-box:hover { border-color: var(--primary-yellow); transform: translateY(-8px); box-shadow: 0 10px 30px rgba(244,224,77,0.1); }
.stat-number {
    font-family: 'Bebas Neue', sans-serif; font-size: 3.5rem;
    color: var(--primary-yellow); display: block;
    text-shadow: 0 0 20px rgba(244,224,77,0.3);
    line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-family: 'Space Mono', monospace; font-size: 1.1rem; opacity: 0.9; }

/* ===== TIMELINE ===== */
.timeline { position: relative; margin: 4rem 0; padding-left: 2rem; max-width: 800px; }
.timeline::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary-yellow), var(--olive-light));
    transform-origin: top;
    animation: drawLine 1.5s ease forwards;
    transform: scaleY(0);
}
.timeline.active::before { animation: drawLine 1.5s ease forwards; }
@keyframes drawLine { to { transform: scaleY(1); } }
.timeline-item {
    position: relative; margin-bottom: 3rem; padding-left: 2.5rem;
    opacity: 0; transform: translateX(-20px);
    transition: all 0.5s ease;
}
.timeline-item.active { opacity: 1; transform: translateX(0); }
.timeline-item::before {
    content: '';
    position: absolute; left: -2.65rem; top: 0.5rem;
    width: 18px; height: 18px;
    background: var(--primary-yellow); border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(244,224,77,0.2);
    z-index: 2;
    transition: box-shadow 0.3s;
}
.timeline-item:hover::before { box-shadow: 0 0 0 12px rgba(244,224,77,0.1), 0 0 20px rgba(244,224,77,0.4); }
.timeline-year {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--primary-yellow); font-size: 1.8rem;
    margin-bottom: 0.8rem; display: inline-block;
    background: rgba(244,224,77,0.1); padding: 0.3rem 1rem;
    border-radius: 20px;
}
.timeline-item p { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; }

/* ===== CURRENT WORK (specifico per lavoro-corrente) ===== */
.current-work-section {
    background: linear-gradient(135deg, rgba(244,224,77,0.1), rgba(92,94,58,0.2));
    border-top: 3px solid var(--primary-yellow);
    border-bottom: 3px solid var(--primary-yellow);
}
.current-work-container { max-width: 900px; margin: 0 auto; text-align: center; }
.current-work-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-yellow); color: var(--dark-bg);
    padding: 0.5rem 2rem; border-radius: 25px;
    font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.1rem;
    margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-orange);
    animation: pulseDot 1.2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}
.current-work-content {
    background: rgba(44,44,44,0.8);
    border: 2px solid rgba(244,224,77,0.3);
    border-radius: 15px; padding: 3rem; margin-top: 2rem;
    position: relative; overflow: hidden;
}
.current-work-content::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
}
.work-phase {
    display: flex; align-items: flex-start; gap: 2rem;
    margin-bottom: 2.5rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(244,224,77,0.1);
    transition: all 0.3s;
}
.work-phase:hover { background: rgba(244,224,77,0.03); border-radius: 10px; padding-left: 1rem; padding-right: 1rem; }
.work-phase:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.phase-icon { font-size: 2.5rem; color: var(--primary-yellow); min-width: 60px; }
.phase-content h4 { font-family: 'Bebas Neue', sans-serif; color: var(--primary-yellow); font-size: 2rem; margin-bottom: 0.5rem; }
.phase-date {
    display: inline-block;
    padding: 0.3rem 1rem; border-radius: 15px;
    font-family: 'Space Mono', monospace; font-size: 0.9rem; margin-bottom: 1rem;
}
.phase-date.done { background: rgba(100,200,100,0.2); color: #6ec96e; border: 1px solid rgba(100,200,100,0.3); }
.phase-date.ongoing { background: rgba(244,224,77,0.15); color: var(--primary-yellow); border: 1px solid rgba(244,224,77,0.3); animation: pulse 2s infinite; }
.phase-date.todo { background: rgba(200,200,200,0.1); color: #aaa; border: 1px solid rgba(200,200,200,0.2); }

/* ===== DIAGRAMS ===== */
.diagram-container {
    background: rgba(255,255,255,0.08);
    border-radius: 15px; padding: 3rem; margin: 3rem 0;
    border: 1px solid rgba(244,224,77,0.15);
    position: relative; overflow: visible;
}
.diagram-container h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--primary-yellow); font-size: 2.5rem;
    margin-bottom: 2.5rem; text-align: center;
}
.diagram-wrapper {
    background: rgba(255,255,255,0.95); border-radius: 12px;
    padding: 2.5rem; min-height: 500px; overflow: auto;
    border: 1px solid rgba(92,94,58,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.diagram-wrapper .mermaid { min-width: 800px; transform-origin: top left; font-size: 16px; }
#wbs-container .mermaid { min-width: 1000px; padding: 20px; }
#gantt-container .mermaid { display: block; }
#gantt-container svg { width: auto !important; height: auto !important; max-width: none; }

/* ===== CTA ===== */
.cta-section {
    text-align: center; padding: 6rem 0;
    background: linear-gradient(135deg, rgba(92,94,58,0.2), rgba(244,224,77,0.1));
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(244,224,77,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(92,94,58,0.2) 0%, transparent 50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-yellow); margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(244,224,77,0.2);
}
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 3rem; }
.btn {
    font-family: 'Space Mono', monospace;
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--primary-yellow);
    background: transparent; color: var(--primary-yellow);
    text-decoration: none; border-radius: 8px;
    transition: var(--transition); font-weight: 700; font-size: 1.1rem;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(244,224,77,0.25);
    transform: scale(0); transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0; width: 150%; padding-top: 150%; top: 50%; left: 50%;
    margin-left: -75%; margin-top: -75%;
}
.btn:active::after { transform: scale(1); opacity: 1; transition: none; }
.btn:hover { background: var(--primary-yellow); color: var(--dark-bg); transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 25px rgba(244,224,77,0.3); }
.btn-primary { background: var(--primary-yellow); color: var(--dark-bg); }
.btn-primary:hover { background: transparent; color: var(--primary-yellow); }

/* ===== FOOTER ===== */
footer {
    background: rgba(0,0,0,0.4); padding: 4rem 0;
    text-align: center; border-top: 2px solid var(--primary-yellow);
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: var(--primary-yellow); margin-bottom: 1rem; letter-spacing: 0.1em; }
.footer-tagline { font-family: 'Space Mono', monospace; font-size: 1.2rem; color: var(--text-light); margin-bottom: 2rem; opacity: 0.8; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-light); text-decoration: none; transition: var(--transition); font-family: 'Space Mono', monospace; font-size: 1.1rem; }
.footer-links a:hover { color: var(--primary-yellow); transform: translateY(-2px); }
.footer-copyright { margin-top: 2rem; opacity: 0.7; font-family: 'Space Mono', monospace; font-size: 0.9rem; line-height: 1.6; }

/* ===== TOAST NOTIFICATION ===== */
#toast-container { position: fixed; top: 80px; right: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    background: rgba(44,44,44,0.97);
    border: 1px solid rgba(244,224,77,0.4);
    border-left: 4px solid var(--primary-yellow);
    color: var(--text-light);
    padding: 1rem 1.5rem; border-radius: 8px;
    font-family: 'Space Mono', monospace; font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all; max-width: 320px;
    display: flex; align-items: center; gap: 0.8rem;
}
.toast.show { transform: translateX(0); }
.toast.hide { transform: translateX(120%); }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-close { margin-left: auto; background: none; border: none; color: #aaa; cursor: pointer; font-size: 1.2rem; }
.toast-close:hover { color: var(--primary-yellow); }

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 9500; display: none; align-items: center; justify-content: center;
    animation: overlayIn 0.3s ease;
}
.popup-overlay.active { display: flex; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.popup-box {
    background: #2a2a2a;
    border: 2px solid rgba(244,224,77,0.4);
    border-radius: 16px; padding: 3rem;
    max-width: 600px; width: 90%;
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.8) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.popup-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
    border-radius: 16px 16px 0 0;
}
.popup-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(244,224,77,0.1); border: 1px solid rgba(244,224,77,0.3);
    color: var(--primary-yellow); width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.popup-close:hover { background: var(--primary-yellow); color: var(--dark-bg); transform: rotate(90deg); }
.popup-title { font-family: 'Bebas Neue', sans-serif; color: var(--primary-yellow); font-size: 2.5rem; margin-bottom: 1.5rem; }
.popup-body { font-size: 1.1rem; line-height: 1.8; opacity: 0.9; }

/* ===== SECTION INDICATOR DOTS (solo su home) ===== */
.section-dots {
    position: fixed; right: 20px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 12px;
    z-index: 500;
}
.section-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(244,224,77,0.3);
    border: 1px solid rgba(244,224,77,0.5);
    cursor: pointer; transition: all 0.3s;
    position: relative;
}
.section-dot:hover { background: rgba(244,224,77,0.6); transform: scale(1.4); }
.section-dot.active { background: var(--primary-yellow); transform: scale(1.5); box-shadow: 0 0 8px rgba(244,224,77,0.6); }
.section-dot::after {
    content: attr(data-label);
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'Space Mono', monospace; font-size: 0.75rem;
    color: var(--primary-yellow);
    background: rgba(44,44,44,0.9);
    padding: 3px 8px; border-radius: 4px;
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
}
.section-dot:hover::after { opacity: 1; }
@media (max-width: 768px) { .section-dots { display: none; } }

/* ===== EXECUTION WARNING ===== */
.execution-warning {
    position: fixed; bottom: 30px; right: 30px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white; padding: 20px 25px; border-radius: 12px;
    border-left: 5px solid #ff9800;
    box-shadow: 0 10px 30px rgba(211,47,47,0.3);
    z-index: 1000; max-width: 320px;
    animation: slideInRight 0.5s ease-out, pulseWarning 2s infinite;
    font-family: 'Inter', sans-serif; font-weight: 600; transition: all 0.3s ease;
}
.execution-warning.hidden { opacity: 0; transform: translateX(100%); pointer-events: none; }
.execution-warning-content { display: flex; align-items: flex-start; gap: 15px; }
.execution-warning-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.execution-warning-text { flex-grow: 1; line-height: 1.5; font-size: 15px; }
.execution-warning-close {
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; font-weight: bold;
    transition: all 0.2s; flex-shrink: 0; margin-left: 10px;
}
.execution-warning-close:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulseWarning {
    0%,100% { box-shadow: 0 10px 30px rgba(211,47,47,0.3); }
    50% { box-shadow: 0 10px 30px rgba(211,47,47,0.5), 0 0 0 5px rgba(255,152,0,0.1); }
}

.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-left.active, .reveal.from-right.active { transform: translateX(0); }

/* ===== SVG STROKE COLORS ===== */
svg { vertical-align: middle; }
.card-icon svg, .value-icon svg { stroke: var(--primary-yellow); }
.phase-icon svg { width: 52px; height: 52px; stroke: var(--primary-yellow); }
.execution-warning-icon svg { stroke: white; }

/* ===== TEAM PHOTO ===== */
.team-photo {
    max-width: 800px;
    width: 100%;
    border: 6px solid var(--primary-yellow);
    border-radius: 12px;
    display: block;
    margin: 2rem auto;
    box-shadow: 0 8px 24px rgba(244, 224, 77, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav ul { gap: 1rem; justify-content: center; }
    nav a { font-size: 1rem; }
    section { padding: 4rem 0; }
    .container { padding: 0 1.5rem; }
    .card-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .team-values { grid-template-columns: 1fr; gap: 1.5rem; }
    .work-phase { flex-direction: column; text-align: center; gap: 1rem; }
    .phase-icon { margin: 0 auto; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: center; }
    .diagram-container { padding: 1.5rem; margin: 2rem 0; }
    .execution-warning { bottom: 20px; right: 20px; left: 20px; max-width: none; }
}
@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    .subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .current-work-content { padding: 2rem 1.5rem; }
}