/* ============================================================================
 * public_design.css — Design system per l'area pubblica di OrientaOnline.
 * Mantiene il pattern "bg cielo + box scuro" come identità visiva.
 * ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --pub-primary: #3b82f6;
    --pub-primary-hover: #2563eb;
    --pub-success: #22c55e;
    --pub-success-hover: #16a34a;
    --pub-danger: #ef4444;
    --pub-accent: #fbbf24;
    --pub-overlay: rgba(0, 0, 0, 0.55);
    --pub-overlay-strong: rgba(0, 0, 0, 0.75);
    --pub-text: #ffffff;
    --pub-text-muted: rgba(255, 255, 255, 0.78);
    --pub-border: rgba(255, 255, 255, 0.22);
    --pub-field-bg: rgba(255, 255, 255, 0.96);
    --pub-field-text: #1f2937;
    --pub-radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    /* 100dvh = dynamic viewport height: si adatta a barre Safari iOS che appaiono/scompaiono */
    min-height: 100dvh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: url('../img/convenzione_bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--pub-text);
    /* Mobile-first: 17px su mobile, fino a 18px su desktop largo */
    font-size: clamp(17px, 1rem + 0.2vw, 18px);
    font-weight: 450;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Lascia spazio sotto per la bottom-nav mobile e per il safe-area iOS */
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

/* ----- Layout centrato (login, register, profilo, ecc.) ----- */
.pub-wrapper {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
}

.pub-box {
    background: var(--pub-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.pub-box.wide { max-width: 720px; }
.pub-box.medium { max-width: 560px; }

.pub-box h1,
.pub-box h2 {
    margin: 0 0 1.25rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}
.pub-box h1 { font-size: clamp(1.65rem, 1.4rem + 1vw, 2rem); }
.pub-box h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); }
.pub-box h3 { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.15rem); margin: 0 0 0.5rem; }

/* ----- Form ----- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pub-text);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.pub-box input[type="text"],
.pub-box input[type="email"],
.pub-box input[type="password"],
.pub-box input[type="tel"],
.pub-box input[type="number"],
.pub-box input[type="url"],
.pub-box select,
.pub-box textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--pub-field-bg);
    color: var(--pub-field-text);
    border: 1px solid transparent;
    border-radius: 8px;
    /* 16px minimo: iOS Safari NON zoomerà al focus se font-size >= 16px */
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    min-height: 48px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.pub-box input:focus,
.pub-box select:focus,
.pub-box textarea:focus {
    outline: none;
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}
.pub-box textarea { min-height: 110px; resize: vertical; }

.pub-box input[type="checkbox"],
.pub-box input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: var(--pub-primary);
    margin-right: 0.5rem;
}

/* ----- Bottoni ----- */
.btn-pub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    /* touch target minimo 48px (linee guida iOS 44 + 4 safety) */
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    background: var(--pub-primary);
    color: white;
    border: 1px solid var(--pub-primary);
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn-pub:hover { background: var(--pub-primary-hover); border-color: var(--pub-primary-hover); }
.btn-pub:active { transform: translateY(1px); }

.btn-pub.success { background: var(--pub-success); border-color: var(--pub-success); }
.btn-pub.success:hover { background: var(--pub-success-hover); border-color: var(--pub-success-hover); }

.btn-pub.ghost {
    background: transparent;
    color: var(--pub-text);
    border-color: var(--pub-border);
}
.btn-pub.ghost:hover { background: rgba(255,255,255,0.12); }

.btn-pub.auto { width: auto; padding: 0.5rem 1.25rem; }

/* ----- Links / footer del box ----- */
.pub-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.pub-links a {
    color: var(--pub-accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.pub-links a:hover { text-decoration: underline; }
.pub-links.between { justify-content: space-between; }

/* ----- Messages (info/success/warning/error) ----- */
.pub-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--pub-primary);
    font-size: 1rem;
    line-height: 1.55;
}
.pub-message.success { background: rgba(34, 197, 94, 0.20); border-left-color: var(--pub-success); }
.pub-message.warning { background: rgba(251, 191, 36, 0.20); border-left-color: var(--pub-accent); }
.pub-message.error   { background: rgba(239, 68, 68, 0.20);  border-left-color: var(--pub-danger); }

