/* --- RESET BASE E CORPO DEL DOCUMENTO --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  font-size: x-large;
  background: #f9f9f9;
  color: #000;
  transition: background-color 0.3s ease;
}

/* --- FONT PERSONALIZZATI --- */
@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;
}

/* --- TOOLBAR / HEADER CON LOGO --- */
.toolbar {
  display: flex;
  padding: 10px 20px;
 background-image: url(loghi/sfondo.png);
    background-size: cover;
      background-size: cover;
  flex-direction: column;
  justify-content: center;
  background-color: #0d1117;
}

#sezione1 {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo1 {
  display: flex;
  width: 20%;
  align-content: center;
  flex-direction: column;
  align-items: center;
}

/* --- ANIMAZIONI DI ENTRATA --- */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* --- SEZIONE PRINCIPALE (BENEFIT/TESTO INIZIALE) --- */
#div1 {
  text-align: center;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#titolofrase1 {
  font-size: xxx-large;
  font-family: 'Cocogoose', sans-serif;
  font-weight: bold;
  color: #222;
  margin-top: 100px;
  text-shadow: none;
}

#frase1 {
  font-size: x-large;
  margin-top: -20px;
  color: #444;
  text-shadow: none;
}

/* --- SEZIONE FAQ --- */
.container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  font-size: 2.8rem;
  color: #00c3ff;
    margin-bottom: -10px;
      font-family: 'Cocogoose', sans-serif;
}

.faq-item {
  background: #ffffff;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.267);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  background: #fff;
  color: #3d3d3d;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0 20px;
  background: #2b2b2b;
  color: #ffffff;
  font-size: medium;
}

.faq-item.open .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-image {
  width: 100%;
  border-radius: 8px;
  margin-top: 15px;
}

.tag {
  font-size: 0.9rem;
  color: #00c3ff;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 500;
}

/* --- METODI DI PAGAMENTO --- */
#payment-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  background: #2b2b2b;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#section-title {
  text-align: center;
  margin-bottom: 24px;
  color: #cbcbcb;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Cocogoose', sans-serif;
}

#payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 20px;
  margin-bottom: 20px;
}

#payment-methods > li {
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}

#payment-methods img {
  width: 60%;
  height: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#payment-methods img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* --- FORM DOMANDA --- */
#form-sez {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

#form-title {
  font-size: 1.4em;
  color: #2c3e50;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
  font-family: 'Cocogoose', sans-serif;
  padding: 20px 20px 0;
}

#form-description {
  font-size: 0.9em;
  color: #7f8c8d;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.5;
  padding: 0 20px;
}

#input-name,
#input-email,
#input-question {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  background: #fdfdfd;
  transition: all 0.3s ease;
  outline: none;
}

#input-name:focus,
#input-email:focus,
#input-question:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  transform: scale(1.02);
}

#submit-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #00225d, #00b2ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 10px;
  margin-bottom: 20px;
}

#submit-button:hover {
  transform: scale(1.10);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

#submit-button:active {
  transform: scale(1.04);
}

#contact-form {
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
}

/* --- LOADER E MESSAGGIO DI SUCCESSO --- */
#loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 1em;
  color: #3498db;
  padding: 20px;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#success-message {
  padding: 15px;
  background-color: #dff0d8;
  border-radius: 8px;
  color: #3c763d;
  font-size: 1em;
  text-align: center;
  margin: 10px 20px;
  border: 1px solid #d6e9c6;
}

#confirm-button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 40%;
  font-size: 18px;
  transition: all 0.3s ease;
  margin: 0 auto 20px;
}

#confirm-button:hover {
  background-color: #219653;
  transform: scale(1.05);
}

/* --- MENU MOBILE FISSO SU SCROLL --- */
#menuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00b4fe, #007cc0);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 180, 254, 0.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#menuButton:hover {
  transform: scale(1.1);
}

@media (min-width: 769px) {
  #menuButton {
    display: none;
  }
}

/* --- MENU LATERALE MOBILE DARK MODE --- */
#sideMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1117; /* Colore coerente col toolbar */
  color: #e0e0e0;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-left: 1px solid #30363d;
}

#sideMenu.open {
  right: 0;
}

/* Backdrop scuro durante apertura menu */
#sideMenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#sideMenu.open::before {
  opacity: 1;
}

/* Header del menu con logo e X */
#menuHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #30363d;
  background: #0d1117;
}

#logo-menu-mobile {
  width: 50%;
  border-radius: 8px;
  filter: brightness(1.1) drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}

#closeMenu {
  font-size: 2rem;
  color: #c9d1d9;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
}

#closeMenu:hover {
  color: #00b4fe;
  transform: rotate(90deg);
}

/* Contenitore link menu mobile */
#navbar-container-mobile {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  background: #0d1117;
}

