
/* ========================================================================
   PISTOIA ROSSA — TEMA "AVANTI" (compatto, colori caldi originali)
   Font unico: Sora. Layout compatto. Colori: rosso + giallino + crema.
   ======================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Sora', -apple-system, sans-serif;
    font-weight: 400;
    color: #1a1a1a;
    background: var(--cream);
    line-height: 1.68;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-top: 64px;
    padding-bottom: 70px;
}

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Force Sora on all display elements */
.logo-text,
.nav-menu a,
.btn,
.site-footer .footer-brand-text,
.site-footer .footer-toggle,
.claim-banner p,
.pillar-letter,
.pillar-title,
.news-title,
.article-back,
.prog-letter,
.prog-title,
.form-head h3,
.form-group label,
.check-title,
.login-box h1,
.admin-header h1,
.admin-card h2,
.admin-form label,
.article-actions a,
.stat-number,
.admin-cancel-link {
    font-family: 'Sora', sans-serif !important;
}

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }

/* ===== ANIMATIONS — subtle, purposeful ===== */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes enterUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.05); }
}
@keyframes starIn {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ===== HEADER ===== */
.site-header {
    background: var(--black);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.scrolled {
    box-shadow: 0 1px 10px rgba(0,0,0,0.3);
}
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.25s;
}
.logo:hover { opacity: 0.8; }
.logo-symbol { width: 36px; height: 36px; flex-shrink: 0; }
.logo-symbol img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-text span { color: var(--red); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    background: transparent;
}
.nav-menu a {
    font-weight: 600;
    font-size: 0.84rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    position: relative;
    text-transform: uppercase;
}
.nav-menu a::after { display: none; }
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    background: rgba(255,255,255,0.06);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }
.btn-red {
    background: var(--red);
    color: #fff;
}
.btn-red:hover {
    background: var(--red-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(173,41,53,0.28);
}
.btn-outline {
    background: transparent;
    color: var(--black);
    border: 2px solid rgba(0,0,0,0.15);
}
.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
    background: transparent;
}
.btn-outline-dark {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid rgba(0,0,0,0.15);
}
.btn-outline-dark:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ===== THEME OVERRIDES ===== */
.why-section,
.prog-cta,
.login-wrap {
    background: var(--black) !important;
}

/* ===== HERO UNIFORME (tutte le pagine tranne home) ===== */
.news-hero,
.article-hero,
.contact-hero,
.prog-hero,
.cand-list-hero,
.video-hero,
.mat-hero,
.primarie-hero {
    background: var(--red) !important;
    padding: 32px 24px 24px !important;
}
.news-hero h1,
.article-hero h1,
.contact-hero h1,
.prog-hero h1,
.cand-list-hero h1,
.video-hero h1,
.mat-hero h1 {
    font-family: inherit !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.04em !important;
}
.news-hero p,
.article-hero p,
.contact-hero p,
.cand-list-hero p,
.video-hero p,
.mat-hero p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem !important;
    margin-top: 4px !important;
}
footer {
    background: var(--black) !important;
}
.site-header {
    background: var(--black) !important;
}
.nav-menu {
    background: transparent !important;
}
.hero h1 span {
    color: var(--gold);
}
.hero .btn-red {
    background: var(--red);
    color: #fff;
    font-weight: 800;
}
.hero .btn-red:hover {
    background: var(--red-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(173,41,53,0.3);
}
.hero a,
.hero .btn-outline {
    color: #fff;
}
.why-section a,
.news-hero a,
.article-hero a,
.contact-hero a,
.prog-hero a,
.prog-cta a,
.login-wrap a,
.claim-banner a {
    color: #fff;
}
.hero a:hover,
.hero .btn-outline:hover {
    color: var(--red);
}
.why-section a:hover,
.news-hero a:hover,
.article-hero a:hover,
.contact-hero a:hover,
.prog-hero a:hover,
.prog-cta a:hover,
.login-wrap a:hover,
.claim-banner a:hover {
    color: var(--gold);
}
.pillar-card,
.admin-card,
.stat-box,
.form-group input,
.form-group textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
    background: #fff !important;
}
.prog-section:nth-child(even) {
    background: #fff !important;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--black) !important;
    color: rgba(255,255,255,0.65);
    padding: 20px 0 16px;
    border-top: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    transition: transform 0.35s ease;
}
.site-footer.is-hidden {
    transform: translateY(100%);
}
.site-footer .footer-inner { max-width: 1100px; }
.site-footer .footer-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.site-footer .footer-brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1rem;
    color: #fff;
}
.site-footer .footer-brand-text span { color: var(--red); }
.site-footer .footer-line a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.site-footer .footer-line a:hover { color: #fff; }
.site-footer .footer-mid-symbol { flex-shrink: 0; }
.site-footer .footer-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 5px;
    transition: border-color 0.2s, color 0.2s;
}
.site-footer .footer-toggle:hover {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.site-footer .footer-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.site-footer .footer-overlay.is-open { display: flex; }
.site-footer .footer-modal {
    width: min(760px, 100%);
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    color: #222;
    border-top: 3px solid var(--red);
    border-radius: 8px;
    padding: 28px 24px 20px;
    position: relative;
    box-shadow: 0 20px 56px rgba(0,0,0,0.3);
    animation: enterUp 0.3s ease;
}
.site-footer .footer-modal h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.site-footer .footer-modal p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
}
.site-footer .footer-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 32px; height: 32px;
    border: none;
    background: var(--cream);
    border-radius: 6px;
    color: #555;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-footer .footer-close:hover { background: var(--red); color: #fff; }
