* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* Contenitore centrale */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Banner con logo e pubblicità */
.top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #119E4A;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.logo {
  flex: 1 1 auto;
  text-align: center;
  max-width: 100%;
}

.logo img {
  height: auto;
  max-height: 160px;
  width: 100%;
  max-width: 300px; /* puoi regolare questo valore */
  object-fit: contain;
}

.ad {
  flex: 0 0 150px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad img {
  max-width: 100%;
  max-height: 122px;
}
.top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px;
  background-color: #119E4A;
}

.ad {
  max-width: 30%;
  height: auto;
}

.logo {
  max-width: 30%;
  height: auto;
}

/* Responsive: mantieni su una riga anche su mobile */
@media (max-width: 768px) {
  .top-banner {
    flex-direction: row; /* ← IMPORTANTE: non column */
    justify-content: space-around;
    align-items: center;
    gap: 10px;
  }

  .ad,
  .logo {
    max-width: 30%;
  }
}


/* Menu orizzontale */
.main-menu {
  background-color: #000000;
}

.main-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.main-menu a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.main-menu a:hover {
  background-color: #FF9326;
}

/* Bottone hamburger (nascosto di default) */
.menu-toggle {
  display: none; /* non visibile da PC */
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  gap: 8px; /* spazio tra hamburger e scritta */
}

/* Contenitore verticale per le linee */
.bar-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ogni linea */
.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
}

/* Scritta MENU */
.menu-label {
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* SOLO su mobile (<768px) */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* qui diventa visibile */
  }

  .main-menu ul {
    display: none;
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .main-menu ul.show {
    display: flex;
  }
}


.news-ticker {
  background-color: #111;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  border-top: 2px solid #444;
  border-bottom: 2px solid #444;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: scrollTicker 60s linear infinite;
  will-change: transform;
}

.ticker-content span {
  display: inline-block;
  margin-right: 50px;
}

/* Ferma lo scroll quando il mouse è sopra */
.news-ticker:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Griglia articoli */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px 0;
}

.article-box {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.article-author {
  font-size: 0.9rem;
  color: #666;
  margin: 4px 0 10px;
  font-style: italic;
}

.image-placeholder {
  width: 100%;
  height: 180px;
  background-color: #ccc;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  background-color: #119E4A;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #FF9326;
}
.article-full {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.author-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.article-full h1 {
  margin: 0;
  font-size: 2rem;
}

.article-author {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 4px;
}

.article-image-full {
  width: 100%;
  height: auto;
  margin: 30px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.fb-share-btn {
  display: inline-block;
  background-color: #1877f2; /* blu Facebook */
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.fb-share-btn:hover {
  background-color: #145dbf;
}

.vignetta-box {
  position: relative;
  padding-bottom: 56.25%; /* proporzione 16:9 */
  height: 0;
  overflow: hidden;
}

.vignetta-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px; /* opzionale, per arrotondare gli angoli */
}
/* ===== Layout foto autore e titolo articolo ===== */
.article-header {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap; /* permette di andare a capo se serve */
}

.author-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0; /* impedisce la deformazione */
}

.article-header h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  word-break: break-word; /* spezza parole troppo lunghe */
}

.article-author {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Mobile: foto sopra al titolo */
@media (max-width: 600px) {
  .article-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.2rem;
  }
}


.article-image {
  margin-bottom: 12px; /* Spazio sotto l’immagine */
}

.article-box h2 {
  margin-bottom: 4px; /* Riduce lo spazio sotto il titolo */
}

.article-author {
  margin-top: 0px;    /* Riduce lo spazio sopra l'autore */
  margin-bottom: 10px; /* Aggiusta anche lo spazio sotto, se serve */
  font-style: italic;  /* (opzionale) per stile autore più elegante */
}

.redazione {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.redazione h1 {
  text-align: center;
  margin-bottom: 30px;
}

.redattori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.redattore {
  text-align: center;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.redattore:hover {
  transform: translateY(-5px);
}

.redattore img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.redattore h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.redattore p {
  font-size: 0.9rem;
  color: #555;
}

/* Footer */
.site-footer {
  background-color: #eee;
  padding: 30px 0 15px;
  border-top: 1px solid #ccc;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-box {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  flex: 1 1 30%;
  max-width: 32%;
  min-height: 150px;
  text-align: center;
  font-weight: bold;
  margin: 10px;
}

.footer-image {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-box {
    width: 100%;
    max-width: 100%;
  }
}
/* =========================
   SEZIONE REDAZIONE
========================= */
.redazione {
  padding: 20px;
}

.redazione h1 {
  text-align: center;
  margin-bottom: 30px;
}

.redattori-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.redattore {
  background-color: #fff;
  border: 1px solid #ddd; /* Bordino sottile */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Ombra leggera */
  padding: 15px;
}

.redattore img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%; /* Foto tonda */
  display: block;
  margin: 0 auto 10px auto; /* Centra solo la foto */
}

.redattore h3,
.redattore p {
  text-align: left; /* Testo allineato a sinistra */
}

.redattore h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.redattore p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}

/* =========================
   VERSIONE MOBILE
========================= */
@media (max-width: 600px) {
  .redattori-grid {
    grid-template-columns: 1fr; /* Una card per riga */
  }

  .redattore {
    padding: 10px;
  }

  .redattore img {
    width: 90px;
    height: 90px; /* Foto più piccole su mobile */
  }

  .redattore h3 {
    font-size: 1rem;
  }

  .redattore p {
    font-size: 0.85rem;
  }
}
.site-footer-secondary {
  background-color: #000;
  color: white;
  padding: 15px 20px;
}

.site-footer-secondary .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.site-footer-secondary a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer-secondary a:hover {
  color: #FF9326;
}

.site-footer-secondary .social-icons a img {
  width: 20px;
  height: 20px;
}

.site-footer-secondary .stats-button {
  background-color: #FF9326;
  color: black;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.site-footer-secondary .stats-button:hover {
  background-color: white;
  color: black;
}
