@media (max-width: 768px) {
    #home-dashboard {
        top: calc(var(--gx-menu-stack-height) + 10px);
        left: 12px;
        right: 12px;
        bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        padding-right: 2px;
    }

    .home-dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-dashboard-close {
        width: 100%;
        justify-content: center;
    }

    .home-dashboard-toggle {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        justify-content: center;
    }

    .home-hero-card,
    .home-guide-card,
    .home-services-card {
        padding: 20px;
        border-radius: 22px;
    }

    .home-hero-card h1 {
        max-width: none;
        font-size: 2.4rem;
    }

    .home-quick-links,
    .home-service-grid,
    .home-signal-band {
        grid-template-columns: 1fr;
    }

    .home-section-heading {
        align-items: start;
        flex-direction: column;
    }

    #header {
        padding: 15px 20px;
    }

    .logo h1 {
        font-size: 18px;
    }

    button {
        padding: 8px 15px;
        font-size: 12px;
    }

    .panel {
        padding: 24px 18px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .panel h2 {
        font-size: 22px;
    }

    /* 16px minimo: evita lo zoom automatico dell'input su iOS */
    .form-group input,
    .form-group select {
        font-size: 16px;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    #home-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            'hero'
            'guide'
            'services';
    }

    .home-quick-links,
    .home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ====================================
   OVERRIDES MOBILE (ex responsive.css)
   Canvas 3D in flusso sotto le navbar.
   ==================================== */
@media (max-width: 900px) {
    #three-canvas {
        height: calc(100vh - var(--gx-menu-stack-height, 92px));
    }
}
