/* =========================================================
   OML METEO - HOMEPAGE CSS
   ========================================================= */


/* ---------------------------------------------------------
   HOMEPAGE
   --------------------------------------------------------- */
.home-page {
    padding-top: 4px;
}

/* ---------------------------------------------------------
   COLONNA PRINCIPALE
   --------------------------------------------------------- */
.home-page .main-column {
    min-width: 0;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.home-page .sidebar {
    min-width: 0;
}

/* ESTREMI METEO */
.home-page .data-item-value {
    font-variant-numeric: tabular-nums;
}


/* TABELLA OSSERVAZIONI */
.home-page .main-column .table-wrapper {
    border-bottom: 1px solid #c3d2dc;
}

.home-page .main-column table {
    min-width: 650px;
}

/* SIDEBAR - BOX DATI */
.home-page .sidebar .data-item {
    margin-bottom: 4px;
}

.home-page .sidebar .data-item:last-child {
    margin-bottom: 0;
}

/* SIDEBAR - LINK */
.home-page .sidebar .link-list a {
    font-size: 12px;
}

/* SIDEBAR - WEBCAM */
.home-page .sidebar .image-box img {
    width: 100%;
    height: auto;
}

/* SIDEBAR - STATO */
.home-page .sidebar .status {
    font-size: 12px;
    font-weight: bold;
}

/* MAPPE */
.home-page .main-column .data-grid .image-box {
    overflow: hidden;
}

/* =========================================================
   ALLERTE METEO
   ========================================================= */

.alert-panel {
    margin: 0;
    padding: 6px 7px;
    background: #05056c;
    color: #fff;
    border-top: 1px solid #4fc3f7;
    border-bottom: 1px solid #4fc3f7;
    background-image: repeating-linear-gradient(
        0deg,
        #05056c,
        #05056c 1px,
        #2b3990 1px,
        #2b3990 2px
    );
    box-shadow:
        inset 0 18px 25px rgba(0,0,0,.35),
        inset 0 0 18px rgba(255,255,255,.08);
}

.alert-main-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: center;
    gap: 7px;
}

.alert-code {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
}

.alert-warning-symbol {
    font-size: 20px;
    line-height: 1;
}

.alert-type {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
}

.alert-type:not(:last-child) {
  border-right: 1px solid #ddd;
}


/* Icone */
.alert-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #aaa;
}

.alert-icon.green {
    background: #2ecc71;
}

.alert-icon.yellow {
    background: #ffd400;
    box-shadow: 0 0 5px rgba(255,212,0,.7);
}

.alert-icon.orange {
    background: #ff7b00;
    box-shadow: 0 0 6px rgba(255,123,0,.8);
}

.alert-icon.red {
    background: #d90429;
    box-shadow: 0 0 7px rgba(217,4,41,.9);
    animation: pulseAlert .8s infinite;
}

.alert-day-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
}

.alert-day {
    color: #cf3;
    font-size: 12px;
    font-weight: bold;
}

.alert-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.alert-level {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 2px 4px;
}

.alert-level img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.alert-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 6px;
}

.alert-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    font-size: 11px;
    font-weight: bold;
}

.alert-switch span {
    color: #aebbd0;
}

.alert-switch span.active {
    color: #fff;
    text-decoration: underline;
}

.switch {
    position: relative;
    width: 36px;
    height: 18px;
    flex: 0 0 36px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #687080;
    border-radius: 20px;
    transition: .2s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.switch input:checked + .slider {
    background: #0fff50;
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}

.alert-button {
    padding: 4px 7px;
    border: 1px solid #cf3;
    background: #16415f;
    color: #cf3;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
}

.alert-button:hover {
    background: #5aa52c;
    color: #fff;
    border: 1px solid #fff;
}

.alert-update {
    width: 26px;
    padding: 4px 0;
}

.alert-update.loading {
    pointer-events: none;
}

.alert-update.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.alert-status {
    min-width: 75px;
    color: #b8c8e8;
    font-size: 9px;
    text-align: right;
}

.alert-validity {
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #ddd;
    font-size: 9px;
    text-align: right;
    text-shadow: 1px 1px 1px #000;
}

.alert-validity a {
    color: #EBB616;
}

@keyframes pulseAlert {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* =========================================================
   MODALE MAPPA ALLERTE
   ========================================================= */

.alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 18, .78);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.alert-modal-content {
    width: min(94vw, 1050px);
    height: min(92vh, 900px);
    padding: 0;
    background: #eef4f8;
    border: 2px solid #4fc3f7;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .65),
        0 0 18px rgba(79, 195, 247, .18);
    transform: scale(.96);
    transition: transform .25s;
}

.alert-modal.show .alert-modal-content {
    transform: scale(1);
}

#alertMapContainer {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.loading-map {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #02203a;
    font-size: 14px;
}

