@font-face {
  font-family: "NexaLight";
  src: url("/wp-content/uploads/2025/11/Nexa-Light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}


@font-face {
  font-family: "Nexa Bold";
  src: url("/wp-content/uploads/2025/11/Nexa-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --selcom-red: #b3100d;
  --selcom-red-dark: #a70e0b;
  --selcom-ink: #1c1c1c;
  --selcom-text: #4f5560;
  --selcom-soft: #f3f3f3;
  --selcom-line: #dedede;
  --selcom-white: #fff;
  --selcom-header-height: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--selcom-ink);
  background: #fff;
  font-family: "NexaLight", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-is-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Nexa Bold", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
}

p {
  margin: 0;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--selcom-red);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--selcom-header-height);
  color: #fff;
  background: transparent;
  transform: translateY(0);
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.admin-bar .site-header {
  top: 32px;
}

body:not(.has-overlay-header) .site-header,
.site-header.is-revealed,
.site-header.is-mega-open,
.site-header:has(.desktop-menu-item--mega:hover),
.site-header:has(.desktop-menu-item--mega:focus-within),
.site-header.is-open {
  color: var(--selcom-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.09);
}

.site-header.is-hidden:not(.is-open):not(.is-mega-open) {
  transform: translateY(calc(-100% - 2px));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 72px, 1380px);
  height: 100%;
  margin: 0 auto;
}

.site-logo {
  position: relative;
  display: block;
  flex: 0 0 165px;
  width: 165px;
  height: 52px;
}

.site-logo img {
  position: absolute;
  inset: 0;
  width: 165px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease;
}

.site-logo__dark {
  opacity: 0;
}

body:not(.has-overlay-header) .site-logo__light,
.site-header.is-revealed .site-logo__light,
.site-header.is-mega-open .site-logo__light,
.site-header:has(.desktop-menu-item--mega:hover) .site-logo__light,
.site-header:has(.desktop-menu-item--mega:focus-within) .site-logo__light,
.site-header.is-open .site-logo__light {
  opacity: 0;
}

body:not(.has-overlay-header) .site-logo__dark,
.site-header.is-revealed .site-logo__dark,
.site-header.is-mega-open .site-logo__dark,
.site-header:has(.desktop-menu-item--mega:hover) .site-logo__dark,
.site-header:has(.desktop-menu-item--mega:focus-within) .site-logo__dark,
.site-header.is-open .site-logo__dark {
  opacity: 1;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  min-width: 0;
  font-size: 16px;
  white-space: nowrap;
}

.desktop-navigation > a,
.desktop-menu-item > a {
  position: relative;
  padding: 30px 0 25px;
}

.desktop-navigation > a::after,
.desktop-menu-item > a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--selcom-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.desktop-navigation > a:hover::after,
.desktop-navigation > a:focus-visible::after,
.desktop-navigation > a.is-current::after,
.desktop-menu-item > a:hover::after,
.desktop-menu-item > a:focus-visible::after,
.desktop-menu-item > a.is-current::after {
  transform: scaleX(1);
}

.desktop-menu-item.is-open > a::after {
  transform: scaleX(1);
}

.desktop-menu-item {
  display: flex;
  height: 100%;
  align-items: center;
}

.mega-menu {
  position: absolute;
  z-index: 1001;
  top: 100%;
  right: 0;
  left: 0;
  padding: 34px 0 60px;
  color: var(--selcom-ink);
  background: #fff;
  box-shadow: 0 28px 34px -26px rgba(8, 15, 23, 0.36);
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  /* Questa transizione vale solo in chiusura: in apertura viene azzerata
     sotto, cosi' il pannello compare subito sotto la voce senza scivolare. */
  transition: opacity 120ms ease, visibility 120ms ease;
}

.desktop-menu-item:hover .mega-menu,
.desktop-menu-item:focus-within .mega-menu,
.desktop-menu-item.is-open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: none;
}

.mega-menu__inner {
  display: grid;
  width: min(84%, 2200px);
  margin: 0 auto;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.15vw, 22px);
}

