/* --- VARIABILI COLORE E FONT--- */
:root {
    --primary-color: #356296;    /* Blu scuro */
    --accent-color: #5cc1db;     /* Azzurro */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-body: #fdfdfd;
    --bg-card: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);

}

/* --- CONFIGURAZIONE FONT --- */
:root {
    --font-body: 'Open Sans', sans-serif; /* Testo base */
    --font-heading: 'Aldrich', sans-serif; /* Titolo principale */
    --font-titles: 'Open Sans', sans-serif; /* Titoli secondari */
}


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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.main-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.subtitle {
    font-weight: 300;
    opacity: 0.8;
    font-style: italic;
}

/* --- NAVBAR --- */
.main-nav {
    background-color: #1a252f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--accent-color);
}

/* --- CORPO CENTRALE --- */
.main-content {
    flex: 1; /* Spinge il footer in basso */
    padding: 50px 0;
}

/* --- CARD --- */
.card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card h2 {
    font-family: var(--font-titles);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.btn-primary {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #1a252f;
    color: var(--text-light);
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
}