
/*@import url('https://fonts.cdnfonts.com/css/windows-command-prompt');     */
.solo-outer .region-inner{
  padding: 0;
}
#sidebar-box-main {
  width: 100%;
}
#primary-menu{
position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  z-index: 999;
  background: #19242c;
  height: auto;
}
.page-wrapper .main-container * {
  --r-br: var(--r-br-light);
  margin: 0 !important;
  padding: 0 !important;
}
.solo-block-title {
  display: none;
}
.multi > .solo-col{
  gap: 0 !important;
}
.active-main-1 > .solo-inner {
  padding-top: 0;
}
html, body {
  /*height: 100%;*/
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  overflow-y: hidden;
}
.cert-row {
  display: flex;
  gap: 2vw;
  width: auto;
  min-height: 130px; /* mantiene lo spazio */
  align-items: center;
}
.cert-img {
  height: 11vw;
  max-height: 150px;
  min-height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 1em;
  box-shadow: 0 0 14px #00ff99, 0 0 1em #fff4 inset;
  border: 2px solid #00FF00;
  background: rgba(25,25,40,0.10);
  padding: 0.3vw;
  transition: transform 0.22s, box-shadow 0.18s;
  opacity: 0.98;
}
.cert-img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 24px #00ff99, 0 0 2em #00FF00 inset;
}

.corner-images {
  position: absolute;
  top:4rem;
  left: 2vw;
  display: flex;
  flex-direction: row;
  gap: 1vw;
  z-index: 20;
}
.corner-images img {
  max-width: 7vw;
  min-width: 60px;
  height: auto;
  border-radius: 1em;
  box-shadow: 0 0 14px #00ff99, 0 0 1em #fff4 inset;
  border: 2px solid #00FF00;
  background: rgba(25,25,40,0.10);
  padding: 0.3vw;
  transition: transform 0.2s, box-shadow 0.18s;
}
/* Responsive: mobile, immagini una sopra all'altra e al centro */






@media (min-width: 401px) and (max-width:900px) {
  .cert-img {
    height: 16vw;
    max-height: 90px;
    min-height: 55px;
  }
    .corner-images img {
    max-width: 20vw;
    min-width: 62px;
  }

    .corner-images {
    position: absolute;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 3vw;
    align-items: center;
  }

}

@media (max-width: 400px) {

.top-content {
  top: 50vh !important;
 }

.vian-automation strong{
font-size: 10vw !important;
}

.hero-icon-area{
display:none;
}
  .corner-images {
    flex-direction: row;
    width: calc(100vw - 4vw);
    justify-content: center;
  }
 #rotate-words{
   top: 60vh !important;
 }
}

