/* ==========================================================================
   ANIMALISOS 2026 — CLEAN REWRITE (MOBILE FIRST)
   Obiettivo: CSS coerente, senza duplicazioni :root, senza “toppe” sparse.
   Struttura:
   1) Tokens + reset base
   2) Layout container/sections
   3) Buttons + pills (riusabili)
   4) Header 2026 (.h26*)
   5) Hero 2026 (.hero-2026*)
   6) Card grid (urgenti/news) (.home-news*)
   7) Report list (.report-*)
   8) Modal (.modal*)
   ========================================================================== */

/* =========================
   1) TOKENS + BASE
   ========================= */
:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #12161c;
    --muted: rgba(18,22,28,.70);
    --line: rgba(0,0,0,.10);
    --red: #d72626;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-sm: 0 12px 35px rgba(0,0,0,.05);
    --shadow-md: 0 18px 50px rgba(0,0,0,.06);
    --shadow-lg: 0 25px 70px rgba(0,0,0,.25);
    --container: 1100px;
    --gutter: 24px;
    --header-h: 62px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #f4f6f9;
    background-image: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url("/assets/img/bg-animalisos-soft.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
}
/* ===== TYPO MODERNA (globale) ===== */
:root {
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    font-weight: 500;
}

/* Titoli più “solidi” */
h1, h2, h3, h4 {
    font-family: var(--font);
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 950;
    line-height: 1.15;
}

h2 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

