/* Icona nativa Divi in hover: avvicinata al testo, dentro il pulsante. */body #page-container .et_pb_button::after {    margin-left: -.5em;}body #page-container .et_pb_button:hover::after,body #page-container .et_pb_button:focus-visible::after {    margin-left: -.3em;}

/* Tecnopoint enquiry forms: isolated from all other Forminator modules. */
body #page-container :is(#forminator-module-634,#forminator-module-635) {font-family:Arial,sans-serif;color:#000;}
body #page-container :is(#forminator-module-634,#forminator-module-635) :is(.forminator-label,.forminator-checkbox__label) {color:#000!important;font-family:Arial,sans-serif!important;font-size:14px!important;line-height:1.4!important;}
body #page-container :is(#forminator-module-634,#forminator-module-635) :is(input,textarea,.select2-selection) {font-family:Arial,sans-serif!important;font-size:16px!important;color:#000!important;background:#fff!important;border-color:#d4d4d4!important;border-radius:0!important;}
body #page-container :is(#forminator-module-634,#forminator-module-635) .forminator-button-submit {background:#ffdd00!important;color:#000!important;font:700 14px Arial,sans-serif!important;padding:16px 26px!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
body #page-container :is(#forminator-module-634,#forminator-module-635) .forminator-button-submit:hover {background:#000!important;color:#ffdd00!important;}
body #page-container :is(#forminator-module-634,#forminator-module-635) :is(input,textarea):focus {outline:2px solid #777;outline-offset:2px;}

/* Header mobile: hamburger centered on viewport; brand-yellow dropdown rule. */
@media (max-width:980px){
 body header.et-l--header .et_pb_row_0_tb_header{position:relative;}
 body header.et-l--header .et_pb_column_1_tb_header{position:absolute!important;left:50%!important;top:50%;transform:translate(-50%,-50%);width:32px!important;flex:0 0 32px!important;margin:0!important;z-index:30;}
 body header.et-l--header .et_pb_menu_0_tb_header .et_pb_menu__wrap{justify-content:center!important;}
 body header.et-l--header .et_pb_column_2_tb_header{margin-left:auto!important;align-items:flex-end!important;}
 body header.et-l--header .et_pb_column_2_tb_header .et_pb_button_module_wrapper{align-self:flex-end!important;text-align:right!important;}
 body header.et-l--header .et_mobile_nav_menu{margin:0!important;}
 body header.et-l--header .et_mobile_menu{border-top-color:#ffdd00!important;width:260px;max-width:90vw;left:50%!important;transform:translateX(-50%);}
}

/* Header: navigazione e area riservata */
body header.et-l--header .et_pb_menu .et_pb_menu__wrap li > a {
  color: #ffdd00 !important;
}
body #page-container header.et-l--header a.et_pb_button[href="https://software.tecnopointsrl.com/"] {
  color: #ffdd00 !important;
  background: #000 !important;
  border: 2px solid #ffdd00 !important;
  border-radius: 999px !important;
  padding: 6px 13px !important;
  font-size: 12px !important;
  white-space: nowrap;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2 !important;
}

body #page-container header.et-l--header a.et_pb_button[href="https://software.tecnopointsrl.com/"]::before,
body #page-container header.et-l--header a.et_pb_button[href="https://software.tecnopointsrl.com/"]::after {
  display: none !important;
  content: none !important;
}

/* Global header: compact navigation and current page indicator. */
@media (min-width: 981px) {
  body header.et-l--header .et_pb_menu .et_pb_menu__menu .et-menu > li {
    padding-inline: 7px;
  }
}
body header.et-l--header .et_pb_menu .et_pb_menu__wrap li:is(.current-menu-item, .current-menu-ancestor) > a,
body header.et-l--header .et_pb_menu .et_pb_menu__wrap li > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #ffdd00;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Align the native search trigger with the reserved-area button. */
body header.et-l--header .et_pb_menu__search-button::after {
  display: inline-block;
  transform: scaleX(-1);
}
@supports (right: anchor(left)) {
  body header.et-l--header a.et_pb_button[href="https://software.tecnopointsrl.com/"] {
    anchor-name: --reserved-area;
  }
  body header.et-l--header .et_pb_menu__search-button {
    position: fixed;
    margin: 0;
    position-anchor: --reserved-area;
    right: calc(anchor(left) + 12px);
    top: anchor(center);
    translate: 0 -50%;
    z-index: 31;
  }
  body header.et-l--header .et_pb_column_1_tb_header {
    z-index: 40;
  }
  @media (max-width: 980px) {
    body header.et-l--header .et_pb_column_1_tb_header {
      left: calc(50% - 16px) !important;
      top: calc(50% - 16px);
      transform: none;
    }
  }
  @media (max-width: 420px) {
    body header.et-l--header .et_pb_column_1_tb_header {
      left: calc(100% - 207px) !important;
    }
    body header.et-l--header .et_mobile_menu {
      left: max(50%, calc(207px - 45vw)) !important;
    }
  }
}

