/* -----------------------------
   RESET & BASE
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Noto Sans', sans-serif;
  background: white;
  color: #111;
   overflow-x: hidden;

}

/* -----------------------------
   LAYOUT & CONTAINER
----------------------------- */
.container {
  position: relative;
  width: 100%;
  height: 100%;
}

section {
  margin-bottom: 100px;
}

/* -----------------------------
   LOGO & ANIMAZIONE INIZIALE
----------------------------- */
.logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.logo-wrapper svg {
  width: 220px;
  height: auto;
}

.triangle-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate(-40px, -20px);
  z-index: 10;
}

.triangle-wrapper svg {
  width: 5500px;
  height: auto;
  opacity: 1;
  transform: scale(1);
  animation: shrinkFade 5s ease-in-out forwards;
}

@keyframes shrinkFade {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.055);
    opacity: 0;
  }
}

.cta-wrapper {
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 20;
}

#entraBtn {
  width: 130px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#entraBtn:hover {
  transform: scale(1.05);
}

.ripple-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0px;
  height: 0px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 100;
  transition: all 1s ease;
}

/* -----------------------------
   SIDEBAR
----------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 20px;
  z-index: 10;
}

.logo {
  width: 100px;
  height: auto;
  margin: 20px 0;
  object-fit: contain;
}

#logoFull {
  width: 185px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.6s ease 0s;
  margin-bottom: 30px;
  margin-top: -100px;
}

.nav a {
  display: block;
  margin-bottom: 40px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 16px;
  opacity: 1;
  transition: opacity 0.6s ease 0.3s;
}

.nav a:hover {
  opacity: 0.7;
}

/* -----------------------------
   MAIN CONTENT
----------------------------- */
.content {
  margin-left: 220px;
  padding: 60px 40px;
  min-height: 100vh;
}

.contact-section {
  margin-left: 0;
  padding: 40px;
}

/* -----------------------------
   FORM CONTATTI
----------------------------- */
.layout-columns {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: flex-start;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-column.left,
.form-column.middle,
.form-column.right {
  width: 400px;
  margin-top: 70px;
}


#contactTitle {
  font-weight: 800;
  font-size: 43px;
  margin-left: 100px;
  margin-top: 2px;
}

.form-column.left{

   font-size: 20px;
  font-weight: 800;
}



.form-column.middle{ 

  font-size: 20px;
  font-weight: 800;
}

.form-column.right {
  font-size: 15px;
  font-weight: 800;
  background-color: #fdfdfd;
  color: #333;
   animation: softFadeLoop 3s ease-in-out infinite;
}



.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form button {
  padding: 12px;
  background: black;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #333;
}

.required-label::after {
  content: " *";
  color: red;
  font-weight: bold;
}

/* -----------------------------
   FOOTER
----------------------------- */
.footer {
  position: fixed;
  bottom: 10px;
  left: 820px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #333;
}




/* -----------------------------
   LINGUA & FLAG
----------------------------- */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang img {
  width: 18px;
  height: auto;
  cursor: pointer;
}

.lang-switch {
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 28px;
  height: 20px;
  z-index: 99;
}

.lang-switch img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

/* -----------------------------
   TRANSIZIONI VISUALI
----------------------------- */
.fade {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.fade.show {
  opacity: 1;
  pointer-events: auto;
}
#logoToggle.fade {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#logoToggle.fade.show {
  opacity: 1;
  pointer-events: auto;
}

/* -----------------------------
   ANIMAZIONI CUSTOM
----------------------------- */
@keyframes softFadeLoop {
  0%, 100% {
    opacity: 0.90;
  }
  50% {
    opacity: 1;
  }
}

.service-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
   position: relative;
}

.service-icon {
  width: 28px;
  height: auto;
  filter: invert(0);
}

/* -----------------------------
   SERVIZI - Icone & Animazioni
----------------------------- */
.service-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.2s);
  position: relative;
}

.service-block:nth-child(even) {
  flex-direction: row-reverse;
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
/* -------- TESTO SERVIZI --------*/

.service-block h3 {
  font-size: 50px;
  margin-bottom: 28px;
}

.service-block p {
  max-width: 550px;
  line-height: 1.8;
  font-size: 20px;
  font-family: 'Noto Sans', sans-serif;
}

/* -----------------------------
   ANIMAZIONI
----------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowLoop {
  0%, 100% {
    filter: drop-shadow(0 0 0px transparent);
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  }
}

.service-icon-wrapper {
  position: relative;
  display: inline-block;
  width: 80px;  /* aumenta o riduci a piacere */
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
}


.service-icon-wrapper svg,
.service-icon-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shineMove 4s infinite;
}

@keyframes shineMove {
  0% {
    transform: translateX(-150%) rotate(25deg);
  }
  100% {
    transform: translateX(150%) rotate(25deg);
  }
}

.titolo-servizi {
   position: relative;
  z-index: 2;
  top: 0;
  left: 0;
  /* modifiche */
  letter-spacing: 8px;
  margin-left: 400px;
  margin-top: 50px;
  font-size: 220px;
}