/* ----- Detail list (profilo / dashboard utente) ----- */
.pub-detail-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
    margin: 1rem 0;
}
.pub-detail-list dt {
    color: var(--pub-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}
.pub-detail-list dd {
    margin: 0;
    color: var(--pub-text);
    font-size: 1.05rem;
    word-break: break-word;
}
@media (max-width: 540px) {
    .pub-detail-list { grid-template-columns: 1fr; gap: 0.1rem 0; }
    .pub-detail-list dd { margin-bottom: 0.75rem; }
}

/* ----- Alloggi (pagina convenzioni) ----- */
.alloggio-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--pub-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.alloggio-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.alloggio-card p  { margin: 0.4rem 0; font-size: 1rem; line-height: 1.55; }
.alloggio-card a  { color: var(--pub-accent); text-decoration: none; }
.alloggio-card a:hover { text-decoration: underline; }

/* ----- Top nav semplice (landing) ----- */
.top-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--pub-overlay-strong);
    border-bottom: 1px solid var(--pub-border);
}
.top-nav a {
    padding: 0.65rem 1.1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--pub-border);
    font-size: 1rem;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
}
.top-nav a:hover { background: rgba(255, 255, 255, 0.22); }

/* ----- Landing content ----- */
.pub-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.pub-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 1rem;
    font-weight: 700;
}
.pub-hero p { font-size: 1.05rem; }

/* ----- Mappa fullscreen (alloggi.php) ----- */
.map-page { margin: 0; height: 100dvh; overflow: hidden; }
.map-page body { background: none; padding-bottom: 0; }
#map {
    width: 100%;
    /* La mappa lascia spazio sotto solo per la bottom-nav (su mobile) */
    height: 100dvh;
}
@media (max-width: 768px) {
    .map-page #map { height: calc(100dvh - 72px - env(safe-area-inset-bottom)); }
}

/* ============================================================================
 * Bottom Navigation (mobile only)
 * ============================================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    display: none;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; }
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 64px;
    padding: 0.5rem 0.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
}
.bottom-nav-item:hover,
.bottom-nav-item:active {
    color: white;
    background: rgba(255,255,255,0.05);
}
.bottom-nav-item.active {
    color: var(--pub-accent);
    background: rgba(251, 191, 36, 0.08);
}
.bottom-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.bottom-nav-label {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* ============================================================================
 * Leaflet popup: leggibilità mobile (font più grandi, padding maggiore,
 * link telefonici evidenziati)
 * ============================================================================ */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 4px 6px;
}
.leaflet-popup-content {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin: 12px 14px !important;
}
.leaflet-popup-content b { font-size: 1.05rem; }
.leaflet-popup-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0;
    display: inline-block;
}
.leaflet-popup-content a:hover { text-decoration: underline; }
.leaflet-popup-close-button {
    width: 36px !important;
    height: 36px !important;
    font-size: 24px !important;
    padding: 4px 0 0 0 !important;
}

.map-overlay {
    position: absolute;
    background: white;
    color: var(--pub-field-text);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 1000;
}
.map-filter {
    top: 1rem; right: 1rem;
    padding: 1rem;
    max-width: 280px;
}
.map-filter label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}
.map-filter select {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: white;
    color: #1f2937;
}
.map-filter select:focus {
    outline: none;
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.map-filter .map-link {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--pub-primary);
    text-decoration: none;
}
.map-filter .map-link:hover { text-decoration: underline; }

