* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: white;
  min-height: 100vh;
}

.text-content p {
  font-size: 1.2rem;
}

.container-menu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #3498db;
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  font-size: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  position: relative;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

nav a.active {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Content */
main {
  margin-top: 78.06px;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  text-align: center;
  color: white;
  overflow: hidden;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-bottom: solid #3498db 10px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.7) 0%,
    rgba(52, 152, 219, 0.6) 100%
  );
  z-index: -1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}
.paddingb2 {
  padding-bottom: 2rem;
}

.centered-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 10rem;
  min-height: 60vh;
  margin: 2rem auto;
}

.centered-section h1 {
  font-size: 3rem;
  color: #2c3e50;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.ml-1{
  margin-left: 1px;
}

.centered-section h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #74b9ff);
  border-radius: 2px;
}

.centered-section p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #555;
  margin: 0 auto;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .centered-section,
  .centered-section-alt {
    padding: 3rem 1.5rem;
    margin: 1rem;
  }

  .centered-section h1,
  .centered-section-alt h1 {
    font-size: 2.2rem;
  }

  .centered-section p,
  .centered-section-alt p {
    font-size: 1.1rem;
  }
}

.blog-title {
  margin-left: 3rem;
  margin-top: 3rem;
}

.scroll-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.scroll-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.scroll-button svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .scroll-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
  }

  .scroll-button svg {
    width: 20px;
    height: 20px;
  }

}

.content-card {
  background: transparent;
  margin: 0 50px;
  padding: 0 30px;
  padding-bottom: 1rem;
}

.pt1{
  padding-top: 1rem;
}

.pb0{
  padding-bottom: 0;
}

.border-bottom {
  border-bottom: #3498db 2px solid;
}

.content-card h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-card h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #c1e0ff);
  border-radius: 2px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.truck-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.truck-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.truck-card h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: #3498db;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.product-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
  min-height: 80vh;
}

.job-post {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #27ae60;
  transition: all 0.3s ease;
}

.job-post:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.job-post h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.job-date {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.job-type {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.contact-info {
  background: #3498db;
  padding: 2rem 6rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  color: white;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.footer-column h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #0f2b3d;
  font-weight: 600;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-details a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #0f2b3d;
}

.map-container {
  background: #0f2b3d;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%);
}

.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3498db;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.info-title {
  font-size: 1.2rem;
  color: #0f2b3d;
  margin-bottom: 10px;
  font-weight: 600;
}

.info-section {
  margin-bottom: 30px;
}

.info-section:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    padding: 40px 20px;
  }

  .footer-column h3 {
    font-size: 1.5rem;
  }

  .map-container {
    height: 250px;
  }
}

@media (max-width: 1024px) {
  .contact-details li {
    font-size: 1rem;
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Fix dropdown mobile */
  .dropdown {
    position: static;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
  }

  .dropdown-content a {
    color: #0f2b3d;
    background: transparent;
    text-align: center;
    padding: 1rem 2rem;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  main {
    margin-top: 120px;
  }

  .fleet-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  .content-card{
    margin: 0px 0px;
  }
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.content-card {
  animation: slideIn 0.6s ease-out;
  max-width: 100%;
  overflow: hidden;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-with-image {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.text-content {
  flex: 1;
  min-width: 0;
  padding: 0 3rem;
  align-self: center;
  overflow-wrap: break-word;
}

.image-content {
  flex: 0 0 600px; /* Raddoppiato da 300px a 600px */
  max-width: 600px; /* Raddoppiato da 300px a 600px */
}

.shadow{
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-content img {
  width: 100%; /* Scala l'immagine al 200% */
  height: auto;
  display: block;
  object-fit: contain;
  transform-origin: top left; /* Punto di origine per la scala */
}

/* Responsive per schermi piccoli */
@media (max-width: 1024px) {
  .content-with-image {
    flex-direction: column;
    gap: 1rem;
  }

  .image-content {
    flex: none;
    width: 100%;
    max-width: 600px; /* Mantiene la dimensione raddoppiata */
    align-self: center;
  }

  .image-content img {
    width: 100%; /* Su mobile torna a dimensione normale per leggibilità */
  }
}

/* Stile per l'immagine di sfondo */
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* Mette l'immagine dietro tutto */
}

.content-card-icons {
  padding: 0rem 6rem;
  text-align: center;
  background: #e8e8e8;
}

.content-card-icons h2 {
  color: #0f2b3d;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  font-family: "Arial", sans-serif;
}

.icons-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.icon-item {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  padding: 20px;
}

.icon-wrapper {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-wrapper:hover {
  transform: translateY(-10px);
}

.icon-text {
  color: #0f2b3d;
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .icons-container {
    flex-direction: column;
    align-items: center;
  }

  .icon-item {
    max-width: 100%;
  }

  .content-card-icons h2 {
    font-size: 2rem;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1001;
  margin-top: 5px;
}

.dropdown-content-a {
  border-radius: 0%;
  color: #0f2b3d;
  border: 1px #3498db;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(100deg, #3498db 40%, #80d0ff 60%, white 90%);
  color: white;
  transform: translateY(-5px);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown > .nav-link::after {
  content: " ▼";
  font-size: 0.8rem;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}

.dropdown-content a:hover::before {
  background: white;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 15px;
  font-size: 14px;
  text-align: center;
  z-index: 9999;
}

.cookie-banner button {
  margin: 0 10px;
  padding: 8px 16px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  cursor: pointer;
}

.cookie-banner a {
  color: #4caf50;
  text-decoration: underline;
}