body.page-template-safetyfall {
  background-color: #000 !important;
}

body.page-template-safetyfall .back-img-certificazioni {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  height: 85vh;
  filter: grayscale(0);
  position: relative;
  margin-bottom: 5rem;
}

.sezione-1-landing {
  padding: 5rem;
  display: flex !important;
  align-content: center;
  justify-content: center;
  align-items: center;
}

body.page-template-safetyfall .container-partner {
  display: flex;
  align-content: center;
  align-items: center;
  padding: 2rem;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

body.page-template-safetyfall .logo-partner {
  max-width: 10rem;
  width: 100%;
  filter: brightness(1) !important;
}

body.page-template-safetyfall .container-sezione-form {
  width: 100% !important;
  border-top: none;
}

body.page-template-safetyfall .back-img-certificazioni::before {
  content: "";
  width: 100vw;
  height: 85vh;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #00000024;
  z-index: -1;
}

.omino-cadente-img {
  max-width: 50rem;
}

.container-intro-omino {
  display: flex;
  align-items: flex-start;
  align-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.container-sezione-omino {
  height: 100vh;
  display: flex;
  align-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  justify-content: center;
  left: 50%;
  align-items: flex-end;
  margin-top: -10rem;
  z-index: -1;
}

.posizionamento-omino {
  margin-bottom: 0rem;
}

.container-s {
  position: absolute;
  z-index: -1;
  left: -15rem;
}

body.page-template-safetyfall .titolo-della-consulenza {
  font-size: 8rem !important;
  font-weight: 700 !important;
  color: #fff !important;
}

.distanziamento-sezioni {
  margin: 5rem auto !important;
}

body.page-template-safetyfall div#video_main3 {
  margin-top: 5rem;
  margin-bottom: 5rem;
  border-top: 1px solid #0167a1;
  border-bottom: 1px solid #0167a1;
}

.sezione-gallery {
  padding: 5rem;
  margin-top: 5rem;
  padding-bottom: 10rem;
}

.container-testo-gallery {
  text-align: center;
  max-width: 75rem;
  margin: 0 auto 5rem auto;
}

.back-gallery {
  background-color: #000 !important;
}

/* Gallery custom safety free fall: desktop griglia masonry, mobile slider */
.sff-gallery-grid {
  max-width: 1350px;
  margin: 0 auto;
  columns: 3;
  column-gap: 10px;
}

.sff-gallery-item {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  break-inside: avoid;
}

.sff-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.sff-gallery-item:hover .sff-gallery-img {
  transform: scale(1.08);
}

.sff-gallery-slider {
  display: none !important; /* owl-loaded mette display:block con specificità maggiore */
}

@media (max-width: 767px) {
  .sff-gallery-grid {
    display: none;
  }

  .sff-gallery-slider {
    display: block !important;
  }

  .sff-gallery-slider .sff-gallery-item {
    margin-bottom: 0;
  }

  .sff-gallery-slider .sff-gallery-img {
    height: 24rem;
    object-fit: cover;
  }
}

.sff-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.sff-lightbox.open {
  display: flex;
}

.sff-lightbox-media {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.sff-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.sff-lightbox.sff-loading::after {
  content: "";
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #93c01f;
  border-radius: 50%;
  animation: sff-spin 0.8s linear infinite;
}

@keyframes sff-spin {
  to { transform: rotate(360deg); }
}

.sff-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

.sff-lightbox-nav:hover {
  color: #93c01f;
}

.sff-lightbox-prev {
  left: 0.5rem;
}

.sff-lightbox-next {
  right: 0.5rem;
}

body.page-template-safetyfall .link-acceptance {
  color: #93c01f;
  font-family: "PP Telegraf";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-decoration: none;
  transition: 0.3s;
}

body.page-template-safetyfall .video-full-width {
  width: 100vw;
  height: 80vh;
}

.dimensione-titoli {
  font-size: 2.986rem !important;
  line-height: 4rem !important;
}

.rotazione-nastro1 {
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  height: 1.8rem;
  transform: skew(0deg, 3deg);
  box-shadow: 0px 7px 7px 0px #111111;
  position: relative;
  z-index: 10;
  margin-bottom: -6rem;
}

.rotazione-nastro2 {
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  height: 1.8rem;
  transform: skew(0, 3deg);
  box-shadow: 0px -7px 7px 0px #111111;
  position: relative;
  z-index: 10;
  margin-top: -6rem;
}

.rotazione-video {
  transform: skew(0, 3deg);
  position: relative;
  z-index: 1;
}

.container-sezioni-partner {
  display: flex;
  flex-direction: column !important;
  align-content: center;
  justify-content: center;
  align-items: center;
}

body.page-template-safetyfall .container-marchi {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  gap: 3rem;
}

body.page-template-safetyfall .sizing-marchi {
  max-width: 8.5rem;
  width: 100%;
  transform: scale(1);
  transition: all 0.3s;
}

body.page-template-safetyfall .sizing-marchi:hover {
  transform: scale(1.15);
  transition: all 0.3s;
}

body.page-template-safetyfall .contenuto-chi-siamo {
  max-width: 40rem;
  width: 100%;
  font-weight: 600 !important;
  color: #fff !important;
}

.video-dicono {
  max-height: 40rem;
  height: 100%;
  width: 100%;
}

.contenitore-video-dicono {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.contenitore.testo-dicono {
  text-align: center;
  margin-bottom: 5rem;
}

.wpcf7-list-item {
  margin: 0 !important;
  padding-right: 0.5rem;
}

body.page-template-safetyfall .owl-nav {
  position: absolute;
  left: -1.5rem;
  right: -1.5rem;
  top: 50%;
  bottom: 50%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-between;
  align-items: center;
}

body.page-template-safetyfall .owl-theme .owl-nav [class*="owl-"]:hover {
  background: transparent !important;
  color: #fff;
  text-decoration: none;
}

body.page-template-safetyfall .titolo-marchi {
  margin-bottom: 1rem;
  color: #93c01f !important;
  font-size: 1.728rem !important;
}

.partner-sizing {
  max-width: max-content;
}

.sezione-dicono {
  margin: 0 auto;
}

.video-mobile {
  display: none;
}

@media (max-width: 767px) {
  .video-desktop {
    display: none;
  }
  .video-mobile {
    display: block;
  }
}

button#btn-apri-form,
a.bottone-link-sd {
  margin: 0 auto !important;
}

body.page-template-safetyfall .bottone {
  color: #fff;
  text-transform: uppercase;
}

body.page-template-safetyfall .bottone:hover {
  transform: translateY(-1px);
}

.form-nascosto {
  display: none;
  margin-top: 20px;
  position: relative;
}

.btn-chiudi-form {
  position: absolute;
  top: -50px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}

.btn-chiudi-form:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

body.page-template-safetyfall .container-form-contatto {
  padding: 5rem !important;
  padding-top: 0 !important;
}

body.page-template-safetyfall .container-form-contatto {
  border-right: none !important;
}

@media (min-width: 1490.5px) {
  .max-65vw {
    max-width: 65vw;
  }

  body.page-template-safetyfall .container-form-contatto {
    border-right: none !important;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
  }

  .max-40vw {
    max-width: 40vw !important;
    margin: 0 auto !important;
  }

  .omino-cadente-img {
    width: 60rem !important;
    max-width: 60rem !important;
  }
}

@media (max-width: 991.5px) {
  body.page-template-safetyfall .container-partner {
    display: flex;
    align-content: center;
    align-items: center;
    padding: 2rem;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5rem;
  }
}

@media (max-width: 750.5px) {
  body.page-template-safetyfall .titolo-della-consulenza {
    font-size: 4rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 4rem !important;
  }

  .container-sff-tm img {
    max-width: 10rem;
    margin-top: 0rem;
  }

  .contenitore-video-dicono {
    display: grid;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-template-safetyfall .container-form-contatto {
    padding: 5rem 2rem !important;
    padding-top: 0 !important;
  }
}

@media (min-width: 500.5px) {
  .hide-500-min {
    display: none !important;
  }
}

@media (max-width: 500.5px) {
  .sezione-1-landing {
    padding: 2rem;
    display: flex !important;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin-top: 0 !important;
  }

  .container-testo-gallery {
    text-align: center;
    margin: 0 auto 0rem auto;
  }

  .spaziamento-immagine-testo {
    margin-bottom: 5rem;
  }

  .spaziamento-testo-immagine {
    margin-top: 5rem !important;
  }

  .sezione-gallery {
    padding: 2rem;
    margin-top: 5rem;
    padding-bottom: 10rem;
  }

  body.page-template-safetyfall .row.container-sezione-form {
    width: 100vw !important;
    margin: 0 auto !important;
  }

  body.page-template-safetyfall .back-img-certificazioni {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 85vh;
    filter: grayscale(0);
    position: relative;
    margin-bottom: 1rem;
  }

  body.page-template-safetyfall .back-img-certificazioni {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 100vh;
    filter: grayscale(0);
    position: relative;
    margin-bottom: 1rem;
  }

  body.page-template-safetyfall .back-img-certificazioni::before {
    content: "";
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00000024;
    z-index: -1;
  }

  body.page-template-safetyfall .dimensione-titoli {
    font-size: 2.488rem !important;
    line-height: 2.5rem !important;
  }

  body.page-id-302 .back-img-certificazioni {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 80vh;
    filter: grayscale(0);
    position: relative;
    margin-bottom: 1rem;
  }

  body.page-id-302 .container-s img {
    max-height: 80vh;
  }

  .hide-500-max {
    display: none !important;
  }

  .video-dicono {
    max-height: 100vh;
    height: 100%;
    width: 100%;
  }

  .container-sezione-omino {
    height: 100vh;
    display: flex;
    align-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    justify-content: center;
    left: 15%;
    align-items: flex-end;
    margin-top: -3rem;
    z-index: -1;
  }
}

@media (max-width: 480px) {
  body.page-template-safetyfall .back-img-certificazioni {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 100vh;
    filter: grayscale(0);
    position: relative;
    margin-bottom: 10rem;
  }

  body.page-id-302 .back-img-certificazioni {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    height: 100vh;
    filter: grayscale(0);
    position: relative;
    margin-bottom: 0;
  }

  .container-sezione-omino {
    height: 100vh;
    display: flex;
    align-content: center;
    position: absolute;
    top: 0;
    bottom: 0;
    justify-content: center;
    left: 15%;
    align-items: flex-end;
    margin-top: 10rem;
    z-index: -1;
  }
}


/* ============================================================
   DRONE SPAZI CONFINATI · Elios 3
   ============================================================ */
body.page-template-drone-spazi-confinati {
  background-color: #000 !important;
}

.page-template-drone-spazi-confinati .e3-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-template-drone-spazi-confinati .e3-section {
  padding: 5rem 0;
  position: relative;
}

.page-template-drone-spazi-confinati .e3-kicker,
.page-template-drone-spazi-confinati .e3-eyebrow {
  display: inline-block;
  color: #93c01f;
  font-family: "Barlow", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-template-drone-spazi-confinati .e3-section__head {
  max-width: 52rem;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.page-template-drone-spazi-confinati .e3-section__head .dimensione-titoli {
  color: #b7c4ca !important;
}

.page-template-drone-spazi-confinati .e3-section__intro {
  font-size: 1.1rem;
  line-height: 1.8rem;
  margin-top: 1rem;
}

.page-template-drone-spazi-confinati h2.dimensione-titoli {
  color: #b7c4ca !important;
  text-transform: uppercase !important;
}

/* ---------- HERO (stesso stile delle hero interne del sito) ---------- */
.page-template-drone-spazi-confinati .e3-hero .e3-hero-text {
  max-width: 46rem;
}
.page-template-drone-spazi-confinati .e3-hero .titolo-sezione {
  color: #b7c4ca !important;
  margin-bottom: 1rem !important;
}
.page-template-drone-spazi-confinati .e3-hero .e3-hero-sub {
  color: #93c01f;
  font-family: "Barlow", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.page-template-drone-spazi-confinati .e3-hero .contenuto-chi-siamo {
  color: #b7c4ca !important;
  font-size: 1.05rem;
  line-height: 1.8rem;
  max-width: 46rem;
  margin-bottom: 2rem;
}
.page-template-drone-spazi-confinati .e3-hero .contenuto-chi-siamo strong { color: #fff; }

/* ---------- GRID + CARDS ---------- */
.page-template-drone-spazi-confinati .e3-grid {
  display: grid;
  gap: 1.5rem;
}
.page-template-drone-spazi-confinati .e3-grid--3 { grid-template-columns: repeat(3, 1fr); }
.page-template-drone-spazi-confinati .e3-grid--2 { grid-template-columns: repeat(2, 1fr); }

.page-template-drone-spazi-confinati .e3-card {
  position: relative;
  background: #0c0e0f;
  border: 1px solid #1c2123;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  counter-increment: e3card;
}
.page-template-drone-spazi-confinati .e3-capabilities .e3-grid { counter-reset: e3card; }
.page-template-drone-spazi-confinati .e3-card:hover {
  transform: translateY(-6px);
  border-color: #93c01f;
}
.page-template-drone-spazi-confinati .e3-card__index::before {
  content: "0" counter(e3card);
  font-family: "Barlow", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1f2a0c;
  display: block;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 1px #93c01f;
}
.page-template-drone-spazi-confinati .e3-card__title {
  color: #fff !important;
  font-family: "Barlow", sans-serif !important;
  font-size: 1.35rem !important;
  margin-bottom: 0.6rem;
}
.page-template-drone-spazi-confinati .e3-card__text { margin: 0; }

/* ---------- SPLIT ---------- */
.page-template-drone-spazi-confinati .e3-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-template-drone-spazi-confinati .e3-split--reverse { margin-top: 3rem; }
.page-template-drone-spazi-confinati .e3-split--reverse .e3-split__media { order: 2; }
.page-template-drone-spazi-confinati .e3-split__text p { font-size: 1.05rem; line-height: 1.8rem; }
.page-template-drone-spazi-confinati .e3-split__text strong { color: #fff; }

.page-template-drone-spazi-confinati .e3-rounded {
  border-radius: 16px;
  border: 1px solid #1c2123;
}

.page-template-drone-spazi-confinati .e3-mapping__hero {
  margin: 0 0 1rem;
}
.page-template-drone-spazi-confinati .e3-mapping__hero img { width: 100%; }

/* ---------- VIDEO (showcase + mappatura) ---------- */
.page-template-drone-spazi-confinati .e3-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0c0e0f;
  line-height: 0;
}
.page-template-drone-spazi-confinati .e3-video__el {
  display: block;
  width: 100%;
  height: auto;
}
.page-template-drone-spazi-confinati .e3-showcase {
  padding-top: 0;
}
.page-template-drone-spazi-confinati .e3-showcase .e3-video {
  margin: 0 auto;
}

/* ---------- CHIPS ---------- */
.page-template-drone-spazi-confinati .e3-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.5rem 0;
}
.page-template-drone-spazi-confinati .e3-chip {
  border: 1px solid #2a3133;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: #b7c4ca;
  background: #0c0e0f;
  transition: 0.3s;
}
.page-template-drone-spazi-confinati .e3-chip:hover {
  border-color: #93c01f;
  color: #fff;
}

/* ---------- SETTORI (sezione autonoma sopra lo showcase) ---------- */
.page-template-drone-spazi-confinati .e3-sectors {
  padding-top: 0;
}
.page-template-drone-spazi-confinati .e3-sectors__title {
  color: #b7c4ca !important;
  font-family: "Barlow", sans-serif !important;
  font-size: 1.5rem !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.page-template-drone-spazi-confinati .e3-sectors__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.page-template-drone-spazi-confinati .e3-sector {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0c0e0f;
  border: 1px solid #1c2123;
  border-left: 3px solid #93c01f;
  padding: 1.1rem 1.4rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.page-template-drone-spazi-confinati .e3-sector:hover {
  transform: translateY(-4px);
  border-color: #93c01f;
}
.page-template-drone-spazi-confinati .e3-sector__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: #93c01f;
}
.page-template-drone-spazi-confinati .e3-sector__name {
  display: block;
  font-family: "Barlow", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4rem;
}

/* ---------- LISTS ---------- */
.page-template-drone-spazi-confinati .e3-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.page-template-drone-spazi-confinati .e3-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  color: #b7c4ca;
  line-height: 1.5rem;
}
.page-template-drone-spazi-confinati .e3-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: #93c01f;
  transform: rotate(45deg);
}

/* ---------- PANELS (ispezioni) ---------- */
.page-template-drone-spazi-confinati .e3-panel {
  background: #0c0e0f;
  border: 1px solid #1c2123;
  border-top: 3px solid #0167a1;
  border-radius: 14px;
  padding: 2.25rem 2rem;
}
.page-template-drone-spazi-confinati .e3-panel:nth-child(2) { border-top-color: #93c01f; }
.page-template-drone-spazi-confinati .e3-panel__title {
  color: #fff !important;
  font-family: "Barlow", sans-serif !important;
  font-size: 1.5rem !important;
  margin-bottom: 1rem;
}

/* ---------- SPECS ---------- */
.page-template-drone-spazi-confinati .e3-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.page-template-drone-spazi-confinati .e3-spec {
  background: #0c0e0f;
  border: 1px solid #1c2123;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}
/* dispari: l'ultima spec occupa l'intera riga per non lasciare buchi */
.page-template-drone-spazi-confinati .e3-spec:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.page-template-drone-spazi-confinati .e3-spec__value {
  display: block;
  font-family: "Barlow", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #93c01f;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.page-template-drone-spazi-confinati .e3-spec__label {
  display: block;
  font-size: 0.82rem;
  color: #b7c4ca;
  line-height: 1.2rem;
}

/* ---------- BENEFITS ---------- */
.page-template-drone-spazi-confinati .e3-benefit {
  background: #0c0e0f;
  border: 1px solid #1c2123;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: 0.3s;
}
.page-template-drone-spazi-confinati .e3-benefit:hover { border-color: #93c01f; transform: translateY(-6px); }
.page-template-drone-spazi-confinati .e3-benefit__title {
  color: #93c01f !important;
  font-family: "Barlow", sans-serif !important;
  font-size: 1.3rem !important;
  margin-bottom: 0.6rem;
}
.page-template-drone-spazi-confinati .e3-benefit__text { margin: 0; }
.page-template-drone-spazi-confinati .e3-benefit--media {
  background-size: cover;
  background-position: center;
  min-height: 180px;
  border-color: #0167a1;
}

/* ---------- SERVIZI (immagine sensori su sfondo bianco -> card prodotto) ---------- */
.page-template-drone-spazi-confinati .e3-services .e3-split__media {
  background: #fff;
  border: 1px solid #1c2123;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-template-drone-spazi-confinati .e3-services .e3-split__media img {
  border: none;
  border-radius: 0;
  max-width: 24rem;
  width: 100%;
  height: auto;
}

/* ---------- CTA / FORM ---------- */
.page-template-drone-spazi-confinati .e3-cta {
  background: radial-gradient(circle at 50% 0%, #0a1620 0%, #000 65%);
  border-top: 1px solid #16202a;
}
.page-template-drone-spazi-confinati .e3-cta__inner {
  text-align: center;
  max-width: 46rem;
}
.page-template-drone-spazi-confinati .e3-cta .bottone { margin: 1.5rem auto 0; }
.page-template-drone-spazi-confinati .e3-cta .testo-bottone { margin-right: 0; }

/* ---------- REVEAL ANIMATION (progressive enhancement) ----------
   Lo stato nascosto si applica SOLO con JS attivo (html.e3-js).
   Senza JS / crawler / errore JS il contenuto resta visibile. */
html.e3-js .page-template-drone-spazi-confinati .fade-in-up,
html.e3-js .page-template-drone-spazi-confinati .fade-in-right {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.e3-js .page-template-drone-spazi-confinati .fade-in-right { transform: translateX(28px); }
.page-template-drone-spazi-confinati .e3-in { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html.e3-js .page-template-drone-spazi-confinati .fade-in-up,
  html.e3-js .page-template-drone-spazi-confinati .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- BORDER RADIUS 0 (coerente col resto del sito) ---------- */
.page-template-drone-spazi-confinati [class*="e3-"] { border-radius: 0 !important; }

/* ---------- GESTIONE INTELLIGENTE IMMAGINI SEZIONI ----------
   Media incorniciato con proporzioni fisse: l'immagine riempie sempre
   il riquadro (cover) a prescindere dalle dimensioni del file sorgente,
   così le sezioni restano allineate e non ci sono spazi vuoti. */
.page-template-drone-spazi-confinati .e3-safety .e3-split__media,
.page-template-drone-spazi-confinati .e3-imaging .e3-split__media,
.page-template-drone-spazi-confinati .e3-mapping .e3-split__media {
  overflow: hidden;
}
.page-template-drone-spazi-confinati .e3-safety .e3-split__media img,
.page-template-drone-spazi-confinati .e3-imaging .e3-split__media img,
.page-template-drone-spazi-confinati .e3-mapping .e3-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.page-template-drone-spazi-confinati .e3-mapping__hero img {
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
}
/* Servizi: render prodotto su card chiara -> contain per non tagliare il drone */
.page-template-drone-spazi-confinati .e3-services .e3-split__media {
  aspect-ratio: 4 / 3;
}
.page-template-drone-spazi-confinati .e3-services .e3-split__media img {
  max-width: 24rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.5px) {
  .page-template-drone-spazi-confinati .e3-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .page-template-drone-spazi-confinati .e3-sectors__grid { grid-template-columns: repeat(2, 1fr); }
  /* dispari: l'ultimo settore occupa l'intera riga per non lasciare buchi */
  .page-template-drone-spazi-confinati .e3-sector:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-template-drone-spazi-confinati .e3-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-template-drone-spazi-confinati .e3-split--reverse .e3-split__media { order: 0; }
  .page-template-drone-spazi-confinati .e3-section { padding: 4rem 0; }
}
@media (max-width: 600px) {
  .page-template-drone-spazi-confinati .e3-grid--3,
  .page-template-drone-spazi-confinati .e3-grid--2 { grid-template-columns: 1fr; }
  .page-template-drone-spazi-confinati .e3-specs { grid-template-columns: 1fr; }
  .page-template-drone-spazi-confinati .e3-sectors__grid { grid-template-columns: 1fr; }
  .page-template-drone-spazi-confinati .e3-container { padding: 0 1.25rem; }
}
