:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --dark-slate: #0f172a;
    --light-bg: #f0fdf4;
    --text-main: #334155;
    --white: #ffffff;
    --border: #e2e8f0;
    --hero-bg: #059669;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--light-bg);
    line-height: 1.6;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--emerald-dark);
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--emerald);
}

.lang-selector {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 6px;
    background: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    opacity: 0.65;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(5, 150, 105, 0.08);
}

.lang-btn.active {
    opacity: 1;
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.35);
}

.flag-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 15px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.35) brightness(1.1);
}

.lang-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: rgba(148, 163, 184, 0.4);
    margin: 0 2px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--dark-slate);
    transition: all 0.2s ease;
}
.hero {
    position: relative;
    width: 100%;
    min-height: 500px; 
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-landscape svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}
.rotate-fast {
    animation: spinTurbine 6s linear infinite;
    transform-origin: 0 0;
}

.rotate-medium {
    animation: spinTurbine 9s linear infinite;
    transform-origin: 0 0;
}

.rotate-slow {
    animation: spinTurbine 14s linear infinite;
    transform-origin: 0 0;
}

@keyframes spinTurbine {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
   max-width: 850px;
    margin: 0 auto;
}

.hero-content {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hero-title, 
#hero-desc {
    color: #ffffff !important; 
}
.web-access-box .web-link {
    color: #4ade80 !important; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.scroll-section {
    scroll-margin-top: 90px;
}