@media (min-width: 401px) and (max-width: 600px) {
  .hero-icon-area {
    height: 40%; /* fascia pi� stretta verticale */
  }
  .cert-row {
    gap: 2vw;
    flex-wrap: wrap;
    min-height: 1px;
  }
  .cert-img {
    height: 22vw;
    max-height: 60px;
    min-height: 35px;
  }
  .w3-container, .hero-bg-wrap {
    height: 140vw;
    min-height: 180px;
    max-height: none;
  }
  .top-content {
    width: 99vw;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -46%);
    font-size: clamp(1.1rem, 5vw, 2.3rem);
    max-width: none;
    padding-left: 0;
  }
  .vian-automation {
    font-size: clamp(1.3rem, 11vw, 3rem);
  }
}
.w3-container,
.hero-bg-wrap {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh; /* Usa viewport intera per la hero */
  overflow: hidden;
  background: #000;
  margin: 0;
  padding: 0;

  /*  position: absolute;   */
  left: 0;
  bottom: 0;
    z-index: 1;
}
/*.hero-bg-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  z-index: 1;
  overflow: hidden;
}*/
.hero-bottom-image {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: bottom;
  margin: 0;
  padding: 0;
  z-index: 1;
  display: block;
}
/* Testo al centro */
.top-content {
  position: absolute;
  left: 50%;
  top: 70vh;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 90vw;
  max-width: 850px;
  text-align: center;
  margin: 0 auto;
  pointer-events: none;
}
.vian-automation {
  font-family: 'Windows Command Prompt', monospace;
  color: #00FF00;
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-shadow: 0 0 5px #257525CC, 0 0 10px #006A00, 0 0 20px #179717, 0 0 40px #0F0;
  white-space: nowrap;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  overflow: visible;
  height:7vh;
}
.top-content p {
  background-color: rgba(75, 75, 138, 0.6);
  border-radius: 1em;
  color: white;
  font-size: clamp(1rem, 3vw, 2rem);
  padding: 0.5em 1em;
  text-align: center;
  margin: 0.3em auto 0 auto;
  width: 100%;
}
/* ======= rotate-words ======= */
#rotate-words {
  max-width: 80vw;
  margin: auto;
  padding-top: 1vw;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  position: absolute;
  font-weight: bold;
  left: 50%;
  width: 80vw;
  max-width: 900px;
  top: 80vh;
  transform: translateX(-50%);
  z-index: 3;

}
#rotate-words span {
  display: block;
  height: auto;
  font-size: clamp(0.8rem, 1.5vw, 1.4rem);
  text-transform: lowercase;
  opacity: 0.85;
  font-family: 'Rubik', sans-serif;
  line-height: 1.3em;
}
#rotate-words div {
  position: absolute;
  opacity: 0;
  overflow: hidden;
  width: 100%;
  line-height: 1.2em;
  animation: rotate-word 12s linear infinite 0s;
  height: auto;
  background-color: rgba(75, 75, 138, 0.6);
  border-radius: 1em;
  color: white;
  padding: 1vw;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  box-sizing: border-box;
  /*min-height: 170px;*/
}
@keyframes rotate-word {
  0% { opacity: 0; transform: translateX(0) scale(1.2); filter: blur(10px); }
  5% { opacity: 1; transform: translateX(0) scale(0.9); filter: blur(0); }
  30% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  35% { opacity: 0; transform: translateX(0) scale(1.2); filter: blur(10px); }
  100% { opacity: 0; }
}
#rotate-words div:nth-child(1) { animation-delay: 0s; }
#rotate-words div:nth-child(2) { animation-delay: 4s; }
#rotate-words div:nth-child(3) { animation-delay: 8s; }
/* === Hero icone area + esagoni ======= */
.hero-icon-area {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
}
.hex-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(.58,1.56,.62,.96);
  /* width e height gestiti via JS */
}
.hex-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hex-inner {
  position: relative;
  width: 50%;
  height: 50%;
  left: 25%;
  top: 25%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 10px #c6f9c9);
}
@media (max-width: 900px) {
  .w3-container, .hero-bg-wrap {
    height: 90vw;
    min-height: 240px;
  }
  .top-content {
    width: 95vw;
    left: 50%;
   // top: 70vh;
    font-size: clamp(1rem, 4vw, 2rem);
    max-width: none;
    transform: translate(-50%, -54%);
  }
  .vian-automation {
    font-size: clamp(2rem, 12vw, 4rem);
  }
}
@media (max-width: 600px) {
  .hero-icon-area {
    height: 40%;
  }
  .w3-container, .hero-bg-wrap {
    height: 140vw;
    min-height: 180px;
    max-height: none;
  }
  .top-content {
    width: 99vw;
    left: 50%;
    //top: 46%;
    transform: translate(-50%, -46%);
    font-size: clamp(1.1rem, 5vw, 2.3rem);
    max-width: none;
    padding-left: 0;
  }
  .vian-automation {
    font-size: clamp(1.3rem, 11vw, 3rem);
  }
}
@media (max-width: 900px) {
  .w3-container,
  .hero-bg-wrap,
  .hero-bg-blur,
  .hero-bottom-image,
  .hero-icon-area {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }
}
@media (max-width: 600px) {
  .w3-container,
  .hero-bg-wrap,
  .hero-bg-blur,
  .hero-bottom-image,
  .hero-icon-area {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }
  .hex-icon {
    max-width: 42px !important;
    max-height: 42px !important;
  }
}
/* Aggiunta: Certificati bottom responsive */
.partner-cert {
  position: absolute;
  z-index: 20;
  bottom: 2vw;
  width: clamp(90px, 12vw, 180px);
  max-width: 28vw;
  min-width: 70px;
  pointer-events: auto;
}
.partner-cert img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 1em;
  box-shadow: 0 0 14px #00ff99, 0 0 1em #fff4 inset;
  border: 2px solid #00FF00;
  background: rgba(25,25,40,0.10);
  padding: 0.3vw;
  transition: transform 0.22s, box-shadow 0.18s;
  opacity: 0.99;
}
.partner-cert:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 24px #00ff99, 0 0 2em #00FF00 inset;
}
.partner-cert.left { left: 2vw; }
.partner-cert.right { right: 2vw; }
/* Mobile: sposta in alto se troppo in basso o troppo piccole */
@media (max-width: 600px) {
  .partner-cert {
    width: clamp(60px, 24vw, 100px);
    bottom: auto;
    top: auto;
    left: 3vw !important;
    right: 3vw !important;
    z-index: 22;
  }
  .partner-cert.left { bottom: 8vw; left: 5vw; }
  .partner-cert.right { bottom: 8vw; right: 5vw; }
}
/* Se la hero � piccolissima, sovrapponi sopra la barra menu */
@media (max-width: 420px) {
  .partner-cert {
    bottom: 18vw;
  }
}