.mega-menu__intro {
  display: flex;
  padding: 28px clamp(28px, 2.4vw, 50px) 26px 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.mega-menu__intro p {
  max-width: 450px;
  margin-bottom: 30px;
  font-size: 20px;
  line-height: 1.45;
}

.mega-menu__intro .button {
  min-height: 38px;
  padding: 10px 28px 8px;
}

.mega-menu__card {
  position: relative;
  display: flex;
  min-height: 262px;
  padding: 39px 32px;
  overflow: hidden;
  align-items: flex-start;
  background-color: #10151c;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  isolation: isolate;
}

.mega-menu__card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(3, 8, 14, 0.48), rgba(3, 8, 14, 0.26) 50%, rgba(3, 8, 14, 0.62));
  transition: background-color 220ms ease;
}

.mega-menu__card-title {
  position: relative;
  padding-bottom: 15px;
  color: #fff;
  font-family: "Nexa Bold", Arial, sans-serif;
  font-size: clamp(17px, 1.05vw, 21px);
  line-height: 1.2;
}

.mega-menu__card-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 2px;
  content: "";
  background: var(--selcom-red);
}

.mega-menu__card:hover::before,
.mega-menu__card:focus-visible::before {
  background-color: rgba(179, 16, 13, 0.18);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px 5px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 28px;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .menu-toggle > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-toggle > span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-navigation {
  height: calc(100vh - var(--selcom-header-height));
  overflow-y: auto;
  color: var(--selcom-ink);
  background: #fff;
  border-top: 1px solid #e7e7e7;
}

.mobile-navigation[hidden] {
  display: none;
}

.mobile-navigation__inner {
  width: min(100% - 40px, 680px);
  margin: 0 auto;
  padding: 24px 0 60px;
}

.mobile-navigation__viewport {
  position: relative;
}

.mobile-navigation__panel[hidden] {
  display: none;
}

.mobile-navigation__panel.is-active {
  animation: selcomMobilePanelIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-navigation nav {
  display: grid;
}

.mobile-navigation nav a,
.mobile-navigation__next,
.mobile-navigation__back {
  padding: 13px 2px;
  color: inherit;
  font-family: "Nexa Bold", Arial, sans-serif;
  font-size: 22px;
  border-bottom: 1px solid #ececec;
}

.mobile-navigation__next,
.mobile-navigation__back {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.selcom-arrow {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: transparent url("../images/down-arrow-red.svg") center / contain no-repeat;
}

.selcom-arrow--right {
  transform: rotate(-90deg);
}

.selcom-arrow--left {
  transform: rotate(90deg);
}

.mobile-navigation__back {
  justify-content: flex-start;
  gap: 12px;
  color: var(--selcom-red);
}

.mobile-navigation__panel--submenu nav {
  margin-top: 18px;
}

.mobile-navigation__overview {
  color: var(--selcom-red);
}

.mobile-navigation nav a.is-current {
  color: var(--selcom-red);
}

.mobile-navigation__next.is-current {
  color: var(--selcom-red);
}

@keyframes selcomMobilePanelIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-navigation__offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.mobile-navigation__office strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Nexa Bold", Arial, sans-serif;
}

.mobile-navigation__office p {
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.selcom-container {
  width: min(100% - 96px, 1320px);
  margin: 0 auto;
}

.selcom-section {
  padding: 88px 0;
}

.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--selcom-red);
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-rule {
  width: 96px;
  height: 2px;
  margin: 14px 0 18px;
  background: var(--selcom-red);
}

.section-title {
  font-size: 40px;
}

.section-lead {
  max-width: 900px;
  color: var(--selcom-text);
  font-size: 20px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-width: 154px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: #fff;
  background: var(--selcom-red);
  border: 1px solid var(--selcom-red);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--selcom-red-dark);
  transform: translateY(-1px);
}

.button--light {
  color: var(--selcom-ink);
  background: #fff;
  border-color: #fff;
}

.button--light:hover,
.button--light:focus-visible {
  color: var(--selcom-ink);
  background: #fff;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: 85vh;
  align-items: center;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 10, 15, 0.8), rgba(4, 10, 15, 0.3) 58%, rgba(4, 10, 15, 0.16));
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 200px, 1240px);
  margin: 0 auto;
  padding: 38px 0 0;
  transform: translateY(-105px);
}

.home-hero h1 {
  max-width: 1080px;
  font-size: 28px;
  line-height: 1.6;
}