.alert-modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #4fc3f7;
    border-radius: 2px;
    background: #02203a;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 26px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.alert-modal-close:hover {
    background: #16415f;
    color: #cf3;
}

/* MAPPA ALLERTE POP-UP   */
.alert-map {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0 0 8px;
    background:
        repeating-linear-gradient(
            0deg,
            #07175a,
            #07175a 2px,
            #0b267d 3px
        );
    color: #fff;
    border: 0;
    box-shadow:
        inset 0 30px 50px rgba(0,0,0,.38),
        inset 0 0 25px rgba(255,255,255,.08);
}

.alert-map .wrapper {
    width: min(100%, 620px);
    max-width: none;
    margin: 0 auto;
    padding: 8px 14px 7px;
}

.alert-map h2 {
    margin: 0;
    padding: 6px 36px 7px 8px;
    background: #02203a;
    border-bottom: 2px solid #9c0;
    color: #cf3;
    font-size: 17px;
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
}

/*  VALIDITÀ */
.alert-map > .wrapper > p {
    margin: 5px 0;
    color: #b8c8e8;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

.alert-map .info {
    margin: 7px auto 5px;
    padding: 4px 8px;
    background: rgba(0, 0, 35, .48);
    border: 1px solid rgba(79,195,247,.4);
    border-left: 3px solid #cf3;
    color: #cf3;
    font-size: 12px;
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
}

.alert-map svg {
    display: block;
    width: 88%;
    height: auto;
    margin: 0 auto;
}

.alert-map .zone {
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
    transition: .2s;
}

.alert-map .zone:hover {
    stroke: #fff;
    stroke-width: 3;
    filter: brightness(115%);
}

.alert-map .label {
    fill: #fff;
    font-size: 18px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;

    paint-order: stroke;
    stroke: #000;
    stroke-width: 2;
}

.alert-map .legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin: 5px 0 7px;
    padding: 5px 8px;
    background: rgba(0, 0, 35, .45);
    border: 1px solid rgba(79,195,247,.35);
    border-radius: 2px;
    font-size: 10px;
}

.alert-map .legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.alert-map .box {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border-radius: 1px;
    border: 1px solid rgba(255,255,255,.5);
}

.alert-map .map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #9eafd0;
    font-size: 9px;
    line-height: 1.2;
}

#tooltip {
    position: fixed;
    display: none;
    padding: 5px;
    background: #02203a;
    color: #fff;
    border: 1px solid #4fc3f7;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1.3;
    box-shadow:
        0 4px 16px rgba(0,0,0,.45);
    pointer-events: none;
    z-index: 10001;
    white-space: pre-line;
}

.tooltip-title {
    margin: 0 0 3px;
    color: #cf3;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.tooltip-table {
    border-collapse: collapse;
    padding: 0;
}

.tooltip-table td {
    padding: 3px 5px;
    border: 0;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1.3;
}

.tooltip-table td:first-child {
    color: #dce8f5;
    font-weight: 600;
    white-space: nowrap;
}

.tooltip-table td:last-child {
    color: #fff;
    white-space: nowrap;
}

#tooltip .tooltip-table,
#tooltip .tooltip-table tbody,
#tooltip .tooltip-table tr,
#tooltip .tooltip-table td {
    background: transparent;
    border: 0;
}

.map-alert-green {
    color: #a3ec06;
    font-weight: bold;
}

.map-alert-yellow {
    color: #ffea00;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255,234,0,.5);
}

.map-alert-orange {
    color: #ff9000;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255,144,0,.5);
}

.map-alert-red {
    color: #ff3030;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(255,30,30,.5);
}

/* =========================================================
   SITUAZIONE METEOROLOGICA - REALTIME
   ========================================================= */

.realtime-home {
    width: 100%;
}