.grid-servizi {
  display: flex;
  flex-direction: column;
  gap: 140px;
  padding: 60px;
  margin-left: 220px;
}

/* Ogni blocco posizionato liberamente */
.logo-visual {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.grafica-visual {
  grid-column: 1 / span 5;
  grid-row: 2;
}

.sito-web {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.social-media {
  grid-column: 8 / span 5;
  grid-row: 2;
}

.foto-video {
  grid-column: 5 / span 5;
  grid-row: 3;
}

/* -----------------------------
   SERVIZI - IMMAGINI OVERLAY
----------------------------- */
.image-overlay {
 width: 900px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.image-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.service-block:not(:nth-child(even)) .image-overlay {
  margin-right: -50px;
}
.service-block:nth-child(even) .image-overlay {
  margin-left: -66px; /* oppure -240px se vuoi più preciso */
}

.contact-button {
  display: flex;
  justify-content: center;
  margin: 80px 0;
}

.contact-button a {
  background-color: black;
  color: white;
  padding: 18px 42px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 50px;
  transition: background 0.3s;
}

.contact-button a:hover {
  background-color: #333;
}

/* Footer normale per pagina servizi */
body.page-servizi {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-servizi .content-wrapper {
  flex: 1;
}

.page-servizi .footer {
  position: relative;
  margin-left: -680px;
  padding: 20px;
  text-align: center;
  width: calc(100% - 220px);
  display: flex;
  justify-content: center;
}

.service-icon-inline {
  width: 200px;
  height: 200px;
  object-fit: contain;
  flex-shrink: 0;
}
.image-overlay img {
  will-change: transform;
}

/* WEB GL GRIGLIA 
.webgl-container {
  position: absolute;
  width: 100vw;
  height: 100vw;
  max-width: 100%;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
}


#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

*/
.privacy-btn {
  position: fixed;
  bottom: 10px;
  left: 180px;
  font-size: 14px;
  font-weight: bold;
  color: #111;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 98;
  transition: background 0.3s ease;
}

.privacy-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.privacy-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none; /* <-- sarà messo a flex da JS */
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.privacy-popup .popup-content {
  background: white;
  color: #111;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  font-size: 16px;
}

.privacy-popup button {
  margin-top: 20px;
  padding: 8px 16px;
  border: none;
  background: #111;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}


@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .logo {
    width: 80px;
    margin: 0;
  }

  #logoFull {
    width: 140px;
    margin: 0;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
  }

  .nav a {
    font-size: 14px;
    margin: 0;
  }

  .content,
  .grid-servizi {
    margin-left: 0;
    padding: 20px;
    box-sizing: border-box;
  }

  .titolo-servizi {
    font-size: 60px;
    margin: 20px 0;
    margin-left: 0;
    letter-spacing: 2px;
    text-align: center;
  }

  .service-block {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0 10px;
  }

  .service-block h3 {
    font-size: 28px;
    flex-direction: column;
    gap: 6px;
    word-break: break-word;
  }

  .service-icon-inline {
    width: 120px;
    height: auto;
    margin-bottom: 12px;
  }

  .service-block p {
    font-size: 16px;
    line-height: 1.5;
  }

  .image-overlay {
    width: 100%;
    height: auto;
  }

  .image-overlay img {
    height: auto;
  }

  .contact-button a {
    font-size: 28px;
    padding: 14px 24px;
  }

 .form-column {
  width: 100%;
  padding: 0 10px; /* Aggiungi questo se non c'è */
  box-sizing: border-box;
}


  .layout-columns {
    flex-direction: column;
    gap: 20px;
  }

  .form-column.right h1,
  .form-column.right h2,
  .form-column.right h5 {
    font-size: 16px;
  }

  .footer {
    margin-top: auto;
    position: relative;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  #privacyBtn {
    position: static !important;
    padding: 8px 16px;
    background: white;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 8px;
  }

  #privacyPopup > div {
    width: 90%;
    max-width: 90%;
    box-sizing: border-box;
    padding: 20px;
    font-size: 14px;
  }

  #langIcon {
    width: 32px;
  }

  .lang-switch {
    position: absolute;
    bottom: 30px;
    right: 20px;
  }

  .contact-section {
    padding-bottom: 100px;
  }
  input, textarea, button {
  max-width: 100%;
  box-sizing: border-box;
}
 .form-column.left,
  .form-column.middle,
  .form-column.right {
    width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .contact-form {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  input,
  textarea,
  button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }


  .lang-switch {
    left: auto;
    right: 12px;
    bottom: 16px;
  }
#contactTitle {
    font-size: 36px;
    margin: 0 auto 20px auto;
    text-align: center;
    width: 100%;
  }
 .page-main .lang-switch {
    bottom: 70px;
  }
}

.page-main .lang-switch {
  bottom: 40px; /* alzala quanto vuoi */
}