/* Keep the open search at the same right edge as its trigger. */
@supports (right: anchor(left)) {
  body header.et-l--header .et_pb_menu__search-container {
    position: fixed;
    position-anchor: --reserved-area;
    inset: anchor(center) calc(anchor(left) + 12px) auto auto;
    width: min(220px, calc(90vw - 202px));
    height: 36px;
    translate: 0 -50%;
    animation: none !important;
    z-index: 31;
  }
  body header.et-l--header .et_pb_menu__wrap--hidden {
    visibility: visible;
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  body header.et-l--header .et_pb_menu__search-container--visible .et_pb_menu__search {
    box-sizing: border-box;
    width: 100%;
    background: #000;
    border-bottom: 1px solid #ffdd00;
    padding-inline: 6px 0;
  }
  body header.et-l--header .et_pb_menu__search-form {
    min-width: 0;
  }
  body header.et-l--header .et_pb_menu__search-input {
    color: #fff;
  }
}

/* Search state follows the open container, including after input blur. */
body header.et-l--header .et_pb_menu:has(.et_pb_menu__search-container--visible) .et_pb_menu__search-button,
body header.et-l--header .et_pb_menu__wrap--hidden .et_pb_menu__search-button {
  display: none !important;
}
@media (min-width: 981px) {
  body header.et-l--header .et_pb_menu:has(.et_pb_menu__search-container--visible) .et_pb_menu__menu {
    translate: -80px 0;
  }
}
@media (max-width: 980px) {
  body header.et-l--header:has(.et_pb_menu__search-container--visible) .et_pb_column_0_tb_header {
    visibility: hidden;
  }
  body header.et-l--header:has(.et_pb_menu__search-container--visible) .et_pb_column_1_tb_header {
    left: 0 !important;
  }
  body header.et-l--header:has(.et_pb_menu__search-container--visible) .et_mobile_menu {
    left: 0 !important;
    transform: none;
  }
}

/* Prevent Divi menu animations from moving the anchored search controls. */
body header.et-l--header .et_pb_menu__wrap,
body header.et-l--header .et_pb_menu__search-container {
  animation: none !important;
  transform: none !important;
}

/* Use only the yellow Divi close control in header search. */
body header.et-l--header .et_pb_menu__search-input::-webkit-search-cancel-button,
body header.et-l--header .et_pb_menu__search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

/* Social links remain editable in the native WordPress menu. */
body header.et-l--header .et_pb_menu li.nmsc-social > a {
  font-size: 0 !important;
  color: #ffdd00 !important;
}
body header.et-l--header .et_pb_menu li.nmsc-social > a::before {
  font-family: ETmodules;
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
}
body header.et-l--header .nmsc-instagram > a::before { content: "\e09a"; }
body header.et-l--header .nmsc-facebook > a::before { content: "\e093"; }
body header.et-l--header .nmsc-youtube > a::before { content: "\e0a3"; }
@media (max-width:980px) {
  body header.et-l--header .et_mobile_menu li.nmsc-social {
    display: inline-block;
  }
  body header.et-l--header .et_mobile_menu li.nmsc-social > a {
    padding: 12px;
  }
}


/* Home studio image: visual placeholder for the future video. */
body.home .et_pb_image:has(img.wp-image-74) .et_pb_image_wrap {
    position: relative;
    overflow: hidden;
}
body.home .et_pb_image:has(img.wp-image-74) .et_pb_image_wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 1;
    pointer-events: none;
}
body.home .et_pb_image:has(img.wp-image-74) .et_pb_image_wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(64px, 7vw, 88px);
    height: clamp(64px, 7vw, 88px);
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2088%2088%22%3E%3Ccircle%20cx%3D%2244%22%20cy%3D%2244%22%20r%3D%2241%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%2F%3E%3Cpath%20d%3D%22M36%2027L61%2044L36%2061Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    z-index: 2;
    pointer-events: none;
}


/* Native Divi gallery: one scrolling row with external navigation controls. */
.nmsc-home-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
}
.nmsc-home-gallery .et_pb_gallery_items {
    display: grid !important;
    grid-template-columns: none !important;
    grid-template-rows: 1fr !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 84px) / 4);
    gap: 28px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0;
    margin: 0;
}
.nmsc-home-gallery .et_pb_gallery_items::-webkit-scrollbar,
.nmsc-home-gallery .et_pb_gallery_items::before,
.nmsc-home-gallery .et_pb_gallery_items::after {
    display: none !important;
}
.nmsc-home-gallery .et_pb_gallery_item {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    float: none;
    scroll-snap-align: start;
}
.nmsc-home-gallery .et_pb_gallery_image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.nmsc-home-gallery .nmsc-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    padding: 4px;
    border: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    z-index: 3;
}
.nmsc-home-gallery .nmsc-gallery-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}
.nmsc-home-gallery .nmsc-gallery-previous { left: -42px; }
.nmsc-home-gallery .nmsc-gallery-previous svg { transform: rotate(180deg); }
.nmsc-home-gallery .nmsc-gallery-next { right: -42px; }
.nmsc-home-gallery .nmsc-gallery-arrow:disabled { opacity: 0.3; cursor: default; }
.nmsc-home-gallery .nmsc-gallery-arrow:focus-visible { outline: 2px solid #ffdd00; }
@media (max-width: 980px) {
    .nmsc-home-gallery .et_pb_gallery_items {
        grid-auto-columns: calc((100% - 20px) / 2);
        gap: 20px !important;
    }
    .nmsc-home-gallery .nmsc-gallery-previous { left: -18px; }
    .nmsc-home-gallery .nmsc-gallery-next { right: -18px; }
}

/* Footer navigation remains visible as a vertical WordPress menu on every screen. */
.nmsc-footer-navigation .et_pb_menu__menu{display:block!important;width:100%}
.nmsc-footer-navigation .et_mobile_nav_menu{display:none!important}
.nmsc-footer-navigation .et_pb_menu__wrap{justify-content:flex-start!important}
.nmsc-footer-navigation .et-menu{display:flex!important;flex-direction:column;align-items:flex-start;gap:10px;margin:0!important}
.nmsc-footer-navigation .et-menu li{padding:0!important;margin:0!important}
.nmsc-footer-navigation .et-menu li a{padding:0!important;line-height:1.5em!important}
.nmsc-footer-navigation a:hover,.nmsc-footer-navigation a:focus-visible{color:#ffdd00!important}