h3 {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

/* Testo normale */
p, li, label, input, select, textarea, button {
    font-family: var(--font);
}

a {
    color: inherit;
}

/* Bottoni più moderni (senza effetto “default”) */
button, input, select, textarea {
    font: inherit;
}

small, .muted {
    color: var(--muted);
}

/* =========================
   2) LAYOUT
   ========================= */
.container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.section {
    padding: 22px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: .01em;
}

/* Wrapper main usato dal layout header/footer */
.h26-main {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    padding: 14px 0 60px;
}

/* =========================
   3) UI PRIMITIVES (buttons/pills)
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 950;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 14px 35px rgba(215,38,38,.25);
}

.btn--ghost {
    background: #fff;
    color: var(--text);
    border-color: rgba(0,0,0,.12);
}

.btn--sm {
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
}

.btn--big {
    height: 46px;
    padding: 0 16px;
    border-radius: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 950;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.03);
}

/* Varianti badge */
.badge--ok {
    background: rgba(76,175,80,0.12);
    border-color: rgba(76,175,80,0.35);
    color: rgba(46,125,50,0.95);
}

.badge--danger {
    background: rgba(214,39,39,.10);
    border-color: rgba(214,39,39,.22);
    color: #b71c1c;
}

/* Link azione “vedi tutte” */
.btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    color: var(--red);
    background: rgba(215,38,38,.06);
    border: 1px solid rgba(215,38,38,.25);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

    .btn-news-all:hover {
        background: var(--red);
        color: #fff;
        box-shadow: 0 10px 25px rgba(215,38,38,.25);
        transform: translateY(-2px);
    }

/* =========================
   4) HEADER 2026 (.h26*)
   ========================= */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.h26 {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.h26-inner {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.h26-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}

.h26-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex: 0 0 36px;
}

.h26-brandtext {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .h26-brandtext strong {
        font-weight: 950;
        line-height: 1.05;
        font-size: 14.5px;
    }

    .h26-brandtext em {
        font-style: normal;
        font-weight: 800;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 46vw;
    }

/* =========================
   NAVBAR MOBILE FIX (h26)
   ========================= */

/* base: evita wrap “a caso” su desktop */
.h26-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

/* nav desktop: resta in riga */
.h26-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* burger sempre cliccabile */
.h26-burger {
    display: none;
    border: 0;
    background: transparent;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

    .h26-burger:focus {
        outline: 2px solid rgba(215,38,38,.25);
        outline-offset: 2px;
    }

/* ---------- MOBILE ---------- */
@media (max-width: 920px) {

    /* Mostra burger, compatta brand */
    .h26-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .h26-brandtext em {
        display: none;
    }
    /* togli sottotitolo su mobile */
    .h26-logo {
        width: 34px;
        height: 34px;
    }

    /* Nav diventa drawer sotto header */
    .h26-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px; /* regola se header è più alto */
        z-index: 999;
        display: none; /* chiuso di default */
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px 14px;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 18px 40px rgba(0,0,0,.10);
    }

        /* Stato aperto (classe aggiunta via JS) */
        .h26-nav.is-open {
            display: flex;
        }

    /* link full width, più “tap-friendly” */
    .h26-link,
    .nav-link {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
    }

    /* CTA stack */
    .h26-cta {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 6px 0 0;
        padding: 0;
    }

        .h26-cta a {
            width: 100%;
            height: 42px;
        }

    /* auth: full width, ordinato */
    .auth-badge,
    .auth-login {
        width: 100%;
        margin: 6px 0 0 !important;
        padding: 10px 12px !important;
        border-radius: 14px !important;
    }

    .auth-meta {
        display: block !important;
    }

    .auth-name, .auth-sub {
        max-width: 100% !important;
    }

    /* divisori desktop: off */
    .h26-cta::before,
    .auth-badge::before,
    .auth-login::before {
        display: none !important;
    }
}

/* evita che il dropdown copra roba se header non è position relative */
.h26 {
    position: relative;
}

/* quick pills under header */
.h26-quick {
    padding: 10px 0 0;
}

.h26-quickinner {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.h26-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: var(--red);
}

/* desktop header */
@media (min-width: 980px) {
    .h26-burger {
        display: none;
    }

    .h26-nav {
        position: static;
        inset: auto;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        border: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .h26-link {
        margin: 0;
        padding: 10px 10px;
        border: 0;
        background: transparent;
    }

        .h26-link:hover {
            text-decoration: underline;
        }

    .h26-cta {
        margin: 0;
        grid-template-columns: auto auto;
    }

    .h26-btn {
        height: 40px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .h26-brandtext em {
        max-width: 420px;
    }
}

/* =========================
   5) HERO 2026
   ========================= */
.hero-2026 {
    margin-top: 10px;
    margin-bottom: 14px;
}

    .hero-2026 .hero-card {
        background: linear-gradient(180deg, rgba(215,38,38,.07), rgba(255,255,255,1));
        border: 1px solid rgba(215,38,38,.18);
        border-radius: var(--radius);
        padding: 16px;
        box-shadow: var(--shadow-md);
    }

    .hero-2026 h1 {
        margin: 0;
        font-size: 22px;
        font-weight: 1000;
        line-height: 1.12;
    }

    .hero-2026 p {
        margin: 8px 0 0;
        color: var(--muted);
        font-weight: 700;
        line-height: 1.35;
    }

    .hero-2026 .hero-actions {
        margin-top: 14px;
        display: grid;
        gap: 10px;
    }

    .hero-2026 .hero-cta {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-2026 .btn-big { /* compatibilità markup esistente */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 0 16px;
        border-radius: 16px;
        font-weight: 950;
        text-decoration: none;
        border: 1px solid transparent;
    }

    .hero-2026 .btn-primary {
        background: var(--red);
        color: #fff;
        box-shadow: 0 14px 35px rgba(215,38,38,.25);
    }

    .hero-2026 .btn-ghost {
        background: #fff;
        border-color: rgba(0,0,0,.12);
        color: var(--text);
    }

    .hero-2026 .hero-pillbar {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-2026 .hero-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,.10);
        background: rgba(255,255,255,.85);
        font-weight: 900;
        font-size: 13px;
        text-decoration: none;
        color: var(--text);
    }

/* =========================
   6) CARD GRID (URGENTI/NEWS)
   ========================= */
.home-news.section {
    padding-top: 6px;
    padding-bottom: 12px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
}

.home-news-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--card);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.06);
    min-height: 100%;
}

.home-news-img {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.03);
}

    .home-news-img img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.home-news-meta {
    margin: 0;
    font-size: 11px;
    color: var(--red);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-news-title {
    margin: 0;
    font-size: 16px;
    font-weight: 950;
    color: #14181d;
    line-height: 1.2;
}

.home-news-excerpt {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(18,22,28,.78);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-news-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

    .home-news-actions a {
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 900;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(0,0,0,.12);
        background: #fff;
        color: var(--text);
    }

        .home-news-actions a.btn-red {
            background: var(--red);
            border-color: transparent;
            color: #fff;
        }

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

@media (min-width: 1040px) {
    .home-news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1240px) {
    .home-news-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================
   7) REPORT LIST
   ========================= */
#segnalazioni {
    margin-bottom: 80px;
}

.report-list {
    padding-bottom: 40px;
}

.report-row {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.report-thumb {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.08);
}

    .report-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.report-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.report-title {
    font-weight: 950;
    font-size: 15px;
    line-height: 1.2;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(18,22,28,.75);
    font-weight: 800;
}

.report-desc {
    font-size: 13.5px;
    color: rgba(18,22,28,.92);
    line-height: 1.35;
}

.report-warning {
    margin-top: 4px;
    font-size: 12.5px;
    color: #c62828;
    font-weight: 850;
}

.report-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.pill-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(0,0,0,.03);
    color: #222;
    text-decoration: none;
    font-weight: 950;
    font-size: 12px;
}

    .pill-map.is-disabled {
        opacity: .45;
        pointer-events: none;
    }

