/* ============================================================
   PUG_2026 – Override e stili custom su Bootstrap Italia
   Font: Roboto Light (300)
   Titolo: 20px | Sottotitolo: 14px | Contenuto: 12px
   ============================================================ */

/* ---- Font override ---- */
body {
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 300;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
p, li, td, th, label, input, textarea, select, a, button, b, strong {
    font-family: 'Titillium Web', sans-serif !important;
}

/* Titoli — non forzare font-size globale, usare le classi specifiche */
h1, h2 {
    font-weight: 300 !important;
}

h3, h4 {
    font-weight: 400 !important;
}

/* Brand header */
.it-brand-title {
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.75rem !important;
}

.navbar-nav .nav-link {
    font-family: 'Titillium Web', sans-serif !important;
}

/* ---- Container max-width 1200px ---- */
.container,
.container-fluid {
    max-width: 1200px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* ---- Colori istituzionali Messina ---- */
:root {
    --pug-blue:       #193676;
    --pug-navy:       #112552;
    --pug-orange:     #d45500;
    --pug-green:      #61cc00;
    --pug-gray-circ:  rgba(150, 173, 173, 0.45);
}

/* Slim bar */
.it-header-slim-wrapper {
    background-color: var(--pug-navy) !important;
}

.it-header-slim-wrapper-content .navbar-brand,
.it-header-slim-wrapper-content a.navbar-brand {
    font-family: 'Titillium Web', Geneva, Tahoma, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    padding: 12px 0 !important;
    margin-left: 0 !important;
}

/* Bottone Accedi */
.btn-personal {
    background-color: var(--pug-navy) !important;
    border-color: var(--pug-navy) !important;
    color: #ffffff !important;
    font-family: 'Titillium Web', Geneva, Tahoma, sans-serif !important;
    font-size: 12.448px !important;
    padding: 12px 24px !important;
}

.btn-personal .rounded-icon {
    width: 18.67px !important;
    height: 18.67px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.btn-personal .rounded-icon .icon {
    width: 14px !important;
    height: 14px !important;
    fill: var(--pug-navy) !important;
}

.btn-personal:hover,
.btn-personal:focus {
    background-color: var(--pug-blue) !important;
    border-color: var(--pug-blue) !important;
    color: #ffffff !important;
}

/* Header center */
.it-header-center-wrapper {
    background-color: var(--pug-blue) !important;
    box-shadow: none !important;
    border-bottom: none !important;
    height: 180px;
}

/* Logo PUG */
.logo-pug {
    height: auto;
    width: 160px;
    display: block;
    filter: brightness(1.15) contrast(1.2);
    padding-top: 2px;
}

.it-right-zone {
    min-width: 220px;
}

/* Nascondi social */
.it-right-zone .it-socials {
    display: none !important;
}

/* Right zone: colonna con logo PUG sopra e social sotto */
.it-right-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Right zone (Seguici su + Cerca) */
.it-right-zone {
    color: #ffffff !important;
    font-family: 'Titillium Web', Geneva, Tahoma, sans-serif !important;
    font-size: 16px !important;
}

.it-right-zone .it-socials span,
.it-right-zone .it-search-wrapper span {
    color: #ffffff !important;
    font-size: 16px !important;
}

/* Icone social: 24×24, margin-left 16px */
.it-right-zone .it-socials .icon,
.it-right-zone .it-socials svg.icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 0 0 16px !important;
}

/* Search button: cerchio bianco */
.it-right-zone .search-link.rounded-icon {
    width: 36px !important;
    height: 36px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 16px !important;
}

.it-right-zone .search-link.rounded-icon .icon {
    fill: var(--pug-blue) !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
}

/* Navbar — stesso colore dell'header, nessuna separazione */
.it-header-navbar-wrapper,
.it-header-navbar-wrapper .navbar,
.it-header-navbar-wrapper .navbar.has-megamenu,
.it-header-navbar-wrapper > * {
    background-color: var(--pug-blue) !important;
    box-shadow: none !important;
    border-top: none !important;
}

/* Rimuovi ombre header */
.it-header-wrapper,
.it-nav-wrapper,
.it-header-center-wrapper,
.it-header-navbar-wrapper,
.it-header-slim-wrapper {
    box-shadow: none !important;
}

/* Nav links base */
.it-header-navbar-wrapper .navbar-nav .nav-link {
    color: #ffffff !important;
    font-family: 'Titillium Web', Geneva, Tahoma, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding: 0.75rem 1.1rem !important;
    border-bottom: 3px solid transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    transition: color 0.2s, border-color 0.2s;
}

.it-header-navbar-wrapper .navbar {
    padding-left: 0 !important;
}

.it-header-navbar-wrapper .navbar-nav {
    padding-left: 0 !important;
}

.it-header-navbar-wrapper .navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0 !important;
}

.it-header-navbar-wrapper .navbar-nav .nav-link:hover {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.5);
    background-color: transparent !important;
}

