/*
Theme Name: Sancta Fides
Theme URI: https://www.congregazione-sanctafides.org/
Author: Congregazione Sancta Fides
Description: Tema istituzionale per la Congregazione Sancta Fides di Pescara: home a sezioni, pagine interne, blog e pagina contatti.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sancta-fides
*/

/* =========================================================
   1. Variabili e base
   ========================================================= */
:root {
    --ink: #16233c;
    --ink-soft: #22314f;
    --ink-line: rgba(255, 255, 255, 0.14);
    --cream: #f6f1e6;
    --paper: #fffdf8;
    --gold: #b8892f;
    --gold-light: #dcc48b;
    --text: #2f3542;
    --muted: #6b7280;
    --radius: 18px;
    --shadow: 0 22px 45px -28px rgba(22, 35, 60, 0.55);
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold);
}

h1,
h2,
h3,
h4 {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1em;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
}

.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;
}

.skip-link:focus {
    position: absolute;
    z-index: 100;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}

/* =========================================================
   2. Elementi comuni
   ========================================================= */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-gold {
    background: var(--gold);
    color: #fffdf8;
}

.btn-gold:hover {
    background: #a2761f;
    color: #fff;
}

.btn-ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.section {
    padding: 84px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--paper {
    background: var(--paper);
}

.section--ink {
    background: var(--ink);
    color: #e7e2d6;
}

.section--ink h2,
.section--ink h3 {
    color: #fff;
}

.section--ink .kicker {
    color: var(--gold-light);
}

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 62ch;
}

/* =========================================================
   3. Intestazione
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22, 35, 60, 0.09);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(184, 137, 47, 0.55);
    background: radial-gradient(circle at 50% 35%, #fff9ec 0%, #f1e6cd 100%);
}

.brand-mark svg {
    width: 26px;
    height: 26px;
}

.brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.brand-sub {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    border-bottom-color: var(--gold);
    color: var(--ink);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(22, 35, 60, 0.2);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--ink);
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        border-top: 1px solid rgba(22, 35, 60, 0.09);
        margin-top: 10px;
        padding-top: 10px;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .header-actions .btn {
        display: none;
    }
}

/* =========================================================
   4. Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 50% -20%, #2b3d61 0%, var(--ink) 55%, #101a2d 100%);
    color: #f4efe3;
    padding: 96px 0 104px;
}

.hero-rays {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 150%;
    opacity: 0.5;
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 760px;
}

.hero h1 {
    color: #fffdf8;
    margin-bottom: 0.35em;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
    font-size: 1.1rem;
    color: #ddd6c6;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--ink-line);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bfc6d4;
}

.hero-meta strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}

/* =========================================================
   5. Citazione
   ========================================================= */
.quote-band {
    background: var(--paper);
    border-bottom: 1px solid rgba(22, 35, 60, 0.08);
}

.quote-band blockquote {
    margin: 0 auto;
    max-width: 820px;
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.35;
    color: var(--ink);
    padding: 54px 0 12px;
}

.quote-band cite {
    display: block;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 46px;
}

/* =========================================================
   6. Blocchi e card
   ========================================================= */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

.medallion {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(155deg, #24365a 0%, var(--ink) 60%, #0f1a2c 100%);
    min-height: 340px;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.medallion::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(220, 196, 139, 0.35);
    border-radius: calc(var(--radius) - 6px);
}

.medallion svg {
    width: 58%;
    max-width: 240px;
    height: auto;
    position: relative;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: 0 14px 30px -26px rgba(22, 35, 60, 0.5);
}

.card h3 {
    margin-bottom: 0.35em;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(184, 137, 47, 0.14);
    color: var(--gold);
    margin-bottom: 18px;
    font-size: 1.1rem;
}

/* =========================================================
   7. Eventi
   ========================================================= */
.events {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    .events {
        grid-template-columns: 1fr;
    }
}

.event {
    display: flex;
    gap: 18px;
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    padding: 22px;
}

.event-date {
    flex: none;
    width: 62px;
    text-align: center;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    padding: 10px 0 12px;
    line-height: 1;
}

.event-date .day {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
}

.event-date .month {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-top: 6px;
}

.event h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3em;
}