@media (min-width: 900px) {
    .report-row {
        padding: 18px 20px;
        gap: 20px;
    }

    .report-thumb {
        width: 150px;
        height: 150px;
        flex: 0 0 150px;
    }

    .report-title {
        font-size: 18px;
    }

    .report-desc {
        font-size: 14px;
    }
}

/* =========================
   8) MODAL (contatto)
   ========================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    padding: 14px;
}

    .modal.is-open {
        display: flex;
    }

.modal-box {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow-lg);
}

    .modal-box h3 {
        margin: 0 0 12px;
        font-size: 18px;
    }

#contactForm label {
    display: block;
    font-weight: 950;
    font-size: 12px;
    margin-bottom: 6px;
    color: #111;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.14);
    outline: none;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-primary {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: var(--red);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.18);
    background: #fff;
    color: #111;
    font-weight: 950;
    cursor: pointer;
}

.form-response {
    margin-top: 12px;
}

    .form-response .ok {
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(76,175,80,0.12);
        border: 1px solid rgba(76,175,80,0.35);
        color: rgba(46,125,50,0.95);
        font-weight: 950;
    }

    .form-response .ko {
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(255,77,109,0.12);
        border: 1px solid rgba(255,77,109,0.35);
        color: rgba(198,40,40,0.95);
        font-weight: 950;
    }

    .form-response .mini {
        margin-top: 8px;
        opacity: .75;
        font-weight: 800;
        font-size: 12px;
        word-break: break-word;
    }
/* =========================
   FOOTER 2026 — rosso definitivo
   ========================= */

.site-footer {
    margin-top: 30px;
    padding: 30px 0 20px;
    background: linear-gradient(180deg, #d72626 0%, #b71b1b 100%);
    color: rgba(255,255,255,.92);
    border-top: 0;
}

    .site-footer .container {
        width: min(1100px, calc(100% - 24px));
        margin: 0 auto;
    }

/* Grid */
.footer-grid {
    display: grid;
    gap: 22px;
}

/* Titoli */
.footer-title {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.95);
    margin-bottom: 10px;
}

/* Link stack */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .footer-links a {
        text-decoration: none;
        font-weight: 850;
        color: rgba(255,255,255,.88);
    }

        .footer-links a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
            color: #fff;
        }

/* Testo semplice */
.footer-text {
    font-weight: 800;
    color: rgba(255,255,255,.86);
    line-height: 1.45;
}

/* Social pills */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .footer-social .social-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.55);
        background: rgba(255,255,255,.92);
        text-decoration: none;
        font-weight: 900;
        color: #a31616;
        box-shadow: 0 10px 25px rgba(0,0,0,.14);
    }

        .footer-social .social-link:hover {
            background: #fff;
            border-color: rgba(255,255,255,.75);
            color: #8f1111;
        }

    .footer-social .social-icon {
        width: 16px;
        height: 16px;
    }

/* Bottom */
.footer-bottom {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 900;
    color: rgba(255,255,255,.78);
}

    .footer-bottom .dot {
        opacity: .45;
    }

/* =========================
   MOBILE: una colonna, ma centrata e ordinata
   ========================= */
@media (max-width: 820px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        padding: 14px 12px;
        border-radius: 18px;
        background: rgba(255,255,255,.55);
        border: 1px solid rgba(0,0,0,.06);
        box-shadow: 0 14px 40px rgba(0,0,0,.04);
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-text {
        text-align: center;
    }
}

