/* =========================================================
   Sci & Snow Novazzano — Stylesheet
   Stile: Dinamico / Montagna — Mobile-first, HTML/CSS puro
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-sky-deep:    #0a2342;
    --color-sky-mid:     #1565c0;
    --color-sky-light:   #bbdefb;
    --color-snow:        #e3f0ff;
    --color-white:       #ffffff;
    --color-accent:      #42a5f5;
    --color-text-dark:   #0d1b2a;
    --color-card-bg:     rgba(255, 255, 255, 0.15);
    --color-card-border: rgba(255, 255, 255, 0.3);
    --color-facebook:    #1877f2;
    --color-instagram:   #e1306c;

    --font-main: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

    --spacing-xs:  0.5rem;
    --spacing-sm:  1rem;
    --spacing-md:  1.5rem;
    --spacing-lg:  2.5rem;
    --spacing-xl:  4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    min-height: 100vh;
    background: linear-gradient(
        170deg,
        var(--color-sky-deep)  0%,
        var(--color-sky-mid)   45%,
        var(--color-sky-light) 75%,
        var(--color-snow)      100%
    );
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Fiocchi di neve decorativi --- */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    animation: fall linear infinite;
    user-select: none;
}

.snowflake:nth-child(1)  { left:  5%; animation-duration: 8s;  animation-delay: 0s;    font-size: 1rem; }
.snowflake:nth-child(2)  { left: 15%; animation-duration: 12s; animation-delay: 2s;    font-size: 1.6rem; }
.snowflake:nth-child(3)  { left: 25%; animation-duration: 10s; animation-delay: 4s;    font-size: 0.8rem; }
.snowflake:nth-child(4)  { left: 35%; animation-duration: 9s;  animation-delay: 1s;    font-size: 1.2rem; }
.snowflake:nth-child(5)  { left: 48%; animation-duration: 14s; animation-delay: 3s;    font-size: 1.8rem; }
.snowflake:nth-child(6)  { left: 58%; animation-duration: 11s; animation-delay: 0.5s;  font-size: 0.9rem; }
.snowflake:nth-child(7)  { left: 68%; animation-duration: 7s;  animation-delay: 5s;    font-size: 1.3rem; }
.snowflake:nth-child(8)  { left: 78%; animation-duration: 13s; animation-delay: 1.5s;  font-size: 1.5rem; }
.snowflake:nth-child(9)  { left: 88%; animation-duration: 9s;  animation-delay: 3.5s;  font-size: 1rem; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 2.5s;  font-size: 0.7rem; }

@keyframes fall {
    0%   { transform: translateY(0)   rotate(0deg);   opacity: 0.8; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* --- Layout principale --- */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

/* --- Header / Intestazione club --- */
.club-header {
    text-align: center;
}

.club-icon {
    font-size: clamp(3rem, 10vw, 5rem);
    display: block;
    margin-bottom: var(--spacing-xs);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.club-name {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.club-name span {
    color: var(--color-accent);
}

.club-location {
    margin-top: var(--spacing-xs);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* --- Card generica --- */
.card {
    width: 100%;
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

/* --- Card: Messaggio stagione --- */
.season-card .season-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-sky-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    margin-bottom: var(--spacing-sm);
}

.season-card h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.season-card p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
    opacity: 0.92;
}

.season-card .next-season {
    margin-top: var(--spacing-md);
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 600;
}

/* --- Card: Contatti --- */
.contacts-card h3,
.social-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: var(--spacing-md);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s, transform 0.15s;
}

.contact-list a:hover,
.contact-list a:focus {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
    outline: none;
}

.contact-list .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

/* --- Card: Social --- */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

@media (min-width: 480px) {
    .social-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    transition: filter 0.2s, transform 0.15s;
    min-width: 180px;
}

.btn-social:hover,
.btn-social:focus {
    filter: brightness(1.15);
    transform: translateY(-2px);
    outline: none;
}

.btn-social.facebook  { background: var(--color-facebook); }
.btn-social.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.btn-social .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.5;
    padding-bottom: var(--spacing-md);
}

/* --- Responsive: desktop --- */
@media (min-width: 600px) {
    .contact-list {
        flex-direction: row;
        justify-content: center;
    }

    .contact-list a {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
