/* --- RESET E BODY --- */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: x-large;
  background-color: #ffffff;
  color: #ffffff;
}

/* --- TOOLBAR / NAVIGAZIONE --- */
.toolbar {
  display: flex;
  padding: 10px 20px;
 background-image: url(loghi/sfondo.png);
    background-size: cover;
  flex-direction: column;
  justify-content: center;
}

#sezione1 {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* -- Logo e Titolo -- */


#logo1 {
  display: flex;
  width: 20%;
  align-content: center;
  flex-direction: column;
  align-items: center;
}



/* --- FOOTER --- */
#footer {
 background-image: url(loghi/sfondo.png);
    background-size: cover;
      font-size: medium;
}

#griglia2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
  text-align: center;
  align-items: center;
  align-content: center;
}

/* -- Logo e Descrizione -- */
#soluzionidigiatli {
  margin-left: 15px;
}

#logo2 {
  width: 30%;
}

/* -- Liste di Link -- */
#ul2 {
  text-align: justify;
  padding-left: 0;
}

#ul2 li {
  margin-bottom: 12px;
  font-size: 15px;
  padding-left: 0;
  position: relative;
}

#ul2 a {
  color: #ffffff;
  text-decoration: none;
}

#ul2 a:hover {
  text-decoration: underline;
}

/* -- Social Media -- */
#ul3 {
  display: contents;
  list-style: none;
  padding-left: 0;
}

#cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.card-container {
  position: relative;
  width: 150px;
  height: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.5em 10px;
  border-radius: 0.5em;
  cursor: pointer;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

#Whatsapp {
  background-color: #25d366;
}

#Gmail {
  background-color: #f21818;
}

#instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

#facebook {
  background-color: #006eff;
}

.icon-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.icon-container svg {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.icon-container p {
  font-size: 0.9em;
  font-weight: 400;
  color: white;
  margin: 0;
}

.card-container p {
  font-weight: 900;
  color: #ffffff;
  font-family: 'Cocogoose', sans-serif;
  margin: 0;
}

.card-container:hover {
  transform: scale(1.3);
  z-index: 2;
}

#cards:hover > .card-container:not(:hover),
#cards:has(.card-container:hover) .card-container:not(:hover) {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* -- Metodi di Pagamento -- */
#metodidipagamanto {
  display: flex;
  align-items: center;
  flex-direction: row;
}

#svgiconepay {
  margin-right: 10px;
  height: 24px;
}

#svgiconepaybtc {
  height: 24px;
}

/* -- Copyright e Link -- */
#spaziohr {
  border: solid 2px rgb(119 119 119 / 11%);
}

#copyright {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 30px;
  margin-right: 30px;
  color: #ffffff;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  margin-top: 10px;
}

#copyright p {
  margin: 0;
}

#copyright a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 10px;
}

#copyright a:hover {
  text-decoration: underline;
}

/* --- FONT FACE --- */
@font-face {
  font-family: 'Heavitas';
  src: url('Heavitas.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cocogoose';
  src: url('Cocogoose-Pro-Bold-trial.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* --- MENU MOBILE SU SCROLL --- */
#menuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00b4fe;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#sideMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1117;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

#sideMenu.open {
  right: 0;
}

#menuHeader {
  padding: 20px;
  text-align: right;
  border-bottom: 1px solid #333;
}

#closeMenu {
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#closeMenu:hover {
  color: #00b4fe;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

#navbar-container-mobile {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* --- CONTENUTO PRINCIPALE --- */
#page {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fc;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#container {
  width: 90%;
  max-width: 700px;
  padding: 40px;
  background: rgba(255, 255, 255, 0);
  border-radius: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

#icona2 {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #cc2366, #00b4fe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 28px;
  box-shadow: 0 5px 15px rgba(110, 142, 251, 0.25);
  animation: pulse 2s infinite alternate;
}

#title {
  font-size: 28px;
  font-weight: 600;
  color: #444;
  margin: 0 0 12px;
}

#subtitle {
  font-size: 16px;
  color: #777;
  margin-bottom: 32px;
}

#issuesList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

#issueButton {
  background: #f5f6f8;
  border: none;
  text-align: left;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  box-shadow: -20px 20px 30px rgba(0, 0, 0, 0.09);
}

#issueButton:hover {
  background: #2b2b2b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.2);
}

#issueButton::after {
  content: '→';
  font-size: 18px;
  color: #00b4fe;
  transition: transform 0.3s ease;
}