/* =========================
   DESKTOP/TABLET: 4 colonne
   ========================= */
@media (min-width: 821px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
    }

    .footer-col {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}

/* =========================
   ANNOUNCEMENT BANNER (2026)
   Markup: .announce-banner > .announce-inner > .announce-icon + .announce-text
   ========================= */

.announce-banner {
    width: min(var(--container), calc(100% - (var(--gutter) * 2))); 
    margin: 14px auto 12px;
}

.announce-inner {
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid rgba(214, 38, 38, 0.25);
    box-shadow: 0 12px 40px rgba(214, 38, 38, 0.08);
}

.announce-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(215,38,38,.12);
    border: 1px solid rgba(215,38,38,.25);
    font-size: 18px;
    line-height: 1;
}

.announce-text {
    min-width: 0;
}

.announce-title {
    font-weight: 950;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(18,22,28,.95);
    margin-bottom: 6px;
}

/* details/summary “pill” */
.announce-details {
    border: 0;
    padding: 0;
    margin: 0;
}

.announce-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.85);
    font-weight: 900;
    font-size: 13px;
    color: rgba(18,22,28,.90);
}

    .announce-summary::-webkit-details-marker {
        display: none;
    }

    .announce-summary::after {
        content: "▾";
        font-size: 12px;
        opacity: .75;
        transform: translateY(-1px);
    }

/* open state */
.announce-details[open] .announce-summary {
    border-color: rgba(215,38,38,.28);
    background: rgba(215,38,38,.08);
    color: var(--red);
}

    .announce-details[open] .announce-summary::after {
        content: "▴";
    }

/* body */
.announce-body {
    /* via la scatola bianca */
    margin-top: 10px;
    padding: 20px;
    border: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    /* tipografia più “2026” */
    font-size: 14px;
    line-height: 1.6;
    color: rgba(18,22,28,.92);
    font-weight: 650; /* più pieno senza essere “nero” */
}

    /* se il body contiene <p> o righe con <br> */
    .announce-body p {
        margin: 0 0 10px;
    }

        .announce-body p:last-child {
            margin-bottom: 0;
        }

    .announce-body strong {
        font-weight: 950;
    }

    /* link coerenti */
    .announce-body a {
        color: var(--red);
        font-weight: 950;
        text-decoration: underline;
        text-underline-offset: 2px;
    }


/* Mobile micro */
@media (max-width: 420px) {
    .announce-inner {
        grid-template-columns: 38px 1fr;
        padding: 12px;
        border-radius: 16px;
    }

    .announce-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 17px;
    }
}

/* Desktop: un filo più “premium” */
@media (min-width: 980px) {
    .announce-inner {
        padding: 16px 18px;
        border-radius: 20px;
    }

    .announce-title {
        font-size: 16px;
    }
}
/* (opzionale) apertura più “smooth” */
.announce-details .announce-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height .25s ease, opacity .2s ease, transform .25s ease;
}

.announce-details[open] .announce-body {
    max-height: 420px; /* sufficiente per testi normali */
    opacity: 1;
    transform: translateY(0);
}
/* ==========================
   CONTATTI — FORM CENTERED
   Aggiungi al CSS (vecchio o 2026),
   non serve inline in pagina
   ========================== */

#contatti .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

#contatti .section-title {
    font-weight: 900;
    font-size: 18px;
}

#contatti .section-sub {
    color: rgba(18,22,28,.70);
    font-weight: 700;
    font-size: 13.5px;
    text-align: right;
    max-width: 340px;
}

#contatti .contact-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 45px rgba(0,0,0,.06);
}

#contatti .contact-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
}

    #contatti .contact-msg.is-ok {
        background: rgba(76,175,80,0.12);
        border: 1px solid rgba(76,175,80,0.35);
        color: rgba(46,125,50,0.95);
    }

    #contatti .contact-msg.is-ko {
        background: rgba(255,77,109,0.12);
        border: 1px solid rgba(255,77,109,0.35);
        color: rgba(198,40,40,0.95);
    }

#contatti .form {
    display: grid;
    gap: 14px;
}

#contatti .form-row label {
    display: block;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 6px;
    color: #12161c;
}

#contatti .req {
    color: #d72626;
    font-weight: 900;
}