.home-hero h1 em {
  color: var(--selcom-red);
  font-style: normal;
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.home-hero__actions .button {
  min-width: 160px;
  min-height: 36px;
  padding: 7px 22px;
}

.hero-down {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: max(48px, calc((100vw - 1080px) / 2));
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/down-arrow.svg") center / contain no-repeat;
  transform: none;
}

.hero-down::before {
  display: none;
}

.hero-down::after {
  display: none;
}

.home-tagline {
  display: grid;
  min-height: 145px;
  padding: 28px 24px;
  place-items: center;
  text-align: center;
}

.home-tagline h2 {
  max-width: 950px;
  font-size: 30px;
}

.context-section {
  color: #fff;
  background: #1b1b1b;
}

.context-section .selcom-container {
  max-width: 1120px;
  text-align: center;
}

.context-section .section-title {
  max-width: 770px;
  margin: 0 auto 22px;
  font-size: 34px;
}

.context-section .section-rule {
  margin-right: auto;
  margin-left: auto;
}

.context-section #approfondisci-box {
  max-width: 1030px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}

.context-section .context-button {
  min-width: 165px;
  padding: 12px 24px;
  color: #fff;
  background: var(--selcom-red);
  border-radius: 7px;
}

.carousel-section {
  overflow: hidden;
  background: #fff;
}

.carousel-section__head {
  margin-bottom: 42px;
}

.carousel-shell {
  position: relative;
  width: 100%;
}

.horizontal-track {
  display: flex;
  gap: 26px;
  width: 100%;
  padding: 0 max(48px, calc((100vw - 1320px) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(48px, calc((100vw - 1320px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-track::-webkit-scrollbar {
  display: none;
}

.solution-card {
  position: relative;
  display: flex;
  flex: 0 0 min(670px, 76vw);
  min-height: 500px;
  align-items: flex-end;
  padding: 38px;
  overflow: hidden;
  color: #fff;
  background: #121820;
  border-radius: 28px;
  scroll-snap-align: start;
}

.solution-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.82));
}

.solution-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.solution-card__summary {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.solution-card__number {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 15px;
}

.solution-card h3 {
  margin-bottom: 12px;
  font-size: 34px;
}

.solution-card p {
  color: rgba(255, 255, 255, 0.84);
}

.solution-card__open {
  position: static;
  z-index: 2;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/down-arrow.svg") center / contain no-repeat;
  cursor: pointer;
}

.solution-card__open::before,
.solution-card__open::after {
  display: none;
}

.carousel-controls {
  display: flex;
  width: min(100% - 96px, 1320px);
  justify-content: flex-end;
  gap: 10px;
  margin: 24px auto 0;
}

.carousel-control {
  position: relative;
  width: 44px;
  height: 44px;
  color: var(--selcom-ink);
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.carousel-control::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  content: "";
  background: transparent url("../images/down-arrow-red.svg") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.carousel-control--prev::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.domains-section {
  padding: 96px 0 54px;
  overflow: hidden;
  background: #fff;
}

.domains-section__head {
  width: min(100% - 96px, 1050px);
  margin: 0 auto 26px;
  text-align: center;
}

.domains-section__head .section-rule {
  margin-right: auto;
  margin-left: auto;
}

.domains-section__head .section-lead {
  margin: 0 auto;
}

.products-section {
  overflow: hidden;
  background: #fff;
}

.products-section .horizontal-track {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex: 0 0 470px;
  min-height: 580px;
  flex-direction: column;
  overflow: hidden;
  background: #f1f1f1;
  border-radius: 22px;
  scroll-snap-align: start;
}

.product-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d9d9d9;
}

.product-card__media img,
.product-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 38px 32px 34px;
  text-align: center;
}

.product-card h3 {
  margin-bottom: 22px;
  font-size: 32px;
}

.product-card p {
  margin-bottom: 28px;
  color: #777;
  font-size: 18px;
}

.product-card .button {
  margin-top: auto;
}

.statement-banner {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 34px 48px;
  place-items: center;
  color: #fff;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.statement-banner::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 9, 12, 0.58);
}

.statement-banner h2 {
  position: relative;
  max-width: 980px;
  font-size: 36px;
}

.values-section {
  overflow: hidden;
  color: #fff;
  background: #1b1b1b;
}

.values-section__head {
  max-width: 930px;
  margin-bottom: 44px;
}

.values-section__head .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.values-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  min-height: 285px;
  padding: 30px 24px;
  color: var(--selcom-ink);
  background: #fff;
  border-radius: 22px;
}

.value-card__mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  place-items: center;
  color: #fff;
  background: var(--selcom-red);
  border-radius: 50%;
  font-family: "Nexa Bold", Arial, sans-serif;
}

.value-card h3 {
  margin-bottom: 13px;
  font-size: 21px;
}

.value-card p {
  color: #636872;
  font-size: 16px;
}

.convergence-section {
  background: #fff;
}

.convergence-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: start;
}

