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

body {
  font-family: 'Ubuntu', sans-serif;
  color: #1d1d1b;
  background: #fff;
  max-width: 1920px;
  margin: 0 auto;
}

/* ── FADE-IN ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
}
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  padding: 18px 0;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: space-between;
  overflow: visible;
  position: relative;
  z-index: 100;
}

header .logo img {
  height: 36px;
}

header .logo a {
  display: block;
  line-height: 0;
}

header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

header nav a {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  letter-spacing: 0.01em;
}

header nav a:hover {
  color: #2c4390;
}

header nav .divider {
  color: #bbb;
  font-size: 16px;
}

/* ── LANG SELECTOR ── */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #cccccc;
  border-radius: 20px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  background: #fff;
  margin-left: 8px;
  cursor: pointer;
  position: relative;
}

.lang-selector:hover {
  border-color: #999;
}

.lang-selector svg {
  flex-shrink: 0;
}

.lang-selector select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 16.67% 33.33% 16.67% 16.67% 16.67%;
  min-height: 420px;
  background: #2a2a2a;
}

.hero-text {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 70px 64px 80px;
}

.hero-image {
  grid-column: 4 / 6;
  overflow: hidden;
}

.hero-text h1 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 70px;
  font-weight: 700;
  line-height: 72px;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-text p {
  font-family: 'Ubuntu', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 30px;
  color: #ffffff;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image:hover img {
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

/* ── CARDS SECTION ── */
.cards-section {
  display: grid;
  grid-template-columns: 16.67% 33.33% 33.33% 16.67%;
  min-height: 460px;
}

.card-side-img {
  overflow: hidden;
}

.card-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.card-side-img:hover img {
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

.card-body {
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.card-safety  { background: #ffffff; }
.card-lighting { background: #f6f6f6; }

.card-intro {
  font-family: 'Ubuntu', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 34px;
  color: #000000;
  margin-bottom: 24px;
}

.card-logo {
  height: 80px;
  width: auto;
  margin-top: 30px;
  margin-bottom: 50px;
  display: block;
  align-self: flex-start;
}

.card-company {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: #000000;
  margin-bottom: 12px;
}

.card-address {
  font-family: 'Ubuntu', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #1d1d1b;
  margin-bottom: 12px;
}

.card-address strong {
  font-weight: 700;
  color: #000000;
}

.card-btn {
  padding-top: 30px;
}

.card-btn a {
  display: inline-block;
  padding: 12px 32px;
  background: #2c4390;
  color: #ffffff;
  font-family: 'Ubuntu', sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.2s;
}

.card-btn a:hover {
  background: #233673;
}

/* ── IMAGE STRIP ── */
.image-strip-wrapper {
  position: relative;
}

.strip-arrow {
  display: none;
}

.image-strip {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  height: 490px;
}

.image-strip div {
  overflow: hidden;
}

.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.image-strip div:hover img {
  transform: scale(1.04);
}

/* ── PAGE CONTENT (privacy, cookie, ecc.) ── */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  font-family: 'Ubuntu', sans-serif;
  color: #1d1d1b;
}

.page-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 52px;
  color: #000;
  margin-bottom: 24px;
}

.page-content h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: #000;
  margin-top: 48px;
  margin-bottom: 12px;
}

.page-content p {
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #1d1d1b;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .page-content {
    padding: 40px 24px 60px;
  }

  .page-content h1 {
    font-size: 32px;
    line-height: 36px;
  }

  .page-content h2 {
    font-size: 20px;
    line-height: 26px;
  }

  .page-content p {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ── FOOTER ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 7.29%;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
}

footer .footer-logo {
  flex-shrink: 0;
}

footer .footer-logo img {
  height: 30px;
  display: block;
}

footer .footer-links {
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

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

footer .footer-links a:hover {
  color: #2c4390;
}

/* ── TABLET LANDSCAPE (1025px–1366px) ── */
@media (min-width: 1025px) and (max-width: 1366px) {
  header {
    max-width: 100%;
    padding: 18px 40px;
  }

  footer {
    gap: 16px;
    padding: 20px 40px;
  }

  .hero {
    grid-template-columns: 66.67% 33.33%;
  }

  .hero-text {
    grid-column: 1;
    padding: 48px 40px;
  }

  .hero-image {
    grid-column: 2 / 3;
  }

  .hero-text h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .hero-text p {
    font-size: 20px;
    line-height: 26px;
  }

  .cards-section {
    grid-template-columns: 1fr 1fr;
  }

  .card-side-img {
    display: none;
  }

  .card-body {
    padding: 40px 36px;
  }

  .card-intro {
    font-size: 28px;
    line-height: 32px;
  }

  .card-logo {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* ── TABLET PORTRAIT (fino a 1024px) ── */
@media (max-width: 1024px) {
  header {
    max-width: 100%;
    padding: 18px 36px;
  }

  footer {
    gap: 16px;
    padding: 20px 40px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text {
    grid-column: 1;
    padding: 48px 40px;
  }

  .hero-image {
    grid-column: 2 / 3;
  }

  .hero-text h1 {
    font-size: 48px;
    line-height: 52px;
  }

  .hero-text p {
    font-size: 20px;
    line-height: 26px;
  }

  .cards-section {
    grid-template-columns: 1fr 1fr;
  }

  .card-side-img {
    display: none;
  }

  .card-body {
    padding: 40px 36px;
  }

  .card-intro {
    font-size: 23px;
    line-height: 32px;
  }

  .card-logo {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .image-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 340px;
    scrollbar-width: none;
  }

  .image-strip::-webkit-scrollbar { display: none; }

  .image-strip div {
    flex: 0 0 50%;
    scroll-snap-align: start;
  }
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE (fino a 600px) ── */
@media (max-width: 600px) {
  header { padding: 14px 20px; }

  .hamburger { display: flex; }

  header nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid #e8e8e8;
    z-index: 100;
  }

  header nav.open { display: flex; }
  header nav .divider { display: none; }
  header nav a { font-size: 16px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-text {
    grid-column: 1;
    padding: 36px 24px;
    text-align: center;
  }

  .hero-image {
    grid-column: 1;
    display: block;
    height: 240px;
  }

  .hero-text h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .hero-text p {
    font-size: 20px;
    line-height: 26px;
  }

  .cards-section {
    grid-template-columns: 1fr;
  }

  .card-side-img {
    display: none;
  }

  .card-body {
    padding: 36px 24px 32px;
    text-align: center;
    align-items: center;
  }

  .card-logo {
    align-self: center;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .card-intro {
    font-size: 24px;
    line-height: 28px;
  }

  .card-company {
    font-size: 16px;
    line-height: 22px;
  }

  .card-address {
    font-size: 16px;
    line-height: 22px;
  }

  .card-btn a {
    font-size: 16px;
    padding: 10px 20px;
  }

  .image-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 260px;
    scrollbar-width: none;
  }

  .image-strip::-webkit-scrollbar { display: none; }

  .image-strip div {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .strip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .strip-prev { left: 10px; }
  .strip-next { right: 10px; }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    text-align: center;
  }

  footer .footer-links {
    font-size: 14px;
    line-height: 18px;
  }
}

/* ── MOBILE LANDSCAPE ── */
@media (max-width: 900px) and (orientation: landscape) {
  footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    text-align: center;
  }
}
