/* ═══════════════════════════════════════════════════════════════
   VFA Base — Design Tokens, Reset, Shared Components
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Colors */
    --vfa-orange: #f18f59;
    --vfa-orange-deep: #ff5a00;
    --vfa-orange-light: #fdb997;
    --vfa-cream: #f2e9df;
    --vfa-cream-light: #f9f4ee;
    --vfa-dark: #0d0d0f;
    --vfa-dark-soft: #181818;
    --vfa-text: #333333;
    --vfa-text-secondary: #666666;
    --vfa-white: #ffffff;
    --vfa-green: #4caf50;
    --vfa-red: #e74c3c;
    --vfa-yellow: #f1c40f;
    --vfa-gray: #999999;
    --vfa-gray-light: #e0e0e0;
    --vfa-blue-dark: #2c3e50;

    /* Typography */
    --vfa-font-heading: 'Barlow', Arial, sans-serif;
    --vfa-font-body: 'Barlow', Arial, sans-serif;
    --vfa-font-button: 'Poppins', Arial, sans-serif;

    /* Spacing */
    --vfa-section-gap: 80px;
    --vfa-content-width: 1200px;
    --vfa-narrow-width: 800px;

    /* Radius */
    --vfa-radius: 12px;
    --vfa-radius-sm: 8px;
    --vfa-radius-pill: 100px;
}


/* ─── Reset & Base ─── */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--vfa-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vfa-text);
    background: var(--vfa-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--vfa-orange-deep);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--vfa-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vfa-font-heading);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--vfa-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }


/* ─── Utilities ─── */

.vfa-wrap {
    max-width: var(--vfa-content-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.vfa-wrap--narrow {
    max-width: var(--vfa-narrow-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.vfa-section {
    padding-block: var(--vfa-section-gap);
}

.vfa-text-center { text-align: center; }
.vfa-text-orange { color: var(--vfa-orange); }
.vfa-text-deep { color: var(--vfa-orange-deep); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ─── Buttons ─── */

.vfa-btn {
    display: inline-block;
    font-family: var(--vfa-font-button);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 16px 40px;
    border-radius: var(--vfa-radius-pill);
    border: none;
    cursor: pointer;
    transition: background .25s, color .25s, transform .15s;
    text-decoration: none;
    text-align: center;
}

.vfa-btn:hover { transform: translateY(-1px); }

.vfa-btn--primary {
    background: var(--vfa-orange);
    color: var(--vfa-white);
}
.vfa-btn--primary:hover {
    background: var(--vfa-dark);
    color: var(--vfa-white);
}

.vfa-btn--outline {
    background: transparent;
    color: var(--vfa-orange-deep);
    border: 2px solid var(--vfa-orange-deep);
}
.vfa-btn--outline:hover {
    background: var(--vfa-dark);
    color: var(--vfa-white);
}

.vfa-btn--dark {
    background: var(--vfa-dark);
    color: var(--vfa-white);
}
.vfa-btn--dark:hover {
    background: var(--vfa-dark-soft);
    color: var(--vfa-white);
}

.vfa-btn--sm {
    font-size: 14px;
    padding: 10px 24px;
}

/* WordPress block buttons */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.wp-block-button__link {
    display: inline-block;
    font-family: var(--vfa-font-button);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 16px 40px;
    border-radius: var(--vfa-radius-pill);
    border: none;
    cursor: pointer;
    transition: background .25s, color .25s, transform .15s;
    text-decoration: none;
    text-align: center;
    background: var(--vfa-orange);
    color: var(--vfa-white);
}

.wp-block-button__link:hover {
    background: var(--vfa-orange-deep);
    color: var(--vfa-white);
    transform: translateY(-1px);
}


/* ─── Cards ─── */

.vfa-card {
    background: var(--vfa-white);
    border-radius: var(--vfa-radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.vfa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
}

.vfa-card__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.vfa-card__body {
    padding: 24px;
}

.vfa-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.vfa-card__meta {
    font-size: .85rem;
    color: var(--vfa-text-secondary);
    margin-bottom: 8px;
}


/* ─── Header ─── */

.vfa-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--vfa-cream);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.vfa-header__inner {
    max-width: var(--vfa-content-width);
    margin-inline: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.vfa-header__logo img {
    height: 40px;
    width: auto;
}

.vfa-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.vfa-header__nav a {
    font-family: var(--vfa-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--vfa-dark);
    text-decoration: none;
    transition: color .2s;
}

.vfa-header__nav a:hover {
    color: var(--vfa-orange-deep);
}

/* Dropdown */
.vfa-header__dropdown {
    position: relative;
}

.vfa-header__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: var(--vfa-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--vfa-dark);
    cursor: pointer;
    padding: 0;
}

.vfa-header__dropdown-toggle svg {
    width: 12px;
    transition: transform .2s;
}

.vfa-header__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--vfa-white);
    border-radius: var(--vfa-radius-sm);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}

.vfa-header__dropdown.is-open .vfa-header__dropdown-menu {
    display: block;
}

.vfa-header__dropdown.is-open .vfa-header__dropdown-toggle svg {
    transform: rotate(180deg);
}

.vfa-header__dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
}

.vfa-header__dropdown-menu a:hover {
    background: var(--vfa-cream-light);
}

/* Mobile toggle */
.vfa-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.vfa-header__toggle svg {
    width: 28px;
    height: 28px;
}

/* Mobile nav overlay */
.vfa-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--vfa-cream);
    padding: 80px 24px 40px;
    overflow-y: auto;
    flex-direction: column;
    gap: 8px;
}