.event p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5em;
}

.event .meta {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* =========================================================
   8. Orari
   ========================================================= */
.hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

@media (max-width: 700px) {
    .hours {
        grid-template-columns: 1fr;
    }
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 253, 248, 0.08);
    border: 1px solid var(--ink-line);
    border-radius: 12px;
    font-size: 0.95rem;
}

.hours-row strong {
    color: #fff;
    font-weight: 600;
}

/* =========================================================
   9. Timeline
   ========================================================= */
.timeline {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    border-left: 1px solid rgba(22, 35, 60, 0.18);
}

.timeline li {
    position: relative;
    padding: 0 0 28px 28px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
}

.timeline .year {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.timeline h3 {
    margin: 0.2em 0 0.3em;
    font-size: 1.15rem;
}

.timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================================================
   10. News
   ========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    padding: 26px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: inherit;
}

.post-card time {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4em;
}

.post-card p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.post-card .more {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

/* =========================================================
   11. Contenuti di pagina
   ========================================================= */
.page-hero {
    background: var(--ink);
    color: #efe9dc;
    padding: 64px 0 58px;
}

.page-hero h1 {
    color: #fffdf8;
    margin-bottom: 0.2em;
}

.page-hero p {
    color: #c8c2b4;
    max-width: 62ch;
    margin-bottom: 0;
}

.entry {
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    padding: clamp(26px, 4vw, 54px);
    box-shadow: 0 18px 40px -34px rgba(22, 35, 60, 0.5);
}

.entry > *:first-child {
    margin-top: 0;
}

.entry h2 {
    margin-top: 1.6em;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.entry h2::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    margin-top: 12px;
    background: var(--gold);
    border-radius: 999px;
}

.entry h3 {
    margin-top: 1.4em;
}

.entry ul,
.entry ol {
    padding-left: 1.25rem;
    margin: 0 0 1.2em;
}

.entry li {
    margin-bottom: 0.45em;
}

.entry blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--gold);
    background: rgba(184, 137, 47, 0.07);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink);
}

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95rem;
}

.entry th,
.entry td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(22, 35, 60, 0.12);
}

.entry th {
    background: rgba(22, 35, 60, 0.05);
    font-weight: 600;
}