#contatti input[type="text"],
#contatti input[type="email"],
#contatti input[type="tel"],
#contatti select,
#contatti textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.14);
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}

#contatti textarea {
    min-height: 120px;
    resize: vertical;
}

    #contatti input:focus,
    #contatti select:focus,
    #contatti textarea:focus {
        border-color: rgba(215,38,38,.55);
        box-shadow: 0 0 0 4px rgba(215,38,38,.12);
    }

#contatti .form-err {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: #c62828;
}

#contatti .form-sep {
    border: 0;
    height: 1px;
    background: rgba(0,0,0,.10);
    margin: 8px 0;
}

#contatti .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 760px) {
    #contatti .form-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

#contatti .form-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 6px;
}

#contatti .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 0;
    background: #d72626;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(215,38,38,.20);
}

    #contatti .btn-primary:hover {
        transform: translateY(-1px);
    }

#contatti .form-note {
    margin-top: 8px;
    color: rgba(18,22,28,.70);
    font-weight: 700;
    font-size: 13px;
}
/* ==========================
   URGENT DETAIL — 2026
   ========================== */

/* Wrapper pagina */
.urgent-detail {
    display: grid;
    gap: 16px;
}

/* HERO */
.urgent-hero {
    background: var(--card);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.06);
}

.urgent-banner {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.urgent-hero-body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.urgent-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Varianti pill */
.pill-urgent {
    background: rgba(215,38,38,.10);
    border: 1px solid rgba(215,38,38,.28);
    color: rgba(215,38,38,.95);
}

/* Titoli + place */
.urgent-h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 1000;
    letter-spacing: .01em;
    color: var(--text);
}

.urgent-place {
    font-weight: 850;
    color: rgba(18,22,28,.78);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ACTIONS */
.urgent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Bottoni base 2026 (riusabili) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 950;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: var(--text);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

.btn-small {
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 35px rgba(215,38,38,.22);
}

    .btn-primary:hover {
        box-shadow: 0 18px 45px rgba(215,38,38,.26);
    }

/* Box contenuti */
.urgent-box {
    padding: 16px;
}

.urgent-h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: .01em;
    color: var(--text);
}

.urgent-desc {
    color: rgba(18,22,28,.92);
    line-height: 1.55;
    font-weight: 650;
}

/* Mappa */
.urgent-map {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.03);
}

/* Responsive */
@media (min-width: 900px) {
    .urgent-banner {
        height: 340px;
    }

    .urgent-hero-body {
        padding: 18px 20px;
    }

    .urgent-h1 {
        font-size: 34px;
    }

    .urgent-map {
        height: 380px;
    }
}

@media (min-width: 1100px) {
    .urgent-detail {
        max-width: 980px;
        margin: 0 auto;
    }
}
.asl-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    color: #111;
    box-shadow: 0 18px 50px rgba(0,0,0,0.06);
}

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

.asl-icon {
    font-size: 26px;
}

.asl-title {
    font-weight: 900;
    font-size: 16px;
}

.asl-sub {
    font-size: 13px;
    color: rgba(0,0,0,.65);
}
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #d72626;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    margin-left: 6px;
}
/* ===== URGENT DETAIL (cornice + layout) ===== */
.urgent-detail {
    max-width: 1100px;
    margin: 18px auto 60px;
}

.urgent-shell {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(0,0,0,.08);
    overflow: hidden; /* importantissimo: taglia l’immagine sul radius */
}

/* HERO */
.urgent-hero {
    display: block;
}

.urgent-banner {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.urgent-hero-body {
    padding: 18px 18px 12px;
}

.urgent-h1 {
    margin: 10px 0 6px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.urgent-place {
    margin: 0 0 12px;
    color: rgba(0,0,0,.70);
    font-weight: 700;
}

/* CONTENUTO (2 colonne desktop, 1 col mobile) */
.urgent-content {
    padding: 0 18px 18px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
}

.card.urgent-box {
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 18px 46px rgba(0,0,0,.06);
}

.urgent-h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 900;
}

.urgent-desc {
    color: rgba(0,0,0,.78);
    line-height: 1.55;
}

/* Mappa */
.urgent-map {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
}

/* Responsive */
@media (max-width: 860px) {
    .urgent-banner {
        height: 280px;
    }

    .urgent-h1 {
        font-size: 28px;
    }

    .urgent-content {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
        margin-top: 36px;
    }

    .urgent-hero-body {
        padding: 16px 14px 10px;
    }
}
.pill-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: all .2s ease;
}

    .pill-whatsapp svg {
        width: 18px;
        height: 18px;
    }

    .pill-whatsapp:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
    }
