/* ===== Rosign Font ===== */
@font-face {
    font-family: "Rosign";
    src: url("/fonts/Rosign-BoldItalic.ttf") format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Rosign";
    src: url("/fonts/Rosign-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Rosign";
    src: url("/fonts/Rosign-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: Georgia, Times, "Century Schoolbook L", serif;
    font-size: 16px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.8);
    background: #f4f4f4;
}

a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 22px;
}
a:hover {
    color: rgba(0, 0, 0, 0.6);
}

img {
    max-width: 100%;
    height: auto;
}
ul {
    list-style: none;
}
ul li {
    padding: 6px 0 0;
}
ul li:first-child {
    padding-top: 0;
}

/* ===== Page box ===== */
#page {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    position: relative;
    padding: 0 4rem;
}

.container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* ===== Header ===== */
#header {
    background: #fff;
}

/* Header Mid */
.header-mid {
    border-bottom: 2px solid;
    background: #fff;
}
.header-mid .container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}
.logo-header-link {
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-header {
    width: clamp(5rem, 14vw, 20rem);
      height: auto;
      object-fit: contain;
      display: block;
      transition: opacity 0.3s ease-in-out;
}
.logo-header-link:hover .logo-header {
    opacity: 0.8;
}
.header-mid #navigation {
    flex-grow: 1;
    margin-left: 2rem;
}

/* Header Bot (Navigation) */
.header-bot {
    background: #fff;
    border-bottom: 2px solid;
}
.header-bot .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}
/* nav element fills the width; toggle+menu stacked inside */
.header-bot #navigation {
    width: 100%;
}

/* ===== Navigation ===== */
#navigation {
    background: #fff;
}
.nav-menu {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}
.nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
    /* transparent border matches reference (border exists but invisible) */
    border-right: 1px solid transparent;
    float: left;
}
.nav-menu > li:last-child {
    border-right: none;
}
.nav-menu > li > a,
.nav-menu > li > span {
    display: block;
    padding: 14px 24px;
    font-family: Georgia, Times, "Century Schoolbook L", serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 28px;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    transition:
        color 0.3s ease-in-out,
        background-color 0.3s ease-in-out;
}
.nav-menu > li > a:hover,
.nav-menu > li > span:hover {
    color: rgba(0, 0, 0, 0.5);
}
.nav-menu > li.current > a,
.nav-menu > li.current > span,
.nav-menu > li.section > a,
.nav-menu > li.section > span {
    color: #c92128;
}
.parent-link {
    cursor: pointer;
}
.parent-link::after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 10px;
}

/* ===== Dropdown — desktop only (visibility/opacity transition) ===== */
.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 206px;
    padding: 12px 20px;
    margin: 3px 0 0;
    z-index: 999;
    border: 1px solid #dfdfdf;
    /* hidden by default via visibility+opacity so transition works */
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out;
}

/* Bridge: invisible element that fills the gap between nav item and dropdown
   so the mouse can travel between them without losing hover state */
.sub-menu::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    top: -4px;
    left: 0;
}

.has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
}

.sub-menu li {
    padding: 0;
    border-bottom: 1px solid #dfdfdf;
}
.sub-menu li:last-child {
    border-bottom: none;
}
.sub-menu a {
    display: block;
    padding: 10px 0;
    font-family: Georgia, Times, "Century Schoolbook L", serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 20px;
    text-transform: none;
    color: rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease-in-out;
}
.sub-menu a:hover {
    color: #000;
}

/* ===== Hamburger (hidden on desktop) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 14px 0;
    /*width: 50px;*/
    height: 50px;
}
.nav-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: #000;
    border-radius: 0;
    transition: background-color 0.3s ease-in-out;
}
.nav-toggle:hover span {
    background: rgba(0, 0, 0, 0.5);
}

/* ===== Page Headline (titolo pagina + breadcrumb) ===== */
.page-headline {
    background: #fff;
    /* doppio bordo in basso come .headline_inner_cont del reference */
    box-shadow:
        inset 0px -1px 0px 0px rgb(212, 212, 212),
        inset 0px -2px 0px 0px #ffffff,
        inset 0px -4px 0px 0px rgb(212, 212, 212);
}

.page-headline .content_wrap {
    /* non flex: blocco normale */
    display: block;
    padding-top: 0;
    padding-bottom: 0;
}

