/**
 * Stili per il blocco riassuntivo della homepage (v3.1 - Clean & Modern).
 */

.eprize-homepage-summary-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa; /* Colore di sfondo base per coerenza */
}

.eprize-hp-section {
    padding: 5em 1em;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #e9ecef; /* Ripristiniamo un bordo semplice */
}
.eprize-hp-section:last-of-type {
    border-bottom: none;
}

/* Sfondi alternati per dare movimento */
.eprize-hp-section:nth-of-type(even) {
    background-color: #ffffff;
}

.eprize-hp-section h2, .eprize-hp-section h3 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1.5em;
    position: relative;
    z-index: 2;
    font-weight: 700;
}
/* Overlay per leggibilità su immagini di sfondo */
.eprize-hp-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.eprize-hp-section[style*="background-image"] > * {
    position: relative;
    z-index: 2;
}

.eprize-hp-section[style*="background-image"] h1,
.eprize-hp-section[style*="background-image"] h2,
.eprize-hp-section[style*="background-image"] h3,
.eprize-hp-section[style*="background-image"] .eprize-hp-subtitle,
.eprize-hp-section[style*="background-image"] p,
.eprize-hp-section[style*="background-image"] label {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}


/* Sezione Eroe */
.eprize-hp-hero {
    background-color: #f8f9fa;
    padding-top: 6em;
}

.eprize-hp-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
    color: #2c3e50;
    margin: 0 0 0.25em 0;
    line-height: 1.1;
    font-weight: 800;
}

.eprize-hp-hero .eprize-hp-subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 1.5em auto;
}

.eprize-hp-cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.eprize-hp-cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(41, 128, 185, 0.5);
    color: #fff;
}

/* Sezione Come Funziona */
.eprize-hp-how-it-works {
    background: #fff;
}
.eprize-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.eprize-step-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.eprize-step-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.1);
}

.eprize-step-item {
    padding: 1.5em;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    height: 100%;
}

.eprize-step-item h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin: 0.75em 0;
}

.eprize-step-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

.eprize-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}
.eprize-step-link:hover .eprize-step-icon {
    transform: scale(1.1) rotate(-5deg);
}

