* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: #0d0d0d;
  color: #f2f2f2;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #bb0a1e;
  transition: color 0.3s ease;
}

a:hover {
  color: #f54242;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 16px 0;
}

header {
  background-color: #1a1a1a;
  border-bottom: 2px solid #bb0a1e;
  padding: 16px 0;
  text-align: center;
}

header h1 {
  color: #bb0a1e;
  font-size: 32px;
  margin-bottom: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  gap: 24px;
  background-color: #1a1a1a;
  padding: 16px 0;
}

nav ul li a {
  color: #f2f2f2;
  font-weight: bold;
  font-size: 17.6px;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #f54242;
}


.hero {
  background-color: #141414;
  padding: 48px 16px;
  text-align: center;
}

.hero h2 {
  color: #bb0a1e;
  font-size: 35.2px; 
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px; 
  max-width: 800px;
  margin: 0 auto;
}

.cases, .insights {
  padding: 56px 0;
}

.cases h3, .insights h2 {
  color: #bb0a1e;
  margin-bottom: 16px;
  font-size: 28.8px; 
}

.case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.case {
  background-color: #1e1e1e;
  padding: 16px 19.2px;
  border-left: 4px solid #bb0a1e;
  border-radius: 10px;
  text-align: center;
}

.case h4 {
  color: #f54242;
  margin-bottom: 8px;
}

.case p {
  font-size: 16px;
}

.case img {
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.about-section {
  padding: 48px 0;
  text-align: center;
}

.about-section h2 {
  color: #bb0a1e;
  font-size: 35.2px; 
  margin-bottom: 24px;
}

.about-section p {
  max-width: 800px;
  margin: 16px auto;
  font-size: 16px;
  line-height: 1.7;
  color: #f2f2f2;
}

.about-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.image-placeholder {
  width: 250px;
  height: 180px;
  background-color: #333;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 30, 30, 0.3);
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-placeholder img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.search-container {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.search-container input[type="text"] {
  padding: 11.2px 16px;
  width: 300px;
  border: none;
  border-radius: 25px 0 0 25px;
  font-size: 1rem;
  font-family: 'Georgia', serif;
  background-color: #1e1e1e;
  color: #f2f2f2;
  outline: none;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.search-container input[type="text"]::placeholder {
  color: #999;
}

.search-container input[type="text"]:focus {
  background-color: #2a2a2a;
}

.search-container button {
  padding: 11.2px 19.2px;
  border: none;
  border-radius: 0 25px 25px 0;
  background-color: #bb0a1e;
  color: #f2f2f2;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #f54242;
}

footer {
  background-color: #1a1a1a;
  padding: 24px 0;
  text-align: center;
  font-size: 14.4px;
  border-top: 1px solid #333;
  color: #aaa;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .case-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-gallery {
    gap: 32px;
  }

  .image-placeholder {
    width: 300px;
    height: 200px;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: url('SFONDO.jpeg') no-repeat center center / cover;
  filter: blur(8px) brightness(0.4);
  z-index: -1;
}

.case-list-menu li a {
  color: #ff4d4d;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.case-list-menu li a:hover {
  color: #ffffff;
  transform: scale(1.05);
  text-shadow: 0 0 5px rgb(255, 2, 2);
}

.case-box {
  background-color: #000000;
  border: 1px solid #ff0000;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  color: white;
}

.case-box h3 {
  color: #9f0000;
}

.case-box p {
  color: #dddddd;
  line-height: 1.6;
}

.case-box img {
  max-width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}

.case-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-img {
  width: 250px;
  height: auto;
  margin-left: 20px;
}

.hero h2,
.hero p,
.cases h3,
.insights h2,
.about-section h2,
.about-section p {
  text-align: center;
}

.hero p,
.about-section p {
  max-width: 800px;
  margin: 0 auto;
}

.cases {
  text-align: center;
}

.case-list-menu {
  justify-content: center;
  padding-left: 0;
}

.case-list-menu li {
  list-style: none;
}

.case-list-menu li a {
  display: inline-block;
}

.case img {
  display: block;
  width: 80%;
  height: auto;
  margin: 0 auto 16px; /* Spazio sotto l'immagine */
}

.image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

img {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
  width: 180px; 
  box-shadow: 0 20px 20px rgba(84, 1, 1, 0.4); 
  object-fit: cover; 
}