/* titolo a sinistra + breadcrumb a destra, entrambi allineati al baseline inferiore */
.page-headline-inner {
    min-height: 6.375rem;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
}

.page-headline .entry-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 34px;
    font-weight: bold;
    font-style: normal;
    line-height: 40px;
    color: #000;
    text-transform: none;
    margin: 0;
    padding: 0 5px;
    flex-shrink: 0;
}

.page-breadcrumbs {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 11px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    padding: 0 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

.page-breadcrumbs a {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 11px;
    line-height: 18px;
    font-weight: normal;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
}

.page-breadcrumbs a:hover {
    color: #c92128;
}

/* separatore verticale 1px × 12px */
.page-breadcrumbs .breadcrumb-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    margin: 0 7px;
    flex-shrink: 0;
}

.page-breadcrumbs .breadcrumb-current {
    color: rgba(0, 0, 0, 0.8);
    font-weight: normal;
    text-transform: uppercase;
}

/* ===== Main content ===== */
#main {
    padding-bottom: 20px;
}
.middle-content {
    background: #fff;
    /* no margin-top: la page-headline fornisce già la separazione visiva */
}
.content-wrapper {
    display: flex;
    gap: 20px;
}
.content_wrap {
    width: 100%;
    margin: 0 auto;
}

.content-main {
    padding: 30px 0;
}


/* Content typography */
.content-main h1 {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 34px;
    font-weight: bold;
    font-style: normal;
    line-height: 40px;
    color: #000;
    margin-bottom: 10px;
}
.content-main h2:not(.section-title) {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 26px;
    font-weight: bold;
    font-style: normal;
    line-height: 30px;
    color: #000;
    margin-bottom: 20px;
}
.content-main h3 {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 21px;
    font-weight: normal;
    line-height: 26px;
    color: #000;
    margin-bottom: 20px;
}
.content-main h4 {
    font-family: Georgia, Times, serif;
    font-size: 15px;
    font-weight: normal;
    line-height: 20px;
    color: #000;
    margin-bottom: 20px;
}
.content-main h5 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
}
.content-text {
    border-left: 1px solid rgba(212, 212, 212, 0.5);
    padding-left: 24px;
}
.content-text p {
    padding-bottom: 10px;
    line-height: 22px;
}
.content-text a {
    font-size: 16px;
    text-transform: none;
    font-weight: normal;
    text-decoration: underline;
}
.content-text a:hover {
    color: rgba(0, 0, 0, 0.6);
}

/* ===== Homepage ===== */
/* margin-top crea il gap grigio tra nav e contenuto (come .middle-content) */
.home-content {
    background: #fff;
    margin-top: 40px;
}

/* layout flex specifico per homepage — non tocca .content_wrap del blog */
.home-content > .content_wrap {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* nella homepage il main non ha extra padding verticale (lo gestisce il wrapper) */
.home-content .content-main {
    flex: 2;
    padding: 0;
}

.content-sidebar {
    flex: 1;
    padding-left: 20px;
}

.section-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 26px;
    font-weight: bold;
    font-style: normal;
    line-height: 30px;
    text-transform: none;
    color: #000;
    margin-bottom: 10px;
}

.section-divider {
    border-bottom: 4px double #d4d4d4;
    margin-bottom: 10px;
}

.section-divider-light {
    border-bottom-color: #d4d4d4;
}