.page-wrap {
    width: min(var(--container, 1100px), calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 28px;
}

    .page-wrap h1 {
        margin: 8px 0 12px;
    }

    .page-wrap h2 {
        margin: 18px 0 8px;
    }

.cta-box {
    margin: 18px 0;
    padding: 16px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.12);
}

    .btn.btn-secondary {
        opacity: .9;
    }
.home-guides {
    width: min(var(--container, 1100px), calc(100% - 40px));
    margin: 34px auto 10px;
}

.home-guides-head {
    margin-bottom: 14px;
}

    .home-guides-head h2 {
        margin: 0 0 6px;
    }

.home-guides-sub {
    margin: 0;
    opacity: .75;
    font-size: 14px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
}

@media (max-width: 980px) {
    .guides-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

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

/* Tile */
.guide-tile {
    position: relative;
    display: grid;
    grid-template-columns: 12px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    padding: 14px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

    .guide-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 44px rgba(0,0,0,.12);
        border-color: rgba(215,38,38,.26);
    }

.guide-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(215,38,38,.95);
    margin-top: 4px;
}

.guide-title {
    font-weight: 700;
    line-height: 1.2;
}

.guide-desc {
    grid-column: 2 / 3;
    opacity: .74;
    font-size: 13px;
    line-height: 1.3;
}

.guide-arrow {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
    opacity: .45;
    font-weight: 700;
}
.auth-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}

.auth-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.14);
}

.auth-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth-name {
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.auth-sub {
    font-weight: 650;
    font-size: 12px;
    opacity: .75;
    color: #fff;
}

.auth-logout {
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(215,38,38,.35);
    background: rgba(215,38,38,.18);
    color: #ffd0d0;
    text-decoration: none;
}

.auth-login {
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    background: rgba(215,38,38,.92);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
}
/* =========================
   NAVBAR — separazione zone
   ========================= */

.h26-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* nav a destra: più aria e spaziatura costante */
.h26-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* separatore tra blocchi (link | cta | auth) */
.h26-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    margin-left: 6px;
}

    .h26-cta::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 26px;
        background: rgba(0,0,0,.10);
    }

/* auth separato dal resto */
.auth-badge,
.auth-login {
    position: relative;
    margin-left: 10px;
    padding-left: 16px;
}

    .auth-badge::before,
    .auth-login::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 26px;
        background: rgba(0,0,0,.10);
    }

/* link un po’ più “respirati” */
.h26-link,
.nav-link {
    padding: 10px 10px;
    border-radius: 12px;
}

/* badge segnalazioni: allineamento */
.nav-reports {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* responsive: sui tablet togli i divisori per non stringere troppo */
@media (max-width: 980px) {
    .h26-cta {
        padding-left: 0;
        margin-left: 0;
    }

        .h26-cta::before {
            display: none;
        }

    .auth-badge,
    .auth-login {
        padding-left: 0;
        margin-left: 6px;
    }

        .auth-badge::before,
        .auth-login::before {
            display: none;
        }
}
/* =========================
   AUTH (Google) — readability fix
   ========================= */

/* blocco badge */
.auth-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(215,38,38,.18);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* meta: NIENTE overlay, niente blu */
.auth-meta {
    display: flex !important;
    flex-direction: column;
    line-height: 1.1;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #111 !important;
    border: 0 !important;
    box-shadow: none !important;
}



    .auth-logout:hover {
        filter: brightness(.95);
    }

/* responsive: su schermi stretti nascondi email, lascia nome */
@media (max-width: 980px) {
    .auth-sub {
        display: none;
    }

    .auth-name {
        max-width: 140px;
    }
}

.h26-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
    background: linear-gradient(135deg, #d72626, #ff3c3c);
    color: #fff;
    box-shadow: 0 10px 24px rgba(215,38,38,.35);
    transition: all .25s ease;
}

    .h26-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px rgba(215,38,38,.45);
    }

.dl-icon {
    font-size: 14px;
    line-height: 1;
}