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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    font-weight: 600;
}

/* ========== NAVBAR ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 15px 0;
}

nav ul li a {
    color: rgb(245, 245, 247);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: rgb(69, 123, 59);
}

nav ul li:first-child a {
    font-weight: 700;
    font-size: 16px;
}

/* ========== HERO ========== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(46, 125, 50, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(56, 142, 60, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f0a 0%, #000 100%);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

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

.hero h1 {
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #c8e6c9 0%, #66bb6a 50%, #2e7d32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 32px;
    color: #81c784;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-accent {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2e7d32, transparent);
    margin: 30px auto 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50%       { opacity: 1;   transform: scaleX(1.2); }
}

/* ========== MISSION ========== */
.mission {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-image: url('/static/images/mission_home.png');
    background-size: cover;
    background-position: center;
}

.mission-image-placeholder {
    display: none;
}

.mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.mission-content {
    position: relative;
    z-index: 1;
    width: 50%;
    max-width: 650px;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
}

.mission h2 {
    font-size: 64px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.mission-text {
    font-size: 18px;
    color: rgb(255, 255, 255);
    line-height: 1.8;
    font-weight: 500;
    font-style: normal;
    text-align: left;
    max-width: 520px;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ========== OVERVIEW ========== */
.overview {
    padding: 120px 5%;
    background: rgb(10, 10, 10);
}

.overview-title {
    font-size: 64px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: rgb(245, 245, 247);
}

.overview-intro {
    max-width: 1000px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #b0bec5;
    text-align: center;
    font-weight: 400;
    padding: 0 20px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.overview-card {
    position: relative;
    display: block;
    text-decoration: none;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: rgb(10, 10, 10);
    cursor: pointer;
}

.overview-card + .overview-card {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-card-bg {
    position: absolute;
    inset: 0;
    background: rgb(20, 20, 20);
    transition: transform 0.6s ease;
}

.overview-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
    transition: height 0.4s ease;
}

.overview-card:hover::after {
    height: 55%;
}

.overview-card:hover .overview-card-bg {
    transform: scale(1.05);
}

.overview-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    gap: 12px;
}

.overview-card-title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    letter-spacing: 0.3px;
    line-height: 1;
    transition: color 0.3s ease;
}

.overview-card:hover .overview-card-title {
    color: rgb(200, 230, 200);
}

.overview-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgb(46, 125, 50);
    border-radius: 50%;
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.overview-card:hover .overview-card-arrow {
    background: rgb(56, 142, 60);
    transform: translateX(3px);
}

/* ========== PAGE HERO ========== */
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgb(26, 26, 26) 0%, rgb(0, 0, 0) 100%);
    position: relative;
    padding-top: 80px;
}

.page-hero-content {
    text-align: center;
    z-index: 1;
}

.page-hero h1 {
    font-size: 72px;
    font-weight: 800;
    color: rgb(46, 125, 50);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.page-hero-subtitle {
    font-size: 24px;
    color: #b0bec5;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ========== NASA FEATURE BLOCK ========== */
.nasa-feature {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: rgb(10, 10, 10);
    padding: 80px 5%;
    align-items: center;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.nasa-feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nasa-feature-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgb(100, 100, 100);
    margin-bottom: 16px;
    display: block;
}

.nasa-feature-title {
    font-size: 42px;
    font-weight: 800;
    color: rgb(46, 125, 50);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.nasa-feature-desc {
    font-size: 16px;
    color: rgb(255, 255, 255);
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 32px;
}

.nasa-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-decoration: none;
    cursor: pointer;
    width: fit-content;
}

.nasa-view-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgb(46, 125, 50);
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.nasa-view-btn:hover .nasa-view-arrow {
    background: rgb(56, 142, 60);
    transform: translateX(4px);
}

.nasa-feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nasa-feature-image img {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ========== NASA PANEL OVERLAY ========== */
.nasa-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nasa-panel-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nasa-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1100px;
    width: 90%;
    background: rgb(20, 20, 20);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
}

.nasa-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s ease;
}

.nasa-panel-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nasa-panel-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: rgb(255, 255, 255);
}