#navbar-container-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#navbar-container-mobile ul li {
  margin-bottom: 8px;
}

#navbar-container-mobile ul a {
  color: #c9d1d9;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 500;
  padding: 14px 16px;
  display: block;
  border-radius: 10px;
  background: #161b22;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-left: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

#navbar-container-mobile ul a:hover,
#navbar-container-mobile ul a:focus {
  background: #21262d;
  color: #00b4fe;
  transform: translateX(6px);
  border-left-color: #00b4fe;
  box-shadow: 0 4px 12px rgba(0, 180, 254, 0.2);
  outline: none;
}

#navbar-container-mobile ul a:focus {
  outline: 2px solid #00b4fe;
  outline-offset: -2px;
}

/* --- FOOTER --- */
#footer {
 background-image: url(loghi/sfondo.png);
    background-size: cover;
      font-size: medium;
  width: 100%;
  margin-top: 40px;
  padding-top: 30px;
}

#griglia2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  align-items: center;
  align-content: center;
  padding: 0 20px 20px;
}

#logo2 {
  width: 30%;
  margin-bottom: 15px;
}

#ul2 {
  text-align: justify;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

#ul2 li {
  margin-bottom: 12px;
  font-size: 15px;
  padding-left: 0;
  position: relative;
}

#ul2 li:last-child {
  margin-bottom: 0;
}

#ul2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#ul2 a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

#ul3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 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;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 10px;
  border-radius: 0.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #161b22;
}

#Whatsapp { background-color: #25d366; }
#instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
#facebook { background-color: #006eff; }
#Gmail { background-color: #f21818; }

.icon-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}

.icon-container svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icon-container p {
  font-size: 0.9em;
  font-weight: 400;
  color: white;
  margin: 0;
  text-align: center;
  width: 100%;
}

.card-container:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Metodi di pagamento */
#metodidipagamanto {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#svgiconepay,
#svgiconepaybtc {
  height: 28px;
  color: white;
}

/* Copyright */
#spaziohr {
  border: none;
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

#copyright-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 15px 0;
  margin: 0 20px;
}

#copyright-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  color: #aaa;
  font-size: 14px;
}

#copyright-main p {
  margin: 0;
  width: 100%;
  text-align: center;
}

#copyright-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 5px 0;
  margin-top: 30px;
  margin-bottom: 20px;
}

#copyright-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
  font-size: 13px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

#copyright-links a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

#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;
}

#soluzionidigiatli {
  color: white;
}

/* --- MEDIA QUERIES RESPONSIVE --- */

/* Mobile generico */
@media (max-width: 768px) {
  #logo1 {
    max-width: 160px;
    width: 30%;
  }
  #titolofrase1 {
    font-size: xx-large;
    margin-top: 80px;
  }
  #frase1 {
    font-size: large;
  }
  #menuButton {
    opacity: 1;
    visibility: visible;
  }
  .toolbar {
    padding-right: 80px;
  }
  #payment-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
  }
  #section-title {
    font-size: 14px;
  }
  #form-sez {
    max-width: 90%;
  }
  #confirm-button {
    width: 60%;
  }
  #payment-methods {
    flex: 1;
    width: 35%;
  }
  /* Nasconde il menu desktop su mobile */
  #navbar-container {
    display: none !important;
  }
}

/* Mobile stretto */
@media (max-width: 480px) {
  #logo1 {
    width: 75%;
    max-width: 160px;
  }
  #titolofrase1 {
    font-size: x-large;
    margin-top: 60px;
  }
  #frase1 {
    font-size: medium;
    margin-top: -10px;
  }
  #menuButton {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  #sideMenu {
    width: 260px;
  }
  #payment-methods {
    gap: 15px;
  }
  #form-title,
  #form-description {
    padding: 0 15px;
  }
}




/* === Ricerca avanzata - Stili migliorati === */
.container-input {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.input {
  width: 150px;
  padding: 12px 16px 12px 44px;
  border-radius: 9999px;
  border: solid 1px #d1d1d1;
  background-color: #fff;
  font-size: 1rem;
  color: #000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
box-shadow: 0 2px 6px rgb(0 0 0 / 13%);
  opacity: 0.85;
}

.input:hover,
.input:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.input:focus {
  opacity: 1;
  width: 250px;
}

.container-input svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  stroke: #007cba;
  stroke-width: 2px;
  fill: #666;
  transition: fill 0.2s ease;
}

.input:focus ~ svg {
  fill: #007cba;
}

/* Label accessibile */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#centrale{
    display: flex
;
    padding: 30px;
}


/* Responsive: su schermi piccoli la larghezza massima è limitata */
@media (max-width: 480px) {
  .input {
    width: 140px;
    padding-left: 40px;
  }
  .input:focus {
    width: calc(100vw - 40px);
    min-width: 200px;
    max-width: 280px;
  }
}