/* === TUO CSS ORIGINALE ================================================= */
.overlay-text {
    bottom: 30px;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 2px 2px 10px #ff00ff;
    z-index: 10;
    transition: all 0.3s ease;
}

.overlay-text.bigpulse {
    font-size: 50px;
    animation: bigpulse 1.4s ease-in-out infinite;
}

@keyframes bigpulse {
    0% { transform: scale(1); opacity: 1; color: #ffffff; text-shadow: 2px 2px 8px #ff00ff; }
    50%{ transform: scale(1.35); opacity: .85; color: #ff00ff; text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff0099; }
    100%{ transform: scale(1); opacity: 1; color: #ffffff; text-shadow: 2px 2px 8px #ff00ff; }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f3f3;
    text-align: center;
    padding: 40px;
    margin: 0;
}

h1 { color: #111; font-size: 32px; }

.container{
    max-width: 400px;
    margin: auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"]{
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button, .button{
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
}
button:hover, .button:hover{ background-color: #0056b3; }

.overlay-text.pulse{ animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse{
    0%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.15); opacity: .8; }
    100%{ transform: scale(1); opacity: 1; }
}

/* === TESTO \"GRAZIE\" BASE (duplicato mantenuto) === */
.overlay-text {
    bottom: 30px;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    text-shadow: 2px 2px 10px #ff00ff;
    z-index: 10;
    transition: all 0.3s ease;
}

/* === ANIMAZIONE CLASSICA (duplicato mantenuto) === */
.overlay-text.pulse{ animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse{
    0%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.15); opacity: .8; }
    100%{ transform: scale(1); opacity: 1; }
}

/* === EFFETTO SPECIALE PER IMPORTI > 2€ (duplicato mantenuto) === */
.overlay-text.bigpulse{
    font-size: 50px;
    animation: bigpulse 1.8s ease-in-out infinite;
    background: linear-gradient(45deg,#ff66cc,#ff0066,#ff66cc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes bigpulse{
    0%  { transform: scale(1);  background-position: 0% 50%; }
    50% { transform: scale(1.3); background-position: 100% 50%; }
    100%{ transform: scale(1);  background-position: 0% 50%; }
}

/* ======================================================================
   BLOCCO DEDICATO A PAGINE LEGALI (privacy.html / termini.html)
   Prefisso .legal-doc: NON interferisce con il resto del sito
   ====================================================================== */
.legal-doc{
  width:min(90%, 840px);           /* 90% su mobile, max 840px su desktop */
  margin-inline:auto;
  padding:1.6rem 1.25rem;
  line-height:1.55;
  text-align:left;                 /* solo nel documento */
  background:#fff;
  border-radius:8px;
  box-shadow:0 0 12px rgba(0,0,0,.05);
}

/* Tipografia fluida */
.legal-doc h1{
  font-size:clamp(1.8rem, 3.5vw, 2.5rem);
  margin:0 0 1.2rem;
}
.legal-doc h2{
  font-size:clamp(1.25rem, 2.6vw, 1.6rem);
  margin:1.6rem 0 1rem;
}
.legal-doc p,
.legal-doc li{
  font-size:clamp(.95rem, 2.2vw, 1.05rem);
  margin:0 0 1rem;
}

.legal-doc ul,
.legal-doc ol{ padding-left:1.2rem; }

.legal-doc a{
  color:#007bff;
  text-decoration:underline;
}
.legal-doc a:hover{ text-decoration:none; }

/* Tema scuro automatico (opzionale, non tocca altre sezioni) */
@media (prefers-color-scheme: dark){
  .legal-doc{
    color:#e5e5e5;
    background:#121212;
  }
  .legal-doc a{ color:#62a0ff; }
}