.section-title {
    font-size: 1.75rem;
    color: var(--dark-slate);
    margin-bottom: 20px;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    background: var(--light-bg);
    padding: 12px;
    border-left: 4px solid var(--emerald);
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

.futuristic-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 
        0 20px 40px -15px rgba(15, 23, 42, 0.07),
        0 0 30px rgba(5, 150, 105, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.futuristic-container::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.sezione-cloud {
    padding: 60px 20px;
}

.hud-header {
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.hud-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.hud-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.simulator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 2;
}

.sim-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group:hover, .input-group:focus-within {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.12);
}

.input-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ratio-badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.input-inner-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-inner-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.input-inner-wrapper input:focus {
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.input-unit {
    position: absolute;
    right: 16px;
    font-weight: 800;
    color: #059669;
    font-size: 1.2rem;
    pointer-events: none;
}

.threshold-indicator {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
}

.threshold-indicator strong {
    color: #047857;
    font-weight: 700;
}

.range-wrapper {
    padding: 12px 0 6px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 6px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    border: 3px solid #ffffff;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.5);
}

.sim-action-bar {
    display: flex;
}

.btn-futuristic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px -5px rgba(5, 150, 105, 0.4);
    width: 100%;
}

.btn-futuristic:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -4px rgba(5, 150, 105, 0.5);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-futuristic:active {
    transform: translateY(-1px);
}

.futuristic-card-result {
    margin-top: 32px;
    padding: 32px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.badge-cyber {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calc-output {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.output-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.85;
    text-transform: uppercase;
}

.percent-display-neon {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.meter-track-cyber {
    position: relative;
    background: rgba(15, 23, 42, 0.08);
    height: 12px;
    border-radius: 10px;
    margin: 24px 0 28px;
    overflow: hidden;
}

.meter-bar-neon {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.meter-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.75;
}

.feedback-box strong {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.feedback-box p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.cyber-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 24px;
    background: #ffffff;
    border-left: 6px solid #ef4444;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
    animation: alertGlow 2s infinite alternate ease-in-out;
}

@keyframes alertGlow {
    0% { box-shadow: 0 4px 15px rgba(239, 68, 68, 0.12); }
    100% { box-shadow: 0 8px 25px rgba(239, 68, 68, 0.28); }
}

.hazard-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.alert-content strong {
    color: #dc2626;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.alert-content p {
    color: #7f1d1d;
    font-size: 0.95rem;
    margin: 0;
}

.tier-green {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    color: #064e3b;
    box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.25);
}

.tier-green .badge-cyber {
    background: #10b981;
    color: #ffffff;
}

.tier-green .meter-bar-neon {
    background: linear-gradient(90deg, #34d399 0%, #059669 100%);
}

.tier-green .percent-display-neon {
    color: #047857;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.tier-yellow {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    color: #78350f;
    box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.25);
}

.tier-yellow .badge-cyber {
    background: #f59e0b;
    color: #ffffff;
}

.tier-yellow .meter-bar-neon {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

.tier-yellow .percent-display-neon {
    color: #b45309;
}

.tier-red {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    color: #7f1d1d;
    box-shadow: 0 12px 30px -5px rgba(239, 68, 68, 0.25);
}

.tier-red .badge-cyber {
    background: #ef4444;
    color: #ffffff;
}

.tier-red .meter-bar-neon {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.tier-red .percent-display-neon {
    color: #b91c1c;
}

@media (max-width: 640px) {
    .futuristic-container {
        padding: 24px 18px;
    }
    .sim-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-output {
        align-items: flex-start;
        margin-top: 8px;
    }
    .percent-display-neon {
        font-size: 2.1rem;
    }
}

.sim-card-result {
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
    transition: all 0.35s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.badge {
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.percent-display {
    font-size: 2rem;
    font-weight: 800;
}

.sim-body p {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}
.tier-green .badge {
    background: #22c55e;
    color: #ffffff;
}
.tier-yellow .badge {
    background: #eab308;
    color: #ffffff;
}
.tier-red .badge {
    background: #ef4444;
    color: #ffffff;
}
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 18px;
    background: #ffffff;
    border-left: 5px solid #dc2626;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
    animation: alertPulse 1.5s infinite alternate ease-in-out;
}

.alert-icon {
    font-size: 1.4rem;
}

.alert-content strong {
    color: #dc2626;
    display: block;
    margin-bottom: 2px;
}

.alert-content p {
    font-size: 0.95rem;
    color: #450a0a;
}

@keyframes alertPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.015); box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3); }
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.sdg-card {
    padding: 20px;
    border-radius: 8px;
    color: var(--white);
    position: relative;
}

.sdg-7 { background: #ecc94b; color: #1a202c; }
.sdg-7 h4 { color: #1a202c; }
.sdg-9 { background: #dd6b20; }
.sdg-13 { background: #2f855a; }

.sdg-number {
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 15px;
}

.data-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.data-label {
    font-weight: 600;
    color: var(--dark-slate);
}

.share-dock {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-instagram { background: #e1306c; }
.btn-linkedin { background: #0077b5; }

footer {
    text-align: center;
    padding: 40px 5%;
    background: var(--dark-slate);
    color: var(--white);
    font-size: 0.9rem;
    margin-top: 40px;
}

.section-margin {
    margin: 40px 0;
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    .nav-menu.active { display: flex; }
    #hero-title { font-size: 2rem; }
    .share-dock {
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 10px;
        justify-content: center;
    }
}
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.cloud-card {
    background: var(--white);
    border-radius: 18px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cloud-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cloud-card:hover {
    transform: translateY(-6px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 20px 40px -10px rgba(5, 150, 105, 0.12);
}

.cloud-card:hover::before {
    opacity: 1;
}

.cloud-intro {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-left: 5px solid var(--emerald);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 36px;
}

.cloud-card h4 {
    color: var(--dark-slate);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.cloud-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.cloud-card p:last-child {
    margin-bottom: 0;
}

.cloud-subtitle {
    font-weight: 600;
    color: var(--dark-slate);
    margin-bottom: 12px !important;
}

.cloud-card ul,
.cloud-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: cloud-step;
}

.cloud-card ul li,
.cloud-list li {
    position: relative;
    padding-left: 42px;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    counter-increment: cloud-step;
}

.cloud-card ul li::before,
.cloud-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    background: var(--emerald);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
}