/* ============================================================
   1. RESET + VARIABILI GLOBALI
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --sky: #5B8FAE;
    --sea: #1B4965;
    --stone: #EFE6D3;
    --stone-dim: #DCCFAF;
    --terracotta: #C1622D;
    --terracotta-dark: #9C4C22;
    --gold: #B8873B;
    --gold-light: #D4AF6A;
    --ink: #22303B;
    --ink-soft: #465563;
    --shadow-strong: rgba(0, 0, 0, 0.35);
    --shadow-soft: rgba(0, 0, 0, 0.18);
}

html, body {
    width: 100%;
    min-height: 100vh;
    color: var(--ink);
    background: var(--stone) !important;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(60, 40, 20, 0.16) 100%);
}

/* ============================================================
   2. DASHBOARD
   ============================================================ */
.dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 25, 34, 0.92);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(18px) saturate(200%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 2px 0 rgba(212, 175, 106, 0.25);
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1.5px;
}

.nav-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-desktop a {
    color: var(--stone);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 6px 16px;
    border-radius: 2px;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid rgba(239, 230, 211, 0.4);
    transition: all 0.3s ease;
}

.nav-desktop a:hover {
    background: rgba(193, 98, 45, 0.25);
    border-color: var(--terracotta);
    color: #fff;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-switcher button {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 2px;
    background: rgba(239, 230, 211, 0.08);
    border: 1px solid rgba(239, 230, 211, 0.4);
    color: var(--stone);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lang-switcher button:hover {
    background: rgba(193, 98, 45, 0.25);
}

@media screen and (max-width: 899px) {
    .header-right-actions {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }
    .nav-desktop {
        flex: 1 1 100%;
        justify-content: center;
    }
    .lang-switcher {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ============================================================
   3. CONTENUTO — base mobile (sotto i 900px)
   ============================================================ */
.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 190px 24px 100px;
    text-align: center;
}

.category-tag {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 700;
    margin-bottom: 8px;
}

.content-wrapper h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    color: var(--sea);
    margin-bottom: 16px;
    line-height: 1.15;
}

/* Divisorio dorato con piccolo rombo centrale disegnato in puro CSS.
   Prima usava il carattere Unicode "❧" (fiorellino), non supportato
   dal font di sistema su molti telefoni Android: al suo posto
   comparivano dei puntini/quadratini vuoti, che sembravano un errore
   di battitura invece di un abbellimento. Un rombo disegnato via CSS
   è invece garantito identico su ogni dispositivo. */
.gold-divider {
    border: none;
    height: 1px;
    background: var(--gold);
    width: 70px;
    margin: 0 auto 28px;
    position: relative;
}

.gold-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
}

.content-wrapper p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 22px;
    text-align: left;
}

.content-wrapper p:last-of-type {
    margin-bottom: 0;
}

.highlight-gold {
    font-style: italic;
    color: var(--terracotta-dark);
    background: rgba(184, 135, 59, 0.08);
    border-left: 2px solid var(--gold);
    padding: 14px 18px;
}

@media screen and (max-width: 899px) {
    .content-wrapper {
        padding-top: 150px;
    }
}

/* ============================================================
   4. DESKTOP (900px — 1299px)
   Colonna unica, centrata, ma larga: si adatta allo schermo
   invece di restare bloccata a una misura fissa piccola.
   ============================================================ */
@media screen and (min-width: 900px) {
    .dashboard {
        height: 75px;
        flex-direction: row;
        padding: 0 40px;
        gap: 0;
    }
    .logo-title { font-size: 1.55rem; }
    .nav-desktop { gap: 22px; }
    .nav-desktop a { font-size: 1rem; padding: 10px 18px; }

    .content-wrapper {
        max-width: 1300px;
        margin: 0 auto;
        padding: 160px 6vw 140px;
        display: flex;
        flex-direction: column;
    }

    .content-head {
        text-align: center;
        margin-bottom: 36px;
    }

    .content-wrapper h1 {
        font-size: 2.7rem;
    }

    .content-wrapper p {
        font-size: 1.5rem;
        line-height: 1.95;
        margin-bottom: 28px;
    }

    .highlight-gold {
        padding: 20px 26px;
        font-size: 1.5rem;
    }
}

/* ============================================================
   5. SCHERMI LARGHI (1300px+)
   Stessa colonna unica, ma più ampia e con caratteri più grandi.
   ============================================================ */
@media screen and (min-width: 1300px) {
    .content-wrapper {
        max-width: 1550px;
        padding: 170px 7vw 160px;
    }

    .content-wrapper h1 {
        font-size: 3.1rem;
        line-height: 1.15;
    }

    .content-wrapper p {
        font-size: 1.65rem;
        line-height: 2.05;
        margin-bottom: 30px;
    }

    .highlight-gold {
        font-size: 1.65rem;
        position: relative;
        padding: 24px 30px 24px 46px;
    }

    .highlight-gold::before {
        content: "❝";
        position: absolute;
        left: 12px;
        top: 10px;
        font-size: 1.9rem;
        color: var(--gold);
        font-family: 'Playfair Display', serif;
    }
}
