/* ============================================================
   LINFA — Stili custom v4
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;600;800&display=swap');

/* --- Logo LINFA --- */
.linfa-logo {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.linfa-logo--sm { font-size: 0.75rem; }
.linfa-logo__by {
    font-size: 0.55em;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    opacity: 0.6;
    margin-left: 0.15em;
}

/* --- Navbar --- */
.linfa-navbar {
    background: #1a3a2a;
    padding: 0.6rem 0;
    position: relative;
    z-index: 1000;
}

/* --- Hamburger icon (custom, no Bootstrap JS needed) --- */
.linfa-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}
.linfa-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.linfa-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.linfa-hamburger.open span:nth-child(2) { opacity: 0; }
.linfa-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar-toggler {
    border: none;
    padding: 0.4rem;
    background: none;
    outline: none;
    box-shadow: none;
}
.navbar-toggler:focus { box-shadow: none; }

/* --- Mobile navbar collapse --- */
@media (max-width: 767.98px) {
    .navbar-collapse {
        display: none;
        width: 100%;
    }
    .navbar-collapse.show {
        display: block;
        animation: navSlideDown 0.25s ease;
    }
    .linfa-navbar .navbar-nav {
        padding: 0.75rem 0 0.5rem;
        gap: 0;
    }
    .linfa-navbar .nav-link {
        padding: 0.65rem 0.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.95rem;
    }
    .linfa-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}
@media (min-width: 768px) {
    .navbar-toggler { display: none; }
    .navbar-collapse { display: flex !important; }
}
@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HOME — Hero semplice
   ===================================================== */
.home-hero {
    position: relative;
    background: #1a3a2a;
    color: #fff;
    padding: 4.5rem 0 4rem;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/home.png') center/cover no-repeat;
    opacity: 1;
    z-index: 0;
}
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 42, 0.70);
    z-index: 1;
}
.home-hero .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.home-hero__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6fbe95;
    margin-bottom: 1rem;
}
.home-hero__title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}
.home-hero__desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    max-width: 600px;
}
.home-hero__btn {
    display: inline-block;
    background: #fff;
    color: #1a3a2a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.home-hero__btn:hover {
    background: #6fbe95;
    color: #fff;
    transform: translateY(-1px);
}

/* =====================================================
   HOME — Problema (foto + testo)
   ===================================================== */
.home-problem {
    padding: 3.5rem 0;
    background: #fff;
}
.home-problem .container {
    max-width: 960px;
}
.home-problem__layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: center;
}
.home-problem__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.home-problem__photos img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.4rem;
    display: block;
}
.home-problem__photos img:first-child {
    grid-column: 1 / -1;
    height: 200px;
}
.home-problem__text p {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1a3a2a;
    margin: 0;
}
.home-problem__btn {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #069999;
    text-decoration: none;
    border: 2px solid #069999;
    padding: 0.6rem 1.5rem;
    border-radius: 0.4rem;
    transition: all 0.2s ease;
}
.home-problem__btn:hover {
    background: #069999;
    color: #fff;
}

/* =====================================================
   HOME — Steps (come funziona)
   ===================================================== */