.eprize-step-icon.register { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.eprize-step-icon.follow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z'/%3E%3C/svg%3E");}
.eprize-step-icon.choose { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'/%3E%3C/svg%3E"); }
.eprize-step-icon.win { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM9 5h6v2.28c-.4.14-.78.33-1.15.58C12.98 8.48 12 9.42 12 10.5V11c-1.3 0-2.42-.69-3-1.72C8.62 9.07 8.1 8.8 7.5 8.65 7.21 8.44 7 8.12 7 7.77V5h2z'/%3E%3C/svg%3E"); }


/* Sezione Countdown */
.eprize-countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-top: 1.5em;
}

.eprize-countdown-item {
    background: #fff;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    min-width: 90px;
}

.eprize-countdown-item span {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.eprize-countdown-item label {
    font-size: 0.9rem;
    color: #7f8c8d !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none !important;
}

/* Sezione Statistiche */
.eprize-hp-stats {
    background: linear-gradient(160deg, #f8f9fa, #e9ecef);
}
.eprize-stats-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.eprize-social-stats-wrapper {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.eprize-social-stats-wrapper h3 {
    font-size: 1.5rem;
    color: #34495e;
}

.eprize-stat-item {
    background: #fff;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    text-decoration: none;
    border-bottom: 4px solid #3498db;
}
a.eprize-stat-item {
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
}
a.eprize-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
}

.eprize-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75em auto;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Icone SVG come background-image */
.eprize-stat-icon.user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.eprize-stat-icon.contest { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 2h5v10h-5V5zM5 19V5h5v14H5zm2-6h2v2H7zm0-4h2v2H7zm0-4h2v2H7z'/%3E%3C/svg%3E");}
.eprize-stat-icon.prize { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3s-3 1.34-3 3c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM4 19V8h16v11H4z'/%3E%3C/svg%3E"); }
.eprize-stat-icon.euro { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334495e'%3E%3Cpath d='M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3v2h3.06c-.04.33-.06.66-.06 1s.02.67.06 1H3v2h3.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77C18.09 17.91 16.61 18.5 15 18.5z'/%3E%3C/svg%3E"); }
.eprize-stat-icon.heart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.eprize-stat-icon.social.facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b5998'%3E%3Cpath d='M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.32 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 12 2.04Z'/%3E%3C/svg%3E");}
.eprize-stat-icon.social.instagram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e4405f'%3E%3Cpath d='M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2A5.8,5.8 0 0,1 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8A5.8,5.8 0 0,1 7.8,2M7.6,4A3.6,3.6 0 0,0 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4A3.6,3.6 0 0,0 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5A1.25,1.25 0 0,1 18.5,6.75A1.25,1.25 0 0,1 17.25,8A1.25,1.25 0 0,1 16,6.75A1.25,1.25 0 0,1 17.25,5.5M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z'/%3E%3C/svg%3E");}
.eprize-stat-icon.social.twitter { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231da1f2'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");}
.eprize-stat-icon.social.telegram { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230088cc'%3E%3Cpath d='m9.417 15.181-.397 5.584c.568 0 .814-.244 1.109-.537l2.663-2.545 5.518 4.041c1.012.564 1.725.267 1.998-.931L23.62 5.218c.347-1.614-.428-2.227-1.258-1.926L5.344 9.144c-1.626.66-1.62 1.623-.29 2.035l4.306 1.352 9.894-6.22c.484-.309.923-.144.545.197z'/%3E%3C/svg%3E");}
.eprize-stat-icon.social.whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2325d366'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91C2.13 13.96 2.76 15.91 3.86 17.5L2.06 22L6.69 20.25C8.26 21.21 10.11 21.81 12.04 21.81C17.5 21.81 21.95 17.36 21.95 11.91C21.95 6.45 17.5 2 12.04 2M12.04 3.63C16.56 3.63 20.28 7.35 20.28 11.88C20.28 16.41 16.56 20.13 12.04 20.13C10.3 20.13 8.65 19.59 7.28 18.66L6.93 18.43L4.93 19.22L5.75 17.28L5.5 16.91C4.49 15.42 3.81 13.7 3.81 11.88C3.81 7.35 7.49 3.63 12.04 3.63M16.53 14.33C16.32 14.88 15.35 15.4 14.88 15.46C14.41 15.52 13.84 15.53 13.43 15.35C12.89 15.15 11.91 14.76 10.89 13.8C9.62 12.59 8.92 11.13 8.76 10.81C8.6 10.49 7.96 8.93 7.96 8.23C7.96 7.53 8.24 7.28 8.45 7.07C8.63 6.89 8.86 6.8 9.04 6.8C9.22 6.8 9.39 6.8 9.53 6.81C9.69 6.83 9.83 6.84 9.98 7.15L10.33 8C10.4 8.16 10.45 8.33 10.38 8.5C10.31 8.67 10.27 8.76 10.15 8.9C10.03 9.03 9.95 9.13 9.83 9.27C9.72 9.4 9.61 9.54 9.74 9.78C9.88 10.01 10.24 10.59 10.8 11.13C11.53 11.84 12.2 12.18 12.43 12.3C12.67 12.42 12.82 12.38 12.94 12.26C13.08 12.12 13.31 11.82 13.52 11.56C13.78 11.25 14.04 11.18 14.32 11.28L15.22 11.72C15.37 11.79 15.5 11.86 15.57 11.96C15.64 12.06 15.67 12.18 15.67 12.31C15.67 12.45 15.67 12.83 15.52 13.1C15.38 13.39 15.31 13.54 15.31 13.63C15.31 13.71 15.77 14.21 16.02 14.41C16.02 14.41 16.03 14.41 16.05 14.41C16.27 14.59 16.42 14.68 16.53 14.33Z'/%3E%3C/svg%3E");}


.eprize-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25em;
}

.eprize-stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Sezione Ultimi Vincitori */
.eprize-hp-latest-winners {
    background: #fff;
}
.eprize-winners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.eprize-winner-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1em;
    border-radius: 8px;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}
.eprize-winner-name {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
}
.eprize-winner-details strong {
    display: block;
    color: #34495e;
}
.eprize-winner-details span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Sezione Concorsi */
.eprize-hp-contests {
    background: #f8f9fa;
}
.eprize-hp-contests .eprize-contests-grid {
    justify-content: center; /* Centra le card se sono meno di quelle che riempiono la riga */
    position: relative;
    z-index: 2;
}

/* Sezione Testimonianze */
.eprize-hp-testimonials {
    background: #fff;
}
.eprize-testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.eprize-testimonial-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5em;
    border-radius: 8px;
}
.eprize-testimonial-text {
    font-style: italic;
    color: #34495e;
    margin: 0 0 1em 0;
    position: relative;
    padding-left: 20px;
}
.eprize-testimonial-text::before {
    content: '“';
    font-size: 2em;
    position: absolute;
    left: 0;
    top: -0.2em;
    color: #bdc3c7;
}
.eprize-testimonial-author {
    text-align: right;
}
.eprize-testimonial-author strong {
    display: block;
    color: #2c3e50;
}
.eprize-testimonial-author span {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Sezione Made in Italy */
.eprize-hp-made-in-italy {
    background-color: #f8f9fa;
}
.eprize-made-in-italy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1em auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' viewBox='0 0 512 512' fill='%23009246'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM159.3 128c-13.3 0-24 10.7-24 24s10.7 24 24 24c48.6 0 88 39.4 88 88s-39.4 88-88 88c-13.3 0-24 10.7-24 24s10.7 24 24 24c75.1 0 136-60.9 136-136s-60.9-136-136-136zm192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24c48.6 0 88 39.4 88 88s-39.4 88-88 88c-13.3 0-24 10.7-24 24s10.7 24 24 24c75.1 0 136-60.9 136-136s-60.9-136-136-136z'/%3E%3C/svg%3E");
}
.eprize-hp-made-in-italy p {
    max-width: 800px;
    margin: 0 auto;
    color: #7f8c8d;
    line-height: 1.7;
}