/* Voce attiva */
.it-header-navbar-wrapper .navbar-nav .nav-link.active,
.it-header-navbar-wrapper .navbar-nav .nav-item.active > .nav-link {
    color: #fff !important;
    border-bottom: 3px solid transparent !important;
    background-color: transparent !important;
}

/* Voce "Tutti gli argomenti" — destra, bold, no box */
.it-header-navbar-wrapper .navbar-nav .nav-item-last {
    margin-left: auto !important;
}

.it-header-navbar-wrapper .navbar-nav .nav-link.nav-all {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    font-weight: 700 !important;
}

.it-header-navbar-wrapper .navbar-nav .nav-link.nav-all b {
    font-family: 'Titillium Web', Geneva, Tahoma, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.it-header-navbar-wrapper .navbar-nav .nav-link.nav-all:hover,
.it-header-navbar-wrapper .navbar-nav .nav-link.nav-all:focus {
    background-color: transparent !important;
}

/* ---- Layout principale ---- */
.main-content {
    background: #ffffff;
    padding: 48px 0 72px;
    border-top: 1px solid #e8ecf2;
}

/* ---- Tipografia contenuto ---- */
.page-title {
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #1a1a1a !important;
    margin-bottom: 32px !important;
    padding-bottom: 16px !important;
    line-height: 1.3 !important;
    border-bottom: 1px solid #66CC33 !important;
}

.last-update {
    font-size: 13px;
    color: #777;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.last-update strong {
    font-weight: 600;
    color: #555;
}

.section-heading {
    font-size: 22px;
    font-weight: 300;
    color: var(--pug-blue);
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef0f5;
}

.section-label {
    display: inline-block;
    color: var(--pug-orange);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding: 6px 14px;
    background-color: #fff3ec;
    border: 1px solid #f5c9ae;
    border-radius: 4px;
}

.subsection-title {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: var(--pug-blue) !important;
    margin: 40px 0 16px !important;
    padding-left: 14px !important;
    border-left: 4px solid #99CCFF !important;
    line-height: 1.3 !important;
}

.intro-line {
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
    padding: 10px 16px;
    border-left: 4px solid var(--pug-green);
    background-color: #f9fdf4;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
}

.body-text {
    font-size: 18px;
    font-weight: 300;
    color: #333;
    line-height: 1.75;
    margin-bottom: 32px;
    text-align: justify;
}

/* ---- Griglia strategie ---- */
.strategie-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.strategia-item img {
    width: 65%;
    height: auto;
    display: block;
}

.strategia-item:nth-child(odd) img {
    margin-left: 0;
    margin-right: auto;
}

.strategia-item:nth-child(even) img {
    margin-left: auto;
    margin-right: 0;
}

/* ============================================================
   ITER DI REDAZIONE E APPROVAZIONE
   ============================================================ */


.fase-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--pug-blue);
    display: inline-block;
    padding: 2px 11px;
    border-radius: 20px;
    margin: 24px 0 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fase-5 {
    padding-left: 0;
}

.iter-item {
    font-size: 16px;
    font-weight: 300;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
    padding: 14px 18px;
    border-left: 4px solid #99CCFF;
    background-color: #f5f7fb;
    border-radius: 0 6px 6px 0;
    text-align: justify;
}