.site-footer .footer-copy { margin-top: 8px; font-size: 0.76rem; color: rgba(255,255,255,0.35); }
.site-footer .footer-copy-inline { font-size: 0.76rem; color: rgba(255,255,255,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-menu { background: var(--black) !important; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: var(--black) !important;
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 2px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        font-size: 0.95rem;
        color: rgba(255,255,255,0.65);
        padding: 12px 14px;
        border-radius: 6px;
    }
}

/* ===== HOME — HERO ===== */
.hero {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--cream);
    border-radius: 12px;
    border: none;
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 44px 44px;
}
.hero-glow {
    position: absolute;
    top: 12%; right: 6%;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,222,89,0.2), transparent 70%);
    filter: blur(60px);
    animation: pulse 7s ease-in-out infinite;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 20px 18px;
    max-width: 880px;
}
.hero-symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 0;
}
.hero .hero-symbol .hero-symbol-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.2vw, 2.1rem);
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #fff;
    text-align: center;
    max-width: 900px;
    margin: 0;
}
.hero .hero-symbol .hero-symbol-text.bottom { color: var(--red); }
.hero .hero-symbol .hero-symbol-text.top { margin-bottom: 28px; }
.hero .hero-symbol .hero-symbol-text.bottom { margin-top: 28px; }
.hero-symbol img {
    width: clamp(220px, 30vw, 340px);
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
    transition: transform 0.4s ease;
}
.hero-symbol:hover img {
    transform: scale(1.02);
}
.hero-micro-manifesto {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    max-width: 620px;
    margin: 0 auto 10px;
    line-height: 1.6;
}
.hero-micro-manifesto:empty { display: none; }
.hero-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.hero-stars svg { animation: starIn 0.6s ease backwards; }
.hero-stars svg:nth-child(2) { animation-delay: 0.15s; }
.hero-stars svg:nth-child(3) { animation-delay: 0.3s; }
.hero h1 {
    font-size: clamp(1.4rem, 2.8vw, 2.8rem);
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-top: 20px;
}
.hero h1 span { color: var(--red); }
.hero-buttons {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HOME — LAYOUT ===== */
.home-top-wrap {
    background: var(--red);
    padding: 20px 20px 10px;
}
.home-top-grid {
        max-width: 1240px;
        margin: 0 auto;
}

.home-sidebars-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
}

@media (max-width: 900px) {
    .home-sidebars-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .home-right-sidebar {
        font-size: 0.92em;
    }
    .home-right-sidebar .sidebar-section-title {
        font-size: 0.68rem;
    }
    .home-right-sidebar .home-updates-card {
        padding: 10px;
    }
}

@media (max-width: 900px) {
    .home-top-grid {
        grid-template-columns: 1fr 2fr 1fr;
    }
    .home-right-sidebar {
        font-size: 0.92em;
    }
    .home-right-sidebar .sidebar-section-title {
        font-size: 0.68rem;
    }
    .home-right-sidebar .home-updates-card {
        padding: 10px;
    }
}

