/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================================
   BASE
========================================================= */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #050505 url("bg.jpg") center/cover fixed;
    color: #fff;
    overflow-x: hidden;
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(0, 255, 170, .18), transparent 35%),
        radial-gradient(circle at bottom left, rgba(255, 0, 128, .18), transparent 35%),
        linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .92));
}

.wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    opacity: 0;
    transform: translateY(6px);
    animation: pageIn 1.2s ease .2s forwards;
}

/* =========================================================
   HEADER
========================================================= */
.top {
    text-align: center;
    margin-bottom: 50px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.mini-title {
    font-size: 13px;
    letter-spacing: 5px;
    color: #00ffb3;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* =========================================================
   TITOLI
========================================================= */
h1 {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 255, 179, .35);
    animation: pulseTitle 2.2s ease-in-out infinite;
}

.subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: .9;
}

.glow {
    text-shadow: 0 0 10px rgba(0, 255, 179, .6);
}

/* =========================================================
   GRID
========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* =========================================================
   CARD
========================================================= */
.card {
    position: relative;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    animation: cardIn .6s ease forwards;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    transition: .25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Cascade animazione */
.card:nth-child(1) {
    animation-delay: .05s;
}

.card:nth-child(2) {
    animation-delay: .10s;
}

.card:nth-child(3) {
    animation-delay: .15s;
}

.card:nth-child(4) {
    animation-delay: .20s;
}

.card:nth-child(5) {
    animation-delay: .25s;
}

.card:nth-child(6) {
    animation-delay: .30s;
}

.card:nth-child(7) {
    animation-delay: .35s;
}

.card:nth-child(8) {
    animation-delay: .40s;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #00ffb3;
    box-shadow: 0 0 24px rgba(0, 255, 179, .18);
}

/* =========================================================
   CONTENT
========================================================= */
.date {
    font-size: 14px;
    color: #ffb84d;
    font-weight: 700;
    margin-bottom: 12px;
}

.title {
    font-size: 21px;
    font-weight: 700;
    min-height: 95px;
    margin-bottom: 18px;
}

.views {
    font-size: 15px;
    font-weight: 700;
    color: #77ffc7;
    margin-bottom: 20px;
}

.views.update {
    animation: shake .25s ease;
}

/* =========================================================
   BUTTON
========================================================= */
.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    background: linear-gradient(90deg, #00ffb3, #00d9ff);
    color: #000;
    transition: .2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

/* =========================================================
   BADGE
========================================================= */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    color: #000;
    background: linear-gradient(90deg, #00f5ff, #00ff99, #00f5ff);
    background-size: 300% 300%;
    animation: hotPulse 1.5s infinite;
}

.badge.hot {
    background: linear-gradient(90deg, #ff0000, #ff7a00, #ff0000);
    animation: hotPulse 1.2s infinite, hotFlow 2s linear infinite;
}

/* =========================================================
   FOOTER
========================================================= */
.footer-club {
    margin-top: 50px;
    text-align: center;
    font-size: 15px;
    color: #ddd;
}

.footer-club a {
    color: #00ffb3;
    text-decoration: none;
    font-weight: 700;
    animation: pulseFooter 2.2s infinite ease-in-out;
}

/* =========================================================
   ANIMAZIONI
========================================================= */
@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseTitle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes titleIntro {
    0% {
        opacity: 0;
        transform: scale(.98);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseFooter {

    0%,
    100% {
        opacity: .7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes hotFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@keyframes hotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width:768px) {
    h1 {
        font-size: 38px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .subtitle {
        font-size: 16px;
    }

    .title {
        min-height: auto;
    }
}