.home-steps {
    padding: 3rem 0 3.5rem;
    background: var(--bs-gray-100);
}
.home-steps .container {
    max-width: 700px;
}
.home-steps__title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.4rem;
    color: #1a3a2a;
    margin-bottom: 2rem;
}
.home-steps__grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.home-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.home-steps__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a3a2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 2px;
}
.home-steps__item strong {
    display: block;
    font-size: 0.95rem;
    color: #1a3a2a;
    margin-bottom: 0.2rem;
}
.home-steps__item p {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}
.home-steps__link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #069999;
    text-decoration: none;
}
.home-steps__link:hover { color: #1a3a2a; }

/* Animazione ingresso step */
.home-steps__item--animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.home-steps__item--animated:nth-child(2) { transition-delay: 0.15s; }
.home-steps__item--animated:nth-child(3) { transition-delay: 0.3s; }
.home-steps__item--animated.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   HOME — Info grid
   ===================================================== */
.home-info {
    padding: 3rem 0;
    border-top: 1px solid var(--bs-gray-200);
}
.home-info .container {
    max-width: 800px;
}
.home-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.home-info__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.home-info__item strong {
    display: block;
    font-size: 0.85rem;
    color: #1a3a2a;
    margin-bottom: 0.3rem;
}
.home-info__item p {
    font-size: 0.78rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   HERO — Compact (pagine interne)
   ===================================================== */
.hero-compact {
    background: #1a3a2a;
    color: #fff;
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.hero-compact h1 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.hero-compact p {
    color: rgba(255,255,255,0.8);
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* =====================================================
   Section titles
   ===================================================== */
.section-title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a3a2a;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--bs-gray-600);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* (vecchie sezioni problem/how/feature/cta rimosse — sostituite da home-gallery, home-steps, home-info) */

/* =====================================================
   Map page
   ===================================================== */
.map-hero {
    background: #1a3a2a;
    color: #fff;
    padding: 2rem 0 1.5rem;
    text-align: center;
}
.map-hero__title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.4rem;
}
.map-hero__sub {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.map-hero__count {
    font-weight: 800;
    color: #6fbe95;
    font-size: 1.1rem;
}
/* --- Map + sidebar layout --- */
.map-layout-section {
    padding: 1.5rem 0 2.5rem;
}
.map-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    align-items: start;
}
.map-layout__map {
    position: relative;
}
#map {
    width: 100%;
    height: 480px;
    border-radius: 0.75rem;
    border: 2px solid var(--bs-gray-200);
    box-shadow: 0 4px 20px rgba(30,34,40,0.08);
    z-index: 1;
}

/* Sidebar */
.map-layout__sidebar {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(30,34,40,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 480px;
}
.map-sidebar__title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a3a2a;
    padding: 1rem 1.25rem 0.75rem;
    margin: 0;
    border-bottom: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
}
.map-sidebar__search {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
    background: #f8f9fa;
}
.map-sidebar__search input {
    font-size: 0.82rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.7rem;
}
.map-sidebar__search input:focus {
    border-color: #069999;
    box-shadow: 0 0 0 2px rgba(6,153,153,0.15);
    outline: none;
}
.map-sidebar__count {
    display: inline-block;
    background: rgba(6,153,153,0.12);
    color: #069999;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.3rem;
    vertical-align: middle;
}
.map-sidebar__list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.map-sidebar__item {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--bs-gray-100);
    cursor: pointer;
    transition: background 0.15s ease;
}
.map-sidebar__item:hover {
    background: rgba(6,153,153,0.04);
}
.map-sidebar__item--active {
    background: rgba(6,153,153,0.08);
    border-left: 3px solid #069999;
}
.map-sidebar__item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}
.map-sidebar__tipo {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}
.map-sidebar__tipo--taglio { background: #fef2f2; color: #dc2626; }
.map-sidebar__tipo--capitozzatura { background: #fff7ed; color: #ea580c; }
.map-sidebar__tipo--altro { background: #f0f9ff; color: #0284c7; }
.map-sidebar__date {
    font-size: 0.68rem;
    color: var(--bs-gray-500);
}
.map-sidebar__address {
    font-size: 0.8rem;
    color: var(--bs-gray-700);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-sidebar__token code {
    font-size: 0.65rem;
    color: #069999;
    background: rgba(6,153,153,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 0.2rem;
}
.map-sidebar__open-btn {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: #069999;
    padding: 0.3rem 0.8rem;
    border-radius: 0.3rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.map-sidebar__open-btn:hover {
    background: #1a3a2a;
    color: #fff;
}
.map-sidebar__empty {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--bs-gray-500);
}
.map-sidebar__empty a { color: #069999; font-weight: 600; }
.map-sidebar__cta {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--bs-gray-200);
    flex-shrink: 0;
}

/* Popup Apri segnalazione button */
.popup-link--btn {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #fff !important;
    background: #069999;
    padding: 0.3rem 0.8rem;
    border-radius: 0.3rem;
    font-size: 0.75rem;
    text-decoration: none !important;
}
.popup-link--btn:hover {
    background: #1a3a2a;
    color: #fff !important;
}

/* =====================================================
   Stepper multi-step
   ===================================================== */
.stepper {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}
.stepper__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-gray-500);
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.stepper__step::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--bs-gray-300);
    margin-left: 0.5rem;
    transition: background 0.3s ease;
}
.stepper__step:last-child::after { display: none; }
.stepper__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bs-gray-300);
    color: var(--bs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.35s ease;
    flex-shrink: 0;
}
.stepper__step.active .stepper__circle {
    background: #069999;
    color: #fff;
    transform: scale(1.1);
}
.stepper__step.completed .stepper__circle {
    background: var(--bs-success);
    color: #fff;
}
.stepper__step.completed::after { background: var(--bs-success); }
.stepper__step.active, .stepper__step.completed { color: var(--bs-dark); }

/* --- Form step --- */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeSlideIn 0.4s ease; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Photo upload --- */
.photo-upload-area {
    border: 2px dashed var(--bs-gray-300);
    border-radius: 0.4rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bs-gray-100);
}
.photo-upload-area:hover {
    border-color: #069999;
    background: rgba(6,153,153,0.04);
}
.photo-upload-area__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.photo-upload-area__text { color: var(--bs-gray-600); font-size: 0.8rem; }

