* {
  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: 1100px; /* o 1100px, in base a quanto vuoi allargare */
  margin: 0 auto;
  padding: 0 20px;
}


/* Banner con logo e pubblicità */
.top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  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: 122px;
  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;
}

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

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

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

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

/* 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;
}
.article-buttons {
  text-align: center;
  margin: 40px auto 20px auto;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  max-width: 800px;
}

.article-buttons .read-more-button {
  margin: 10px 15px;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  background-color: #6DD900;
  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: #000;
}
.article-full,
.article-full p,
.article-full li {
  font-size: 1rem;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  color: #333;
}

@media (max-width: 600px) {
  .read-more {
    display: block;
    width: 80%;
    margin: 10px auto;
    text-align: center;
  }
}


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

.author-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 20px;
  margin-top: 10px;
  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;
}
.article-side-image {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 30px 0;
}

.article-side-image img {
  width: 50%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.article-side-image .side-text {
  width: 50%;
}

.article-side-image .side-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contenitore-articolo {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 16px;
  font-family: sans-serif;
}

.autore-box {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.img-autore {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
}

.titolo-articolo h1 {
  margin: 0;
  font-size: 1.8rem;
}

.autore {
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
}

/* SLIDER */
.slider-box {
  width: 80%;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden; /* nasconde il contenuto che esce */
  position: relative;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  flex-shrink: 0;
  max-height: 500px;
  object-fit: cover;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-buttons button {
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 5px 15px;
  cursor: pointer;
}

.collaborazioni {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.collaborazioni li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.collaborazioni li strong {
  font-weight: 600;
  color: #444;
  margin-right: 10px;
}
.link-due-colonne {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px; /* <--- aggiunge spazio sotto */
}


.colonna-link {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.colonna-link a {
  text-decoration: none;
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.colonna-link a:hover {
  color: #0056b3; /* o il colore che preferisci per l’hover */
}

/* Layout mobile: una colonna sotto l’altra */
@media screen and (max-width: 768px) {
  .colonna-link {
    flex: 1 1 100%;
  }

}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Footer */
.site-footer {
  background-color: #eee;
  padding: 30px 0 15px;
  border-top: 1px solid #ccc;
}
.footer-image {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.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%;
  min-height: 150px;
  text-align: center;
  font-weight: bold;
}

.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) {
  .top-banner {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-box {
    width: 100%;
  }
}