.nasa-panel-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.nasa-panel-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    margin-bottom: 24px;
    line-height: 1.2;
}

.nasa-panel-content p {
    font-size: 15px;
    color: rgb(200, 200, 200);
    line-height: 1.8;
    font-weight: 400;
    text-align: left;
    margin-bottom: 16px;
}

.nasa-panel-content p:last-child {
    margin-bottom: 0;
}

/* ========== CONTENT SECTION ========== */
.content-section {
    min-height: 100vh;
    padding: 60px 5% 100px;
    background: rgb(0, 0, 0);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-block {
    background: rgb(26, 26, 26);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-block h2 {
    font-size: 42px;
    font-weight: 700;
    color: rgb(46, 125, 50);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-align: center;
}

.content-block h3 {
    font-size: 28px;
    font-weight: 600;
    color: rgb(66, 145, 70);
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.content-block p {
    font-size: 17px;
    line-height: 1.8;
    color: rgb(200, 200, 200);
    font-weight: 400;
    text-align: justify;
}

.content-block p + p {
    margin-top: 1em;
}

/* ========== IMMAGINI NEI CONTENT BLOCK ========== */
.image-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    align-items: start;
}

.image-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0 10px;
}

.image-row-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0 10px;
}

.image-single-center {
    text-align: center;
    margin: 40px 0;
}

.image-single-center img {
    max-width: 70%;
    height: auto;
}

.image-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-item p {
    text-align: center;
}

.image-caption-small {
    margin-top: 10px;
    font-size: 13px;
    color: #81c784;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

.image-caption-shared {
    text-align: center;
    margin: 10px 0 0;
    font-size: 13px;
    color: #81c784;
    font-style: italic;
    font-weight: 400;
    width: 100%;
}

/* ========== DATABASE PAGE ========== */
.database-section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    background: rgb(0, 0, 0);
}

.database-title {
    font-size: 64px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: rgb(46, 125, 50);
}

