
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');

body, html {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Cinzel', serif;
  height: 100%;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 200px;
}
.seo-intro {
  position: relative;
  z-index: 1;
  text-align: justify;
  margin: 0 auto;
}
.seo-intro h3, h2{
  text-align: center;
  text-align:center;
  font-size: 20px;
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.seo-intro .container-seo{
  margin: 0 auto;
  line-height: 1.7;
  padding-left: 100px;
  padding-right: 100px;
}

.pre-container {
  z-index: 1;
  text-align: center;
  padding-top: 30px;
}

.imgSite {
  width: 300px;
  margin-bottom: 20px;
  margin-top: 30px;
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

h1 {
  font-size: 35px;
  margin-bottom: 10px;
}
h2 {
  font-size: 26px;
  margin-bottom: 10px;
  font-weight:600;
}

.descrizione {
  margin-bottom: 30px;
  color: #ccc;
  font-size: 24px;
  padding-left: 20px;
  padding-right: 20px;
}

form {
  margin-bottom: 30px;
}

input[type="text"] {
  padding: 12px;
  width: 70%;
  max-width: 300px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  margin-right: 10px;
}

button {
  margin-top: 15px;
  padding: 12px 20px;
  font-size: 1em;
  background: #5e1aff;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #784eff;
}

.output-text {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: #d1cfcf;
  padding: 20px;
  background: radial-gradient(circle, #000 0%, #111 100%);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

.text-green {
  position: relative;
  display: inline-block;
  color: #3e7f7d;
}

.underline-svg {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  stroke: #3e7f7d;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawUnderline 1.6s ease-in-out 2 forwards;
  pointer-events: none;
  filter: drop-shadow(0 0 4px #00ffd5);
}

.footer{
  text-align: center;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto;
}
.text-sm{
  font-size: 13px;
}
#segnale-mentalista {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 2px;
  height: 2px;
  background: #ff818185;
  border-radius: 50%;
  z-index: 9999;
  display: none;
}
.language-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  background-color: #fff;
  color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  font-family: sans-serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 999;
  transition: all 0.2s ease-in-out;
}

.language-switch:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* mondo */

.lang-btn {
  position: fixed;
  top: 60px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px); /* effetto sali-scompari */
}

.lang-btn.hidden-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-options {
  position: fixed;
  top: 60px;
  right: 12px;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lang-options a {
  position: absolute;
  width: 36px;
  height: 36px;
  font-size: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transform: scale(0);
  transition: transform 0.3s;
}

/* posizioni radiali */
.lang-options a:nth-child(1) { top: -60px; right: 0; }
.lang-options a:nth-child(2) { top: -42px; right: 42px; }
.lang-options a:nth-child(3) { top: 0; right: 60px; }
.lang-options a:nth-child(4) { top: 42px; right: 42px; }

#lang-toggle:checked + label + .lang-options {
  pointer-events: auto;
}

#lang-toggle:checked + label + .lang-options a {
  transform: scale(1);
}

#lang-toggle {
  display: none;
}

/* mondo fine*/
@keyframes drawUnderline {
  to {
    stroke-dashoffset: 0;
  }
}
@media screen and (max-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: 25px;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .seo-intro h2, h3 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align:center;
  }
  .descrizione {
    font-size: 20px;
  }
  #nome-input{
    width: 280px;
  }
  .imgSite {
    width: 280px;
  }
  .output-text {
    margin-right: 20px;
    margin-left: 20px;
    padding: 10px;
  }
  .seo-intro .container-seo{
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media screen and (max-width: 480px) {
  .imgSite {
    width: 200px;
  }
  .language-switch {
    font-size: 11px;
    padding: 4px 8px;
    top: 8px;
    right: 8px;
  }
}

.no-style{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.underline{
  text-decoration-line: underline;
}

.seo-text {
  display: none;
  margin-top: 1rem;
  animation: fadeIn 0.5s ease-in-out;
}

.seo-expand {
  text-align: center;
  padding: 2rem 1rem;
}

.toggle-seo {
  padding: 0.5rem 1.2rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-seo .freccia {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle-seo[aria-expanded="true"] .freccia {
  transform: rotate(180deg);
}

.mt-3{
  margin-top: 3rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}