.photo-previews { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.photo-preview {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 2px solid var(--bs-gray-200);
    animation: fadeSlideIn 0.3s ease;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--bs-danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.photo-preview__remove:hover { background: #c0392b; }

/* --- Geo status --- */
.geo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
/* --- Note presets --- */
.note-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.note-presets__label {
    font-size: 0.75rem;
    color: var(--bs-gray-500);
    margin-right: 0.25rem;
}
.note-presets__btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 2rem;
    color: #1a3a2a;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.note-presets__btn:hover {
    background: #1a3a2a;
    color: #fff;
    border-color: #1a3a2a;
}

.geo-status--success { background: rgba(111,190,149,0.15); color: var(--bs-success); }
.geo-status--error { background: rgba(235,89,97,0.15); color: var(--bs-danger); }
.geo-status--loading { background: rgba(253,215,87,0.2); color: #b8860b; }

/* --- Leaflet popups --- */
.leaflet-popup-content { font-family: var(--bs-font-sans-serif); font-size: 0.75rem; line-height: 1.6; }
.popup-title { font-weight: 700; color: #1a3a2a; margin-bottom: 0.25rem; font-size: 0.85rem; }
.popup-token {
    font-family: monospace;
    font-size: 0.7rem;
    color: #069999;
    background: rgba(6,153,153,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 0.2rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.popup-info { color: var(--bs-gray-600); margin-bottom: 0.25rem; }
.popup-photos { display: flex; gap: 0.25rem; margin: 0.5rem 0; }
.popup-photos img {
    width: 60px; height: 60px; object-fit: cover;
    border-radius: 0.2rem; border: 1px solid var(--bs-gray-200);
}
.popup-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #069999;
    font-size: 0.8rem;
}
.popup-link:hover { color: #1a3a2a; }

/* --- Zoom controls custom --- */
.linfa-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
}
.linfa-zoom-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #1a3a2a;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}
.linfa-zoom-btn:hover {
    background: #1a3a2a;
    color: #fff;
}
.linfa-zoom-btn--reset {
    font-size: 1rem;
    margin-top: 2px;
}

/* --- Loading overlay --- */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loading-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.loading-overlay__content { text-align: center; }
.loading-overlay .loading-text {
    display: block;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    text-align: center;
}

.linfa-loader { display: flex; justify-content: center; gap: 0.5rem; }
.linfa-loader__leaf {
    width: 12px; height: 12px; border-radius: 50%;
    background: #6fbe95;
    animation: linfaPulse 1.2s ease-in-out infinite;
}
.linfa-loader__leaf:nth-child(2) { animation-delay: 0.2s; background: #069999; }
.linfa-loader__leaf:nth-child(3) { animation-delay: 0.4s; background: #0a8c6e; }
@keyframes linfaPulse {
    0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
    40%         { transform: scale(1.2); opacity: 1; }
}

/* --- Token badge --- */
.token-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #069999;
    background: rgba(6,153,153,0.08);
    border: 2px solid #069999;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    letter-spacing: 0.04em;
}
.token-badge--light {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

/* --- Success animations --- */
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    display: block;
    animation: successPop 0.5s ease;
}
@keyframes successPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.success-box-appear { animation: fadeSlideIn 0.5s ease; }

/* --- Recap list --- */
.recap-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-gray-300);
    font-size: 0.85rem;
}
.recap-list__item:last-child { border-bottom: none; }
.recap-list__item--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    padding: 0.75rem 0.75rem;
    border-radius: 0.4rem;
    margin: 0 -0.75rem;
}
.recap-list__item--link:hover { background: rgba(6,153,153,0.06); }
.recap-list__token { flex-shrink: 0; }
.recap-list__token code {
    font-size: 0.72rem;
    color: #069999;
    background: rgba(6,153,153,0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}
.recap-list__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recap-list__date { flex-shrink: 0; color: var(--bs-gray-500); font-size: 0.75rem; }

/* --- PEC instructions --- */
.pec-instructions {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    text-align: left;
}
.pec-instructions h3 { font-size: 1.05rem; margin-bottom: 1rem; color: #1a3a2a; }
.pec-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.pec-list li { padding: 0.6rem 0; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; }
.pec-list li:last-child { border-bottom: none; }
.pec-list a { color: #069999; font-weight: 600; word-break: break-all; }
/* --- PEC ente cards (segnalazione.php) --- */
.pec-enti-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pec-ente-card {
    background: var(--bs-gray-100);
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
}
.pec-ente-card__name {
    font-weight: 700;
    font-size: 0.82rem;
    color: #1a3a2a;
    margin-bottom: 0.35rem;
}
.pec-ente-card__pec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.pec-ente-card__pec code {
    color: #069999;
    background: rgba(6,153,153,0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.78rem;
    word-break: break-all;
}
.pec-ente-card__copy {
    background: none;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.25rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
}
.pec-ente-card__copy:hover { background: var(--bs-gray-200); }
.pec-ente-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bs-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pec-ente-card__email {
    font-size: 0.78rem;
    color: var(--bs-gray-600);
    margin-top: 0.25rem;
}

.pec-note {
    font-size: 0.8rem;
    color: var(--bs-gray-600);
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
}

/* =====================================================
   SUCCESS — Sezioni azione (email + PEC copia)
   ===================================================== */
.success-actions-section {
    max-width: 680px;
    margin: 2rem auto 0;
    text-align: center;
}
.success-actions-section__title {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a3a2a;
    margin-bottom: 0.5rem;
}
.success-actions-section__desc {
    font-size: 0.88rem;
    color: var(--bs-gray-600);
    margin-bottom: 1.5rem;
}

/* --- Action card (email + PEC) --- */
.success-action-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    text-align: left;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.success-action-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    color: #fff;
}
.success-action-card__header--teal {
    background: linear-gradient(135deg, #069999 0%, #0bb5a0 100%);
}
.success-action-card__header--dark {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3e 100%);
}
.success-action-card__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.success-action-card__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    color: #fff;
}
.success-action-card__sub {
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 0.15rem 0 0;
}
.success-action-card__body {
    padding: 1.25rem;
}
.success-action-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
}
.success-action-card__detail {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}
.success-action-card__detail span {
    color: var(--bs-gray-500);
    min-width: 90px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.success-action-card__detail strong {
    color: #1a3a2a;
    word-break: break-all;
}
.success-action-card__warning {
    font-size: 0.8rem;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.4rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.success-action-card__btn {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.75rem;
    border-radius: 0.4rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.success-action-card__btn--send {
    background: #069999;
    color: #fff;
}
.success-action-card__btn--send:hover {
    background: #057a7a;
    transform: translateY(-1px);
}
.success-action-card__btn--send:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}
.success-action-card__feedback {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.success-action-card__feedback--ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.success-action-card__feedback--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* --- PEC copy grid --- */
.pec-copy-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.pec-copy-field {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}
.pec-copy-field__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-gray-500);
    padding: 0.5rem 0.85rem 0.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.pec-copy-field__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
}
.pec-copy-field__value {
    flex: 1;
    font-size: 0.82rem;
    color: #1a3a2a;
    background: transparent;
    word-break: break-all;
    line-height: 1.4;
}
.pec-copy-field__value--truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pec-copy-field__btn {
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid #069999;
    color: #069999;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.pec-copy-field__btn:hover {
    background: #069999;
    color: #fff;
}
.pec-copy-field__btn--success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}
.pec-copy-reminder {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.4rem;
    font-size: 0.82rem;
    color: #1e40af;
    line-height: 1.5;
}
.pec-copy-reminder code {
    background: rgba(30, 64, 175, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.78rem;
}

/* --- Modal --- */
.linfa-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.linfa-modal.active { display: flex; animation: fadeIn 0.2s ease; }
.linfa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.linfa-modal__content {
    position: relative;
    background: #fff;
    border-radius: 0.75rem;
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
    animation: fadeSlideIn 0.3s ease;
}
.linfa-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bs-gray-200);
}
.linfa-modal__header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #1a3a2a; }
.linfa-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bs-gray-500);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.linfa-modal__close:hover { color: var(--bs-dark); }
.linfa-modal__body { padding: 1.5rem; font-size: 0.88rem; line-height: 1.7; color: var(--bs-gray-700); }
.linfa-modal__body p:last-child { margin-bottom: 0; }
.linfa-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bs-gray-200);
}