.database-description {
    font-size: 18px;
    color: rgb(255,255,255);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.database-table-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgb(26, 26, 26);
    border-radius: 20px;
    padding: 40px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.database-table {
    width: 100%;
    border-collapse: collapse;
}

.database-table thead {
    background: rgb(46, 125, 50);
}

.database-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.database-table th:last-child {
    text-align: center;
}

.database-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.database-table tbody tr:hover {
    background: rgba(46, 125, 50, 0.1);
}

.database-table td {
    padding: 20px;
    color: rgb(245, 245, 247);
    font-size: 14px;
}

.database-table td:last-child {
    text-align: center;
}

.file-name {
    font-weight: 600;
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.voltage {
    background: rgba(255, 152, 0, 0.2);
    color: rgb(255, 152, 0);
    border: 1px solid rgb(255, 152, 0);
}

.badge.audio {
    background: rgba(33, 150, 243, 0.2);
    color: rgb(33, 150, 243);
    border: 1px solid rgb(33, 150, 243);
}

.badge.excel {
    background: rgba(46, 125, 50, 0.2);
    color: rgb(46, 125, 50);
    border: 1px solid rgb(46, 125, 50);
}

.badge.csv {
    background: rgba(156, 39, 176, 0.2);
    color: rgb(186, 104, 200);
    border: 1px solid rgb(156, 39, 176);
}

.download-count {
    color: rgb(46, 125, 50);
    font-weight: 600;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(46, 125, 50);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: rgb(56, 142, 60);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== TEAM PAGE ========== */
.team-block {
    background: rgb(26, 26, 26);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-block h2 {
    font-size: 36px;
    font-weight: 700;
    color: rgb(46, 125, 50);
    margin-bottom: 25px;
    text-align: center;
}

.team-description {
    font-size: 17px;
    line-height: 1.8;
    color: rgb(200, 200, 200);
    margin-bottom: 25px;
    font-weight: 400;
    text-align: justify;
}

.team-contact {
    font-size: 16px;
    color: rgb(200, 200, 200);
    font-weight: 400;
    text-align: center;
    margin-top: 20px;
}

.team-contact strong {
    color: rgb(66, 145, 70);
}

.team-contact a {
    color: rgb(46, 125, 50);
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-contact a:hover {
    color: rgb(66, 145, 70);
    text-decoration: underline;
}

/* ========== DOWNLOAD NOTICE ========== */
.download-notice {
    background: rgb(46, 125, 50);
    border-radius: 15px;
    padding: 30px 40px;
    margin-top: 60px;
    text-align: center;
    border: 2px solid rgb(66, 145, 70);
}

.download-notice p {
    font-size: 18px;
    color: rgb(255, 255, 255);
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 72px; }
    nav ul { gap: 25px; }
    nav ul li a { font-size: 12px; }
    .overview-cards { grid-template-columns: repeat(2, 1fr); }
    .overview-card + .overview-card { border-left: none; }
    .overview-cards .overview-card:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.08); }
    .overview-cards .overview-card:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .nasa-feature { grid-template-columns: 1fr; gap: 40px; padding: 60px 5%; }
    .nasa-panel { grid-template-columns: 1fr; max-height: 85vh; overflow-y: auto; }
    .nasa-panel-placeholder { min-height: 220px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 48px; }
    .hero-tagline { font-size: 20px; }
    .overview-title { font-size: 42px; }
    .overview-intro { font-size: 16px; margin-bottom: 40px; }
    .mission { min-height: 60vw; }
    .mission-content { width: 100%; padding: 50px 30px; background: rgba(0, 0, 0, 0.75); }
    .mission h2 { font-size: 36px; }
    .mission-text { font-size: 14px; }
    .page-hero h1 { font-size: 48px; }
    .page-hero-subtitle { font-size: 18px; }
    .content-block { padding: 30px 25px; }
    .content-block h2 { font-size: 32px; }
    .content-block h3 { font-size: 24px; }
    .content-block p { font-size: 16px; text-align: left; }
    .image-row-3, .image-row-2, .image-row-4 { grid-template-columns: 1fr; gap: 30px; }
    .image-single-center img { max-width: 100%; }
    .database-title { font-size: 42px; }
    .database-table-container { padding: 20px; }
    .database-table th, .database-table td { padding: 10px; font-size: 12px; }
    .team-block { padding: 30px 25px; }
    .team-block h2 { font-size: 28px; }
    .team-description { font-size: 16px; text-align: left; }
    .download-notice { padding: 20px 25px; }
    .download-notice p { font-size: 16px; }
    .nasa-feature-title { font-size: 30px; }

    /* ── NAVBAR mobile ── */
    nav ul {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    nav ul li a { font-size: 11px; }
    nav ul li:first-child { width: 100%; text-align: center; margin-bottom: 2px; }

    /* ── FOOTER mobile ── */
    footer > div:first-child,
    .footer-cols-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    footer .footer-bottom-bar {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* ── NASA FEATURE (testo+immagine fianco a fianco) ── */
    .nasa-feature {
        grid-template-columns: 1fr !important;
        padding: 50px 5% !important;
        gap: 32px !important;
    }
    .nasa-feature-reverse {
        grid-template-columns: 1fr !important;
    }
    .nasa-feature-image img { height: auto !important; max-height: 300px; object-fit: contain; }

    /* ── PANEL (More Information) mobile ── */
    .nasa-panel {
        grid-template-columns: 1fr !important;
        max-height: 90vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .nasa-panel-image { max-height: 220px; overflow: hidden; }
    .nasa-panel-image img { max-height: 220px; }
    .nasa-panel-content { padding: 24px !important; }
    .nasa-panel-content h3 { font-size: 20px; }
    .nasa-panel-vertical { width: 95% !important; max-height: 90vh; overflow-y: auto !important; }
    .nasa-panel-vertical .nasa-panel-content { padding: 24px 20px 16px !important; }
    .nasa-panel-vertical .nasa-panel-image { padding: 0 20px 24px !important; }

    /* ── MIC PANEL: colonna sinistra con position:absolute → layout normale ── */
    .mic-panel-left {
        position: relative !important;
        min-height: auto !important;
        height: auto !important;
    }
    .mic-panel-left > img {
        position: relative !important;
        width: 100% !important;
        height: 160px !important;
        object-fit: cover;
        display: block;
    }
    .mic-panel-left > div {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        border-right: none !important;
    }
    .mic-panel-left > div > div {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 20px 16px !important;
    }

    /* ── APPLICATION: griglia 3 card → 1 colonna ── */
    .app-3col-grid {
        grid-template-columns: 1fr !important;
    }
    /* ── APPLICATION: griglia 2 card (click detection) → 1 colonna ── */
    .app-2col-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── AUDIO / VOLTAGE: griglie inline → 1 colonna ── */
    .mobile-1col {
        grid-template-columns: 1fr !important;
    }

    /* ── DATABASE: how-it-works 2 col → 1 col ── */
    .db-how-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    /* DATABASE: stats 4 col → 2 col */
    .db-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ── TEAM: 3 colonne → 1 colonna ── */
    .team-members-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* ── APP FORMULA scrollabile su mobile ── */
    .app-formula {
        font-size: 12px;
        overflow-x: auto;
        white-space: pre;
    }
}

@media (max-width: 600px) {
    .overview-cards { grid-template-columns: 1fr; }
    .overview-card { aspect-ratio: 16 / 9; }
    .overview-cards .overview-card:nth-child(even) { border-left: none; }
    .overview-cards .overview-card:nth-child(n+2) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .overview-card-title { font-size: 20px; }
}
.nasa-feature-reverse {
    grid-template-columns: 1.5fr 1fr;
}
/* ========== APP FORMULA ========== */
.app-formula {
    background: rgb(10, 10, 10);
    border-left: 3px solid rgb(46, 125, 50);
    padding: 16px 24px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 15px;
    color: rgb(200, 230, 200);
    border-radius: 0 8px 8px 0;
    font-weight: 400;
    line-height: 1.8;
    overflow-x: auto;
    white-space: normal;
}

/* MathJax rendered output colour */
.app-formula mjx-container {
    color: rgb(200, 230, 200) !important;
}
.nasa-panel-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(10, 10, 10);
    max-height: 90vh;
}

.nasa-panel-image img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.nasa-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.nasa-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 90vh;
}
/* Altezza panel uguale all'immagine */
.nasa-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1100px;
    width: 90%;
    background: rgb(20, 20, 20);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
}

.nasa-panel-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(10, 10, 10);
    max-height: 90vh;
}

.nasa-panel-image img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.nasa-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Titolo verde nel panel */
.nasa-panel-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: rgb(46, 125, 50);
    margin-bottom: 24px;
    line-height: 1.2;
}
.nasa-feature {
    box-sizing: border-box;
    padding: 80px 10%;
}
.nasa-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nasa-feature-list li {
    font-size: 15px;
    color: rgb(255, 255, 255);
    font-weight: 400;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.nasa-feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: rgb(46, 125, 50);
}
.nasa-panel-vertical {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    width: 90%;
    background: rgb(20, 20, 20);
    border-radius: 8px;
    overflow-y: auto;
    position: relative;
    max-height: 90vh;
}

.nasa-panel-vertical .nasa-panel-content {
    padding: 40px 40px 24px;
}

.nasa-panel-vertical .nasa-panel-image {
    padding: 0 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nasa-panel-vertical .nasa-panel-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}