/* Featured posts grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.featured-card {
    padding-bottom: 14px;
}

.featured-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 14px;
}

.featured-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d4;
    font-size: 48px;
}

.featured-card-image-placeholder a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #d4d4d4;
}

.featured-card-meta {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 11px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.featured-card-meta a {
    font-size: 11px;
    line-height: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

.featured-card-meta a:hover {
    color: #000;
}

.featured-card-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 22px;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 8px;
}

body.HomePage .featured-card-body h3.featured-card-title {
    margin-bottom: 0;
}

.featured-card-title a {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 22px;
    line-height: 28px;
    text-transform: none;
    font-weight: bold;
    color: #000;
}

.featured-card-title a:hover {
    color: rgba(0, 0, 0, 0.6);
}

.featured-card-author {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.featured-card-summary {
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.7);
}

/* Sidebar latest posts */
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-list-item:first-child {
    padding-top: 0;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.sidebar-list-date {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 11px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sidebar-list-categories {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 10px;
    line-height: 16px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.sidebar-list-categories a {
    font-size: 10px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

.sidebar-list-categories a:hover {
    color: #000;
}

.sidebar-list-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 20px;
}

.sidebar-list-title a {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 15px;
    line-height: 20px;
    text-transform: none;
    font-weight: bold;
    color: #000;
}

.sidebar-list-title a:hover {
    color: rgba(0, 0, 0, 0.6);
}

.sidebar-view-all {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    text-transform: uppercase;
    font-weight: bold;
}

/* ===== Sidebar ===== */
.sidebar {
}
.sidebar-widget {
    margin-bottom: 15px;
}
.widget-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 16px;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li {
    padding: 6px 0 0;
}
.sidebar-menu li a {
    display: block;
    font-family: Georgia, Times, serif;
    font-size: 15px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.8);
    text-transform: none;
    padding: 0;
}
.sidebar-menu li a:hover {
    color: #000;
}

/* ===== Section children ===== */
.section-children {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}
.section-child {
    padding-bottom: 14px;
}
.section-child h2 {
    margin-bottom: 6px;
}
.section-child h2 a {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 21px;
    font-weight: bold;
    line-height: 26px;
    color: #000;
    text-transform: none;
}
.section-child h2 a:hover {
    color: rgba(0, 0, 0, 0.6);
}
.section-child p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 20px;
}

/* ===== Contact ===== */
.contact-details {
    margin-top: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #d4d4d4;
    font-size: 16px;
    line-height: 22px;
}
.contact-item i {
    width: 20px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}
.contact-item a {
    font-size: 16px;
    text-transform: none;
    font-weight: normal;
}

/* ===== Footer ===== */
#footer {
    background: #fff;
    border-top: 7px solid #282828;
    margin-top: 0;
}
.footer-main {
    padding: 25px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}
.footer-col h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 18px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
}
.footer-col p {
    font-family: Georgia, Times, serif;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.6);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    padding: 6px 0 0;
}
.footer-col ul li a {
    font-family: Georgia, Times, serif;
    font-size: 15px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.6);
    text-transform: none;
    line-height: 22px;
}
.footer-col ul li a:hover {
    color: #000;
}
.social-links {
    display: flex;
    gap: 6px;
}
.social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    color: #000;
    font-size: 16px;
    text-transform: none;
    font-weight: normal;
}
.social-links li a:hover {
    color: rgba(0, 0, 0, 0.6);
}
.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}
.footer-logo {
    width: clamp(6rem, 14vw, 12rem);
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease-in-out;
}
.footer-logo-link:hover .footer-logo {
    opacity: 0.8;
}
.footer-bottom {
    border-top: 1px solid #d4d4d4;
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-family: Georgia, Times, serif;
}

.footer-bottom .disclaimer .privacy {
    text-decoration: underline;
    text-transform: none;
    font-weight: normal;
}

/* ===== Mobile nav: collapse at 1024px (matches reference site) ===== */
@media only screen and (max-width: 1024px) {
    /* Header mobile adjustments */
    .header-mid .container {
        align-items: center;
        justify-content: space-between;
    }

    .logo-header-link {
        z-index: 1001;
        position: relative;
    }

    .header-mid #navigation {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        margin-left: auto;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
        margin-left: auto;
    }

    /* Mobile menu: fullscreen overlay from right */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        border-left: 2px solid rgba(0, 0, 0, 0.6);
        border-top: none;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-menu.open {
        display: flex;
        transform: translateX(0);
    }

    .nav-menu > li {
        float: none;
        border-right: none;
        border-bottom: 1px solid #dfdfdf;
        margin: 0;
    }
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    .nav-menu > li > a,
    .nav-menu > li > span {
        padding: 14px 20px;
        line-height: 20px;
        font-weight: normal;
        text-transform: none;
        font-size: 14px;
    }

    /* Body overflow hidden when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Submenu styling on mobile */
    .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        width: 100%;
        border: none;
        border-top: 1px solid #dfdfdf;
        padding: 0 0 0 20px;
        margin: 0;
        background: #f9f9f9;
        transition: none;
    }
    .sub-menu::before {
        display: none;
    }
    .sub-menu.open {
        display: block;
    }
    .sub-menu li {
        border-bottom: 1px solid #e0e0e0;
    }
    .sub-menu li:last-child {
        border-bottom: none;
    }

    /* header layout adjustments */
    .header-top {
        height: auto;
        padding: 8px 0;
    }
    .header-top .container {
        flex-wrap: wrap;
        gap: 6px;
        height: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .site-title {
        font-size: 26px;
        line-height: 32px;
    }
}

