/* 
   CUSTOM.CSS
   Stile per le sezioni notizie homepage e notizie per città
   Ottimizzato per un aspetto più accattivante, 
   simile (ma migliorato) a un layout “classico”
*/

/* Contenitore generale */
.notizie-homepage,
.notizie-citta {
  background-color: #f5f9fc; /* Sfondo chiaro leggermente azzurrino */
  padding: 2rem 0;
}

/* Per distanziare un po' la row dall'esterno */
.notizie-homepage .row,
.notizie-citta .row {
  margin: 0 auto;
  max-width: 1200px;
}

/* Card generiche */
.card-notizia {
  border: none; 
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

/* Leggera ombra di default */
.card-notizia {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Ombra più intensa all’hover */
.card-notizia:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Intestazione della card (nome città) */
.card-notizia .card-header.citta-header {
  background-color: #e9f1f7; 
  border-bottom: 1px solid #dee2e6;
  padding: 0.4rem 0.8rem;
}

/* Testo nome della città */
.card-notizia .nome-citta {
  font-weight: 600;
  text-transform: uppercase;
  color: #007bff; /* Un blu di richiamo */
  font-size: 0.85rem;
}

/* Immagine della card */
.card-notizia .card-img-top {
  height: 200px;         /* Altezza fissa per uniformare le card */
  object-fit: cover;     /* Ritaglia l’immagine riempiendo lo spazio */
  border-radius: 0;      /* nessun arrotondamento in alto, per uniformità */
  border-bottom: 1px solid #dee2e6;
}

.card-img-top {
  width: 100%;
  height: 200px;    /* scegli tu l’altezza che preferisci */
  object-fit: cover;
  display: block;
}


/* Corpo della card */
.card-notizia .card-body {
  padding: 1rem;
}

/* Titolo */
.card-notizia .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 700;
}

/* Testo */
.card-notizia .card-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

/* Footer della card */
.card-notizia .card-footer {
  background-color: #ffffff;
  border-top: none;
  padding: 0.5rem 1rem;
}

/* Bottone “Leggi di più” */
.card-notizia .btn.btn-primary {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

/* Messaggio Nessuna notizia */
.notizie-homepage p.text-center,
.notizie-citta p.text-center {
  margin-top: 2rem;
  font-size: 1rem;
  color: #777;
}

/* Responsive: su schermi extra small (max 576px), 
   vuoi card al 100%? (Bootstrap gestisce già .col-sm-6, 
   ma puoi forzare i breakpoints come vuoi).
   Ecco un esempio:
*/
@media (max-width: 576px) {
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


.single-notizie-citta .featured-image img {
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.single-notizie-citta .content {
  font-size: 1rem;
  line-height: 1.6;
}

/* Esempio generico per rendere la card e il bottone più grandi */
.card-body {
  font-size: 1rem; /* ingrandisci un po’ */
}

.card-title {
  font-size: 1.2rem;
}

.card-footer .btn {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
}

/* Nome città */
.nome-citta {
  font-size: 1rem;
  font-weight: 700;
}

