@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
    --bg-deep: #071326;
    --bg-mid: #0d203d;
    --bg-soft: #163459;
    --surface: rgba(9, 22, 44, 0.68);
    --surface-strong: rgba(7, 18, 36, 0.86);
    --line: rgba(155, 214, 255, 0.28);
    --text-main: #ecf6ff;
    --text-muted: #b1c8de;
    --accent-cyan: #5ed6ff;
    --accent-ice: #8df0ff;
    --accent-sun: #ffca7a;
    --danger: #ff8f8f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--text-main);
    margin: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(94, 214, 255, 0.18), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(255, 202, 122, 0.2), transparent 28%),
        linear-gradient(145deg, var(--bg-deep) 0%, var(--bg-mid) 52%, var(--bg-soft) 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 42vmax;
    height: 42vmax;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
    filter: blur(52px);
}

body::before {
    top: -18vmax;
    left: -14vmax;
    background: rgba(97, 225, 255, 0.18);
}

body::after {
    right: -16vmax;
    bottom: -20vmax;
    background: rgba(255, 183, 95, 0.16);
}

.container.py-4 {
    max-width: 1280px;
    padding-top: 2.25rem !important;
    padding-bottom: 1.25rem !important;
}

.col-12.mb-3.text-center {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(12, 31, 59, 0.78), rgba(8, 19, 40, 0.8));
    border-radius: 22px;
    padding: 1.6rem 1.1rem;
    box-shadow: 0 18px 44px rgba(0, 7, 22, 0.45);
    backdrop-filter: blur(8px);
    animation: introFade 720ms ease-out both;
}

.col-12.mb-3.text-center h1 {
    font-family: 'Sora', 'Manrope', sans-serif;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
}

.col-12.mb-3.text-center h1:first-child {
    color: var(--danger) !important;
    font-size: clamp(1.05rem, 2.6vw, 1.48rem);
}

#time24h,
#time12h {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(94, 214, 255, 0.13);
    border: 1px solid rgba(141, 240, 255, 0.34);
    font-weight: 700;
    color: var(--accent-ice);
}

.row {
    row-gap: 1rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--surface) 0%, var(--surface-strong) 100%);
    border: 1px solid var(--line);
    text-align: center;
    padding: 1rem 0.95rem;
    color: var(--text-main);
    box-shadow: 0 14px 34px rgba(0, 8, 24, 0.36);
    backdrop-filter: blur(8px);
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
    overflow: hidden;
    animation: riseIn 600ms ease both;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(141, 240, 255, 0.08) 48%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 550ms ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(0, 10, 28, 0.5);
    border-color: rgba(141, 240, 255, 0.5);
}

.card:hover::before {
    transform: translateX(120%);
}

.card h3 {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.12rem;
    border-bottom: 2px solid rgba(94, 214, 255, 0.42);
    padding-bottom: 0.52rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-ice);
}

.card h3 i {
    margin-right: 0.58rem;
    color: var(--accent-sun);
}

.card hr {
    border-color: rgba(155, 214, 255, 0.2);
    margin: 0.45rem 0;
}

.card b {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
}

.card-pioggia b {
    font-size: 0.9rem;
    padding: 0.3rem;
}

.footer {
    background: transparent !important;
    border-top: 1px solid var(--line) !important;
}

.footer .container {
    border-radius: 16px;
    background: rgba(6, 16, 33, 0.72);
    border: 1px solid rgba(155, 214, 255, 0.2);
    padding: 1rem;
}

.footer h5 {
    font-family: 'Sora', 'Manrope', sans-serif;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-ice);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 220ms ease, border-color 220ms ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--accent-sun);
    border-color: rgba(255, 202, 122, 0.6);
}

@keyframes introFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .card {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .container.py-4 {
        padding-top: 1.25rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .col-12.mb-3.text-center {
        padding: 1.15rem 0.75rem;
        border-radius: 18px;
    }

    .col-12.mb-3.text-center h1 {
        font-size: clamp(0.98rem, 4.3vw, 1.2rem);
    }

    .card {
        min-height: 270px;
        border-radius: 16px;
        padding: 0.9rem 0.75rem;
    }

    .card h3 {
        font-size: 1.02rem;
    }

    .card b,
    .card-pioggia b {
        font-size: 0.92rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .card,
    .col-12.mb-3.text-center {
        animation: none;
    }

    .card,
    .card::before {
        transition: none;
    }
}