body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

/* TITOLI */

h1 {
  color: #ffd700;
}

h2 {
  margin: 0;
}

/* LINK */

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  bottom: 5px;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 0 4px 4px 0;
  display: inline-block;
}

.hero-text h2 {
  margin: 0;
  font-size: 20px;
  color: #0073e6;
  white-space: nowrap;
}

/* LAYOUT BLOG */

.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

/* GRIGLIA ARTICOLI */

.blog-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 25px;
  align-items: start;
}

.card {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
}

.card-title span {
  display: flex;
  align-items: center;
  margin: 0 10px;
  background: #fff;
  padding: 0 10px;
  height: 48px;
  color: #0073e6;
  font-weight: 700;
  line-height: 1.2;
}

/* SIDEBAR */

.sidebar {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  height: fit-content;
}

.sidebar h3 {
  color: #333;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

/* MOBILE */

@media (max-width: 900px) {
  body {
    padding: 20px;
  }

  .back-site {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .back-site a {
    color: #0073e6;
    text-decoration: none;
  }

  .back-site a:hover {
    text-decoration: underline;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .blog-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .hero-banner {
    height: 200px;
  }
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

/* TITOLI */

h1 {
  color: #ffd700;
}

h2 {
  margin: 0;
}

/* LINK */

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  bottom: 5px;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px;
  border-radius: 0 4px 4px 0;
  display: inline-block;
}

.hero-text h2 {
  margin: 0;
  font-size: 18px;
  color: #0073e6;
  white-space: nowrap;
}

/* LAYOUT BLOG */

.layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

/* GRIGLIA ARTICOLI */

.blog-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 25px;
}

.card {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SIDEBAR */

.sidebar {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  height: fit-content;
}

.sidebar h3 {
  color: #333;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.article-content {
  text-align: left;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  max-width: 750px;
  margin: 40px auto;
  padding: 0 15px;
}

/* titolo */

.article-content h1 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 15px;
}

/* sottotitoli */

.article-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* paragrafi */

.article-content p {
  margin-bottom: 18px;
}

/* grassetto */

.article-content strong {
  font-weight: 700;
}

/* lista */

.article-content ul {
  padding-left: 20px;
  margin-bottom: 18px;
}

/* link */

.article-content a {
  color: #0073e6;
}

.article-content a:hover {
  text-decoration: underline;
}

/* MOBILE */

@media (max-width: 900px) {
  body {
    padding: 20px;
  }

  .back-site {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .back-site a {
    color: #0073e6;
    text-decoration: none;
  }

  .back-site a:hover {
    text-decoration: underline;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .blog-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .hero-banner {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .card-title span {
    font-size: 20px;
    line-height: 1.35;
  }
}
