:root {
  --color-bg: #f4f6f8;
  --color-bg-dark: #101823;
  --color-bg-section-light: #f5f7f8;
  --color-primary: #1f4b61;
  --color-accent: #da0813;
  --color-text: #1a2530;
  --color-text-light: #e7edf3;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.18);
  --radius-card: 18px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* TOP BAR */

.top-bar {
  background-color: #26465a;
  color: #dce7f0;
  font-size: 12px;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* HEADER */

.main-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-pair img {
  height: 120px;
  width: auto;
}

@media (max-width: 640px) {
  .logo-pair img {
    height: 56px;   
  }
}


/* ---------------- NAV – BASE ---------------- */

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
}

.main-nav a,
.nav-dropdown-toggle {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: #22313f;
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a.active {
  color: var(--color-primary);
  font-weight: 500;
}

.main-nav a:hover,
.nav-dropdown-toggle:hover {
  background-color: rgba(31, 75, 97, 0.08);
  transform: translateY(-1px);
}

/* ---------------- DROPDOWN (DESKTOP) ---------------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- MEGA MENU (DESKTOP) ---------------- */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 950px;
  padding: 28px 36px;
  background: #ffffff;
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
  box-shadow: 0 22px 50px rgba(10, 20, 30, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 20;
}

/* Apertura desktop al passaggio */
.nav-dropdown:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------------- COLONNE ---------------- */

.mega-col {
  position: relative;
}

.mega-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1F4B61;
  letter-spacing: .08em;
}

.mega-col a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #23303E;
  text-decoration: none;
  transition: padding-left .15s ease, color .15s ease;
}

.mega-col a:hover {
  padding-left: 8px;
  color: #1F4B61;
}

/* ---------------- SEPARATORI VERTICALI (DESKTOP) ---------------- */

.mega-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: -21px;
  width: 1px;
  height: 100%;
  background-color: #E2E7EB;
  opacity: 0.9;
}

/* ---------------- RESPONSIVE – TABLET/MOBILE ---------------- */
@media (max-width: 980px) {

  /* Il menu diventa pannello mobile */
  .main-nav {
    position: fixed;
    inset: 60px 16px auto 16px;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    padding: 16px 18px 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Il mega menu NON è più dropdown */
  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 10px 0;
    display: none;     /* chiuso di default */
    opacity: 1;
    visibility: visible;
    transform: none !important;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Apertura mobile */
  .mega-menu.open {
    display: grid;
  }

  /* Niente separatori */
  .mega-col::after {
    display: none !important;
  }

  /* Toggle più grande */
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 18px;
  }
}

/* ---------------- MOBILE STRETTO ---------------- */
@media (max-width: 640px) {
  .mega-menu {
    grid-template-columns: 1fr;
  }
}





/* LANG SWITCH */

.lang-switch {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7790a4;
}

.lang-switch span {
  font-weight: 600;
  color: #1c2833;
}

.lang-switch a {
  text-decoration: none;
  color: #5c7489;
}

.lang-switch a:hover {
  color: var(--color-primary);
}

/* BURGER (mobile) */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #22313f;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  height: min(80vh, 720px);
  min-height: 460px;
  overflow: hidden;
  background-color: #000;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media--image {
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.05) 0, transparent 40%),
              linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(5, 10, 20, 0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-text-light);
}

.hero-kicker {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12px;
  color: #A9C2D6;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
}

.hero-text {
  max-width: 540px;
  font-size: 15px;
  color: #dae4ee;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1f4b61, #2b6a86);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(3, 19, 35, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(3, 19, 35, 0.5);
}

