/* PROPOSTA "A" - moderno chiaro.
   Sovrascrive i colori/sfondi del tema pergamena. Le variabili qui sotto
   sono l'unico punto da toccare per cambiare la palette. */

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1f2430;
    --muted: #5f6675;
    --heading: #161a24;
    --accent: #b5083f;          /* dal logo */
    --accent-dark: #8f0631;
    --border: #e3e6ec;
    --border-strong: #c9ced8;
    --shadow: 0 6px 24px rgba(20, 25, 40, 0.08);
    --radius: 16px;
    --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-head: var(--font-body);
}

body,
.site-page {
    background-image: none;
    background-color: var(--bg);
    font-family: var(--font-body);
    color: var(--text);
}

/* ===== TITOLI ===== */

h1, h2, h3,
.section-title {
    font-family: var(--font-head);
    color: var(--heading);
}

h1 {
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    letter-spacing: -0.01em;
}

.section-title {
    font-size: 2.2rem;
}

.subtitle {
    color: var(--muted);
    font-weight: 500;
}

/* ===== HEADER ===== */

.site-header {
    background-color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(20, 25, 40, 0.06);
}

.site-nav a {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.site-nav a:hover,
.site-nav a.active,
.nav-item.active > a {
    color: var(--accent);
    border-bottom-color: var(--border-strong);
}

.site-nav a.active,
.nav-item.active > a {
    border-bottom-color: var(--accent);
}

.submenu {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
}

.submenu a {
    border-bottom-color: var(--border);
}

.submenu a:hover,
.submenu a.active {
    background-color: rgba(181, 8, 63, 0.07);
}

.menu-toggle {
    color: var(--heading);
}

/* ===== CARD ===== */

.cda-card,
.initiative-card,
.contact-card,
.story-card,
.statute-card,
.five-per-thousand,
.timeline-content,
.story-link-card,
.press-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cda-card img,
.initiative-card img,
.hero-image img,
.home-gallery img,
.map-container {
    border-radius: var(--radius);
}

.hero-image img {
    box-shadow: var(--shadow);
}

.contact-card h2 {
    color: var(--heading);
}

/* ===== HOME ===== */

.foundation-box {
    width: min(500px, 100%);
    box-sizing: border-box;
    background-image: none;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.foundation-label {
    margin-top: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
}

.foundation-counter {
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--accent);
}

.tax-number {
    color: var(--accent);
}

.copy-button {
    background-color: var(--accent);
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.copy-button:hover {
    background-color: var(--accent-dark);
}

.gallery-title {
    color: var(--heading);
}

.home-gallery img:hover {
    box-shadow: 0 12px 28px rgba(20, 25, 40, 0.2);
}

/* ===== STORIA ===== */

.timeline::before {
    background-color: var(--border-strong);
}

.timeline-item::before {
    background-color: var(--accent);
    border-color: var(--bg);
}

.timeline-date {
    color: var(--accent);
}

.statute-omitted {
    color: var(--muted);
}

/* ===== FOOTER ===== */

.footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.story-meta {
    color: var(--muted);
}

.press-title {
    color: var(--heading);
}

.press-source,
.press-item summary::after {
    color: var(--muted);
}

/* Schermi molto stretti (sotto i 340 px, es. schermo esterno Galaxy Fold):
   titoli un po' più piccoli perché le parole lunghe non escano dallo schermo.
   Dai 340 px in su (tutti i telefoni normali, tablet, computer) non cambia nulla. */
@media (max-width: 340px) {
    h1 {
        font-size: 2.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