@media only screen and (max-width: 480px) {
    #page { padding: 0 1rem; }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-title {
        font-size: 22px;
        line-height: 28px;
    }
    .featured-card-title {
        font-size: 18px;
        line-height: 24px;
    }
    .featured-card-title a {
        font-size: 18px;
        line-height: 24px;
    }
}

/* ===== Membro Direttivo Grid ===== */
.membri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.membro-card {
    background: #fff;
    padding-bottom: 20px;
}

.membro-foto {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0;
}

.membro-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membro-foto-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #d4d4d4;
    font-size: 48px;
}

.membro-info {
    padding: 10px 10px 0;
}

.membro-nome {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 24px;
    margin-bottom: 4px;
    color: #000;
}

.membro-ruolo {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.membro-bio {
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.7);
    text-align: left;
}

@media only screen and (max-width: 767px) {
    .membri-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .membro-foto-placeholder {
        height: 150px;
    }
}

/* ===== Blog Header (title + breadcrumb) ===== */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.blog-header h1 {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* ===== Breadcrumbs ===== */
.blog-breadcrumbs {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-breadcrumbs a {
    font-size: 12px;
    line-height: 18px;
    font-weight: normal;
    text-transform: none;
    color: rgba(0, 0, 0, 0.5);
}

.blog-breadcrumbs a:hover {
    color: #000;
}

.breadcrumb-current {
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
    text-transform: none;
    font-size: 12px;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: rgba(0, 0, 0, 0.3);
}

/* ===== Blog Filters ===== */
.blog-filters {
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #d4d4d4;
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 13px;
    line-height: 22px;
}

.filter-link {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    font-size: 13px;
    line-height: 22px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid #d4d4d4;
}

.filter-link:hover {
    color: #000;
    border-color: #000;
}

.filter-active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.filter-active:hover {
    color: #fff;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.blog-card {
    background: #fff;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 14px;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4d4d4;
    font-size: 48px;
}

.blog-card-image-placeholder a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #d4d4d4;
}

.blog-card-body {
    padding: 0 0 10px;
}

.blog-card-categories {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 11px;
    line-height: 18px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}

.blog-card-categories a {
    font-size: 11px;
    line-height: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

.blog-card-categories a:hover {
    color: #000;
}

.blog-card-meta {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 6px;
}
.blog-card .blog-card-body .blog-card-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 26px;
    margin-bottom: 0;
}

.blog-card-title a {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 20px;
    line-height: 26px;
    text-transform: none;
    font-weight: bold;
    color: #000;
}

.blog-card-title a:hover {
    color: rgba(0, 0, 0, 0.6);
}

.blog-card-meta .blog-card-author {
    font-style: normal;
    display: block;
}

.blog-card-summary {
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.7);
}

/* ===== Single Post ===== */
.blog-post .post-title {
    margin-bottom: 0;
}

.post-featured-image {
    margin-bottom: 20px;
}

.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-meta {
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d4d4d4;
}

.post-meta span {
    margin-right: 15px;
}

.post-meta a {
    font-size: 12px;
    line-height: 18px;
    text-transform: none;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.5);
}

.post-meta a:hover {
    color: #000;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #d4d4d4;
    font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
}

.pagination a {
    text-transform: none;
    font-weight: normal;
}

.pagination .current {
    background: #000;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    text-transform: none;
    font-weight: bold;
}

/* Homepage: stack verticale su mobile */
@media only screen and (max-width: 768px) {
    /* page headline: stack verticale su mobile */
    .page-headline-inner {
        min-height: 4rem;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
        gap: 6px;
    }
    .page-breadcrumbs {
        display: none;
    }

    .home-content > .content_wrap {
        flex-direction: column;
    }
    .home-content .content-main,
    .content-sidebar {
        width: 100%;
        flex: none;
    }
    .content-sidebar {
        border-left: none;
        border-top: 1px solid #d4d4d4;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 10px;
    }
    .blog-header {
        flex-direction: column;
        gap: 6px;
    }
    .blog-breadcrumbs {
        text-align: left;
        white-space: normal;
    }

    .post-layout {
        flex-direction: column;
    }
    .post-main {
        width: 100%;
    }
    .post-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #d4d4d4;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 30px;
    }
}