.btn-ghost {
  background-color: transparent;
  color: #e1ecf5;
  border-color: rgba(210, 224, 234, 0.6);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* HERO CONTROLS */

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background-color: rgba(12, 22, 33, 0.7);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero:hover .hero-control {
  opacity: 1;
}

.hero-control--prev {
  left: 24px;
}
.hero-control--next {
  right: 24px;
}

.hero-control:hover {
  background-color: rgba(30, 60, 90, 0.95);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: rgba(228, 238, 245, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 24px;
  background: linear-gradient(135deg, #1f4b61, #2b6a86);
}

/* SECTIONS */

.section {
  padding: 72px 16px;
  background-color: #ffffff;
}

.section-light {
  background-color: var(--color-bg-section-light);
}

.section-dark {
  background: radial-gradient(circle at 10% 0, #233750 0, #101823 60%);
  color: var(--color-text-light);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-inner--wide {
  max-width: 1320px;
}

.section-header {
  text-align: left;
  max-width: 620px;
  margin-bottom: 36px;
}

.section-header--dark {
  color: var(--color-text-light);
}

.section-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: #8ea6bd;
  margin-bottom: 8px;
}

.section h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.section-subtitle {
  margin-top: 10px;
  color: #c7d4e0;
  font-size: 14px;
}

/* CARDS GRID */

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* INFO CARDS */

.info-card {
  background: linear-gradient(145deg, #1f4b61, #2b6a86);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

/* PRODUCT CARDS */

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  background-color: #ffffff;
  box-shadow: 0 16px 45px rgba(17, 35, 51, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-media {
  height: 240px;                /* più grande e visibile */
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

.product-card h3 {
  margin: 14px 18px 4px;
  color: var(--color-primary);
  font-size: 16px;
}

.product-card p {
  margin: 0 18px 16px;
  font-size: 13px;
  color: #647890;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 35, 50, 0.26);
}

/* ---- PRODUCT CARD IMAGE (RESPONSIVE) ---- */
/* TABLET (max 980px) */
@media (max-width: 980px) {
  .product-media {
    height: 200px;
  }
}

/* MOBILE (max 640px) */
@media (max-width: 640px) {
  .product-media {
    height: 170px;
  }
}



/* VIDEO SECTION */

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: stretch;
}

.video-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.video-main-thumb {
  height: 100%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.video-main-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.7));
  color: #ffffff;
}

.video-play {
  font-size: 42px;
  margin-bottom: 10px;
}

.video-main-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.video-main:hover .video-main-overlay {
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.6));
}

.video-thumbs {
  display: grid;
  gap: 14px;
}

.video-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration: none;
  background-color: rgba(14, 29, 44, 0.9);
  color: #e2ecf5;
  font-size: 13px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.video-thumb-img {
  width: 90px;
  height: 60px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.video-thumb:hover {
  background-color: rgba(33, 75, 97, 0.95);
  transform: translateY(-1px);
}

/* GALLERY HORIZONTAL SCROLL */

.gallery-scroll {
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #e7eef5);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.gallery-track img {
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  scroll-snap-align: center;
  flex-shrink: 0;
}

.gallery-track1 {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.gallery-track1
 img {
  height: 300px;
  border-radius: 14px;
  object-fit: cover;
  scroll-snap-align: center;
  flex-shrink: 0;
}


/* ABOUT SECTION */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.about-text p {
  font-size: 14px;
  color: #4c6072;
}

.about-text p + p {
  margin-top: 8px;
}

.about-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.about-media {
  position: relative;
  height: 320px;
}

.about-img {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.about-img--main {
  inset: 0;
}

.about-img--secondary {
  width: 52%;
  height: 52%;
  right: -6%;
  bottom: -6%;
}

/* FOOTER */

.site-footer {
  background-color: #050a11;
  color: #9cabbd;
  padding-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 32px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.3fr;
  gap: 32px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 5px;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #dce6f0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 4px;
}

.footer-col a {
  color: #9cabbd;
  text-decoration: none;
  font-size: 13px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.footer-social a {
  font-size: 13px;
}

.footer-small {
  font-size: 12px;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px 16px;
  text-align: center;
  font-size: 12px;
  color: #7f8c99;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .main-header {
    padding-inline: 16px;
  }

  .main-nav {
    position: fixed;
    inset: 60px 16px auto 16px;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    padding: 16px 18px 18px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .cards-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-layout {
    grid-template-columns: minmax(0, 1.5fr);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media {
    height: 260px;
    margin-top: 8px;
  }
}

@media (max-width: 640px) {
  .top-bar-inner {
    justify-content: center;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    padding-inline: 18px;
  }

  .hero-text {
    max-width: none;
    font-size: 13px;
  }

  .cards-grid--4,
  .cards-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-track img {
    height: 180px;
  }

   .gallery-track1 img {
    height: 180px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


.hero-oilgas-img {
  position: relative;
  height: min(60vh, 480px);
  background-image: url('video/Gas_Station_Vol2_EN_R0325.mp4'); /* Cambia immagine */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-oilgas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.75));
}

.hero-oilgas-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.hero-desc {
  color: #dbe7f0;
  max-width: 600px;
  margin-bottom: 20px;
}

/* ---- HERO OIL & GAS ---- */

.hero-oilgas-img {
  position: relative;
  height: min(60vh, 480px);
  background-image: url('images/oilgas-hero.jpg'); /* Cambia immagine */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-oilgas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.75));
}

.hero-oilgas-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.breadcrumb {
  margin-top: 20px;
  font-size: 14px;
}
.breadcrumb a {
  color: #99b7cd;
  text-decoration: none;
}
.breadcrumb span {
  color: #dce6ef;
}


/* ---- SUBCATEGORIES ---- */

.subcat-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3,1fr);
}

.subcat-card {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.subcat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}
.subcat-card h4 {
  margin-top: 12px;
  color: #1F4B61;
}


/* ---- FILTER BAR ---- */

.filter-bar {
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #1F4B61;
  background: transparent;
  color: #1F4B61;
  cursor: pointer;
  transition: .25s;
}
.filter-btn.active,
.filter-btn:hover {
  background: #1F4B61;
  color: #fff;
}

/* ---- HERO VIDEO SECTION ---- */

.hero-oilgas-video-section {
  position: relative;
  height: min(85vh, 700px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-oilgas-bgvideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-oilgas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.7));
}

.hero-oilgas-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.hero-oilgas-content h1 {
  margin-bottom: 15px;
}

.hero-desc {
  color: #dbe7f0;
  max-width: 650px;
}

.breadcrumb {
  margin-top: 20px;
  font-size: 14px;
}
.breadcrumb a {
  color: #9bb4c9;
  text-decoration: none;
}
.breadcrumb span {
  color: #dbe7ef;
}


/*what's app*/
/* ---- WHATSAPP FLOAT BUTTON ---- */


.whatsapp-wrapper {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.whatsapp-float {
  width: 62px;
  height: 62px;
  background-color: grey;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

/* --- TOOLTIP --- */

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform-origin: right center;
  transition: opacity .2s ease, transform .2s ease;
}

.whatsapp-wrapper:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 680px) {
  .whatsapp-tooltip {
    display: none;
  }
}

/* ---- HERO CATEGORY Flame arrester (immagine) ---- */

.hero-category-img {
  position: relative;
  height: min(55vh, 420px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.75));
}

.hero-category-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.category-description {
  max-width: 820px;
  font-size: 16px;
  color: #4c6072;
  line-height: 1.6;
}

/* ------------------------------------------------------ */
/* HERO VIDEO PRODUCT */
/* ------------------------------------------------------ */

.hero-product-video {
  position: relative;
  height: min(85vh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}




.hero-product-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.hero-product-content h1 {
  margin-bottom: 12px;
}

.hero-desc {
  color: #dce4ed;
  max-width: 650px;
  margin-bottom: 20px;
}


/* ------------------------------------------------------ */
/* BREADCRUMB */
/* ------------------------------------------------------ */

.breadcrumb {
  margin-top: 14px;
  font-size: 14px;
}

.breadcrumb a {
  color: #9bb4c9;
  text-decoration: none;
}

.breadcrumb span {
  color: #e6edf3;
}


/* ------------------------------------------------------ */
/* GENERAL PRODUCT DESCRIPTION */
/* ------------------------------------------------------ */

.product-description {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.7;
  color: #4b5c6c;
  margin: 0 auto;
}


/* ------------------------------------------------------ */
/* CTA – CONFIGURATION TOOL */
/* ------------------------------------------------------ */

.cta-box {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.cta-button {
  background: #1F4B61;
  color: #fff;
  padding: 16px 26px;
  border-radius: 10px;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s ease, transform .2s ease;
}

.cta-button:hover {
  background: #163a4b;
  transform: translateY(-2px);
}


/* ------------------------------------------------------ */
/* MODEL HEADER */
/* ------------------------------------------------------ */

.model-header {
  margin-bottom: 30px;
  text-align: center;
}

.model-header h2 {
  font-size: 30px;
  color: #1F4B61;
  margin-bottom: 6px;
}

.model-header p {
  color: #506270;
}


/* ------------------------------------------------------ */
/* MODEL LAYOUT */
/* ------------------------------------------------------ */

.model-layout {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.model-media img,
.model-media video {
  width: 300px;
  border-radius: 16px;
  display: block;
}

.model-gif {
  margin-top: 15px;
  width: 250px;
  border-radius: 16px;
}

.model-specs {
  flex: 1;
  min-width: 260px;
}

.model-specs ul {
  padding-left: 18px;
}

.model-specs li {
  margin-bottom: 12px;
  font-size: 17px;
  color: #2f3d4b;
}



/* ------------------------------------------------------ */
/* MODEL LINKS – PDF / VIDEO / TUTORIAL */
/* ------------------------------------------------------ */

.model-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* DOWNLOAD BUTTONS – identical style to Inline 330 */
.model-links-center {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}


/* Primary button (Datasheet) */
.spec-btn.pdf {
  background: #1F4B61;
  color: #ffffff;
}

/* Secondary buttons (ATEX + Manual) */
.spec-btn.cert,
.spec-btn.manual {
  background: #ffffff;
  color: #1F4B61;
}

/* Hover */
.spec-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.spec-btn {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #1F4B61;
  transition: .2s ease;
}

.spec-btn.tutorial,
.spec-btn.video {
  background: #fff;
  color: #1F4B61;
}

/* ------------------------------------------------------ */
/* GALLERY SLIDER */
/* ------------------------------------------------------ */

.gallery-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
}

.gallery-track {
  display: flex;
  gap: 14px;
}

.gallery-track img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  background: #f2f6f8;
  padding: 10px;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: zoom-in;
}



/* ------------------------------------------------------ */
/* RESPONSIVE */
/* ------------------------------------------------------ */

@media (max-width: 980px) {

  .model-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .model-media img,
  .model-media video {
    width: 260px;
  }

  .model-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {

  .hero-product-content {
    padding: 22px;
  }


  


  .model-media img,
  .model-media video {
    width: 220px;
  }

  .gallery-track img {
    width: 150px;
    height: 150px;
  }
}


/* ----- SPECIFIC PAGE: FLANGED 6000 ----- */

/* Description specs box */
.specs-box ul {
  padding-left: 18px;
  max-width: 700px;
  margin: 20px auto;
}

.specs-box li {
  font-size: 17px;
  margin-bottom: 10px;
  color: #2f3d4b;
}

/* Image grid modern */
.image-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.image-grid img {
  width: 100%;
  border-radius: 16px;
  background: #f2f6f8;
  object-fit: contain;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transition: transform .25s ease;
}

.image-grid img:hover {
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 980px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}
/* ----- IMAGE SLIDER (same style as inline) ----- */

.gallery-slider {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
}

.gallery-track {
  display: flex;
  gap: 14px;
}

.gallery-track img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  padding: 10px;
  background: #f3f6f8;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .25s ease;
}

.gallery-track img:hover {
  transform: translateY(-4px);
}


/* ----- TECHNICAL TABLE ----- */

.tech-table {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
}

.tech-table th {
  width: 35%;
  padding: 16px 20px;
  background: #1F4B61;
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
}

.tech-table td {
  padding: 16px 20px;
  font-size: 16px;
  color: #2e4150;
  background: #f9fcfe;
  border-bottom: 1px solid #dfe7ec;
}

.tech-table tr:last-child td {
  border-bottom: none;
}


/* ----- RESPONSIVE ----- */

@media (max-width: 640px) {

.tech-table th,
.tech-table td {
    padding: 12px 14px;
    font-size: 14px;
  }

.gallery-track img {
    width: 160px;
    height: 160px;
  }
}

/* Tighten vertical spacing between sections */
.section {
  padding-top: 50px;
  padding-bottom: 50px;
}



/* --- Remove vertical space between Technical Data and Downloads --- */

/* Reduce bottom spacing under technical section */
.section-light {
  padding-bottom: 30px !important;
}

/* Reduce spacing above Downloads section */
.section:nth-of-type(n+3) .section-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove bottom spacing of the technical table */
.tech-table {
  margin-bottom: 10px !important;
}

/* Tighten spacing inside the container */
.section-inner {
  margin-bottom: 0 !important;
}


/* ---------------- HERO ABOUT VIDEO ---------------- */

.hero-about-video {
  position: relative;
  height: min(85vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-about-bgvideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.8));
}

.hero-about-content {
  position: relative;
  padding: 40px;
  color: #fff;
  max-width: 900px;
}

.hero-about-content h1 {
  margin-bottom: 12px;
}

.hero-about-content .hero-desc {
  color: #dbe7f0;
  max-width: 620px;
}


/* ---------------- MISSION + KPI ---------------- */

.about-mission {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-mission-text {
  flex: 2;
  min-width: 260px;
}

.about-kpi-grid {
  flex: 1.4;
  min-width: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.kpi-number {
  font-size: 26px;
  font-weight: 700;
  color: #1F4B61;
}

.kpi-label {
  font-size: 13px;
  color: #647484;
  margin-top: 4px;
}


/* ---------------- STORY ---------------- */

.about-story-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.about-story-text {
  flex: 2;
  min-width: 280px;
  color: #2e3c4a;
  font-size: 16px;
  line-height: 1.7;
}

.about-story-text p + p {
  margin-top: 12px;
}

.about-story-aside {
  flex: 1;
  min-width: 260px;
}

.founder-card {
  background: #0f172a;
  color: #e5edf6;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}

.founder-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.founder-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.founder-name {
  font-weight: 600;
}


/* ---------------- TECHNOLOGY SECTION ---------------- */

.about-tech {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-tech-text {
  flex: 1.4;
  min-width: 280px;
}

.about-tech-video {
  flex: 1.2;
  min-width: 260px;
}

.about-tech-video video {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}


/* ---------------- VALUES ---------------- */

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  min-height: 150px;
}

.value-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1F4B61;
}

.value-card p {
  font-size: 14px;
  color: #4a5b6b;
}


/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 980px) {
  .about-mission {
    flex-direction: column;
  }
  .about-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-story-layout {
    flex-direction: column;
  }
  .about-tech {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-about-content {
    padding: 22px;
  }
  .hero-about-video {
    height: 360px;
  }
  .about-kpi-grid {
    grid-template-columns: 1fr;
  }
  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .about-values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- SOUND BUTTON FOR HERO VIDEO --- */
.unmute-btn {
  position: absolute;
  bottom: 26px;
  right: 26px;
  z-index: 30;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .25s ease, transform .2s ease;
}

.unmute-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-2px);
}
/* --- VIDEO CARD --- */
.video-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.youtube-wrapper {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  position: relative;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- VALUE ICON --- */
.value-card .value-icon {
  width: 52px;
  margin-bottom: 12px;
  opacity: 0.95;
  transition: opacity .25s ease;
}

/* --- MOTOCROSS HOVER IMAGE --- */
.value-card-hover {
  position: relative;
  overflow: hidden;
}

.value-card-hover .value-hover-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}

.value-card-hover .value-hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-card-hover:hover .value-hover-image {
  opacity: 1;
}

.value-card-hover:hover .value-icon,
.value-card-hover:hover h3,
.value-card-hover:hover p {
  opacity: 0;
  transition: opacity .25s ease;
}
/* --- VIDEO ON HOVER CARD --- */

.video-hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.hover-video-image img {
  width: 52px;
  margin-bottom: 12px;
  opacity: 1;
  transition: opacity .25s ease;
}

.hover-video-player {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .35s ease;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.hover-video-player video {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* HOVER EFFECT */
.video-hover-card:hover .hover-video-player {
  opacity: 1;
}

.video-hover-card:hover .hover-video-image img,
.video-hover-card:hover h3,
.video-hover-card:hover p {
  opacity: 0;
}
/* HERO CONTACT */
.hero-contact {
  position: relative;
  height: min(50vh, 540px);
  min-height: 460px;
  background: url('images/hero/contact.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  color: #fff;
}

.hero-contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* puoi cambiare opacità */
}

.hero-contact-content {
  position: relative;
  max-width: 600px;
}

.hero-contact-content h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero-contact-content p {
  font-size: 18px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-contact {
    height: 260px;
    padding: 20px;
  }
}

/* CONTACT GRID */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1F4B61;
}

.contact-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #23303E;
}

.contact-box a {
  color: #1F4B61;
  text-decoration: none;
  font-weight: 600;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* FORM */
.form-wrapper {
  padding: 20px;
}

.contact-form {
  width: 100%;
  height: 1150px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-contact {
    height: 280px;
    padding: 20px;
  }
}

/* HERO SUPPORT */
.hero-support {
  position: relative;
  height: 300px;
  background: url('images/support-hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  color: #fff;
}

.hero-support-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-support-content {
  position: relative;
  max-width: 700px;
}

.hero-support-content h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

.hero-support-content p {
  font-size: 18px;
  opacity: 0.9;
}


/* CATALOG GRID */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 30px;
}

.catalog-card {
  text-align: center;
  border-radius: 14px;
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.catalog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.catalog-card h3 {
  margin-top: 14px;
  font-size: 18px;
  color: #1F4B61;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
/* DOCUMENT GRID */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 30px;
}

.docs-block h3 {
  color: #1F4B61;
  font-size: 20px;
  margin-bottom: 12px;
  margin-top: 20px;
}

.docs-block ul {
  list-style: none;
  padding: 0;
}

.docs-block ul li {
  margin-bottom: 8px;
}

.docs-block a {
  color: #22313f;
  text-decoration: none;
  font-size: 15px;
  transition: color .3s ease, padding-left .2s ease;
}

.docs-block a:hover {
  color: #1F4B61;
  padding-left: 6px;
}
/* SECTIONS */
.section {
  padding: 70px 0;
}

.section-light {
  background: #f6f9fb;
  padding: 70px 0;
}

.section-inner {
  width: min(1200px, 90%);
  margin: auto;
}

.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 28px;
  color: #1F4B61;
}
/* RESPONSIVE */
@media (max-width: 1000px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-support {
    height: 240px;
    padding: 20px;
  }
}

@media (max-width: 700px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero-support-content h1 {
    font-size: 28px;
  }

  .hero-support-content p {
    font-size: 16px;
  }
}

/* ICON IN LIST */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.doc-list li img {
  width: 18px;
  opacity: 0.9;
}

.doc-list a {
  font-size: 15px;
  color: #23303E;
  text-decoration: none;
  transition: .2s;
}

.doc-list a:hover {
  color: #1F4B61;
  padding-left: 5px;
}

/* HERO PRODUCT (video / poster) */
.hero-product-video{
  position: relative;
  height: min(80vh, 720px);
  min-height: 460px;
  overflow: hidden;
  background: #000;
}

.hero-product-bgvideo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* QUI è la magia: sposta il crop */
  object-position: 75% center; /* prova 70–85% */
}

/* mobile: sposta ancora di più */
@media (max-width: 700px){
  .hero-product-video{
    height: 62vh;
    min-height: 380px;
  }
  .hero-product-bgvideo{
    object-position: 82% center;
  }
}

.hero-product-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(40, 44, 50, 0.52) 0%,
    rgba(40, 44, 50, 0.38) 32%,
    rgba(40, 44, 50, 0.20) 58%,
    rgba(40, 44, 50, 0.08) 75%,
    rgba(40, 44, 50, 0.00) 100%
  );
}