.home-left-sidebar, .home-right-sidebar {
        background: rgba(0,0,0,0.5);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: 100%;
        backdrop-filter: blur(2px);
        padding: 14px;
}

@media (max-width: 1024px) {
    /* Nessuna modifica al layout delle sidebar: restano affiancate */
        gap: 0;
    }
    .hero {
        order: 1;
        margin-bottom: 0;
        width: 100%;
        border-radius: 10px;
    }
    .home-sidebars-row {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }
    .home-left-sidebar, .home-right-sidebar {
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        margin-bottom: 0;
        padding: 12px;
    }
}
.home-right-sidebar {
    background: rgba(0,0,0,0.5);
    border-left: none;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    backdrop-filter: blur(2px);
}
.home-top-wrap .hero {
    height: 100%;
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(2px);
}
/* No red border under sidebar cards (near the symbol) */
.home-updates-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-updates-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}
.sidebar-section-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.home-updates-card h2 {
    font-size: 0.74rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.home-updates-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.home-updates-empty {
    color: #999;
    font-size: 0.9rem;
}
.home-mini-post + .home-mini-post {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.home-mini-post p {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.65;
}
.home-appointment-media {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}
.home-appointment-media img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.home-appointment-media:hover img { transform: scale(1.02); }
.thumb-right-tiny {
    float: right;
    width: 64px;
    height: 64px;
    margin: 2px 0 8px 12px;
    border-radius: 6px;
    overflow: hidden;
}
.thumb-right-tiny img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.thumb-right-list {
    float: right;
    width: 84px;
    height: 84px;
    margin: 2px 0 8px 12px;
    border-radius: 6px;
    overflow: hidden;
}
.thumb-right-list img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}
.home-appointment-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
@media (max-width: 1080px) {
    .home-top-wrap { padding: 14px 10px 8px; }
    .home-top-grid { grid-template-columns: 1fr; }
    .home-right-sidebar { padding: 12px; }
    .hero { border-radius: 10px; }
    .hero-content { padding: 20px 14px 18px; }
    .hero-symbol img { width: clamp(170px, 46vw, 240px); }
}

.home-posts-carousel-section {
    background: var(--red);
    padding: 12px 20px 24px;
    border-bottom: 5px solid var(--black);
}
.home-posts-shell {
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 10px;
    backdrop-filter: blur(2px);
}
.home-posts-carousel-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.home-posts-carousel-track {
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
}
.home-posts-carousel-track::-webkit-scrollbar { height: 8px; }
.home-posts-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 999px;
}
.home-posts-carousel-card {
    flex: 0 0 min(320px, 78vw);
    width: min(320px, 78vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.home-posts-carousel-card h3 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.home-posts-carousel-card p {
    color: #555;
    font-size: 0.84rem;
    line-height: 1.55;
    margin-top: 6px;
}
.home-posts-carousel-media {
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
}
.home-posts-carousel-media img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
}
@media (max-width: 720px) {
    .home-posts-carousel-track {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 8px;
    }
    .home-posts-carousel-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        flex: initial;
    }
}

/* ===== CLAIM ===== */
.claim-banner {
    background: var(--red);
    padding: 36px 20px;
    text-align: center;
    position: relative;
}
.claim-banner p {
    font-weight: 800;
    font-size: clamp(1.3rem, 3.5vw, 2.4rem);
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PILLARS ===== */
.pillars-section {
    background: var(--cream);
    padding: 48px 20px;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.pillar-card {
    background: #fff;
    padding: 24px 20px;
    border-top: 3px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}
.pillar-letter {
    font-weight: 800;
    font-size: 3.2rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.04em;
}
.pillar-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.pillar-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
}

/* ===== WHY ===== */
.why-section {
    background: var(--black);
    padding: 48px 20px;
}
.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) 380px;
    gap: 28px;
    align-items: start;
}
.why-content { min-width: 0; }
.why-section h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.why-section p {
    font-size: 0.94rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 18px;
}
.why-quote {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-top: 28px;
}
.why-quote p {
    color: var(--gold);
    font-style: italic;
    font-size: 1rem;
}
.why-aside {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.why-orsino {
    width: 100%;
    max-width: 390px;
    min-height: 390px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: clamp(3.6rem, 8vw, 5rem);
    line-height: 1;
}
.why-orsino-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.why-orsino-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 900px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .why-aside { justify-content: flex-start; align-items: flex-end; }
    .why-orsino {
        max-width: 280px;
        min-height: 280px;
    }
}

