* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #dfdfdf;
}

header {
    /* background-color: #4CAF50; */
    color: rgb(0, 0, 0);
    padding: 1rem 0;
    text-align: center;
}

header p {
    width: 70%;
    margin: 0 auto;
}

.countdown-message{
    background-color: #fff3cd; 
    color: #856404; 
    padding: 1rem; 
    border-radius: 8px; 
    margin-top: 1rem; 
    font-weight: 600; 
    font-size: 1.1rem; 
    text-align: center;
}

#weekly-timer {
  font-family: sans-serif;
  text-align: center;
  margin: 1em 0;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1.5em;
}

#countdown span {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#countdown small {
  font-size: 0.7em;
  color: #888;
  margin-top: 2px;
}

.containerPromo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    align-items: stretch; /* Allinea tutte le card alla stessa altezza */
}

.card {
    background: linear-gradient(to bottom, #e3f7ff, #cfe8ff);
    width: 100%;
    max-width: 25%;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.card.selezionato {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.card a h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #00796b;
}

.card a p {
    font-size: 1rem;
    line-height: 1.5;
    color: black;
}

.card a {
    text-decoration: none;
}

.promo-btn {
    background: #007bff; /* Blu brillante */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-btn:hover {
    background: #0056b3; /* Blu più scuro per effetto hover */
    transform: translateY(-2px);
    box-shadow: 0px 8px 15px rgba(0, 123, 255, 0.3);
}

.promo-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.promo-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.rate-info {
  display: block;
  margin: 8px 0;
  color: #00b894; /* verde positivo */
  font-weight: 600;
  font-size: 0.95rem;
}

/* Responsive design per schermi piccoli */
@media (max-width: 768px) {
    header p {
        width: 90%; /* Riduce la larghezza del testo per adattarlo allo schermo */
        font-size: 0.9rem; /* Diminuisce la dimensione del testo */
    }

    .containerPromo {
        padding: 1rem;
        gap: 1rem; /* Riduce lo spazio tra le card */
    }

    .card {
        max-width: 100%; /* Le card occupano l'intera larghezza del contenitore */
        padding: 1.5rem; /* Riduce il padding per adattarsi meglio agli schermi piccoli */
        border-radius: 15px; /* Leggermente più arrotondato */
    }

    .card h2 {
        font-size: 1.2rem; /* Riduce la dimensione del titolo */
    }

    .card p {
        font-size: 0.9rem; /* Adatta il testo per schermi più piccoli */
    }

    .promo-btn {
        font-size: 1rem;
        padding: 10px 15px;
        width: 90%;
        max-width: none;
    }

    .promo-btn:hover {
        transform: translateY(-1px);
    }
}
