/* 17/09/2026 accessibilita': #5a7a9a → #587898 (4,48 → 4,61:1) e #9ab0c8 → #5b7088 (2,22 → 5,10:1), contrasto AA su bianco. */
/* ══════════════════════════════════════════════════════════════════════════════
   METEO WIDGET — prefisso hw- (home weather)
   Caricato solo quando il widget è attivo (iniettato da meteoRenderWidget)
   Palette: stile portale RiminiRimini — azzurro chiaro, blu scuro #1a3560
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Homepage section wrapper ── */
.hp-meteo-section {
    padding: 32px 0 36px;
    background: linear-gradient(135deg, #eef6fc 0%, #deedf9 100%);
    border-top: 1px solid #cce0f0;
    border-bottom: 1px solid #cce0f0;
}
/* Mini: meno padding verticale */
.hp-meteo-section--mini {
    padding: 14px 0;
}

/* ── Widget base ── */
.hw-widget {
    border-radius: 14px;
    padding: 22px 26px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a3560;
}

/* Full (homepage) */
.hw-widget--full {
    background: #fff;
    border: 1px solid #c8dff0;
    border-top: 3px solid #1d5c94;
    box-shadow: 0 2px 14px rgba(26,53,96,.07);
}

/* Inline (articoli) */
.hw-widget--inline {
    background: #f4f8fb;
    border: 1px solid #c5d8f5;
    border-left: 3px solid #1d5c94;
    max-width: 640px;
    margin: 20px 0;
}

/* Errore */
.hw-error {
    background: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 10px; padding: 16px 20px;
    font-size: 13px; color: #6c757d;
    display: flex; align-items: center; gap: 10px;
}

/* ── Header ── */
.hw-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid #d8eaf6;
}
.hw-header-left  { display: flex; align-items: center; gap: 6px; }
.hw-header-right { display: flex; align-items: center; gap: 6px; }
.hw-pin          { font-size: 11px; color: #1d5c94; opacity: .7; }
.hw-location     { font-weight: 700; font-size: 16px; letter-spacing: .3px; color: #1a3560; }
.hw-date         { font-size: 13px; color: #3a5a80; }
.hw-upd          { font-size: 11px; color: #7a9ab8; }

/* ── Condizioni attuali ── */
.hw-current {
    display: flex; gap: 24px; align-items: flex-start;
    margin-bottom: 22px;
}
.hw-cur-left {
    display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.hw-main-icon {
    font-size: 52px;
    color: #f39c12;
    flex-shrink: 0;
}

.hw-temp-block { display: flex; flex-direction: column; }
.hw-temp  { font-size: 52px; font-weight: 700; line-height: 1; color: #1a3560; }
.hw-cond  { font-size: 13px; color: #587898; margin-top: 3px; }

.hw-cur-right {
    flex: 1; display: flex; flex-direction: column;
    gap: 8px; padding-top: 6px;
}
.hw-det {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2a4a6a;
}
.hw-det i { width: 14px; text-align: center; color: #1d5c94; opacity: .7; flex-shrink: 0; }
.hw-sub   { font-size: 11px; color: #7a9ab8; font-style: normal; margin-left: 2px; }

/* ── Badge UV e Mare ── */
.hw-badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 20px; font-size: 11px; font-weight: 700;
}
.hw-uv--low     { background: #d4edda; color: #1a6630; }
.hw-uv--mod     { background: #fff3cd; color: #856404; }
.hw-uv--high    { background: #ffe0c4; color: #8a4000; }
.hw-uv--vhigh   { background: #fdd; color: #8b0000; }
.hw-uv--extreme { background: #e8d4f0; color: #5a1a7a; }
.hw-sea--calm   { background: #d4eaf7; color: #0d4a7a; }
.hw-sea--low    { background: #d4edda; color: #1a6630; }
.hw-sea--mid    { background: #fff3cd; color: #856404; }
.hw-sea--high   { background: #fdd; color: #8b0000; }

/* ── Previsioni ── */
.hw-forecast {
    display: flex; gap: 8px;
    overflow-x: auto; padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(26,53,96,.15) transparent;
}
.hw-day {
    flex: 1 0 72px; min-width: 70px; max-width: 90px;
    background: #f4f8fb;
    border: 1px solid #c8dff0;
    border-radius: 10px; padding: 10px 6px;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px; text-align: center;
    color: #1a3560;
    transition: background .2s, border-color .2s;
}
.hw-day:hover {
    background: #e4f0fb;
    border-color: #1d5c94;
}

.hw-day-name {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: #3a5a80;
}
.hw-day-icon     { font-size: 22px; color: #f39c12; }
.hw-day-temps    { display: flex; gap: 5px; align-items: baseline; }
.hw-day-max      { font-size: 15px; font-weight: 700; color: #1a3560; }
.hw-day-min      { font-size: 11px; color: #7a9ab8; }
.hw-day-extra {
    font-size: 10px; color: #587898;
    display: flex; align-items: center; gap: 2px;
}
.hw-day-extra i  { font-size: 9px; }
.hw-day-wind     { color: #5b7088; }

/* ── Footer ── */
.hw-footer {
    font-size: 10px; text-align: right;
    color: #5b7088; padding-top: 10px;
    border-top: 1px solid #d8eaf6;
}
.hw-footer a { color: #1d5c94; text-decoration: none; }
.hw-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   LAYOUT MINI — barra compatta orizzontale
   ══════════════════════════════════════════════════════════ */
.hw-widget--mini {
    padding: 10px 20px;
    border-radius: 10px;
    border-top-width: 1px; /* sovrascrive il bordo-top spesso del full */
    border-left: 3px solid #1d5c94;
}
.hw-mini-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hw-mini-loc {
    font-size: 12px; font-weight: 700;
    color: #1d5c94; white-space: nowrap;
    display: flex; align-items: center; gap: 4px;
}
.hw-mini-icon { font-size: 24px; color: #f39c12; }
.hw-mini-temp { font-size: 26px; font-weight: 700; color: #1a3560; line-height: 1; }
.hw-mini-cond { font-size: 13px; color: #587898; flex: 1; }
.hw-mini-upd  { font-size: 11px; color: #5b7088; margin-left: auto; white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hw-widget { padding: 16px 18px; }
    .hw-temp      { font-size: 44px; }
    .hw-main-icon { font-size: 46px; }
    .hw-day       { flex: 1 0 64px; min-width: 64px; }
}
@media (max-width: 560px) {
    .hw-current   { flex-direction: column; gap: 14px; }
    .hw-cur-left  { width: 100%; }
    .hw-temp      { font-size: 42px; }
    .hw-main-icon { font-size: 42px; }
    .hw-header-right { flex-direction: column; align-items: flex-end; gap: 2px; }
    .hw-day       { flex: 1 0 58px; min-width: 56px; padding: 8px 4px; }
    .hw-day-name  { font-size: 9px; }
    .hw-day-icon  { font-size: 18px; }
    .hw-day-max   { font-size: 13px; }
}
