body {
    font-family: Calibri, sans-serif;
    background-image: url('sfondoapp.jpg');
    background-color: #000000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #FFFFFF;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
header {
    text-align: center;
    margin-bottom: 20px;
}
#logo-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
header h2 {
    color: #ffffff;
    margin-top: 5px;
    font-weight: bold;
}
main, #privacy-policy-container {
    flex-grow: 1;
    width: 100%;
    max-width: 450px;
    margin-top: 0;
}
#search-container, #result-container {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid #333;
    margin: 20px auto;
    text-align: center;
    backdrop-filter: blur(5px);
}
#search-container h3 {
    margin-top: 0;
}
#search-form input {
    width: calc(100% - 22px);
    padding: 12px 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #555;
    font-size: 1em;
    background-color: #333;
    color: #FFFFFF;
    font-family: Calibri, sans-serif;
}
#search-form button {
    width: 100%;
    padding: 12px;
    background-color: #cccccc;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: Calibri, sans-serif;
}
#search-form button:hover {
    background-color: #b3b3b3;
}
#points-display {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}
#result-points {
    font-size: 3em;
    font-weight: bold;
    color: #FFFFFF;
}
#error-message {
    color: #ff4d4d;
    font-weight: bold;
}
.hidden {
    display: none;
}
footer {
    margin-top: 30px;
    font-size: 0.9em;
    text-align: center;
}
footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
#privacy-policy-container {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: left;
    backdrop-filter: blur(5px);
}
#privacy-policy-container h3 {
    text-align: center;
    margin-top: 0;
}
#privacy-policy-container h4 {
    margin-top: 20px;
    margin-bottom: 5px;
}
#privacy-policy-container p {
    font-size: 0.9em;
    line-height: 1.5;
    color: #dddddd;
}
#back-to-search-btn {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}
.policy-last-updated {
    font-size: 0.8em;
    font-style: italic;
    color: #aaaaaa;
    text-align: center;
    margin-bottom: 20px;
}
/* === STILE PER PULSANTE PROMOZIONI === */
.promo-link-container {
    text-align: center;
    margin-top: 10px; /* Aggiunge un po' di spazio sopra */
}

.promo-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ffffff; /* Bordo bianco */
    border-radius: 8px;
    color: #ffffff; /* Testo bianco */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s; /* Transizione fluida */
}

/* Effetto al passaggio del mouse */
.promo-button:hover {
    background-color: #ffffff; /* Sfondo diventa bianco */
    color: #000000; /* Testo diventa nero */
}