/* --- Law cards (riferimenti.php) --- */
.law-card {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(30,34,40,0.04);
}
.law-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #069999;
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}
.law-card__title { font-size: 1.15rem; font-weight: 700; color: #1a3a2a; margin-bottom: 1rem; }
.law-card__body { font-size: 0.88rem; line-height: 1.7; color: var(--bs-gray-700); }
.law-card__body p:last-child { margin-bottom: 0; }
.law-card__quote {
    border-left: 3px solid #069999;
    padding-left: 1rem;
    margin: 0 0 1rem 0;
    font-style: italic;
    color: var(--bs-gray-600);
}

/* --- Segnalazione photos --- */
.segnalazione-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.segnalazione-photos__item {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--bs-gray-200);
    box-shadow: 0 2px 8px rgba(30,34,40,0.06);
}
.segnalazione-photos__item img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* (piantando banner rimosso — credit in footer) */

/* --- Admin --- */
.badge-pending { background: rgba(253,215,87,0.2); color: #b8860b; }
.badge-approved { background: rgba(111,190,149,0.15); color: var(--bs-success); }
.badge-rejected { background: rgba(235,89,97,0.15); color: var(--bs-danger); }
.admin-photo-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 0.2rem; margin-right: 2px; }

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--bs-gray-200);
    padding-bottom: 0.5rem;
}
.admin-tabs a {
    padding: 0.5rem 0.85rem;
    border-radius: 0.4rem 0.4rem 0 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bs-gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.admin-tabs a:hover { background: var(--bs-gray-200); color: var(--bs-dark); }
.admin-tabs a.active { background: #1a3a2a; color: #fff; border-radius: 0.4rem; }

/* Admin tables */
.admin-table {
    font-size: 0.8rem;
}
.admin-table thead {
    background: #1a3a2a;
    color: #fff;
}
.admin-table thead th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
}
.admin-table tbody td {
    padding: 0.5rem;
    vertical-align: middle;
}
.admin-cell-truncate {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Admin pagination */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}
.pagination-bar a, .pagination-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.3rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--bs-gray-600);
    transition: all 0.2s ease;
}
.pagination-bar a:hover { background: var(--bs-gray-200); color: var(--bs-dark); }
.pagination-bar .active { background: #1a3a2a; color: #fff; }

/* --- Footer --- */
.site-footer {
    background: #1a3a2a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.75rem;
}
.site-footer a { color: #fff; }
.site-footer__desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    max-width: 520px;
    margin: 0.5rem auto 0.5rem;
    line-height: 1.6;
}
.site-footer__desc a { color: rgba(255,255,255,0.8); }
.site-footer__contact {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin: 0.25rem 0 0.5rem;
}
.site-footer__contact a { color: rgba(255,255,255,0.85); }
.site-footer__social { margin: 0.6rem 0; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.site-footer__ig,
.site-footer__tg {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s;
}
.site-footer__ig:hover,
.site-footer__tg:hover { color: #fff; }
.site-footer__ig-icon,
.site-footer__tg-icon { vertical-align: middle; flex-shrink: 0; }

/* =====================================================
   Guida — Interactive tabs + cards
   ===================================================== */
.guida-interactive {
    padding: 2rem 0 3rem;
}

/* Tabs row */
.guida-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.guida-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 2px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-gray-600);
    min-width: 100px;
    text-align: center;
}
.guida-tab:hover {
    border-color: #069999;
    color: #1a3a2a;
    background: rgba(6,153,153,0.04);
}
.guida-tab--active {
    border-color: #069999;
    background: rgba(6,153,153,0.08);
    color: #1a3a2a;
    box-shadow: 0 2px 8px rgba(6,153,153,0.15);
}
.guida-tab__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* Card wrapper */
.guida-card-wrapper {
    position: relative;
}

/* Individual card */
.guida-card {
    display: none;
    animation: guidaCardIn 0.35s ease;
}
.guida-card--visible {
    display: block;
}
@keyframes guidaCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card header */
.guida-card__header {
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.75rem 2rem 1.5rem;
    color: #fff;
}
.guida-card__header h2 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: #fff;
}
.guida-card__header p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}
.guida-card__header--danger { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.guida-card__header--success { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.guida-card__header--warning { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.guida-card__header--dark { background: linear-gradient(135deg, #1a3a2a 0%, #0f2318 100%); }

/* Badge inside header */
.guida-card__badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.guida-card__badge--green { background: rgba(255,255,255,0.25); }
.guida-card__badge--orange { background: rgba(255,255,255,0.25); }
.guida-card__badge--dark { background: rgba(255,255,255,0.15); }

/* Card body */
.guida-card__body {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 2rem;
}
.guida-card__body h3 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a3a2a;
    margin-bottom: 1rem;
}

/* Illustration (before/after) */
.guida-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    background: var(--bs-gray-100);
    border-left: 1px solid var(--bs-gray-200);
    border-right: 1px solid var(--bs-gray-200);
}
.guida-illustration__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.guida-illustration__panel svg {
    max-width: 180px;
    height: auto;
}
.guida-illustration__arrow {
    font-size: 2rem;
    color: var(--bs-gray-400);
    flex-shrink: 0;
}
.guida-illustration__vs {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bs-gray-400);
    text-transform: uppercase;
    flex-shrink: 0;
}
.guida-illustration__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
}
.guida-illustration__label--good {
    background: #f0fdf4;
    color: #16a34a;
}
.guida-illustration__label--bad {
    background: #fef2f2;
    color: #dc2626;
}

/* Checklist bullet (colored dot) */
.guida-checklist__bullet {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 0.4rem;
}
.guida-checklist__bullet--danger { background: #dc2626; }
.guida-checklist__bullet--warning { background: #f59e0b; }
.guida-checklist__bullet--success { background: #16a34a; }

/* Grid item icon */
.guida-grid__item-icon {
    margin-bottom: 0.75rem;
}

/* Checklist */
.guida-checklist {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.guida-checklist__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a3a2a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}
.guida-checklist__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-gray-100);
}
.guida-checklist__item:last-child { border-bottom: none; }
.guida-checklist__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.guida-checklist__item strong {
    display: block;
    font-size: 0.88rem;
    color: #1a3a2a;
    margin-bottom: 0.2rem;
}
.guida-checklist__item p {
    font-size: 0.82rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Alert */
.guida-alert {
    border-radius: 0.6rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 1rem;
}
.guida-alert strong { display: block; margin-bottom: 0.25rem; }
.guida-alert--danger { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; }
.guida-alert--warning { background: #fffbeb; border-left: 4px solid #f59e0b; color: #78350f; }
.guida-alert--info { background: #f0f9ff; border-left: 4px solid #0284c7; color: #0c4a6e; }
.guida-alert--success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #14532d; }

/* Comparison */
.guida-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.guida-comparison__col {
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.guida-comparison__col h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.guida-comparison__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.guida-comparison__col li {
    font-size: 0.82rem;
    line-height: 1.6;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.guida-comparison__col li::before {
    position: absolute;
    left: 0;
    font-size: 0.75rem;
}
.guida-comparison__col--good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.guida-comparison__col--good h3 { color: #16a34a; }
.guida-comparison__col--good li::before { content: '\2713'; color: #16a34a; }
.guida-comparison__col--bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.guida-comparison__col--bad h3 { color: #dc2626; }
.guida-comparison__col--bad li::before { content: '\2717'; color: #dc2626; }

/* Grid */
.guida-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.guida-grid__item {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.6rem;
    padding: 1.25rem;
}
.guida-grid__item h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a3a2a;
    margin-bottom: 0.5rem;
}
.guida-grid__item p {
    font-size: 0.8rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Law list */
.guida-law-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.guida-law {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.6rem;
    padding: 1.25rem 1.5rem;
}
.guida-law__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.guida-law__badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: #1a3a2a;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.guida-law__header h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0;
}
.guida-law__quote {
    font-size: 0.82rem;
    font-style: italic;
    color: #374151;
    background: #f9fafb;
    border-left: 3px solid #1a3a2a;
    padding: 0.6rem 1rem;
    margin: 0.5rem 0 0.75rem;
    border-radius: 0 0.25rem 0.25rem 0;
    line-height: 1.6;
}
.guida-law p {
    font-size: 0.82rem;
    color: var(--bs-gray-600);
    line-height: 1.7;
    margin: 0;
}

/* Steps list */
.guida-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.guida-steps-list__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.guida-steps-list__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #069999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 2px;
}
.guida-steps-list__item strong {
    display: block;
    font-size: 0.92rem;
    color: #1a3a2a;
    margin-bottom: 0.2rem;
}
.guida-steps-list__item p {
    font-size: 0.82rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Guida responsive */
@media (max-width: 768px) {
    .guida-tabs { gap: 0.35rem; }
    .guida-tab {
        min-width: 70px;
        padding: 0.6rem 0.7rem 0.5rem;
        font-size: 0.65rem;
    }
    .guida-tab__icon { width: 30px; height: 30px; }
    .guida-card__header { padding: 1.25rem 1.25rem 1rem; }
    .guida-card__header h2 { font-size: 1.2rem; }
    .guida-card__body { padding: 1.25rem; }
    .guida-illustration {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
    }
    .guida-illustration__panel svg { max-width: 140px; }
    .guida-illustration__arrow { transform: rotate(90deg); font-size: 1.5rem; }
    .guida-comparison { grid-template-columns: 1fr; }
    .guida-grid { grid-template-columns: 1fr; }
    .guida-law__header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* =====================================================
   Cosa scrivere — template email
   ===================================================== */
.cosa-scrivere-section {
    padding: 2rem 0 3rem;
}
.cosa-scrivere-intro {
    font-size: 0.92rem;
    color: var(--bs-gray-700);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.cosa-scrivere-intro a { color: #069999; font-weight: 600; }

/* Template card */
.template-card {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30,34,40,0.06);
}
.template-card__header {
    padding: 1.5rem 2rem 1.25rem;
    color: #fff;
}
.template-card__header h2 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 0 0.4rem;
    color: #fff;
}
.template-card__header p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}
.template-card__header--green { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
.template-card__header--dark { background: linear-gradient(135deg, #1a3a2a 0%, #0f2318 100%); }
.template-card__header--blue { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); }

.template-card__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.template-card__body {
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-top: none;
    padding: 1.5rem 2rem;
}
.template-card__field {
    margin-bottom: 1.25rem;
    position: relative;
}
.template-card__field:last-child { margin-bottom: 0; }
.template-card__field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-gray-500);
    margin-bottom: 0.4rem;
}
.template-card__copyable {
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-200);
    border-radius: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--bs-gray-700);
    font-family: var(--bs-font-sans-serif);
}
.template-card__copyable--body {
    white-space: pre-wrap;
    font-size: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
}
.template-card__copy-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: #069999;
    color: #fff;
    border: none;
    border-radius: 0.3rem;
    padding: 0.4rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.template-card__copy-btn:hover { background: #1a3a2a; }
.template-card__copy-btn--success {
    background: #16a34a !important;
}

/* Tips */
.template-tips {
    background: var(--bs-gray-100);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}
.template-tips h3 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a3a2a;
    margin-bottom: 1.25rem;
}
.template-tips__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.template-tips__item {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--bs-gray-200);
}
.template-tips__item strong {
    display: block;
    font-size: 0.85rem;
    color: #1a3a2a;
    margin-bottom: 0.3rem;
}
.template-tips__item p {
    font-size: 0.78rem;
    color: var(--bs-gray-600);
    line-height: 1.6;
    margin: 0;
}
.template-tips__item a { color: #069999; font-weight: 600; }

@media (max-width: 768px) {
    .template-card__body { padding: 1rem 1.25rem; }
    .template-card__header { padding: 1.25rem 1.25rem 1rem; }
    .template-card__copyable--body { max-height: 300px; }
    .template-tips__grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Modal benvenuto
   ===================================================== */
.linfa-welcome {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.linfa-welcome.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.linfa-welcome__box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2.5rem 2rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.linfa-welcome__close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--bs-gray-500);
    cursor: pointer;
    line-height: 1;
}
.linfa-welcome__close:hover { color: #1a3a2a; }
.linfa-welcome__box h2 {
    font-family: 'Libre Franklin', var(--bs-font-sans-serif);
    font-weight: 800;
    font-size: 1.3rem;
    color: #1a3a2a;
    margin-bottom: 1rem;
}
.linfa-welcome__box p {
    font-size: 0.88rem;
    color: var(--bs-gray-600);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}
.linfa-welcome__btn {
    display: inline-block;
    margin-top: 0.75rem;
    background: #1a3a2a;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.75rem;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: background 0.2s ease;
}
.linfa-welcome__btn:hover { background: #069999; color: #fff; }
.linfa-welcome__tg {
    display: inline-block;
    margin-top: 0.5rem;
    color: #26A5E4;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.linfa-welcome__tg:hover { color: #1a8bc7; }

/* =====================================================
   Cookie banner
   ===================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8500;
    background: #1a3a2a;
    color: rgba(255,255,255,0.85);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner__text { flex: 1; line-height: 1.5; }
.cookie-banner__text a { color: #6fbe95; }
.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-banner__btn {
    border: none;
    border-radius: 0.3rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cookie-banner__btn:hover { opacity: 0.85; }
.cookie-banner__btn--accept {
    background: #6fbe95;
    color: #1a3a2a;
}
.cookie-banner__btn--reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   Responsive — Tablet (max 768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Home */
    .home-hero { padding: 3rem 0 2.5rem; }
    .home-hero__title { font-size: 2rem; }
    .home-hero__desc { font-size: 0.92rem; }
    .home-problem__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .home-problem__text p { font-size: 1.1rem; }
    .home-info__grid, .home-info__grid--3 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    /* Segnala */
    .hero-compact h1 { font-size: 1.5rem; }
    .stepper { flex-direction: column; align-items: flex-start; }
    .stepper__step::after { display: none; }
    .photo-preview { width: 85px; height: 85px; }

    /* Mappa */
    .map-layout { grid-template-columns: 1fr; }
    .map-layout__sidebar { max-height: 300px; }
    #map { height: 350px; }

    /* Segnalazione pubblica */
    .recap-list__item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .recap-list__info { white-space: normal; }
    .segnalazione-photos { grid-template-columns: 1fr; }
    .segnalazione-photos__item img { height: 250px; }

    /* Modali e cookie */
    .cookie-banner { flex-direction: column; text-align: center; }
    .linfa-welcome__box { padding: 2rem 1.5rem; }

    /* Admin */
    .admin-tabs {
        gap: 0.15rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
    }
    .admin-tabs a {
        font-size: 0.75rem;
        padding: 0.4rem 0.65rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* =====================================================
   Responsive — Mobile (max 576px)
   ===================================================== */
@media (max-width: 576px) {
    /* Global spacing */
    .container, .container-xl { padding-left: 1rem; padding-right: 1rem; }
    .py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

    /* Home */
    .home-hero { padding: 2.5rem 0 2rem; }
    .home-hero__title { font-size: 1.6rem; line-height: 1.2; }
    .home-hero__desc { font-size: 0.85rem; }
    .home-hero .btn { font-size: 0.88rem; padding: 0.65rem 1.5rem; }
    .home-info__grid, .home-info__grid--3 { grid-template-columns: 1fr; gap: 1rem; }

    /* Hero compact (segnala, mappa, etc.) */
    .hero-compact { padding: 1.5rem 0 1.25rem; }
    .hero-compact h1 { font-size: 1.3rem; }
    .hero-compact p { font-size: 0.82rem; }

    /* Segnala form */
    .form-step .card-body, .form-step .p-6 { padding: 1rem !important; }
    .note-presets { gap: 0.25rem; }
    .note-presets__btn { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
    .photo-preview { width: 70px; height: 70px; }
    .invalid-feedback { font-size: 0.78rem; }
    .form-control.is-invalid { border-width: 2px; }

    /* Success cards */
    .success-action-card__header { padding: 0.85rem 1rem; }
    .success-action-card__body { padding: 1rem; }
    .pec-copy-field__row { flex-direction: column; align-items: stretch; }
    .pec-copy-field__btn { text-align: center; }
    .success-action-card__detail { flex-direction: column; gap: 0.15rem; }
    .token-badge { font-size: 1rem; padding: 0.5rem 1rem; }

    /* Mappa */
    #map { height: 300px; }
    .map-layout__sidebar { max-height: 250px; font-size: 0.8rem; }

    /* Segnalazione pubblica */
    .segnalazione-photos__item img { height: 200px; }

    /* Footer */
    .site-footer { padding: 1rem 0; }
    .site-footer__desc { font-size: 0.68rem; }

    /* Cards generiche */
    .card-body { padding: 1rem; }
    .card .p-4 { padding: 1rem !important; }

    /* Welcome modal */
    .linfa-welcome__box {
        padding: 1.5rem 1.25rem;
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    .linfa-welcome__box h2 { font-size: 1.1rem; }
    .linfa-welcome__box p { font-size: 0.82rem; }

    /* Pagine testo (termini, comune, guida) */
    .legal-section { margin-bottom: 1.5rem; }
    .legal-section h2 { font-size: 1rem; }

    /* Admin */
    .admin-table { font-size: 0.72rem; }
    .admin-table thead th { font-size: 0.68rem; padding: 0.4rem 0.35rem; }
    .admin-table tbody td { padding: 0.35rem; }
    .admin-photo-thumb { width: 32px; height: 32px; }
    .admin-cell-truncate { max-width: 120px; }
}

/* =====================================================
   Responsive — Small mobile (max 380px)
   ===================================================== */
@media (max-width: 380px) {
    .linfa-logo { font-size: 1.1rem !important; }
    .linfa-logo__by { display: none; }
    .home-hero__title { font-size: 1.4rem; }
    .btn-lg { font-size: 0.85rem; padding: 0.6rem 1.2rem; }
}

/* =====================================================
   Sticky footer (tutte le pagine)
   ===================================================== */
html, body { height: 100%; }
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-footer { margin-top: auto; flex-shrink: 0; }

/* =====================================================
   Admin — Navbar e footer colore diverso
   ===================================================== */
.linfa-navbar--admin {
    background: #2c2c3e;
}
.linfa-navbar--admin .nav-link:hover {
    opacity: 0.85;
}
.site-footer--admin {
    background: #2c2c3e;
}

/* Admin — form select leggibile */
.admin-user-form .form-select {
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    font-size: 0.85rem;
    padding: 0.35rem 2rem 0.35rem 0.5rem;
}
.admin-user-form .form-select option {
    color: #212529;
    background: #fff;
}