.realtime-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.realtime-station {
    min-width: 0;
    padding: 5px 6px;
    background: #f4f8fb;
    border: 1px solid #b8cbd8;
    border-top: 2px solid #4fc3f7;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.realtime-station-name {
    margin-bottom: 4px;
    color: #02203a;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.realtime-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}

.realtime-value {
    min-width: 0;
    padding: 3px 2px;
    background: #e8f3fa;
    border: 1px solid #c5d8e3;
    text-align: center;
}

.realtime-label {
    display: block;
    margin-bottom: 1px;
    color: #587181;
    font-size: 8px;
    line-height: 1.1;
    white-space: nowrap;
}

.realtime-value strong {
    color: #02203a;
    font-size: 12px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.realtime-unit {
    margin-left: 1px;
    color: #687d8b;
    font-size: 8px;
}

.realtime-update {
    margin-top: 5px;
    color: #687d8b;
    font-size: 9px;
    line-height: 1.2;
    text-align: right;
}

/* ============================================================
   PREVISIONI METEO
   ============================================================ */

.forecast-cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    box-sizing: border-box;
}

.forecast-city {
    background: #eef8ff;
    border: 1px solid #9c0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.forecast-city-title {
    color: #0b304d;
    font-family: "Jersey 25", sans-serif;
    font-size: 22px;
    line-height: 1;
    text-align: center;
    padding: 6px 8px;
    letter-spacing: 0.5px;
}

.forecast-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.forecast-day {
    background: #fff;
    min-width: 0;
    text-align: center;
    padding: 7px 4px 8px;
    border-right: 1px solid #b7d5e8;
}

.forecast-day:last-child {
    border-right: 0;
}

.forecast-day-name {
    color: #07395a;
    font-family: "Jersey 25", sans-serif;
    font-size: 17px;
    line-height: 1;
    font-weight: bold;
}

.forecast-date {
    color: #555;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
}

.forecast-icon {
    height: 58px;
    margin: 5px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-icon img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.forecast-weather {
    min-height: 28px;
    color: #222;
    font-family: "Exo 2", sans-serif;
    font-size: 12px;
    line-height: 1.15;
}

.forecast-temperatures {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    font-family: "Exo 2", sans-serif;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.forecast-tmin {
    color: #075b9e;
}

.forecast-tmax {
    color: #b52b00;
}

.forecast-source {
    padding: 5px 10px 6px;
    text-align: right;
    color: #555;
    font-family: "Exo 2", sans-serif;
    font-size: 10px;
}

.forecast-unavailable {
    padding: 12px;
    text-align: center;
    color: #555;
    font-family: "Exo 2", sans-serif;
    font-size: 13px;
}


/* =========================================================
   DAL BLOG OML METEO
   ========================================================= */

.blog-latest {
    width: 100%;
}

.blog-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

/* Singolo articolo */

.blog-latest-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f4f9fc;
    border: 1px solid #c4d9e7;
}

/* Immagine */

.blog-latest-image, .download-access-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dcebf4;
}

.blog-latest-image img, .download-access-image img {
    display: block;
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    transition: transform 0.2s ease;
}

.blog-latest-image:hover img {
    transform: scale(1.03);
}

/* Corpo articolo */

.blog-latest-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 7px 8px 8px;
}

/* Data */

.blog-latest-date {
    margin-bottom: 3px;
    color: #66869c;
    font-size: 10px;
    line-height: 1.2;
}

/* Titolo */

.blog-latest-title {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
}

.blog-latest-title a {
    color: #07395a;
    text-decoration: none;
}

.blog-latest-title a:hover {
    color: #1683bd;
    text-decoration: underline;
}

/* Sottotitolo */

.blog-latest-subtitle {
    color: #3f5e71;
    font-size: 11px;
    line-height: 1.35;
}

/* Link articolo */

.blog-latest-read {
    display: block;
    margin-top: auto;
    padding-top: 7px;
    color: #1675a8;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}

.blog-latest-read:hover {
    color: #02203a;
    text-decoration: underline;
}

/* Errore caricamento */

.blog-latest-error {
    padding: 8px;
    color: #6b4b00;
    background: #fff8df;
    border: 1px solid #ead89b;
    font-size: 12px;
    text-align: center;
}

/* =========================================================
   OSSERVAZIONI (ACESSO OBS)
   ========================================================= */

.weekly-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.weekly-data-item {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 8px;
    background: #f4f9fc;
    border: 1px solid #c4d9e7;
    color: #02203a;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.weekly-data-item:hover {
    background: #e8f3fa;
    border-color: #8eb5cc;
    text-decoration: none;
}

.weekly-data-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 9px;
}

.weekly-data-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.weekly-data-body {
    min-width: 0;
}