.map-admin {
    bottom: 1rem; right: 1rem;
    padding: 0.55rem 1rem;
}
.map-admin a {
    color: var(--pub-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ----- Filtri mappa: hamburger + collapsible su mobile ----- */
.map-toggle {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 1001;
    width: 44px; height: 44px;
    background: white;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;          /* nascosto su desktop (panel sempre visibile) */
    align-items: center;
    justify-content: center;
    color: var(--pub-field-text);
}
.map-toggle:hover { background: #f9fafb; }

.map-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.05);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--pub-field-text);
    display: none;          /* nascosto su desktop */
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.map-close:hover { background: rgba(0,0,0,0.12); }

@media (max-width: 768px) {
    .map-filter {
        display: none;
        max-width: calc(100vw - 2rem);
        padding-top: 2.5rem;  /* spazio per il bottone X */
    }
    .map-filter.open { display: block; }
    .map-toggle { display: flex; }
    .map-close { display: flex; }
}

/* ----- Pagina documentazione (istruzioni.php): tema chiaro ----- */
.doc-body {
    background: #f5f7fa;
    color: var(--pub-field-text);
    min-height: 100vh;
}
.doc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.doc-container h1 {
    color: var(--pub-primary);
    margin: 0 0 1.5rem;
    font-size: 1.625rem;
    font-weight: 600;
}
.doc-step {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.doc-step h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}
.doc-step img {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 0.75rem;
    border: 1px solid #e5e7eb;
}
.doc-note {
    background: #fef9c3;
    border-left: 3px solid #ca8a04;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #1f2937;
}
.doc-note code {
    background: rgba(0,0,0,0.06);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doc-back {
    display: inline-block;
    margin-top: 1rem;
    color: var(--pub-primary);
    text-decoration: none;
    font-weight: 500;
}
.doc-back:hover { text-decoration: underline; }

/* ============================================================================
 *  LANDING — mobile-first long-form (homepage)
 * ============================================================================ */

/* Specificity rafforzata: body+class batte il body { background: url() } generico in cima. */
body.landing-body {
    background: #fafaf7 !important;
    background-image: none !important;
    color: #1a1a1a;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Top nav ----- */
.land-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
}
.land-logo {
    font-size: 1.25rem; font-weight: 800; color: #1a1a1a;
    text-decoration: none; letter-spacing: -0.02em;
}
.land-logo span { color: var(--pub-primary); font-weight: 500; }
.land-nav-links {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.land-nav-links a {
    color: #1a1a1a; text-decoration: none;
    padding: 0.4rem 0.75rem; border-radius: 6px;
    font-size: 0.9rem; font-weight: 500;
    transition: background 0.15s;
}
.land-nav-links a:hover { background: rgba(0,0,0,0.06); }
@media (max-width: 540px) {
    .land-nav-links a { padding: 0.35rem 0.55rem; font-size: 0.85rem; }
}

/* ----- Hero ----- */
.land-hero {
    background:
        linear-gradient(180deg, rgba(15,23,42,0.55), rgba(15,23,42,0.75)),
        url('../img/convenzione_bg.png') center/cover fixed;
    color: white;
    padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
}
.land-hero-inner {
    max-width: 720px; margin: 0 auto;
}
.land-hero h1 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 800; line-height: 1.15;
    margin: 0 0 1rem; letter-spacing: -0.02em;
}
.land-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.55; opacity: 0.92;
    max-width: 560px; margin: 0 auto 1.75rem;
}
.land-search {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    max-width: 520px; margin: 0 auto;
    background: white; padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.land-search select {
    flex: 1; min-width: 180px;
    padding: 0.7rem 0.85rem;
    border: 0; background: transparent;
    color: var(--pub-field-text);
    font-size: 1rem; font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}
.land-search select:focus { outline: 2px solid var(--pub-primary); outline-offset: -1px; border-radius: 8px; }
.land-search button {
    flex: 0 0 auto;
    padding: 0.7rem 1.25rem; font-size: 1rem; width: auto;
}
@media (max-width: 480px) {
    .land-search { padding: 0.4rem; }
    .land-search select { min-width: 100%; }
    .land-search button { width: 100%; }
}
.land-hero-stats {
    margin-top: 1.5rem; font-size: 0.95rem; opacity: 0.85;
    display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
}
.land-hero-stats strong { color: var(--pub-accent); font-size: 1.1rem; }

/* ----- Sezioni ----- */
.land-section {
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}
.land-section-alt { background: #f4ede1; }
.land-container { max-width: 1100px; margin: 0 auto; }
.land-narrow { max-width: 720px; }
.land-h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700; line-height: 1.2;
    margin: 0 0 1rem; color: #1a1a1a;
    letter-spacing: -0.01em;
}
.land-lead {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.6; color: #4a4a4a;
    max-width: 720px; margin: 0 0 2rem;
}
.land-section p { line-height: 1.65; color: #2d2d2d; }
.land-section a { color: var(--pub-primary); }

/* ----- Cosa offriamo (3 feature) ----- */
.land-feat-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .land-feat-grid { grid-template-columns: repeat(3, 1fr); } }
.land-feat {
    background: white; padding: 1.5rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}
.land-feat-icon {
    font-size: 2rem; margin-bottom: 0.5rem;
}
.land-feat h3 {
    margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 700; color: #1a1a1a;
}
.land-feat p { margin: 0; font-size: 0.95rem; color: #4a4a4a; line-height: 1.55; }

/* ----- Bellezze Campania ----- */
.land-places-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .land-places-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .land-places-grid { grid-template-columns: repeat(3, 1fr); } }
.land-place {
    background: white; padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
}
.land-place-emoji {
    font-size: 1.75rem; margin-bottom: 0.5rem;
}
.land-place h3 {
    margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; color: #1a1a1a;
}
.land-place p { margin: 0; font-size: 0.92rem; color: #4a4a4a; line-height: 1.5; }

/* ----- CTA segnala ----- */
.land-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    text-align: center;
}
.land-cta .land-h2 { color: white; }
.land-cta .land-lead { color: rgba(255,255,255,0.92); margin-left: auto; margin-right: auto; }
.land-cta p, .land-cta strong { color: white; }
.land-cta-actions {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    justify-content: center; margin-top: 1rem;
}
.land-cta .btn-pub { width: auto; padding: 0.85rem 1.5rem; }
.land-cta .btn-pub.ghost { color: white; border-color: rgba(255,255,255,0.5); }
.land-cta .btn-pub.ghost:hover { background: rgba(255,255,255,0.15); border-color: white; }

/* ----- Footer ----- */
.land-footer {
    background: #1a1a1a; color: rgba(255,255,255,0.75);
    padding: 2rem clamp(1rem, 4vw, 2rem);
    font-size: 0.9rem;
}
.land-footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.land-footer strong { color: white; }
.land-footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.land-footer-links a {
    color: rgba(255,255,255,0.75); text-decoration: none;
    transition: color 0.15s;
}
.land-footer-links a:hover { color: white; }

/* ----- Utility ----- */
.text-center { text-align: center; }
.text-muted  { color: var(--pub-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ============================================================================
 * Scheda sostenitore (/sostenitori/<slug>)
 * Layout editoriale leggibile, mobile-first. Riusa .land-container e .land-h2.
 * ============================================================================ */

.sost-page { color: #1a1a1a; }

.sost-hero {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.sost-breadcrumb {
    font-size: 0.85rem; color: #6b7280; margin: 0 0 0.75rem;
}
.sost-breadcrumb a { color: #6b7280; text-decoration: none; }
.sost-breadcrumb a:hover { color: var(--pub-danger); text-decoration: underline; }

.sost-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin: 0 0 0.4rem; line-height: 1.15;
}
.sost-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #4b5563; margin: 0;
}
.sost-views {
    margin: 0.5rem 0 0; font-size: 0.85rem; color: #6b7280;
    display: inline-block; background: rgba(255,255,255,0.6);
    padding: 0.15rem 0.6rem; border-radius: 999px;
}

.sost-body { padding: clamp(1.5rem, 4vw, 2.5rem) 1rem; }

.sost-section { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sost-section .land-h2 {
    color: #1a1a1a; text-align: left;
    margin-top: 0; margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.sost-map {
    width: 100%; height: clamp(280px, 40vh, 420px);
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sost-prose {
    font-size: 1.05rem; line-height: 1.7; color: #1f2937;
    max-width: 70ch;
}

.sost-editorial {
    background: #fefce8;
    border-left: 4px solid #facc15;
    padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0;
}
.sost-editorial-sign {
    margin: 1rem 0 0; font-size: 0.85rem; color: #6b7280;
}

.sost-contacts-list {
    list-style: none; padding: 0; margin: 0 0 1.5rem;
    font-size: 1.05rem; line-height: 2;
}
.sost-contacts-list a {
    color: var(--pub-primary); text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.sost-contacts-list a:hover { color: var(--pub-primary-hover); }
.sost-contacts .btn-pub {
    display: inline-block; margin-top: 0.5rem;
}

.sost-related-grid {
    display: grid; gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.sost-related-card {
    display: block; padding: 1rem 1.25rem;
    background: #fafaf7; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px; color: #1a1a1a; text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.sost-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--pub-danger);
}
.sost-related-card strong { display: block; margin-bottom: 0.25rem; }
.sost-related-card small  { color: #6b7280; font-size: 0.85rem; }

.sost-bottom-cta {
    text-align: center; padding: 2rem 1rem;
    background: #fafaf7; border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}
.sost-bottom-cta .land-h2 { text-align: center; }
.sost-bottom-cta p { max-width: 60ch; margin: 0 auto 1.25rem; color: #4b5563; }
.sost-bottom-cta .btn-pub.ghost {
    color: #1a1a1a; border-color: rgba(0,0,0,0.2);
}
.sost-bottom-cta .btn-pub.ghost:hover {
    background: #1a1a1a; color: white;
}

/* Stelle endorsement */
.sost-stelle .stelle-box {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between;
    background: #fffbeb; border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem; border-radius: 0 8px 8px 0;
}
.stelle-count {
    font-size: 1.05rem; color: #1a1a1a;
}
.stelle-count strong { font-size: 1.4rem; color: #f59e0b; margin: 0 0.25rem; }
.stelle-icon { font-size: 1.4rem; margin-right: 0.25rem; }
.sost-stelle .btn-pub {
    flex-shrink: 0;
}
.sost-stelle .btn-pub.success {
    background: #16a34a; color: white;
}
.sost-stelle .btn-pub:disabled { opacity: 0.6; cursor: wait; }

/* Sezioni "Vicino a noi" — distanza + lista POI */
.sost-section-intro {
    margin: -0.25rem 0 1rem; color: #6b7280; font-size: 0.95rem;
}
.sost-distance {
    display: inline-block; margin-top: 0.4rem;
    font-size: 0.78rem; font-weight: 700; color: #16a34a;
    background: #dcfce7; padding: 0.1rem 0.55rem; border-radius: 999px;
    font-style: normal;
}
.sost-poi-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: 0.5rem;
}
.sost-poi-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f0fdf4; border-left: 3px solid #16a34a;
    border-radius: 0 6px 6px 0;
}
.sost-poi-icon {
    font-size: 1.4rem; line-height: 1; flex-shrink: 0;
}
.sost-poi-body { flex: 1; line-height: 1.5; }
.sost-poi-body small { color: #6b7280; }
.sost-poi-list .sost-distance {
    margin: 0; flex-shrink: 0; align-self: center;
}

/* Box "Come raggiungerci" */
.sost-howto {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0;
}
.sost-howto .land-h2 { margin-bottom: 0.75rem; }
.sost-howto-link {
    display: inline-block; margin-top: 1rem; font-size: 0.95rem;
    color: #1e3a8a !important;
    border: 1px solid #1e3a8a !important;
    background: white !important;
}
.sost-howto-link:hover {
    background: #1e3a8a !important;
    color: white !important;
}