.vfa-mobile-nav.is-open { display: flex; }

.vfa-mobile-nav a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vfa-dark);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    display: block;
}

.vfa-mobile-nav__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.vfa-mobile-nav__close svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .vfa-header__nav { display: none; }
    .vfa-header__toggle { display: block; }
}


/* ─── Footer ─── */

.vfa-footer {
    background: var(--vfa-dark);
    color: var(--vfa-white);
    padding-block: 60px 30px;
    margin-top: var(--vfa-section-gap);
}

/* Partners row: side-by-side layout */
.vfa-footer__partners-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .vfa-footer__partners-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

.vfa-footer__partners {
    text-align: left;
}

.vfa-footer__partners--supporter {
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .vfa-footer__partners,
    .vfa-footer__partners--supporter {
        text-align: center;
    }
}

.vfa-footer__partners-label {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--vfa-orange);
    margin-bottom: 20px;
}

.vfa-footer__logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.vfa-footer__partners--supporter .vfa-footer__logos {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .vfa-footer__logos,
    .vfa-footer__partners--supporter .vfa-footer__logos {
        justify-content: center;
    }
}

.vfa-footer__logos img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .8;
    transition: opacity .2s;
}

.vfa-footer__logos img:hover { opacity: 1; }

/* Bottom bar */
.vfa-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    text-align: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

.vfa-footer__links {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.vfa-footer__sep {
    color: rgba(255, 255, 255, .4);
    margin: 0 4px;
}

.vfa-footer__bottom a {
    color: rgba(255, 255, 255, .6);
}

.vfa-footer__bottom a:hover {
    color: var(--vfa-white);
}

.vfa-footer__legal {
    font-size: .8rem;
    color: rgba(255, 255, 255, .45);
    line-height: 1.5;
}


/* ─── Section Headings ─── */

.vfa-section-heading {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--vfa-orange);
    margin-bottom: 12px;
}

.vfa-section-subheading {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--vfa-dark);
    margin-bottom: 24px;
}


/* ─── Grid Layouts ─── */

.vfa-grid {
    display: grid;
    gap: 24px;
}

.vfa-grid--2 { grid-template-columns: repeat(2, 1fr); }
.vfa-grid--3 { grid-template-columns: repeat(3, 1fr); }
.vfa-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .vfa-grid--3, .vfa-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vfa-grid--2, .vfa-grid--3, .vfa-grid--4 { grid-template-columns: 1fr; }
}


/* ─── Scroll Reveal ─── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }


/* ─── Prose (article body) ─── */

.vfa-prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--vfa-text);
}

.vfa-prose h2 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: .5em;
}

.vfa-prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
    margin-bottom: .5em;
}

.vfa-prose p { margin-bottom: 1.25em; }

.vfa-prose img {
    border-radius: var(--vfa-radius);
    margin-block: 1.5em;
}

.vfa-prose blockquote {
    border-left: 4px solid var(--vfa-orange);
    margin: 1.5em 0;
    padding: .75em 1.5em;
    background: var(--vfa-cream-light);
    border-radius: 0 var(--vfa-radius-sm) var(--vfa-radius-sm) 0;
    font-style: italic;
}

.vfa-prose ul, .vfa-prose ol { margin-bottom: 1.25em; }
.vfa-prose li { margin-bottom: .5em; }

.vfa-prose a { text-decoration: underline; }
.vfa-prose a:hover { text-decoration: none; }


/* ─── Tags ─── */

.vfa-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 12px;
    border-radius: var(--vfa-radius-pill);
    background: var(--vfa-cream-light);
    color: var(--vfa-text-secondary);
    transition: background .2s;
}

.vfa-tag:hover {
    background: var(--vfa-orange-light);
    color: var(--vfa-dark);
}


/* ─── Vote Dots (shared voting component) ─── */

.vfa-vote-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.vfa-vote-dot--favorevole { background: var(--vfa-green); }
.vfa-vote-dot--contrario { background: var(--vfa-red); }
.vfa-vote-dot--astenuto { background: var(--vfa-yellow); }
.vfa-vote-dot--assente { background: var(--vfa-gray); }


/* ─── Pagination ─── */

.vfa-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.vfa-pagination a,
.vfa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, color .2s;
}

.vfa-pagination a {
    color: var(--vfa-text);
    background: var(--vfa-white);
}

.vfa-pagination a:hover {
    background: var(--vfa-orange);
    color: var(--vfa-white);
}

.vfa-pagination .current {
    background: var(--vfa-orange-deep);
    color: var(--vfa-white);
}


/* ─── Share Buttons ─── */

.vfa-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.vfa-share__label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--vfa-text-secondary);
}

.vfa-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--vfa-white);
    transition: transform .2s;
}

.vfa-share__btn:hover { transform: scale(1.1); color: var(--vfa-white); }

.vfa-share__btn--facebook { background: #1877f2; }
.vfa-share__btn--whatsapp { background: #25d366; }
.vfa-share__btn--linkedin { background: #0077b5; }
.vfa-share__btn--x { background: #000; }
.vfa-share__btn--email { background: #ea4335; }

.vfa-share__btn svg { width: 18px; height: 18px; fill: currentColor; }


/* ─── 10 Punti styled paragraphs ─── */

.styled-paragraph {
    position: relative;
    padding-left: 48px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.styled-paragraph .list-elem {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--vfa-orange);
    color: var(--vfa-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: .9rem;
}