.convergence-section .section-title {
  font-size: 34px;
}

.convergence-copy p {
  margin-bottom: 24px;
  color: var(--selcom-text);
}

.portfolio-section {
  color: #fff;
  background: #1b1b1b;
}

.portfolio-section__intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
  margin-bottom: 46px;
}

.portfolio-section__intro .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portfolio-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.portfolio-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.84));
}

.portfolio-card h3 {
  position: absolute;
  z-index: 1;
  right: 92px;
  bottom: 28px;
  left: 30px;
  font-size: 26px;
}

/*
 * Il pulsante non aveva regole di base: restava 0x0 e non si poteva cliccare.
 * Stessa icona e stesso comportamento della freccia sulle solution card.
 */
/* Entrambi i caroselli si possono afferrare e trascinare. */
[data-carousel] .horizontal-track {
  cursor: grab;
}

[data-carousel] .horizontal-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

[data-carousel] .horizontal-track.is-dragging img {
  pointer-events: none;
}

[data-carousel] .horizontal-track.is-loop-jump {
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
}

.portfolio-card__open {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent url("../images/down-arrow.svg") center / contain no-repeat;
  cursor: pointer;
}

.portfolio-card:hover img {
  transform: scale(1.025);
}

.stats-section {
  color: #fff;
  background: #292929;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 64px 0;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--selcom-red);
  font-family: "Nexa Bold", Arial, sans-serif;
  font-size: 58px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.company-section {
  color: #fff;
  background: #1b1b1b;
}

.company-section__head {
  max-width: 900px;
  margin-bottom: 42px;
}

.company-section__head .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.company-section .selcom-company-card {
  color: var(--selcom-ink);
}

.service-model-section {
  background: #fff;
}

.site-footer {
  color: #fff;
  background: #1b1b1b;
}

.site-footer__inner {
  width: min(100% - 96px, 1260px);
  margin: 0 auto;
  padding: 72px 0 34px;
}

.site-footer__logo {
  width: 240px;
  height: auto;
  object-fit: contain;
  object-position: left;
}

.site-footer__rule {
  height: 1px;
  margin: 42px 0;
  background: rgba(255, 255, 255, 0.18);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.15fr 3fr;
  gap: 70px;
}

.site-footer__company h2,
.site-footer__group h3,
.site-footer__offices h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.site-footer__company p,
.site-footer__offices p {
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.85;
}

.site-footer__company a:hover,
.site-footer__company a:focus-visible {
  color: #fff;
}

.site-footer__desktop-links {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 1.35fr 0.9fr 0.75fr;
  gap: 28px;
}

.site-footer__group h3::after,
.site-footer__offices h3::after {
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 12px;
  content: "";
  background: var(--selcom-red);
}

.site-footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__group li + li {
  margin-top: 8px;
}

.site-footer__group a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  line-height: 1.38;
}

.site-footer__group a:hover,
.site-footer__group a:focus-visible {
  color: #fff;
}

.site-footer__mobile-links {
  display: none;
}

.site-footer__offices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 14px;
}

.site-footer__legal nav {
  display: flex;
  gap: 32px;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: #fff;
}

.native-page {
  min-height: 55vh;
  padding: calc(var(--selcom-header-height) + 64px) 0 90px;
}

.native-page__content {
  width: min(100% - 96px, 980px);
  margin: 0 auto;
}

.native-page__content h1 {
  margin-bottom: 30px;
  font-size: 48px;
}

.native-page__content > * + * {
  margin-top: 20px;
}

.interior-hero {
  position: relative;
  display: flex;
  min-height: 72vh;
  align-items: flex-end;
  padding: 96px 7% 72px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.interior-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.52);
}