.item-code {
    font-weight: 700;
    color: var(--pug-blue);
    margin-right: 6px;
    font-size: 14px;
}

.text-blue {
    color: var(--pug-blue);
}

a.text-blue,
.text-blue a {
    color: var(--pug-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a.text-blue:hover,
.text-blue a:hover {
    color: var(--pug-navy);
}

/* ---- Documentazione ---- */
.doc-section-title {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: var(--pug-blue) !important;
    margin: 48px 0 20px !important;
    padding-left: 14px !important;
    border-left: 4px solid #99CCFF !important;
    line-height: 1.3 !important;
}

.doc-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d0d9ec;
    border-radius: 6px;
    padding: 7px 12px 7px 10px;
    background: #f7f9fd;
    font-size: 13px;
    color: var(--pug-blue);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    max-width: 100%;
}

.doc-card:hover {
    background: #eef2fb;
    border-color: var(--pug-blue);
}

.doc-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-icon {
    font-size: 18px;
    color: #c0392b;
    flex-shrink: 0;
}

.doc-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.doc-meta {
    font-size: 11px;
    color: #999;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--pug-blue);
    background: #fff;
    color: var(--pug-blue);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.download-btn i { font-size: 11px; }

.download-btn:hover {
    background: var(--pug-blue);
    color: #fff;
}

/* ============================================================
   EVENTI
   ============================================================ */

/* Evento in evidenza */
.evento-evidenza {
    position: relative;
    border: 2px solid var(--pug-blue);
    border-radius: 6px;
    padding: 32px;
    margin-top: 32px;
    background: #f4f7fc;
}

.evento-evidenza-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--pug-orange);
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 14px;
    border-radius: 3px;
}

.evento-evidenza-inner {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.evento-locandina {
    flex: 0 0 220px;
    max-width: 220px;
}

.evento-locandina img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.ep-zoom-wrap {
    position: relative;
    cursor: zoom-in;
}

.ep-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(25, 54, 118, 0.85);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ep-zoom-wrap:hover .ep-zoom-icon {
    background: var(--pug-orange);
}

/* Lightbox */
#ep-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#ep-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.evento-locandina-pdf {
    width: 100%;
    height: 340px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: block;
}

.ep-pdf-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    color: var(--pug-blue);
    text-decoration: underline;
}

.evento-dettagli {
    flex: 1;
}

.evento-data {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pug-orange);
    margin-bottom: 8px;
}

.evento-titolo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--pug-navy);
    margin-bottom: 6px;
}

.evento-luogo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

.btn-partecipa {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 32px;
    background: var(--pug-blue);
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}

.btn-partecipa:hover {
    background: var(--pug-navy);
    color: #fff;
    text-decoration: none;
}

/* Accordion eventi */
.ep-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.ep-accordion-item {
    border-radius: 4px;
    overflow: hidden;
}

.ep-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
}

.ep-bar--fixed {
    cursor: default;
}

.ep-body .body-text {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.ep-invitati {
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    padding-left: 20px;
    margin-top: 4px;
    margin-bottom: 0;
}

.ep-invitati li::marker {
    color: var(--pug-green);
}

.ep-form {
    max-width: 660px;
    background: #f4f7fc;
    border: 1px solid #dde3ec;
    border-top: 4px solid #193676;
    border-radius: 4px;
    padding: 32px 36px 28px;
    margin-top: 8px;
}

.ep-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.ep-form .form-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pug-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.ep-form .form-control,
.ep-form .form-select {
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    border: 1px solid #c0cfe0;
    border-radius: 3px;
    background: #fff;
    color: #222;
    padding: 8px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ep-form .form-control:focus,
.ep-form .form-select:focus {
    border-color: #193676;
    box-shadow: 0 0 0 3px rgba(25,54,118,0.12);
    outline: none;
}

.ep-form .form-select {
    appearance: auto;
}

.ep-form .mb-3 {
    margin-bottom: 18px !important;
}

.ep-form-divider {
    border: none;
    border-top: 1px solid #dde3ec;
    margin: 8px 0 20px;
}

@media (max-width: 575.98px) {
    .ep-form {
        padding: 20px 16px;
    }
    .ep-form-row {
        grid-template-columns: 1fr;
    }
}

.ep-back-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pug-blue);
    text-decoration: none;
    margin-bottom: 20px;
}