/* ===== CTA ===== */
.cta-section {
    background: var(--red);
    padding: 44px 20px;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.65;
}
.btn-white {
    background: #fff;
    color: var(--red);
    border-radius: 6px;
}
.btn-white:hover {
    background: #fff;
    color: var(--red-dark);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ===== NOTIZIE ===== */
.news-hero {
    background: var(--red);
    padding: 32px 20px 24px;
}
.news-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}
.news-hero p {
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    font-size: 0.9rem;
}
.news-list {
    background: var(--cream);
    padding: 36px 20px 52px;
}
.news-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 0;
    transition: padding-left 0.3s ease;
}
.news-item:hover { padding-left: 10px; }
.news-item:first-child { padding-top: 0; }
.news-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.68rem;
    color: #fff;
    background: var(--red);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-right: 10px;
}
.news-date {
    font-size: 0.82rem;
    color: #aaa;
}
.news-title {
    font-weight: 700;
    font-size: 1.45rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-top: 8px;
    transition: color 0.2s;
}
.news-item:hover .news-title { color: var(--red); }
.news-excerpt {
    font-size: 0.9rem;
    color: #777;
    margin-top: 6px;
    line-height: 1.65;
    max-width: 640px;
}
.news-empty {
    text-align: center;
    padding: 52px 20px;
    color: #aaa;
}
.news-empty h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.event-featured-media {
    margin: 12px 0 10px;
    border-radius: 10px;
    overflow: hidden;
}
.event-featured-media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}
.detail-thumb {
    width: 96px;
    height: 96px;
    margin: 6px 0 12px;
    border-radius: 8px;
    overflow: hidden;
}
.detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* ===== ARTICOLO ===== */
.article-hero {
    background: var(--red);
    padding: 32px 20px 24px;
}
.article-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 0.68rem;
    color: #fff;
    background: rgba(0,0,0,0.25);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.article-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    max-width: 700px;
}
.article-date {
    color: rgba(255,255,255,0.75);
    margin-top: 8px;
    font-size: 0.86rem;
}
.article-body {
    background: var(--cream);
    padding: 36px 20px 52px;
}
.article-body .content {
    font-size: 1.02rem;
    line-height: 1.82;
    color: #444;
}
.article-body .content p { margin-bottom: 16px; }
.article-back {
    display: inline-block;
    margin-top: 28px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--red);
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.article-back:hover { transform: translateX(-4px); }

/* ===== PROGRAMMA ===== */
.prog-hero {
    background: var(--red);
    padding: 32px 20px 24px;
    text-align: center;
}
.prog-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}
.prog-hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
}
.prog-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    max-width: 540px;
    margin: 8px auto 0;
    line-height: 1.6;
}
.prog-section { padding: 44px 20px; }
.prog-section:nth-child(even) { background: #fff; }
.prog-section:nth-child(odd) { background: var(--cream); }
.prog-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}
.prog-letter {
    font-weight: 800;
    font-size: 4.5rem;
    color: var(--red);
    line-height: 0.82;
    flex-shrink: 0;
    letter-spacing: -0.05em;
}
.prog-title {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
    padding-top: 6px;
}
.prog-body {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
}
.prog-body p { margin-bottom: 12px; }
.prog-highlight {
    border-left: 3px solid var(--red);
    padding-left: 16px;
    margin: 18px 0;
    font-weight: 500;
    color: #333;
}
.prog-cta {
    background: var(--black);
    padding: 44px 20px;
    text-align: center;
}
.prog-cta h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.prog-cta p {
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.65;
}
@media (max-width: 600px) {
    .prog-header { flex-direction: column; gap: 6px; }
    .prog-letter { font-size: 3rem; }
}