/* ===== Blog Post Layout (Newspaper style) ===== */
.post-layout {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    align-items: stretch;
}

.post-main {
    flex: 3;
    min-width: 0;
}

.post-sidebar {
    flex: 1;
    min-width: 200px;
    padding-left: 15px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}
.breadcrumbs a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.5);
}
.breadcrumbs a:hover {
    color: #c92128;
}
.breadcrumbs .crumb-container {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.35);
}
.breadcrumb-sep {
    margin: 0 4px;
}

/* Post category */
.post-category-wrap {
    border-bottom: 1px solid rgba(212, 212, 212, 0.5);
    padding: 10px 0;
}
.post-category {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    color: #000;
}
.post-category:hover {
    color: #c92128;
}

/* Post title */
.post-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 38px;
    font-weight: normal;
    font-style: normal;
    line-height: 44px;
    margin-bottom: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 212, 212, 0.5);
}

/* Post meta line (date + author) — stile Newspaper */
.post-meta-line {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    padding: 0.5rem 0;
    box-shadow: inset 0px -1px 0px 0px #d4d4d4, inset 0px -2px 0px 0px #ffffff, inset 0px -4px 0px 0px #d4d4d4;
}
.post-meta-line .post-date::after {
    content: " | ";
    color: rgba(0, 0, 0, 0.6);
}

/* Featured image */
.post-featured-image {
    margin-bottom: 15px;
}
.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content text with left border (solo blog post) */
.post-content-text {
    border-left: 1px solid rgba(212, 212, 212, 0.5);
    padding-left: 24px;
}
.post-content-text p {
    padding-bottom: 10px;
    line-height: 1.7;
}
.post-content-text a {
    font-size: 16px;
    text-transform: none;
    font-weight: normal;
    text-decoration: underline;
}
.post-content-text a:hover {
    color: rgba(0, 0, 0, 0.6);
}
.post-content-text iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Tags */
.post-tags {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #d4d4d4;
    font-style: italic;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}
.post-tags a {
    font-style: italic;
    font-size: 14px;
    font-weight: normal;
    text-transform: none;
    color: rgba(0, 0, 0, 0.6);
}
.post-tags a:hover {
    color: #c92128;
}

/* Sidebar widget */
.sidebar-widget {
    margin-bottom: 15px;
}
.sidebar-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}
.sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-post-thumb {
    flex-shrink: 0;
    width: 100px;
}
.sidebar-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 2px;
}
.sidebar-post-info h4 {
    font-family: Georgia, Times, serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    margin-bottom: 4px;
}
.sidebar-post-info h4 a {
    font-family: Georgia, Times, serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: none;
    line-height: 18px;
}
.sidebar-post-info h4 a:hover {
    color: #c92128;
}
.sidebar-post-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.4);
}

