:root {
    --primary: #FFC107;       /* Giallo Sole Caldo e Vivace */
    --secondary: #00D2FF;     /* Azzurro Cielo Splendente */
    --accent: #FF5722;        /* Arancione Mandarino per i dettagli */
    --bg-light: #F4F9FC;      /* Sfondo Azzurrato Chiarissimo e Fresco */
    --text-dark: #2C3E50;     /* Grigio Ardesia Scuro ed Elegante per i Testi */
    --white: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* NAVBAR - Chiara e Luminosa */
.navbar {
    background-color: var(--white);
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.08);
    border-bottom: 3px solid var(--primary);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.nav-logo {
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background-color: var(--secondary);
}

.nav-version {
    font-size: 0.8rem;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.05);
}

/* HERO SECTION - Solare e Chiara */
.hero {
    background: linear-gradient(135deg, #FFF9E6 0%, #E6F9FF 100%);
    color: var(--text-dark);
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px dashed var(--secondary);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 221, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo {
    max-width: 160px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0px 6px 12px rgba(255, 193, 7, 0.3));
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: #5D6D7E;
    font-weight: 500;
}

.hero p span {
    color: var(--accent);
    font-weight: 700;
}

/* CONTENUTO PRINCIPALE */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.latest-news h2 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    color: var(--text-dark);
    display: inline-block;
    position: relative;
}

.latest-news h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 6px;
    background: var(--primary);
    border-radius: 4px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* CARD ARTICOLI - Pulite ed Eleganti */
.card {
    background: var(--white);
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.04);
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.12);
    border-color: var(--primary);
}

.card-tag {
    position: absolute;
    top: -14px;
    left: 25px;
    background: var(--primary);
    color: var(--text-dark);
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.card h3 {
    margin: 1rem 0 0.8rem 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
}

.card p {
    color: #6C7A89;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.98rem;
}

/* BOTTONI - Solari e Artondati */
.btn {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.btn:hover {
    background: var(--accent);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
    transform: scale(1.02);
}

/* FOOTER - Pulito ed Elegante */
.footer {
    background: var(--white);
    color: #7F8C8D;
    text-align: center;
    padding: 2.5rem;
    margin-top: 6rem;
    font-size: 0.95rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-sub {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #95A5A6;
}

.v-badge {
    color: var(--accent);
    font-weight: 700;
}