/**
 * BlackTrails.io — meteo / luna (navbar + pannello card)
 */

.bt-weather-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bt-weather-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #666666;
    cursor: pointer;
    line-height: 0;
    transition: color 0.2s ease;
}

.bt-weather-nav__btn:hover {
    color: #cccccc;
}

.bt-weather-nav__btn:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 4px;
    border-radius: 4px;
}

.bt-weather-nav__btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.bt-weather-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 9000;
    width: 280px;
    padding: 20px;
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.bt-weather-panel[hidden] {
    display: none;
}

.bt-weather-panel__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.bt-weather-panel__close:hover {
    color: #cccccc;
}

.bt-weather-panel__close:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 2px;
    border-radius: 4px;
}

.bt-weather-panel__header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 28px;
}

.bt-weather-panel__header-icon {
    flex-shrink: 0;
    color: #cccccc;
    line-height: 0;
}

.bt-weather-panel__header-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bt-weather-panel__location {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.bt-weather-panel__clock {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: #888888;
    font-variant-numeric: tabular-nums;
}

.bt-weather-panel__hero {
    margin-bottom: 0;
}

.bt-weather-panel__temp {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #cccccc;
    margin-bottom: 4px;
}

.bt-weather-panel__desc {
    font-size: 12px;
    color: #888888;
}

.bt-weather-panel__divider {
    height: 0;
    margin: 16px 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #333333;
}

.bt-weather-panel__detail-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.bt-weather-panel__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888888;
}

.bt-weather-panel__row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #888888;
}

.bt-weather-panel__live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    font-size: 11px;
    font-weight: 400;
    color: #888888;
}

.bt-weather-panel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.bt-weather-panel__live-label {
    text-transform: none;
    letter-spacing: normal;
}

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

/* Contact page: barra superiore */
.bt-contact-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bt-contact-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ededed;
    text-decoration: none;
}

.bt-contact-nav .brand svg {
    width: 28px;
    height: 20px;
}

.bt-contact-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bt-contact-nav .nav-link:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .bt-contact-nav {
        padding: 16px 20px;
    }

    .bt-weather-panel {
        right: 0;
        left: auto;
        max-width: calc(100vw - 32px);
    }

    .bt-weather-panel__close {
        display: none;
    }
}