/* ── Condividi post ── */
.post-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212,212,212,0.5);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.post-share-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.4);
    margin-right: 0.4rem;
}
.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.share-link:hover {
    opacity: 0.8;
    color: #fff;
}
.share-facebook  { background: #1877f2; }
.share-twitter   { background: #000; }
.share-linkedin  { background: #0a66c2; }
.share-whatsapp  { background: #25d366; }
.share-telegram  { background: #0088cc; }
.share-email     { background: #666; }

/* ===== Mailing List Form ===== */
.mailinglist-form {
    margin-top: 2rem;
}
.mailinglist-form .mailinglist-title {
    font-family: "Rosign", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    font-size: 28px;
    font-weight: bold;
    font-style: normal;
    color: #000;
    margin-bottom: 0.5rem;
}
.mailinglist-form .mailinglist-desc {
    font-family: Georgia, Times, serif;
    font-size: 15px;
    color: rgba(0,0,0,0.6);
    margin-bottom: 2rem;
    line-height: 1.5;
}
.mailinglist-form form {
    background: #f9f9f9;
    border: 1px solid #ebebeb;
    padding: 2rem 2.5rem;
}
.mailinglist-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.mailinglist-form .field {
    margin-bottom: 1.2rem;
}
.mailinglist-form label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.4rem;
    color: #000;
}
.mailinglist-form input[type="text"],
.mailinglist-form input[type="email"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    font-size: 15px;
    font-family: Georgia, Times, serif;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}
.mailinglist-form input[type="text"]:focus,
.mailinglist-form input[type="email"]:focus {
    border-color: #000;
}
.mailinglist-form .field.checkbox,
.mailinglist-form div.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.mailinglist-form .field.checkbox input[type="checkbox"],
.mailinglist-form div.checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.mailinglist-form .field.checkbox label,
.mailinglist-form div.checkbox label {
    display: inline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    color: rgba(0,0,0,0.6);
    line-height: 1.4;
}
.mailinglist-form .btn-toolbar {
    margin-top: 1.5rem;
}
.mailinglist-form .btn-primary {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}
.mailinglist-form .btn-primary:hover {
    background: #c92128;
}
.mailinglist-form .message {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-left: 3px solid;
}
.mailinglist-form .message.good {
    color: #000;
    border-left-color: #000;
}
.mailinglist-form .message.bad {
    background: #f4f4f4;
    color: #000;
    border-left-color: #c92128;
}

/* ===== Admin Login Form ===== */
#MemberLoginForm_LoginForm {
    max-width: 400px;
    margin: 2rem 0;
}
#MemberLoginForm_LoginForm fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
#MemberLoginForm_LoginForm .field.text {
    margin-bottom: 1.2rem;
}
#MemberLoginForm_LoginForm .field label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
    color: #000;
}
#MemberLoginForm_LoginForm input[type="text"],
#MemberLoginForm_LoginForm input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d4d4d4;
    font-size: 15px;
    font-family: Georgia, Times, serif;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
#MemberLoginForm_LoginForm input[type="text"]:focus,
#MemberLoginForm_LoginForm input[type="password"]:focus {
    border-color: #000;
}
#MemberLoginForm_LoginForm .field.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.3rem;
}
#MemberLoginForm_LoginForm .field.checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
#MemberLoginForm_LoginForm .field.checkbox label {
    display: inline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    color: rgba(0,0,0,0.6);
    line-height: 1.4;
}
#MemberLoginForm_LoginForm .btn-toolbar {
    margin-top: 1.5rem;
}
#MemberLoginForm_LoginForm input.action {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.7rem 2.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
#MemberLoginForm_LoginForm input.action:hover {
    background: #c92128;
}
#MemberLoginForm_LoginForm #MemberLoginForm_LoginForm_error {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #f4f4f4;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #c92128;
}
#MemberLoginForm_LoginForm #MemberLoginForm_LoginForm_error:not([style*="display: none"]) {
    display: block !important;
}

/* ===== Responsive — breakpoint Bootstrap canonici ===== */

/* LG (< 1200px): 3 colonne */
@media only screen and (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .featured-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .section-children {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* MD (< 992px): 2 colonne */
@media only screen and (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .section-children {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

/* SM (< 768px): 1 colonna */
@media only screen and (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .section-children {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .blog-card-image,
    .featured-card-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    #page { padding: 0 2rem; }
}

/* ── Aderisci / Iscrizioni ── */
.aderisci-sections {
    margin: 2rem 0;
}
.aderisci-section {
    margin-bottom: 3rem;
}
.aderisci-divider {
    border: none;
    border-top: 2px solid rgba(212,212,212,0.5);
    margin: 3rem 0;
}
.iscrizione-form .form-group,
.donazione-form .form-group {
    margin-bottom: 1.2rem;
}
.iscrizione-form label,
.donazione-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.iscrizione-form input,
.iscrizione-form select,
.iscrizione-form textarea,
.donazione-form input,
.donazione-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.iscrizione-form input:focus,
.iscrizione-form select:focus,
.iscrizione-form textarea:focus,
.donazione-form input:focus,
.donazione-form textarea:focus {
    outline: none;
    border-color: #c92128;
    box-shadow: 0 0 0 2px rgba(201,33,40,0.15);
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-group-half { flex: 1; }
.form-group-third { flex: 2; }
.form-group-small { flex: 1; }
.paypal-button-container {
    margin-top: 1.5rem;
    max-width: 400px;
}
.donazione-importi-preset {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.btn-preset {
    padding: 0.5rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-preset:hover,
.btn-preset.active {
    border-color: #c92128;
    background: #c92128;
    color: #fff;
}
.alert {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}
.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}