#issueButton:hover::after {
  transform: translateX(4px);
}

/* --- MODALE --- */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modalOverlay.active {
  opacity: 1;
  visibility: visible;
}

#modal {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
  color: #535353;
}

#modalOverlay.active #modal {
  opacity: 1;
}

#modalTitle {
  font-size: 22px;
  font-weight: 600;
  color: #444;
  margin-bottom: 16px;
}

#modalDesc {
  font-size: 15px;
  color: #777;
  margin-bottom: 24px;
}

#supportForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- CAMPI DEL FORM (compatibili con JS dinamico) --- */
.form-control {
  padding: 12px 16px;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  background: white;
}

.form-control:focus {
  border-color: #6e8efb;
  box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.15);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- BOTTONI ANIMATI --- */
#formButton {
  position: relative;
  background-color: transparent;
  color: #e8e8e8;
  font-size: 17px;
  font-weight: 900;
  border-radius: 10px;
  width: 100%;
  height: 60px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  margin-top: 10px;
}

#formButton::before {
  content: "Conferma!";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, #40c9ff 0%, #e81cff 100%);
  transform: translate(0%, 90%);
  z-index: 99;
  position: relative;
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

#formButton::after {
  content: "Invia Richiesta 🚀";
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-origin: top;
  transform: translate(0%, -100%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

#formButton:hover::before {
  transform: translate(0%, 0%) scale(1.3);
}

#formButton:hover::after {
  transform: translate(0%, -200%);
}

#formButton:focus {
  outline: none;
}

#formButton:active {
  scale: 0.95;
}

#doneButton {
  position: relative;
  background-color: transparent;
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 900;
  border-radius: 10px;
  width: 100%;
  height: 60px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  margin-top: 10px;
}

#doneButton::before {
  content: "✅ Conferma!";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(135deg, #40c9ff 0%, #e81cff 100%);
  transform: translate(0%, 90%);
  z-index: 99;
  position: relative;
  transform-origin: bottom;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

#doneButton::after {
  content: "Grazie per averci contattato! Risponderemo entro 24 ore.";
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-origin: top;
  transform: translate(0%, -100%);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

#doneButton:hover::before {
  transform: translate(0%, 0%) scale(1.3);
}

#doneButton:hover::after {
  transform: translate(0%, -200%);
}

#doneButton:focus {
  outline: none;
}

#doneButton:active {
  scale: 0.95;
}

/* --- LOADER --- */
#loader {
  display: none;
  margin: 10px 0;
  font-size: 14px;
}

#loader div {
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #cc2366;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

#loader p {
  color: #777;
  margin-top: 8px;
}

#closeModal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

#closeModal:hover {
  color: #ff0000;
  transform: scale(1.8);
  transition: all 0.3s ease;
}

/* --- ANIMAZIONI --- */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  from {
    box-shadow: 0 5px 15px rgba(167, 119, 227, 0.25);
  }
  to {
    box-shadow: 0 5px 25px rgba(167, 119, 227, 0.4);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- MEDIA QUERY --- */
@media (max-width: 600px) {
  #container {
    padding: 30px 20px;
  }
  #title {
    font-size: 24px;
  }
}

/* --- BOTTONE FAQ --- */
#buttonvisita {
  position: relative;
  width: 320px;
  height: 60px;
  background: transparent;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#buttonvisita .text-default,
#buttonvisita .text-hover {
  position: absolute;
  transition: opacity 0.3s ease;
}
#buttonvisita .text-hover {
  opacity: 0;
}

#buttonvisita::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: 8px;
  background: linear-gradient(270deg, #e81cff, #40c9ff, #fc00ff, #00dbde, #e81cff);
  background-size: 400% 400%;
  animation: border-animate 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

#buttonvisita::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: #0d1117;
  z-index: -2;
  transition: background 0.3s ease;
}

@keyframes border-animate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#buttonvisita:hover {
  transform: scale(1.4);
}
#buttonvisita:hover .text-default {
  opacity: 0;
}
#buttonvisita:hover .text-hover {
  opacity: 1;
}
#buttonvisita:hover::after {
  background: linear-gradient(270deg, #e81cff, #40c9ff, #fc00ff, #00dbde, #e81cff);
  background-size: 400% 400%;
}


#sezionebottone{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}


