/* ==============================
   VARIABILI GLOBALI
============================== */

:root {
    --blu: rgb(70, 60, 196);
    --colore-testo: #333;
    --colore-grigio: #666;
}

/* ==============================
   STRUTTURA BASE
============================== */

html {
    scrollbar-gutter: stable;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #fff;
    color: var(--colore-testo);
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

section {
    margin-bottom: 30px;
}

/* ==============================
   UTILITY
============================== */

.blu {
    color: var(--blu);
}

.grassetto {
    font-weight: bold;
}

.titoli-blu {
    color: var(--blu);
    font-family: "Maiandra GD", "Segoe UI", Arial, sans-serif;
}

.font-acca-3 {
    font-size: 1.17em;
    font-weight: bold;
}

.font-acca-4 {
    font-size: 1em;
    font-weight: bold;
}

/* Marker personalizzati liste */
.spunta-freccia > li::marker {
    content: "▸ ";
}

.spunta-spunta > li::marker {
    content: "✓ ";
}

/* ==============================
   HEADER 
============================== */

.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    padding-bottom: 10px;
}

/* H1 su una sola riga */

.logo {
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
}

/* Tagline sulla stessa riga */

.logo .tagline {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--blu);
    margin-left: 14px; /* spazio tra nome e professione */
}

/* NAV */

.header-nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.header-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--blu);
}

.header-nav a:hover {
    text-decoration: underline;
}

.header-nav a.active {
    font-weight: 600;
}

/* Lingua switch */

.lang-switch {
    margin-left: auto;
    text-decoration: none;
}

.lingua-corrente {
    color: var(--colore-grigio);
    font-weight: normal;
}

.lingua-futura {
    color: var(--blu);
    font-weight: bold;
}

/* Linea separazione header */

.header-divider {
    height: 1px;
    background: #888;
    margin-top: 10px;
}

/* ==============================
   FOOTER – Compatto istituzionale
============================== */

.site-footer {
    margin-top: 80px;
    font-size: 0.85rem;
}

/* Linea superiore */

.footer-line {
    height: 1px;
    background-color: #ddd;
    width: 100%;
    margin-bottom: 18px;
}

/* Contenuto footer */

.footer-inner {
    text-align: center;
    padding-bottom: 20px;
}

/* Paragrafo come flex container */

.footer-inner p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

/* Social icons container */

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

/* Link social */

.footer-social a {
    display: inline-flex;
    align-items: center;
}

/* Icone */

.footer-social img {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-social img:hover {
    opacity: 1;
}

/* ==============================
   RESPONSIVE GENERALE
============================== */

@media (max-width: 768px) {

    .container {
        padding: 20px;
    }

    .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-inner p {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}