button:disabled {
  cursor: not-allowed;
  pointer-events: all !important;
}
.image-container {
  overflow: hidden;
  border-radius: 8px;
}

.hover-zoom-image {
  transition: transform 0.3s ease;
  width: 100%;
  height: auto;
}

.hover-zoom-image:hover {
  transform: scale(2);
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}



/* Container principale */
.forecast-responsive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Card forecast */
.forecast-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Singolo item */
.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    min-height: 100px;
}

/* Data e icona (sezione speciale) */
.forecast-date-icon {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    
    /*color: white;*/
    grid-column: span 2;
}

.forecast-date-icon .day {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.forecast-icon {
    margin-top: 10px;
}

.forecast-icon .weathericon {
    width: 60px;
    height: 60px;
}

/* Label e valore */
.forecast-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.forecast-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .forecast-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .forecast-date-icon {
        grid-column: span 2;
    }
    
    .forecast-item {
        min-height: 80px;
        padding: 10px;
    }
    
    .forecast-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .forecast-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .forecast-date-icon {
        grid-column: span 1;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .forecast-icon {
        margin-top: 0;
    }
    
    .forecast-icon .weathericon {
        width: 50px;
        height: 50px;
    }
    
    .forecast-item {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        min-height: auto;
    }
    
    .forecast-label {
        margin-bottom: 0;
    }
}








/* Places recenti cookies */
.recent-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
.recent-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  max-width: 220px;
  border: 2px solid #2196F3;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.15s, transform 0.15s;
}
.recent-card:hover {
  box-shadow: 0 6px 16px rgba(33,150,243,0.18);
  transform: translateY(-2px);
}
.recent-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.8);
  overflow: hidden;
  position: relative;
}
.recent-card__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.recent-card__image-skeleton {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #e0e8f0 25%, #f0f4f8 50%, #e0e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.recent-card__image-error {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #90aac8;
}
.recent-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.recent-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1976D2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.recent-card__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-prod {
  background: #e8f0fe;
  color: #1a56a0;
}
.badge-output {
  background: #f8f9fa;
  color: #666;
  border: 1px solid rgba(0,0,0,0.08);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (max-width: 600px) {
  .recent-card { flex: 1 1 140px; max-width: 160px; }
}









/* ── Favorite button ──────────────────────────────────── */
.meteo-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #2196F3;
    border-radius: 8px;
    background: #fff;
    color: #1976D2;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.meteo-favorite-btn:hover {
    background: #e8f0fe;
    box-shadow: 0 2px 8px rgba(33,150,243,0.15);
}

.meteo-favorite-btn--saved {
    background: #2196F3;
    color: #fff;
}

.meteo-favorite-btn--saved:hover {
    background: #1976D2;
    box-shadow: 0 2px 8px rgba(33,150,243,0.25);
}

.meteo-favorites-empty {
    font-size: 14px;
    color: #666;
    padding: 1rem 0;
}