.interior-hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.interior-hero h1 {
  margin-bottom: 22px;
  font-size: 54px;
}

.interior-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.interior-hero .button {
  margin-top: 32px;
}

.interior-hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: 48px;
  left: 7%;
  width: 50px;
  height: 50px;
  background: transparent url("../images/down-arrow.svg") center / contain no-repeat;
}

.interior-hero__scroll::before,
.interior-hero__scroll::after {
  display: none;
}

.about-section {
  padding: 88px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.about-grid--reverse .about-media {
  order: 2;
}

.about-media {
  overflow: hidden;
  border-radius: 8px;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy .section-title {
  margin-bottom: 24px;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-copy p {
  color: var(--selcom-text);
}

.about-dark {
  color: #fff;
  background: #1c1c1c;
}

.about-dark .section-lead,
.about-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.mission-grid,
.competence-grid,
.certification-grid,
.download-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.mission-card,
.competence-card,
.certification-card {
  padding: 34px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.mission-card h3,
.competence-card h3 {
  margin-bottom: 15px;
  font-size: 25px;
}

.mission-card p,
.competence-card p,
.certification-card p {
  color: var(--selcom-text);
}

.competence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-profile-band {
  background: #f4f4f4;
}

.company-profile-band .about-media img {
  object-fit: contain;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card,
.news-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 8px;
}

.download-card img,
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.download-card__content,
.news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.download-card h2,
.news-card h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

.download-card .button,
.news-card .button {
  margin-top: auto;
}

.news-card p {
  margin-bottom: 24px;
  color: var(--selcom-text);
}

.post-hero {
  display: grid;
  min-height: 65vh;
  padding: calc(var(--selcom-header-height) + 70px) 7% 70px;
  place-items: end start;
  color: #fff;
  background: #1b1b1b;
}

.post-hero h1 {
  max-width: 950px;
  font-size: 56px;
}

.post-content {
  width: min(100% - 96px, 900px);
  min-height: 320px;
  margin: 0 auto;
  padding: 80px 0;
}

.post-content > * + * {
  margin-top: 22px;
}

.error-404 {
  display: grid;
  min-height: 70vh;
  padding: calc(var(--selcom-header-height) + 60px) 24px 70px;
  place-items: center;
  text-align: center;
}

.error-404 h1 {
  margin-bottom: 18px;
  font-size: 64px;
}

.error-404 .button {
  margin-top: 28px;
}

/* Match the source Elementor overlay header on every desktop page. */
@media (min-width: 1101px) {
  body.has-overlay-header:not(.home) .interior-hero {
    height: 765px;
    min-height: 765px;
    margin-top: -6.04px;
    padding: 0;
    align-items: initial;
  }

  body.has-overlay-header:not(.home) .interior-hero__content {
    position: absolute;
    top: 283.86px;
    left: 8%;
    width: 84%;
    max-width: none;
  }

  body.has-overlay-header:not(.home) .interior-hero--career .interior-hero__content {
    top: 256.86px;
  }

  body.has-overlay-header:not(.home) .interior-hero h1 {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 600;
    line-height: 45px;
  }

  body.has-overlay-header:not(.home) .interior-hero p {
    max-width: none;
    min-height: 68.4px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 27px;
  }

  body.has-overlay-header:not(.home) .interior-hero .button {
    width: auto;
    min-width: 0;
    min-height: 35px;
    margin-top: 20px;
    padding: 12px 30px 9px;
    border: 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 300;
    line-height: 14px;
  }

  body.has-overlay-header:not(.home) .interior-hero__scroll {
    top: 656.94px;
    bottom: auto;
    left: 8%;
    width: 60.2px;
    height: 60.2px;
  }

  body.has-overlay-header:not(.home) .site-header {
    position: fixed;
    height: 136px;
  }

  body.has-overlay-header:not(.home) .site-header:not(.is-revealed):not(.is-mega-open):not(.is-open):not(:has(.desktop-menu-item--mega:hover)):not(:has(.desktop-menu-item--mega:focus-within)) {
    color: #fff;
    background: transparent;
    box-shadow: none;
  }

  body.has-overlay-header:not(.home) .site-header__inner {
    width: 94%;
    height: 136px;
    padding-top: 43px;
    align-items: flex-start;
  }

  body.has-overlay-header:not(.home) .site-logo,
  body.has-overlay-header:not(.home) .site-logo img {
    width: 188px;
    height: 65px;
    flex-basis: 188px;
  }

  body.has-overlay-header:not(.home) .site-header:not(.is-revealed):not(.is-mega-open):not(.is-open):not(:has(.desktop-menu-item--mega:hover)):not(:has(.desktop-menu-item--mega:focus-within)) .site-logo__light {
    opacity: 1;
  }

  body.has-overlay-header:not(.home) .site-header:not(.is-revealed):not(.is-mega-open):not(.is-open):not(:has(.desktop-menu-item--mega:hover)):not(:has(.desktop-menu-item--mega:focus-within)) .site-logo__dark {
    opacity: 0;
  }

  body.has-overlay-header:not(.home) .desktop-navigation {
    flex: 1;
    /* Spazio fluido: 24px a 1101 (dove il menu sfiora il logo) fino a 42px da 1280 in su. */
    gap: clamp(24px, 10.06vw - 86.7px, 42px);
    height: 65px;
    margin-left: 64px;
    padding-right: 16px;
    /* 16px dove lo spazio e' poco, 17px da 1280 in su. */
    font-size: clamp(16px, 0.559vw + 9.85px, 17px);
    line-height: 24px;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a,
  body.has-overlay-header:not(.home) .desktop-menu-item > a {
    height: 65px;
    padding: 8px 0 20px;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a::after,
  body.has-overlay-header:not(.home) .desktop-menu-item > a::after {
    bottom: 12px;
  }

  body.has-overlay-header:not(.home) .mega-menu {
    top: 100%;
  }
}

@media (min-width: 1441px) and (max-width: 1999px) {
  body.has-overlay-header:not(.home) .site-header {
    height: auto;
  }

  body.has-overlay-header:not(.home) .site-header__inner {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 3% 7% 2%;
    align-items: flex-start;
    gap: 20px;
  }

  body.has-overlay-header:not(.home) .site-logo {
    width: 22%;
    height: 3.917vw;
    flex: 0 0 22%;
  }

  body.has-overlay-header:not(.home) .site-logo img {
    width: 60%;
    height: auto;
    flex-basis: auto;
  }

  body.has-overlay-header:not(.home) .desktop-navigation {
    height: 3.917vw;
    margin-left: 0;
    padding-right: 0;
    align-items: flex-start;
    gap: 0;
    font-size: 18px;
    line-height: 27px;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a,
  body.has-overlay-header:not(.home) .desktop-menu-item > a {
    width: auto;
    height: 44.5px;
    padding: 8px 26px;
  }

  body.has-overlay-header:not(.home) .desktop-menu-item {
    height: auto;
    align-items: flex-start;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a::after,
  body.has-overlay-header:not(.home) .desktop-menu-item > a::after {
    bottom: 0;
  }

  body.has-overlay-header:not(.home) .mega-menu {
    top: 100%;
  }

  body.has-overlay-header:not(.home) .mega-menu__inner {
    width: 84%;
    max-width: none;
  }
}

@media (min-width: 2000px) {
  body.has-overlay-header:not(.home) .interior-hero {
    height: 1224px;
    min-height: 1224px;
    margin-top: -24.73px;
  }

  body.has-overlay-header:not(.home) .interior-hero__content,
  body.has-overlay-header:not(.home) .interior-hero--career .interior-hero__content {
    top: 662.03px;
  }

  body.has-overlay-header:not(.home) .interior-hero h1 {
    font-size: 46px;
    line-height: 45px;
  }

  body.has-overlay-header:not(.home) .interior-hero p {
    min-height: 98.4px;
    font-size: 28px;
    line-height: 42px;
  }

  body.has-overlay-header:not(.home) .interior-hero .button {
    min-height: 41px;
    padding: 16px 40px 11px;
    font-size: 28px;
  }

  body.has-overlay-header:not(.home) .interior-hero__scroll {
    top: 1058.3px;
    width: 80.2px;
    height: 80.2px;
  }

  body.has-overlay-header:not(.home) .site-header {
    height: 201.1px;
  }

  body.has-overlay-header:not(.home) .site-header__inner {
    width: 86%;
    height: 201.1px;
    padding-top: 75.14px;
  }

  body.has-overlay-header:not(.home) .site-logo,
  body.has-overlay-header:not(.home) .site-logo img {
    width: 284.5px;
    height: 98.95px;
    flex-basis: 284.5px;
  }

  body.has-overlay-header:not(.home) .site-logo {
    transform: translateY(-20.68px);
  }

  body.has-overlay-header:not(.home) .desktop-navigation {
    height: 76px;
    margin-left: 20px;
    gap: 56px;
    padding-right: 16px;
    font-size: 24px;
    line-height: 36px;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a,
  body.has-overlay-header:not(.home) .desktop-menu-item > a {
    height: 76px;
    padding: 10px 0 18px;
  }

  body.has-overlay-header:not(.home) .desktop-navigation > a::after,
  body.has-overlay-header:not(.home) .desktop-menu-item > a::after {
    bottom: 10px;
    height: 3px;
  }

  body.has-overlay-header:not(.home) .mega-menu {
    top: 100%;
    padding: 54px 0 62px;
  }
}

body.has-solid-header .site-header:not(.is-open) {
  color: var(--selcom-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.09) !important;
}

body.has-solid-header .site-header:not(.is-open) .site-logo__light {
  opacity: 0 !important;
}

body.has-solid-header .site-header:not(.is-open) .site-logo__dark {
  opacity: 1 !important;
}

body.has-solid-header .site-header.is-mega-open:not(.is-open),
body.has-solid-header .site-header:has(.desktop-menu-item--mega:hover):not(.is-open),
body.has-solid-header .site-header:has(.desktop-menu-item--mega:focus-within):not(.is-open) {
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  .site-header__inner {
    width: min(100% - 40px, 1100px);
  }

  .desktop-navigation {
    gap: 24px;
    font-size: 15px;
  }

  .values-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --selcom-header-height: 72px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    justify-content: center;
  }

  .desktop-navigation {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    left: 0;
    display: block;
  }

  .site-logo,
  .site-logo img {
    width: 132px;
    height: 46px;
  }

  .selcom-container,
  .site-footer__inner,
  .native-page__content,
  .post-content {
    width: min(100% - 48px, 760px);
  }

  .home-hero__content {
    width: min(100% - 48px, 760px);
  }

  .home-hero h1 {
    font-size: 28px;
  }

  .values-track {
    display: flex;
    gap: 16px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .value-card {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: center;
  }

  .convergence-grid,
  .portfolio-section__intro,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-grid--reverse .about-media {
    order: 0;
  }

  .portfolio-grid,
  .download-grid,
  .competence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__desktop-links {
    display: none;
  }

  .site-footer__mobile-links {
    display: grid;
    margin-top: 28px;
  }

  .site-footer__mobile-links details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .site-footer__mobile-links summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    font-family: "Nexa Bold", Arial, sans-serif;
    list-style: none;
    cursor: pointer;
  }

  .site-footer__mobile-links summary::-webkit-details-marker {
    display: none;
  }

  .site-footer__mobile-links summary::after {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    content: "";
    background: transparent url("../images/down-arrow.svg") center / contain no-repeat;
    transition: transform 180ms ease;
  }

  .site-footer__mobile-links details[open] summary::after {
    transform: rotate(180deg);
  }

  .site-footer__mobile-links ul {
    margin: 0;
    padding: 0 0 16px;
    list-style: none;
  }

  .site-footer__mobile-links li + li {
    margin-top: 8px;
  }

  .site-footer__mobile-links a {
    color: rgba(255, 255, 255, 0.6);
  }

  .site-footer__offices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --selcom-header-height: 64px;
  }

  body {
    font-size: 17px;
  }

  .site-header__inner {
    width: calc(100% - 28px);
  }

  .site-logo,
  .site-logo img {
    width: 126px;
    height: 44px;
  }

  .mobile-navigation__inner,
  .selcom-container,
  .site-footer__inner,
  .native-page__content,
  .post-content {
    width: calc(100% - 40px);
  }

  .mobile-navigation__offices {
    grid-template-columns: 1fr;
  }

  .selcom-section,
  .about-section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 31px;
  }

  .section-lead {
    font-size: 17px;
  }

  .home-hero {
    min-height: 563px;
    align-items: center;
    background-position: 58% center;
  }

  .home-hero::before {
    background: rgba(4, 10, 15, 0.52);
  }

  .home-hero__content {
    width: calc(100% - 42px);
    padding: 100px 0 0;
    text-align: center;
    transform: none;
  }

  .home-hero h1 {
    font-size: 22px;
    line-height: 1.24;
  }

  .home-hero__actions {
    width: 150px;
    flex-direction: column;
    gap: 14px;
    margin: 22px auto 0;
  }

  .home-hero__actions .button {
    min-height: 42px;
    padding: 8px 16px;
  }

  .hero-down {
    left: 50%;
    transform: translateX(-50%);
  }

  .home-tagline {
    min-height: 138px;
    padding: 24px 8px;
  }

  .home-tagline h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  .context-section .section-title {
    font-size: 22px;
  }

  .context-section #approfondisci-box {
    text-align: left;
  }

  .context-section #approfondisci-box .btn-wrapper {
    text-align: center;
  }

  .carousel-section__head {
    margin-bottom: 30px;
  }

  .horizontal-track {
    gap: 16px;
    padding: 0 20px;
    scroll-padding-inline: 20px;
  }

  .solution-card {
    flex-basis: calc(100vw - 48px);
    min-height: 470px;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .solution-card h3 {
    max-width: calc(100% - 45px);
    font-size: 27px;
  }

  .solution-card p {
    font-size: 15px;
  }

  .solution-card__open {
    right: 20px;
    bottom: 20px;
  }

  .carousel-controls {
    width: calc(100% - 40px);
  }

  .domains-section {
    padding: 66px 0 30px;
  }

  .domains-section__head {
    width: calc(100% - 40px);
  }

  .product-card {
    flex-basis: calc(100vw - 42px);
    min-height: 555px;
  }

  .product-card h3 {
    font-size: 27px;
  }

  .statement-banner {
    min-height: 215px;
    padding: 30px 22px;
  }

  .statement-banner h2 {
    font-size: 25px;
  }

  .values-section__head {
    text-align: center;
  }

  .values-section__head .section-rule {
    margin-right: auto;
    margin-left: auto;
  }

  .value-card {
    flex-basis: calc(100vw - 42px);
    min-height: 310px;
    padding: 30px;
  }

  .convergence-grid,
  .portfolio-section__intro {
    gap: 22px;
  }

  .convergence-section .section-title {
    font-size: 27px;
  }

  .portfolio-grid,
  .download-grid,
  .news-grid,
  .mission-grid,
  .competence-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 350px;
  }

  .portfolio-card h3 {
    right: 78px;
    bottom: 22px;
    left: 22px;
    font-size: 23px;
  }

  .portfolio-card__open {
    right: 22px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }

  .stat strong {
    font-size: 50px;
  }

  .site-footer__inner {
    padding-top: 52px;
  }

  .site-footer__logo {
    width: 210px;
  }

  .site-footer__rule {
    margin: 34px 0;
  }

  .site-footer__top {
    display: block;
  }

  .site-footer__offices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer__offices section {
    padding-bottom: 14px;
  }

  .site-footer__legal nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
  }

  .site-footer__legal {
    text-align: center;
  }

  .interior-hero {
    min-height: 68vh;
    padding: 88px 7% 48px;
  }

  .interior-hero h1 {
    font-size: 36px;
  }

  .interior-hero p {
    font-size: 17px;
  }

  .about-grid {
    gap: 28px;
  }

  .post-hero h1,
  .native-page__content h1 {
    font-size: 38px;
  }

}


/* --- Footer snello: nav essenziale al posto dei gruppi di link --- */
.site-footer__explore h3 {
  margin-bottom: 18px;
  font-size: 18px;
}

.site-footer__explore h3::after {
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 12px;
  content: "";
  background: var(--selcom-red);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.5;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #fff;
}

@media (max-width: 900px) {
  .site-footer__explore {
    margin-top: 30px;
  }

  .site-footer__nav {
    gap: 12px 28px;
  }
}


/* --- Footer v2: logo nella colonna aziendale, accento rosso, nav ordinata --- */
.site-footer {
  border-top: 3px solid var(--selcom-red);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 64px;
}

.site-footer__logo {
  margin-bottom: 30px;
}

@media (max-width: 1180px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