/* ===== CONTATTI / PARTECIPAZIONE ===== */
.contact-hero {
    background: var(--red);
    padding: 32px 20px 24px;
}
.contact-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}
.contact-hero p {
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    font-size: 0.9rem;
}
.contact-body {
    background: var(--cream);
    padding: 36px 20px 52px;
}
.form-wrap {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-top: 3px solid var(--red);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.form-head h3 {
    font-weight: 800;
    font-size: 1.7rem;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.form-head p { color: #666; margin-bottom: 20px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 800px) {
    .form-grid { grid-template-columns: 1fr; }
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 4px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    border: 2px solid #e5e3df;
    border-radius: 6px;
    background: var(--cream);
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(173,41,53,0.08);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.check-block {
    margin-top: 6px;
    border: 2px solid #e5e3df;
    border-radius: 6px;
    padding: 14px;
    background: var(--cream);
}
.check-title {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.check-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    align-items: start;
    column-gap: 10px;
    color: #555;
    font-size: 0.9rem;
}
.check-item input {
    margin: 2px 0 0 0;
    width: 16px;
    height: 16px;
    accent-color: var(--red);
}
.check-item span { line-height: 1.5; }
.privacy-box {
    margin-top: 14px;
    padding: 14px;
    border-left: 3px solid var(--gold);
    background: rgba(255,222,89,0.06);
    color: #555;
    font-size: 0.88rem;
    line-height: 1.7;
    border-radius: 0 6px 6px 0;
}
.form-msg {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}
.form-msg.success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #43a047; }
.form-msg.error { background: #fde8e8; color: #8e1e28; border-left: 3px solid var(--red); }
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.consent-label { margin-top: 12px; }
.btn-full { width: 100%; text-align: center; }

/* ===== ADMIN ===== */
.login-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    padding: 20px;
}
.login-box {
    background: var(--black-light);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    border-top: 3px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.login-box h1 {
    font-weight: 800;
    font-size: 1.6rem;
    color: #900;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-align: center;
}
.login-box input {
    width: 100%;
    padding: 11px 14px;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.36);
    border-radius: 6px;
    background: rgba(117, 16, 16, 0.895);
    color: #fff;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.login-box input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(255,222,89,0.16);
}
.login-box input::placeholder { color: rgba(255,255,255,0.72); }
.login-error {
    background: rgba(173,41,53,0.15);
    color: #ff8a8a;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 14px;
    border-radius: 6px;
    border-left: 3px solid var(--red);
}
.admin-wrap {
    background: var(--cream);
    min-height: 80vh;
    padding: 28px 20px 52px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.admin-header h1 {
    font-weight: 800;
    font-size: 1.9rem;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}
.admin-card {
    background: #fff;
    padding: 24px;
    margin-bottom: 18px;
    border-top: 3px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.admin-card h2 {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.admin-form label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 3px;
    margin-top: 14px;
}
.admin-form label:first-child { margin-top: 0; }
.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Sora', sans-serif;
    font-size: 0.92rem;
    border: 2px solid #e5e3df;
    border-radius: 6px;
    background: var(--cream);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(173,41,53,0.08);
}
.admin-form textarea { min-height: 170px; resize: vertical; }
.admin-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .admin-form .row { grid-template-columns: 1fr; }
}
.article-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 6px;
}
.article-list-item:last-child { border-bottom: none; }
.article-actions { display: flex; gap: 6px; }
.article-actions a {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s, box-shadow 0.2s;
}
.action-edit { background: #eeecea; color: #333; }
.action-edit:hover { background: #dddbd7; color: #1a1a1a; }
.action-delete { background: var(--red); color: #fff; }
.action-delete:hover { background: var(--red-dark); color: #fff; box-shadow: 0 4px 12px rgba(173,41,53,0.25); }
.admin-msg {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #43a047;
    font-size: 0.88rem;
    border-radius: 6px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: #fff;
    padding: 18px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: transform 0.25s ease;
}
.stat-box:hover { transform: translateY(-2px); }
.stat-number {
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #999;
    margin-top: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ===== CATEGORIES ===== */
.news-category {
    display: inline-block;
    font-weight: 600;
    font-size: 0.68rem;
    color: var(--red-dark);
    background: rgba(173,41,53,0.08);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    margin-right: 10px;
}
.article-category {
    display: inline-block;
    font-weight: 600;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    margin-left: 8px;
}

/* ===== APPOINTMENT DATE BOX ===== */
.appointment-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.appointment-date-box {
    flex-shrink: 0;
    width: 52px;
    height: 56px;
    background: var(--red);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 10px rgba(173,41,53,0.2);
}
.appointment-date-day {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
}
.appointment-date-month {
    font-weight: 600;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}
.appointment-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.appointment-time {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}
.home-appointment-card p {
    font-size: 0.86rem;
    color: #666;
    line-height: 1.6;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .thumb-right-tiny {
        margin-left: 10px;
    }
    .thumb-right-list {
        width: 72px;
        height: 72px;
        margin-left: 10px;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.home-pillars-title {
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.03em;
}
.home-pillars-subtitle {
    color: #888;
    font-size: 1rem;
    margin-top: 6px;
}
.news-title-link { color: inherit; text-decoration: none; }

.admin-container { max-width: 900px; }
.admin-tab-active {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.admin-msg-error {
    background: #fde8e8;
    color: #8e1e28;
    border-left: 3px solid var(--red);
}
.admin-label-reset { margin-top: 0 !important; }
.admin-textarea-120 { min-height: 120px !important; }
.admin-textarea-110 { min-height: 110px !important; }
.admin-textarea-100 { min-height: 100px !important; }
.admin-textarea-90 { min-height: 90px !important; }
.admin-actions-row { margin-top: 16px; }
.admin-cancel-link {
    margin-left: 14px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.04em;
}
.text-muted { color: #999; }
.article-title-strong { color: #1a1a1a; font-weight: 700; }
.article-meta { font-size: 0.82rem; color: #aaa; }
.contacts-count { color: #666; margin-bottom: 14px; }
.btn-export { padding: 8px 20px; font-size: 0.9rem; }

/* ===== ENTRANCE ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .pillar-card {
        animation: enterUp 0.5s ease backwards;
    }
    .pillar-card:nth-child(1) { animation-delay: 0.05s; }
    .pillar-card:nth-child(2) { animation-delay: 0.12s; }
    .pillar-card:nth-child(3) { animation-delay: 0.19s; }
    .pillar-card:nth-child(4) { animation-delay: 0.26s; }

    .stat-box {
        animation: enterUp 0.4s ease backwards;
    }
    .stat-box:nth-child(1) { animation-delay: 0.05s; }
    .stat-box:nth-child(2) { animation-delay: 0.12s; }
    .stat-box:nth-child(3) { animation-delay: 0.19s; }

    .home-updates-card {
        animation: enterUp 0.5s ease backwards;
    }
    .home-updates-card:nth-child(1) { animation-delay: 0.1s; }
    .home-updates-card:nth-child(2) { animation-delay: 0.2s; }
}

/* ===== CANDIDATO SINDACO ===== */
.cand-section {
    background: #fffbe5;
    padding: 40px 0;
}
.cand-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}
.cand-box {
    background: #AD2935;
    border-radius: 14px;
    overflow: hidden;
}
.cand-box--left {
    flex: 0 0 260px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 12px 20px;
}
.cand-photo {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 10px;
}
.cand-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #FFFBE5;
    text-align: center;
    margin-top: 16px;
    padding: 0 8px;
    line-height: 1.3;
    text-transform: uppercase;
    white-space: nowrap;
}
.cand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #FFFBE5;
    text-align: center;
    margin-top: 6px;
    padding: 0 8px;
    line-height: 1.1;
    white-space: nowrap;
}
.cand-box--right {
    flex: 1 1 400px;
    max-width: none;
    padding: 20px 24px;
}
.cand-box--right p {
    color: #FFFBE5;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
}
.cand-box--right p:last-child {
    margin-bottom: 0;
}
.cand-videos-section {
    background: #fffbe5;
    padding: 24px 0 40px;
}
.cand-videos-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    min-width: 0;
}
.cand-videos-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #AD2935;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}
.cand-videos-track {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.cand-videos-track::-webkit-scrollbar { height: 4px; }
.cand-videos-track::-webkit-scrollbar-track { background: transparent; }
.cand-videos-track::-webkit-scrollbar-thumb { background: #AD2935; border-radius: 4px; }
.cand-video-box {
    flex: 0 0 min(320px, 80vw);
    border-radius: 12px;
    scroll-snap-align: start;
    overflow: hidden;
}
.cand-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
}
.cand-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
@media (max-width: 600px) {
    .cand-section { padding: 40px 20px; }
    .cand-box--left { flex: 0 0 100%; width: 100%; max-width: 240px; margin: 0 auto; }
    .cand-box--right { flex: 1 1 100%; }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay.is-open {
    display: flex;
}
.lightbox-overlay img {
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
    box-shadow: 0 0 80px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0;
}
.lightbox-close:hover { opacity: 1; }