.weekly-data-title {
    margin-bottom: 3px;
    color: #07395a;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

.weekly-data-description {
    color: #3f5e71;
    font-size: 11px;
    line-height: 1.3;
}

.weekly-data-link {
    margin-top: 6px;
    color: #1675a8;
    font-size: 11px;
    font-weight: bold;
}

.weekly-data-item:hover .weekly-data-link {
    color: #02203a;
    text-decoration: underline;
}

/* =========================================================
   LINK-PORTALI
   ========================================================= */

.wz {
    background: url(/images/varie/banner-wz.jpg);
    background-position: center;
}

.mc {
    background: url(/images/varie/banner-mc.jpg);
    background-position: center;
}

.lamma {
    background: url(/images/varie/banner-lamma.jpg);
    background-position: center;
}

.mlgx {
    background: url(/images/varie/banner-mlgx.jpg);
    background-position: center;
}


/* =========================================================
   RECORDS (SIDEBAR)
   ========================================================= */

.records-status-live {
    background: #02203a;
    border-color: #02203a;
    color: #adff2f;
    border-radius: 3px;
    text-shadow:none;
    float:right;
}

.records-status-offline {
    background: #02203a;
    border-color: #02203a;
    color: #f00;
    border-radius: 3px;
    text-shadow:none;
    float:right;
}


/* ================================================
   RESPONSIVE (MOBILE)
   ============================================= */

@media (max-width: 1060px) {

    .realtime-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .forecast-temperatures {
        font-size: 11px;
        gap: 3px;
    }
}


@media (max-width: 760px) {

    .home-page {
        padding-top: 2px;
    }

    .home-page .main-column table {
        min-width: 650px;
    }
    
    /* allerte */
    .alert-main-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 4px;
    }

    .alert-type {
        font-size: 10px;
        padding: 3px 2px;
    }

    .alert-day-row {
        grid-template-columns: 1.5fr 3fr;
        gap: 4px;
    }

    .alert-levels {
        width: 100%;
        gap: 4px;
    }

    .alert-level {
        min-height: 30px;
        padding: 2px;
    }

    .alert-level img {
        width: 24px;
        height: 24px;
    }    

    .alert-controls {
        display: grid;
        grid-template-columns: 1fr auto auto auto;
        align-items: center;
        gap: 6px;
        width: 100%;
        margin-top: 6px;
    }

    .alert-switch {
        margin: 0;
        justify-self: start;
        white-space: nowrap;
    }

    .alert-button {
        justify-self: end;
        white-space: nowrap;
    }

    .alert-status {
        justify-self: end;
        min-width: 55px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
    }

    .alert-validity {
        text-align: left;
    }    
    
    /*mappa allerte*/
    .alert-modal {
        align-items: flex-start;
        padding: 8px;
        overflow-y: auto;
    }

    .alert-modal-content {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 16px);
        max-height: none;
    }

    .alert-map .wrapper {
        width: 100%;
        padding: 10px 8px 8px;
    }

    .alert-map h2 {
        font-size: 15px;
        padding-right: 32px;
    }

    .alert-map svg {
        width: 100%;
    }

    .alert-map .legend {
        gap: 6px 10px;
    }

    .alert-map .map-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .forecast-cities {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .forecast-city-title {
        font-size: 21px;
    }

    .forecast-icon {
        height: 54px;
    }

    .forecast-icon img {
        width: 48px;
        height: 48px;
    }

    .forecast-weather {
        font-size: 11px;
    }

    .forecast-temperatures {
        font-size: 12px;
    }    

    .blog-latest-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .blog-latest-item {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .blog-latest-image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 82px;
    }
    
    .blog-latest-image img {
        object-fit: cover;
    }
    
    .blog-latest-body {
        padding: 6px 7px;
    }

    .blog-latest-title {
        font-size: 13px;
    }

    .blog-latest-subtitle {
        font-size: 11px;
    }

    .blog-latest-read {
        padding-top: 5px;
    }
}


/* ---------------------------------------------------------
   SMARTPHONE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .home-page .main-column table {
        min-width: 620px;
    }
    
    /* allerte */
    .alert-main-row {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3px;
    }

    .alert-day-row {
        grid-template-columns: 2fr 3fr;
        gap: 3px;
    }    

    .alert-type {
        flex-direction: row;
        font-size: 9px;
    }

    .alert-levels {
        gap: 3px;
    }

    .alert-level {
        font-size: 8px;
    }

    .alert-button {
        font-size: 9px;
    }

    .alert-status {
        min-width: 60px;
    }    
    
    /*mappa allerte*/
    .alert-modal {
        padding: 0;
    }

    .alert-modal-content {
        min-height: 100vh;
        border-width: 1px;
    }

    .alert-modal-close {
        right: 5px;
        top: 5px;
        width: 28px;
        height: 28px;
    }

    .alert-map .wrapper {
        padding: 8px 5px 6px;
    }

    .alert-map h2 {
        font-size: 14px;
    }

    .alert-map .info {
        font-size: 11px;
    }

    .alert-map .legend {
        gap: 5px 8px;
        font-size: 9px;
    }

    .alert-map .box {
        width: 11px;
        height: 11px;
        flex-basis: 11px;
    }
    
    .box-allerte  {
        display:none;
    }        
    
    /* realtime */
    .realtime-grid {
        grid-template-columns: 1fr;
    }

    .realtime-station-name {
        font-size: 12px;
    }

    .realtime-value strong {
        font-size: 13px;
    }
    
    .weekly-data-grid {
        grid-template-columns: 1fr;
    }
}