.ep-back-link:hover {
    color: var(--pug-navy);
    text-decoration: underline;
}

.ep-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ep-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-badge-prossimo {
    background: var(--pug-orange);
    color: #fff;
    font-family: 'Titillium Web', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
}

.ep-chevron {
    color: #fff;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ep-bar[aria-expanded="true"] .ep-chevron {
    transform: rotate(180deg);
}

.ep-bar-data--tbd {
    color: #7a9abf !important;
    font-style: italic;
    font-size: 16px !important;
}

.ep-body {
    padding: 28px 24px;
    background: #f4f7fc;
}

.ep-body--tbd {
    color: #888;
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    font-style: italic;
}

/* Lista eventi passati */
.eventi-passati-lista {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ep-card {
    display: flex;
    flex-direction: column;
}

.ep-bar {
    background: #193676;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
}

.ep-bar-data {
    font-family: 'Titillium Web', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #99CCFF;
    letter-spacing: 0.04em;
}

.ep-bar-titolo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #66CC33;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ep-info {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 0 0;
}

.ep-info-testo {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.ep-info-separatore {
    flex: 1;
    border-top: 2px dashed #aaa;
    margin: 0 12px;
}

@media (max-width: 767.98px) {
    .ep-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ep-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .ep-info-separatore {
        display: none;
    }
    .ep-info-testo {
        white-space: normal;
    }
}

/* Responsive eventi */
@media (max-width: 767.98px) {
    .evento-evidenza-inner {
        flex-direction: column;
    }
    .evento-locandina {
        flex: unset;
        max-width: 100%;
    }
    .evento-evidenza {
        padding: 24px 16px;
    }
    .evento-titolo {
        font-size: 20px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */

.it-footer {
    background-color: var(--pug-navy) !important;
    margin-top: 48px;
}

.it-footer-main {
    padding: 24px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Tablet (max 991px) – navbar collassa ---- */
@media (max-width: 991.98px) {

    .it-header-center-wrapper {
        height: auto !important;
        min-height: 100px;
        padding: 12px 0;
    }

    .it-brand-title {
        font-size: 1.25rem !important;
    }

    .logo-pug {
        width: 160px;
    }

    .it-right-zone {
        min-width: 160px;
    }

    .page-title {
        font-size: 24px !important;
    }

    .section-heading {
        font-size: 20px;
    }

    .subsection-title {
        font-size: 17px !important;
    }

    .body-text {
        font-size: 17px;
    }

    .strategia-item img {
        width: 85%;
    }
}

/* ---- Mobile (max 767px) ---- */
@media (max-width: 767.98px) {

    .it-header-center-wrapper {
        height: auto !important;
        min-height: 80px;
        padding: 8px 0;
    }

    .it-header-center-content-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .it-brand-title {
        font-size: 1rem !important;
    }

    .logo-pug {
        display: none !important;
    }

    .it-right-zone {
        min-width: auto;
        display: none !important;
    }

    .main-content {
        padding: 24px 0 40px;
    }

    .page-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .section-heading {
        font-size: 18px;
    }

    .subsection-title {
        font-size: 16px !important;
        margin: 24px 0 12px !important;
    }

    .intro-line {
        font-size: 15px;
        padding: 8px 12px;
    }

    .body-text {
        font-size: 16px;
        text-align: left;
    }

    .iter-item {
        font-size: 15px;
        padding: 10px 14px;
        text-align: left;
    }

    .strategia-item img {
        width: 100%;
    }

    .doc-card {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        max-width: 100%;
    }

    .download-btn {
        align-self: flex-start;
    }

    .it-footer {
        margin-top: 24px;
    }
}

/* ---- Small mobile (max 575px) ---- */
@media (max-width: 575.98px) {

    .it-header-center-wrapper {
        padding: 6px 0;
    }

    .it-brand-title {
        font-size: 0.875rem !important;
    }

    .municipality__logo img {
        width: 60px !important;
        height: 60px !important;
    }

    .logo-pug {
        display: none !important;
    }

    .it-right-zone {
        display: none !important;
    }

    .page-title {
        font-size: 20px !important;
    }

    .body-text {
        font-size: 15px;
    }

    .iter-item {
        font-size: 14px;
    }

    .doc-name {
        font-size: 14px;
    }

    .download-btn {
        width: 48px;
        height: 48px;
    }

    .main-content {
        padding: 16px 0 32px;
    }
}

/* ══════════════════════════════════════════
   BOX QUESTIONARIO (partecipame.php)
══════════════════════════════════════════ */
.partecipa-box-questionario {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--pug-navy);
    border-left: 5px solid var(--pug-green);
    border-radius: 0 6px 6px 0;
    padding: 24px 28px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}

.pbq-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pug-green);
    margin-bottom: 6px;
}

.pbq-desc {
    font-family: 'Titillium Web', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
}

.pbq-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .partecipa-box-questionario { flex-direction: column; align-items: flex-start; }
    .pbq-btn { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════
   QUESTIONARIO
══════════════════════════════════════════ */
.q-intro {
    background: #f4f7fb;
    border-left: 4px solid var(--pug-blue);
    border-radius: 0 6px 6px 0;
    padding: 24px 28px;
    margin: 24px 0 36px;
}

.q-intro .body-text { margin-bottom: 12px; text-align: left; }
.q-intro .body-text:last-child { margin-bottom: 0; }

.q-intro-cta {
    border-top: 1px solid #dde3f0;
    padding-top: 12px;
    margin-top: 4px;
    color: var(--pug-blue) !important;
    font-weight: 600;
}

.q-form { max-width: 860px; }

/* Card per ogni sezione */
.q-section {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(25,54,118,0.08);
    margin-bottom: 32px;
    overflow: hidden;
}

/* Barra titolo sezione */
.q-section-title {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--pug-navy);
    padding: 12px 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 44px;
}

.q-section-title .q-num {
    background: var(--pug-green);
    color: var(--pug-navy);
    font-size: 13px;
    font-weight: 900;
    padding: 0 14px;
    margin-right: 18px;
    margin-left: -24px;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
}

/* Corpo sezione */
.q-section-body {
    padding: 28px 32px 32px;
}

.q-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--pug-navy);
    margin-bottom: 14px;
    display: block;
    line-height: 1.4;
}