.note {
    background: rgba(184, 137, 47, 0.1);
    border: 1px solid rgba(184, 137, 47, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.94rem;
    color: #6b4f16;
}

/* =========================================================
   12. CTA finale
   ========================================================= */
.cta {
    background: linear-gradient(120deg, #1d2c49 0%, var(--ink) 55%, #0d1728 100%);
    color: #efe9dc;
    border-radius: var(--radius);
    padding: clamp(30px, 5vw, 56px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.cta h2 {
    color: #fffdf8;
    margin-bottom: 0.3em;
}

.cta p {
    margin: 0;
    color: #c9c3b5;
    max-width: 56ch;
}

/* =========================================================
   13. Footer
   ========================================================= */
.site-footer {
    background: #0f1a2c;
    color: #b9c0cc;
    padding: 60px 0 26px;
    font-size: 0.94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.8em;
}

.site-footer a {
    color: #d9c9a4;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #8d97a8;
}

/* =========================================================
   14. Blog e articoli
   ========================================================= */
.post-list {
    display: grid;
    gap: 18px;
}

.post-list article {
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.post-list h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
}

.post-meta {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(22, 35, 60, 0.15);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
}

.pagination .current,
.pagination .page-numbers:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn:hover,
    .post-card:hover {
        transform: none;
    }
}

/* =========================================================
   15. Sezioni con immagini
   ========================================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 46px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.hero-figure {
    margin: 0;
    display: grid;
    place-items: center;
}

.hero-figure img {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 26px 45px rgba(0, 0, 0, 0.45));
}

.figure-frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(22, 35, 60, 0.08);
    background: var(--paper);
}

.figure-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 52px 0;
}

@media (max-width: 800px) {
    .quote-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }
}

.quote-grid blockquote {
    margin: 0;
    padding: 26px 28px;
    border-left: 3px solid var(--gold);
    background: rgba(184, 137, 47, 0.07);
    border-radius: 0 14px 14px 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.4;
    color: var(--ink);
}

.quote-grid cite {
    display: block;
    margin-top: 12px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-head h2 {
    margin-bottom: 0;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 800px) {
    .event-cards {
        grid-template-columns: 1fr;
    }
}

.event-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid rgba(22, 35, 60, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 34px -30px rgba(22, 35, 60, 0.55);
}

.event-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.event-card .event-body {
    padding: 22px 24px 26px;
}

.event-card h3 {
    margin-bottom: 0.35em;
}

.event-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.event-when {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--paper);
    box-shadow: 0 16px 30px -22px rgba(22, 35, 60, 0.6);
}

.team-card h3 {
    font-size: 1.05rem;
    margin: 14px 0 2px;
}

.team-card p {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.entry .team-grid {
    margin-top: 26px;
}

.post-thumb {
    margin: -4px 0 20px;
    border-radius: 12px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

/* =========================================================
   16. Scheda documento (PDF)
   ========================================================= */
.doc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 640px;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid rgba(22, 35, 60, 0.12);
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 18px 34px -26px rgba(22, 35, 60, 0.6);
    color: var(--ink);
}

.doc-card__icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(184, 137, 47, 0.14);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.doc-card__text strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.22rem;
    line-height: 1.2;
}

.doc-card__text span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

/* =========================================================
   17. Numeri dell'ente
   ========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 34px;
}

@media (max-width: 760px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat {
    background: linear-gradient(160deg, #24365a 0%, var(--ink) 70%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
}

.stat__num {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--gold-light);
}

.stat__label {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c9d2e0;
}

/* =========================================================
   18. Elenco notizie a 4 colonne
   ========================================================= */
.news-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1160px) {
    .news-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .news-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .news-4 {
        grid-template-columns: 1fr;
    }
}

.news-4 .post-card {
    padding: 16px;
    border-radius: 14px;
}

.news-4 .post-card img {
    aspect-ratio: 16 / 11;
    margin-bottom: 12px;
    border-radius: 10px;
}

.news-4 .post-card time {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

.news-4 .post-card h2 {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 0.35em;
}

.news-4 .post-card p {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 0.9rem;
}

.news-4 .post-card .more {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.news-4 .post-card .more::after {
    content: "";
}

/* =========================================================
   19. Modulo di contatto
   ========================================================= */
.sf-form-wrap {
    margin: 26px 0 34px;
}

.sf-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    background: #fff;
    border: 1px solid rgba(22, 35, 60, 0.12);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 32px);
    max-width: 760px;
}

@media (max-width: 700px) {
    .sf-form {
        grid-template-columns: 1fr;
    }
}

.sf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sf-field--full {
    grid-column: 1 / -1;
}

.sf-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
}

.sf-field label span {
    color: var(--gold);
}

.sf-field input[type="text"],
.sf-field input[type="email"],
.sf-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(22, 35, 60, 0.18);
    border-radius: 10px;
    background: var(--paper);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-field input[type="text"]:focus,
.sf-field input[type="email"]:focus,
.sf-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 137, 47, 0.18);
}

.sf-field textarea {
    resize: vertical;
    min-height: 140px;
}

.sf-field--check label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.sf-field--check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    flex: none;
}

.sf-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sf-form__note {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--muted);
}

.sf-alert {
    max-width: 760px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    border: 1px solid;
}

.sf-alert--ok {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #065f46;
}

.sf-alert--err {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    color: #7f1d1d;
}