/* --- MEDIA QUERY AGGIORNATE PER MOBILE --- */
@media (max-width: 768px) {
  /* --- TOOLBAR E LOGO --- */
  .toolbar {
    padding: 10px;
  }





  #logo1 {
    width: 45%;
  }

  #titolo {
    font-size: 20px;
    margin-left: 10px;
  }

  /* --- CONTENUTO PRINCIPALE --- */
  #container {
    width: 95%;
    padding: 24px 16px;
  }

  #title {
    font-size: 24px;
  }

  #subtitle {
    font-size: 15px;
  }

  #icona2 {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  /* --- PULSANTI FAQ / ASSISTENZA --- */
  #issueButton {
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 10px;
  }

  #issueButton::after {
    font-size: 16px;
  }

  /* --- BOTTONE VISITA FAQ --- */
  #sezionebottone {
    margin-bottom: 32px;
  }

  #buttonvisita {
    width: 100%;
    max-width: 320px;
    height: 52px;
    font-size: 15px;
  }

  #buttonvisita:hover {
    transform: scale(1.1); /* Evita scale troppo grandi su mobile */
  }

  /* --- MODIFICHE PER MODALE SU MOBILE --- */
  #modalOverlay {
    align-items: flex-start !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  #modal {
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    margin: 0 auto !important;
    width: 95% !important;
  }
  
  #closeModal {
    top: 10px !important;
    z-index: 1001 !important;
  }

  /* --- CAMPI DEL FORM SU MOBILE --- */
  .form-control {
    min-height: 44px !important;
    padding: 12px !important;
  }
  
  #formButton {
    margin-bottom: 45px !important;
  }

  /* --- MODALE --- */
  #modal {
    width: 95%;
    padding: 20px;
    border-radius: 12px;
  }

  #modalTitle {
    font-size: 20px;
  }

  #modalDesc {
    font-size: 14px;
  }

  .form-control {
    padding: 12px;
    font-size: 16px; /* Migliora leggibilità su touch */
  }

  #formButton,
  #doneButton {
    height: 52px;
    font-size: 16px;
  }

  /* --- FOOTER --- */
  #griglia2 {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  #soluzionidigiatli,
  #ul2,
  #ul3 > div {
    margin-bottom: 1.5rem;
  }

  #logo2 {
    width: 40%;
    margin: 0 auto 12px;
    display: block;
  }

  #metodidipagamanto {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  #svgiconepay,
  #svgiconepaybtc {
    height: 20px;
  }

  #copyright {
    flex-direction: column;
    gap: 1rem;
    margin: 0 16px;
    text-align: center;
  }

  #copyright p,
  #copyright a {
    font-size: 14px;
  }

  #spaziohr {
    margin: 20px 0;
  }

  /* --- SOCIAL CARDS MOBILE --- */
  #cards {
    justify-content: center;
  }

  .card-container {
    width: 140px;
    height: 48px;
    padding: 0.5em 8px;
    border-radius: 0.5em;
  }

  .icon-container svg {
    width: 24px;
    height: 24px;
  }

  .icon-container p {
    font-size: 0.85em;
  }

  .card-container:hover {
    transform: scale(1.2);
  }

  #cards:hover > .card-container:not(:hover),
  #cards:has(.card-container:hover) .card-container:not(:hover) {
    filter: blur(1px);
    opacity: 0.7;
  }

  /* --- SIDE MENU MOBILE --- */
  #sideMenu {
    width: 260px;
    right: -260px;
  }

  #navbar-container-mobile {
    padding: 16px;
  }

  #menuHeader {
    padding: 16px;
  }

  #closeMenu {
    font-size: 1.8rem;
  }

  /* --- ABBASSA IL MENU SU SCHERMI PICCOLI --- */
  #menuButton {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    bottom: 20px;
    right: 16px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: large; /* Evita testo troppo grande su iPhone */
  }

  #container {
    padding: 25px 30px;
  }

  #title {
    font-size: 22px;
  }

  #issueButton {
    font-size: 14px;
    padding: 12px 14px;
  }

  #buttonvisita {
    max-width: 60%;
    width: 100%;
    height: 50px;
  }

  .card-container {
    width: 130px;
    height: 44px;
  }

  .icon-container p {
    font-size: 0.8em;
  }

  #modal {
    padding: 16px;
  }

  #formButton,
  #doneButton {
    height: 50px;
  }

  #footer {
    font-size: 14px;
  }
}

/* --- NASCONDI NAVBAR DESKTOP SU MOBILE --- */
@media (max-width: 768px) {
  #navbar-container {
    display: none;
  }

   #doneButton, #loader{
 margin-bottom: 90px;  }

}