.q-sub {
    font-size: 13px;
    color: #6b7a99;
    margin-top: -8px;
    margin-bottom: 16px;
    font-style: italic;
}

/* Contatore checkbox */
.q-counter {
    font-size: 12px;
    font-weight: 700;
    color: var(--pug-green);
    background: var(--pug-navy);
    padding: 2px 8px;
    border-radius: 10px;
    float: right;
    margin-top: 2px;
}

/* Radio e checkbox come pill selezionabili */
.q-radio-group, .q-check-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.q-radio-group label, .q-check-group label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: #1a1a2e;
    cursor: pointer;
    line-height: 1.5;
    padding: 12px 16px;
    border: 1.5px solid #e0e6f0;
    border-radius: 5px;
    background: #fafbfd;
    transition: border-color 0.15s, background 0.15s;
}

.q-radio-group label:hover, .q-check-group label:hover {
    border-color: var(--pug-blue);
    background: #f0f4fc;
}

.q-radio-group input, .q-check-group input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pug-blue);
    cursor: pointer;
}

/* Stato selezionato */
.q-radio-group input:checked + span,
.q-check-group input:checked + span {
    color: var(--pug-navy);
    font-weight: 600;
}

/* Inputs e select */
.q-section-body .form-control,
.q-section-body .form-select {
    border: 1.5px solid #cdd5e8;
    border-radius: 4px;
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    color: var(--pug-navy);
    padding: 12px 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.q-section-body .form-control:focus,
.q-section-body .form-select:focus {
    border-color: var(--pug-blue);
    box-shadow: 0 0 0 3px rgba(25,54,118,0.10);
    outline: none;
}

.q-section-body textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Divisore interno tra checkbox e textarea */
.q-divider {
    border: none;
    border-top: 1px solid #e8edf5;
    margin: 24px 0 20px;
}
