/**
 * ENEA HYDRA — Unifed Itineraries Stylesheet (v12.5.0)
 * Optimizes performance, enables browser caching, and unifies stiles for both
 * template-single-itinerary.php and template-archive-itinerary.php.
 */

:root {
    --sg-red: #b71c1c;
    --sg-red-dark: #7c1818;
    --sg-red-soft: rgba(183, 28, 28, 0.06);
    --sg-red-line: rgba(183, 28, 28, 0.16);
    --sg-bg: #FAFAF7;
    --sg-surface: #FFFFFF;
    --sg-border: #E8E5DD;
    --sg-border-soft: #F0EEE8;
    --sg-cream: #F7F2E8;
    --sg-cream-border: #E6DEC9;
    --sg-meta-bg: #FAFAF7;
    --sg-ink: #1A1814;
    --sg-ink-mid: #4A463E;
    --sg-muted: #807868;
    --sg-muted-soft: #B0A998;
    /* Unified radii scale */
    --r-card: 12px;
    --r-btn: 8px;
    --r-badge: 4px;
    /* Global bottom navbar (Enea dock) is ~65px high */
    --sg-navbar-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

.skip-link {
    position: absolute;
    left: -9999px; top: 0;
    background: var(--sg-red);
    color: #fff;
    padding: 10px 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--sg-bg);
    color: var(--sg-ink);
    line-height: 1.55;
    /* Bottom padding leaves room for the global Enea navbar (≈65px) */
    padding-bottom: calc(var(--sg-navbar-h) + 24px);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sg-pp-page p {
    line-height: 1.7 !important;
    margin-bottom: 1.25rem !important;
}

/* ───────── BRAND BAR ───────── */
.brand-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sg-border);
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand-logo {
    display: inline-flex; align-items: center; gap: 12px;
}
.brand-logo-mark {
    width: 50px; height: 50px;
    border-radius: 50%;
    background-color: var(--sg-red);
    background-size: cover; background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.22);
    flex-shrink: 0;
}
.brand-text {
    display: inline-flex; flex-direction: column;
    line-height: 1.05;
}
.brand-text .wordmark {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--sg-red);
}
.brand-text .wordmark .light {
    color: var(--sg-red);
    font-weight: 800;
    margin-right: 4px;
}
.brand-text .tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sg-muted);
    letter-spacing: 0.3px;
    margin-top: 3px;
}
.brand-back {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sg-muted);
    padding: 7px 13px;
    border-radius: 12px;
    border: 1px solid var(--sg-border);
    transition: background 0.2s ease, color 0.2s ease;
}
.brand-back:hover {
    background: var(--sg-bg);
    color: var(--sg-ink);
}

/* ───────── BREADCRUMBS ───────── */
.breadcrumbs {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 22px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: var(--sg-muted);
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.breadcrumbs a {
    color: var(--sg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover { color: var(--sg-red); }
.breadcrumbs .sep { color: var(--sg-muted-soft); margin: 0 2px; }
.breadcrumbs .current { color: var(--sg-ink); font-weight: 600; }

.sg-breadcrumbs-container {
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.sg-breadcrumbs-container .breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 18px;
    background: #FFFFFF;
    border: 1px solid #E8E5DD;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #807868;
    box-shadow: 0 4px 12px rgba(26, 24, 20, 0.02);
    margin: 0 !important;
}
.sg-breadcrumbs-container .breadcrumbs a {
    color: #807868;
    text-decoration: none;
    transition: all 0.25s ease;
}
.sg-breadcrumbs-container .breadcrumbs a:hover {
    color: #B71C1C;
}
.sg-breadcrumbs-container .breadcrumbs .sep {
    color: #C5BFA7;
    margin: 0 4px;
    font-weight: 400;
}
.sg-breadcrumbs-container .breadcrumbs .current {
    color: #1A1814;
    font-weight: 700;
}

/* ───────── HERO (editorial, left-aligned, no pills) ───────── */
.hero {
    background: var(--sg-surface);
    border-bottom: 1px solid var(--sg-border);
    padding: 56px 22px 40px;
}
.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}
.eyebrow {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--sg-red);
    margin-bottom: 22px;
    position: relative;
    padding-left: 38px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 28px; height: 1px;
    background: var(--sg-red);
}
h1.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    color: var(--sg-ink);
    margin: 0 0 20px;
    letter-spacing: -0.8px;
    max-width: 760px;
}
.hero-intro {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--sg-ink-mid);
    max-width: 680px;
    margin: 0 0 28px;
    font-weight: 400;
    line-height: 1.65;
}
/* ───────── META STRIP (hero, old — kept for backward compat) ───────── */
.hero .meta-strip {
    display: flex; flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding-top: 0;
    margin-bottom: 24px;
}
.meta-item {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sg-ink-mid);
    line-height: 1.4;
    border-right: 1px solid var(--sg-border);
}
.meta-item:first-child { padding-left: 0; }
.meta-item:last-child  { border-right: none; padding-right: 0; }
.meta-item .meta-ico {
    color: var(--sg-red);
    font-size: 0.95rem;
}
.meta-item .meta-value {
    color: var(--sg-ink);
    font-weight: 700;
}
.meta-item.accent .meta-value {
    color: var(--sg-red);
}

/* ───────── REEL (Premium Centered Video) ───────── */
.reel-section {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 24px 22px 0 !important;
}
@media (max-width: 768px) {
    .reel-section {
        padding: 16px 16px 0 !important;
        max-width: 100% !important;
    }
}
.reel-wrap {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #000 !important;
    aspect-ratio: 16 / 9 !important;
    border: 1px solid var(--sg-border) !important;
    box-shadow: 0 8px 32px rgba(26, 24, 20, 0.12), 0 2px 6px rgba(26, 24, 20, 0.06) !important;
    cursor: pointer !important;
}
.reel-wrap video {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* ── Video control buttons: premium glassmorphic pill ── */
.reel-fullscreen-btn,
.reel-sound-btn {
    position: absolute !important;
    width: 40px !important; height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: 3 !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}
.reel-fullscreen-btn {
    bottom: 14px !important; right: 14px !important;
    top: auto !important; left: auto !important;
}
.reel-sound-btn {
    bottom: 14px !important; right: 62px !important;
    top: auto !important; left: auto !important;
}
.reel-fullscreen-btn:hover,
.reel-sound-btn:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}
.reel-fullscreen-btn:active,
.reel-sound-btn:active {
    transform: scale(0.95) !important;
}
/* ── Reel caption: vertical stack, full width ── */
.reel-caption {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-top: 14px !important;
    padding: 0 !important;
    width: 100% !important;
}
.reel-tag {
    display: block !important;
    width: 100% !important;
    background: var(--sg-red) !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-align: left !important;
}
.reel-caption > span:not(.reel-tag) {
    display: block !important;
    width: 100% !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--sg-ink-mid) !important;
    padding: 4px 2px !important;
}

/* ───────── META STRIP (below video, chip design) ───────── */
.meta-strip-section {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 20px 22px 8px !important;
}
@media (max-width: 768px) {
    .meta-strip-section {
        padding: 16px 16px 8px !important;
    }
}
.meta-strip-section .meta-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.meta-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: var(--sg-surface) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: 999px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: var(--sg-ink-mid) !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(26, 24, 20, 0.04) !important;
}
.meta-chip-ico {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}
.meta-chip-label {
    font-weight: 700 !important;
    color: var(--sg-ink) !important;
}
.meta-chip-sub {
    font-weight: 500 !important;
    color: var(--sg-muted) !important;
}
.meta-chip--accent {
    background: var(--sg-red-soft) !important;
    border-color: var(--sg-red-line) !important;
}
.meta-chip--accent .meta-chip-label {
    color: var(--sg-red) !important;
    font-weight: 800 !important;
}
.meta-chip--accent .meta-chip-sub {
    color: var(--sg-red-dark) !important;
}

/* ───────── CONTAINER ───────── */
main.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 22px 0;
}

/* ───────── SECTION HEADING (editorial) ───────── */
.section-head {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sg-border);
    position: relative;
}
.section-head::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 56px; height: 2px;
    background: var(--sg-red);
    border-radius: 2px;
}
.section-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sg-ink);
    letter-spacing: -0.4px;
}
.section-head .section-count {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sg-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ───────── TIMELINE (Premium Elegant Tree) ───────── */
.timeline {
    position: relative;
    margin-bottom: 36px;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 14px; bottom: 14px;
    left: 12px;
    width: 2px;
    background: var(--sg-cream-border);
    border-radius: 1px;
    z-index: 1;
}
.block {
    position: relative;
    margin-bottom: 28px;
}
.block-dot {
    position: absolute;
    left: -26px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--sg-red);
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.12);
    z-index: 10;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease;
}
.block:hover .block-dot {
    transform: scale(1.25);
    background-color: var(--sg-red);
}
.block-dot.dot-alert {
    border-color: #D97706;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}
.block:hover .block-dot.dot-alert {
    background-color: #D97706;
}
.block-dot.dot-tip {
    border-color: var(--sg-muted);
    box-shadow: 0 0 0 4px rgba(128, 120, 104, 0.12);
}
.block:hover .block-dot.dot-tip {
    background-color: var(--sg-muted);
}
.block-dot.dot-hidden {
    display: none;
}

/* ───────── DAY HEADER (multi-day itineraries) ───────── */
.day-header-card {
    background: #FDFBF7;
    border: 1px solid var(--sg-cream-border);
    border-left: 5px solid var(--sg-red);
    border-radius: var(--r-card);
    padding: 24px 28px 22px;
    margin: 36px 0 28px;
    color: var(--sg-ink);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(128, 120, 104, 0.08);
}
.day-header-card:first-child { margin-top: 0; }
.day-header-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sg-red);
    margin-bottom: 8px;
}
.day-header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.2;
    color: var(--sg-ink);
    margin-bottom: 8px;
}
.day-header-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--sg-ink-mid);
    line-height: 1.5;
}
.day-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    background: var(--sg-cream);
    border: 1px solid var(--sg-cream-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sg-ink-mid);
}
.day-header-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ───────── DISTANCE CHIP in transitions ───────── */
.trans-distance {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    background: var(--sg-cream);
    border: 1px solid var(--sg-cream-border);
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sg-ink-mid);
    letter-spacing: 0.3px;
    margin-left: 4px;
}

/* ───────── INFO UTILI BAR ───────── */
.info-utili-bar {
    margin: 32px 0 8px;
    border: 1px solid var(--sg-border);
    border-radius: var(--r-card);
    background: var(--sg-surface);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(26,24,20,0.04);
}
.info-utili-bar summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 22px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sg-ink);
    letter-spacing: -0.2px;
    list-style: none;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    user-select: none;
}
.info-utili-bar summary::-webkit-details-marker { display: none; }
.info-utili-bar summary::after {
    content: '▼';
    font-size: 0.7rem;
    color: var(--sg-muted);
    transition: transform 0.3s ease;
}
.info-utili-bar[open] summary {
    background: var(--sg-meta-bg);
    border-bottom-color: var(--sg-border);
}
.info-utili-bar[open] summary::after {
    transform: rotate(180deg);
}
.info-utili-bar summary:hover {
    background: var(--sg-meta-bg);
}
.info-utili-tabs {
    display: flex !important; gap: 8px !important;
    border-bottom: 1px solid var(--sg-border) !important;
    padding: 12px 16px !important;
    background: var(--sg-meta-bg) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.info-utili-tab {
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    padding: 10px 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--sg-ink-mid) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: var(--r-btn) !important;
    background: var(--sg-surface) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 1px 3px rgba(26, 24, 20, 0.03) !important;
    border-bottom-width: 1px !important;
}
.info-utili-tab:hover {
    color: var(--sg-ink) !important;
    border-color: var(--sg-ink-mid) !important;
    background: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(26, 24, 20, 0.06) !important;
}
.info-utili-tab.active {
    background: var(--sg-red) !important;
    color: #fff !important;
    border-color: var(--sg-red) !important;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.22) !important;
}
.info-utili-panel {
    display: none;
    padding: 20px 22px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.info-utili-panel.active {
    display: block;
    animation: fadeInPanel 0.25s ease;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.block:last-child { margin-bottom: 0; }

/* Text block — soft narrative paragraph */
.block-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.04rem;
    line-height: 1.7;
    color: var(--sg-ink-mid);
    padding: 6px 14px;
    border-left: 3px solid var(--sg-border);
    margin-left: 4px;
}

/* Alert block — vertical stack: label on top, text below */
.block-alert {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
    padding: 18px 22px !important;
    background: rgba(217, 119, 6, 0.05) !important;
    border: 1px solid rgba(217, 119, 6, 0.18) !important;
    border-left: 3px solid #D97706 !important;
    border-radius: var(--r-card) !important;
    color: #78350F !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
}
.block-alert.alert-danger {
    background: rgba(192, 57, 43, 0.05);
    border-color: rgba(192, 57, 43, 0.20);
    border-left-color: #C0392B;
    color: #7F1D1D;
}
.block-alert.alert-info {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.18);
    border-left-color: #3B82F6;
    color: #1E3A8A;
}
.block-alert .alert-ico {
    display: none !important;
}
.block-alert strong {
    display: block !important;
    width: 100% !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    font-size: 0.82rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: inherit !important;
}

/* ───────── POI CARD (editorial row layout on desktop) ───────── */
.poi-card {
    background: var(--sg-surface);
    border: 1px solid var(--sg-border);
    border-radius: var(--r-card);
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
    margin-bottom: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}
.poi-card:hover {
    transform: translateY(-2px);
    border-color: var(--sg-red-line);
    box-shadow: 0 8px 22px rgba(26, 24, 20, 0.08);
}

/* Desktop: side-by-side image + content */
@media (min-width: 720px) {
    .poi-card { flex-direction: row; align-items: stretch; }
    .poi-media { width: 300px; flex-shrink: 0; aspect-ratio: auto; min-height: 100%; }
    .poi-body  { flex: 1; padding: 22px 24px 20px; }
}

.poi-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sg-meta-bg);
}
.poi-media img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.poi-card:hover .poi-media img { transform: scale(1.04); }
.poi-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(26, 24, 20, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 11px;
    border-radius: var(--r-badge);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
/* Editorial step marker — vertical stack TAPPA / 01 */
.poi-step {
    position: absolute;
    top: 14px; left: 14px;
    background: #fff;
    color: var(--sg-red);
    min-width: 48px;
    border-radius: var(--r-badge);
    padding: 6px 10px 5px;
    display: inline-flex;
    flex-direction: column;
    align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(26, 24, 20, 0.20);
    border-top: 2px solid var(--sg-red);
}
.poi-step::before {
    content: 'TAPPA';
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--sg-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
}
.poi-step .poi-step-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--sg-red);
    letter-spacing: -0.5px;
}

/* Suggestion tag (food partner) */
.poi-suggest {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--sg-cream);
    color: var(--sg-ink);
    min-height: 30px;
    max-width: calc(100% - 28px - 110px); /* leave space for type badge on right */
    border-radius: var(--r-badge);
    padding: 6px 11px;
    display: inline-flex; align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    border: 1px solid var(--sg-cream-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.poi-suggest::before {
    content: '✦ ';
    color: var(--sg-red);
    margin-right: 4px;
}

.poi-card.is-suggestion {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--sg-cream) 100%);
    border-color: var(--sg-cream-border);
}
.poi-card.is-suggestion:hover {
    border-color: var(--sg-red-line);
}
.poi-body {
    padding: 18px 20px 18px;
    display: flex; flex-direction: column;
}
.poi-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--sg-ink);
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}
@media (min-width: 720px) {
    .poi-title { font-size: 1.45rem; }
}
.poi-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--sg-ink-mid);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.poi-context {
    background: var(--sg-cream);
    border-left: 3px solid var(--sg-red);
    border-radius: 0 var(--r-btn) var(--r-btn) 0;
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.94rem;
    color: var(--sg-ink);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* v22.5: Hours & Price meta chips inside POI card */
.poi-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.poi-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.3;
    white-space: nowrap;
    border: 1px solid var(--sg-cream-border);
    background: var(--sg-cream);
    color: var(--sg-ink-mid);
    cursor: default;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.poi-chip:hover {
    background: #F3EAD8;
    border-color: var(--sg-ink-mid);
}
.poi-chip--hours {
    color: #1E40AF;
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
}
.poi-chip--hours:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}
.poi-chip--price {
    color: #065F46;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
}
.poi-chip--price:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}
.poi-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: auto;
}
/* ── POI Scheda button: premium dark pill ── */
.poi-btn {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    padding: 10px 22px !important;
    border-radius: var(--r-btn) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    background: var(--sg-red) !important;
    border: 1px solid var(--sg-red) !important;
    color: #fff !important;
    line-height: 1.3 !important;
    min-height: 40px !important;
    gap: 6px !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.18) !important;
    text-decoration: none !important;
}
.poi-btn:hover {
    background: var(--sg-red-dark) !important;
    border-color: var(--sg-red-dark) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.28) !important;
}
.poi-btn .btn-arrow {
    transition: transform 0.25s ease !important;
}
.poi-btn:hover .btn-arrow { transform: translateX(3px) !important; }

/* Transition — connector line + chip */
.block-transition {
    position: relative;
    margin: 14px 0 14px 24px;
    padding-left: 26px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--sg-ink-mid);
    line-height: 1.5;
}
.block-transition::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 2px;
    background: var(--sg-border);
    border-radius: 2px;
}
.block-transition .trans-guide {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--sg-ink-mid);
    line-height: 1.5;
}
.trans-guide strong {
    font-weight: 700;
    color: var(--sg-ink);
}
.trans-guide .trans-highlight {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--sg-red);
}
.trans-guide .trans-ico {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}
.trans-guide .trans-time {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sg-muted);
    margin-left: 2px;
}
.block-transition .trans-note {
    display: block;
    margin-top: 6px;
    color: var(--sg-muted);
    font-size: 0.84rem;
    padding-left: 20px;
}

/* Local tip — cream paper card (concierge note style) */
.block-tip {
    background: var(--sg-cream);
    border: 1px solid var(--sg-cream-border);
    border-left: 3px solid var(--sg-red);
    border-radius: var(--r-card);
    padding: 22px 26px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.block-tip-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.22);
    background-color: var(--sg-red);
    flex-shrink: 0;
}
.block-tip h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sg-red);
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.block-tip p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--sg-ink);
    line-height: 1.65;
    font-weight: 500;
    width: 100%;
}

/* ───────── INLINE CTA (rich, professional) ───────── */
.inline-cta {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--sg-cream) 100%);
    border: 1px solid var(--sg-cream-border);
    border-radius: var(--r-card);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
    margin: 36px 0 32px;
    position: relative;
    overflow: hidden;
}
.inline-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px;
    background: var(--sg-red);
    border-radius: 0 0 3px 3px;
}
.inline-cta-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    background-color: var(--sg-red);
    background-size: cover; background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 10px 24px rgba(183, 28, 28, 0.28);
    margin: 0 auto 16px;
}
.inline-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sg-ink);
    letter-spacing: -0.4px;
    margin-bottom: 10px;
}
.inline-cta p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: var(--sg-ink-mid);
    max-width: 540px;
    margin: 0 auto 22px;
    line-height: 1.6;
}
.inline-cta-row {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 26px;
    border-radius: var(--r-btn);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.cta-btn.cta-primary {
    background: var(--sg-red);
    color: #fff;
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.22);
}
.cta-btn.cta-primary:hover {
    background: var(--sg-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.32);
}
.cta-btn.cta-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.22);
}
.cta-btn.cta-wa:hover {
    background: #1FB856;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32);
}

/* ───────── RELATED ITINERARIES ───────── */
.related-section {
    margin: 36px 0 24px;
}
.related-head {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sg-border);
    position: relative;
}
.related-head::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 56px; height: 2px;
    background: var(--sg-red);
    border-radius: 2px;
}
.related-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sg-ink);
    letter-spacing: -0.4px;
}
.related-head .related-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sg-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) {
    .related-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
}
.related-card {
    background: var(--sg-surface);
    border: 1px solid var(--sg-border);
    border-radius: var(--r-card);
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--sg-red-line);
    box-shadow: 0 8px 22px rgba(26, 24, 20, 0.08);
}
.related-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--sg-meta-bg);
    overflow: hidden;
}
.related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.5s ease;
}
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-thumb-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FEE2E2, #FCA5A5);
    color: var(--sg-red);
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
}
.related-stop-pill {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--sg-red);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.related-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex; flex-direction: column; gap: 8px;
}
.related-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sg-ink);
    line-height: 1.3;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.related-tags {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: auto;
}
.related-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--sg-meta-bg);
    border: 1px solid var(--sg-border);
    color: var(--sg-muted);
    padding: 3px 8px;
    border-radius: 999px;
}

/* ───────── FOOTER LINE ───────── */
.footer-line {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: var(--sg-muted-soft);
    letter-spacing: 0.5px;
    padding: 14px 0 18px;
    border-top: 1px solid var(--sg-border);
    margin-top: 20px;
}
.footer-line .sg-red-dot {
    color: var(--sg-red);
    font-weight: 800;
}

/* ───────── ARCHIVE CUSTOM LAYOUT & CARD REFINEMENTS ───────── */
.sg-card-img-wrapper {
    position: relative;
    width: calc(100% + 2px) !important;
    margin: -1px -1px 0 -1px !important;
    height: 200px;
    overflow: hidden !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transform: translateZ(0);
}
.sg-card-img-wrapper img {
    border-radius: 0 !important;
}

.sg-card-badge-featured {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: linear-gradient(135deg, #D4A853 0%, #B98E3A 100%) !important;
    color: #FFFFFF !important;
    padding: 5px 14px !important;
    border-radius: 100px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    box-shadow: 0 4px 14px rgba(212, 168, 83, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.sg-card-badge-stops {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: rgba(26, 24, 20, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 5px 12px !important;
    border-radius: 100px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.it-card-thumb-empty {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #FDFBF7, #F5EFE0) !important;
    color: #D4A853 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    letter-spacing: -2px !important;
    z-index: 1 !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.sg-card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #1A1814 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}
.sg-card-excerpt {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.92rem !important;
    color: #4A463E !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.6 !important;
}
.sg-card-tag {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    background: #FFFFFF !important;
    border: 1px solid #E8E5DD !important;
    color: #807868 !important;
    padding: 5px 12px !important;
    border-radius: 100px !important;
    box-shadow: 0 2px 6px rgba(26, 24, 20, 0.02) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}
.sg-card-tag:hover {
    border-color: #B71C1C !important;
    color: #B71C1C !important;
    background: #FAFAF7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.06) !important;
}

.sg-card-action-btn {
    background: linear-gradient(135deg, #1A1814 0%, #2A2620 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(212, 168, 83, 0.35) !important;
    border-radius: 100px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 12px rgba(26, 24, 20, 0.05) !important;
}
.sg-search-submit-btn {
    background: #FFFFFF !important;
    border: 2px solid #B71C1C !important;
    color: #B71C1C !important;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer !important;
}
.sg-search-submit-btn:hover {
    background: rgba(183, 28, 28, 0.04) !important;
    border-color: #7C1818 !important;
    color: #7C1818 !important;
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.08) !important;
    transform: translateY(-1px) !important;
}
.cta-btn {
    background: linear-gradient(135deg, #B71C1C 0%, #8E1010 100%) !important;
    color: #FFFFFF !important;
    border-radius: 100px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.98rem !important;
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(183, 28, 28, 0.40) !important;
    filter: brightness(1.08) !important;
}

/* ───────── ARCHIVE HERO ───────── */
.archive-hero {
    background: radial-gradient(circle at 80% 20%, rgba(183, 28, 28, 0.04) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #FFFFFF 0%, #FAFAF7 100%);
    border-bottom: 1px solid var(--sg-border);
    padding: 64px 24px 52px;
    position: relative;
}
.archive-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.archive-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--sg-red);
    background: #fff;
    border: 1px solid var(--sg-cream-border);
    padding: 6px 14px 5px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: 0 4px 10px rgba(128, 120, 104, 0.05);
}
.archive-eyebrow::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--sg-red);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.18);
    animation: pulse-ai 2s infinite ease-in-out;
}
@keyframes pulse-ai {
    0%, 100% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.18); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 6px rgba(183, 28, 28, 0.32); }
}
h1.archive-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 6vw, 3.1rem);
    line-height: 1.15;
    color: var(--sg-ink);
    margin: 0 auto 16px;
    letter-spacing: -0.8px;
    max-width: 740px;
}
.archive-intro {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
    color: var(--sg-ink-mid);
    max-width: 600px;
    margin: 0 auto 26px;
    font-weight: 400;
    line-height: 1.65;
}
.archive-meta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--sg-cream);
    border: 1px solid var(--sg-cream-border);
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--sg-ink-mid);
    box-shadow: 0 2px 8px rgba(128, 120, 104, 0.04);
}
.archive-meta strong { color: var(--sg-red); font-weight: 800; }

/* ───────── SEARCH + SORT BAR ───────── */
.search-bar {
    background: var(--sg-surface);
    border-bottom: 1px solid var(--sg-border-soft);
    padding: 18px 24px;
}
.search-bar-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
}
.search-form {
    flex: 1;
    min-width: 280px;
    display: flex; align-items: center; gap: 8px;
    background: #FAFAF8;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    padding: 5px 6px 5px 18px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.search-form:focus-within {
    border-color: var(--sg-red);
    background: #fff;
    box-shadow: 0 4px 18px var(--sg-red-soft);
}
.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--sg-ink);
    padding: 6px 0;
}
.search-form button {
    background: #FFFFFF !important;
    border: 2px solid #B71C1C !important;
    color: #B71C1C !important;
    padding: 8px 20px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.search-form button:hover {
    background: rgba(183, 28, 28, 0.04) !important;
    border-color: #7C1818 !important;
    color: #7C1818 !important;
    transform: scale(1.02);
}
.sort-toggle {
    display: inline-flex;
    background: #FAFAF8;
    border: 1px solid var(--sg-border);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}
.sort-toggle a {
    padding: 7px 16px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sg-muted);
    text-decoration: none;
    transition: all 0.25s ease;
}
.sort-toggle a.active {
    background: var(--sg-red);
    color: #fff;
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.22);
}
.sort-toggle a:hover:not(.active) {
    color: var(--sg-ink);
    background: rgba(26, 24, 20, 0.04);
}

/* ───────── FILTER PILLS ───────── */
.filter-bar {
    background: #FAFAF8;
    border-bottom: 1px solid var(--sg-border);
    padding: 16px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex; gap: 8px;
    justify-content: center;
    min-width: max-content;
}
.filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--sg-border);
    color: var(--sg-ink-mid);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 1px 2px rgba(26, 24, 20, 0.02);
}
.filter-pill:hover {
    border-color: var(--sg-red-line);
    color: var(--sg-red);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.05);
}
.filter-pill.active {
    background: var(--sg-red);
    border-color: var(--sg-red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.28);
}
.filter-pill .count {
    font-size: 0.76rem;
    opacity: 0.75;
    font-weight: 600;
    background: rgba(26, 24, 20, 0.06);
    color: var(--sg-ink-mid);
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-pill.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ───────── GRID ───────── */
.it-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 720px) {
    .it-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (min-width: 1024px) {
    .it-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

.it-card {
    background: var(--sg-surface);
    border: 1px solid var(--sg-border);
    border-top: 3px solid var(--sg-red-line);
    border-radius: var(--r-card);
    box-shadow: 0 1px 3px rgba(26, 24, 20, 0.03);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}
.it-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--sg-red);
    box-shadow: 0 16px 36px rgba(26, 24, 20, 0.07);
    border-color: var(--sg-border-soft);
}
.it-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--sg-meta-bg);
    overflow: hidden;
}
.it-card-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26, 24, 20, 0.25) 0%, rgba(26, 24, 20, 0) 40%, rgba(26, 24, 20, 0.45) 100%);
    z-index: 2;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}
.it-card:hover .it-card-thumb::after {
    opacity: 0.95;
}
.it-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}
.it-card:hover .it-card-thumb img { transform: scale(1.04); }
.it-card-thumb-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FEE2E2, #FCA5A5);
    color: var(--sg-red);
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -2px;
    z-index: 1;
}
.it-stop-pill {
    position: absolute;
    bottom: 14px; left: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: var(--sg-red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(26, 24, 20, 0.16);
    z-index: 10;
}
.it-feat-pill {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--sg-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--r-badge);
    font-family: 'Outfit', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.32);
    display: inline-flex; align-items: center; gap: 4px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.it-card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex; flex-direction: column; gap: 12px;
    background: #fff;
}
.it-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--sg-ink);
    line-height: 1.25;
    letter-spacing: -0.4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.it-card:hover .it-card-title {
    color: var(--sg-red);
}
.it-card-excerpt {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
}

/* ───────── PRINT ARCHIVE ───────── */
@media print {
    .search-bar, .filter-bar, .sort-toggle, .sg-breadcrumbs-container { display: none !important; }
    .it-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
    .it-card { box-shadow: none !important; border: 1px solid #ddd !important; page-break-inside: avoid; }
}

/* ───────── MOBILE ARCHIVE ───────── */
@media (max-width: 600px) {
    .archive-hero { padding: 40px 16px 36px; }
    .search-bar { padding: 14px 16px; }
    .filter-bar { padding: 12px 16px; }
    .filter-pill { padding: 7px 14px; font-size: 0.78rem; }
    .it-grid { gap: 18px; }
    .it-card-body { padding: 16px 18px; }
    .it-card-title { font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION — AI Generated (Itinerary Single Page)
   ═══════════════════════════════════════════════════════════════ */
.it-faq-section {
    max-width: 720px !important;
    margin: 40px auto 24px !important;
    padding: 0 22px !important;
}
@media (max-width: 768px) {
    .it-faq-section {
        padding: 0 16px !important;
        margin: 32px auto 20px !important;
    }
}
.it-faq-header {
    text-align: center !important;
    margin-bottom: 28px !important;
}
.it-faq-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--sg-red) !important;
    margin-bottom: 8px !important;
}
.it-faq-eyebrow::before {
    content: '❓' !important;
    font-size: 0.85rem !important;
}
.it-faq-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
    font-weight: 800 !important;
    color: var(--sg-ink) !important;
    letter-spacing: -0.4px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* FAQ list */
.it-faq-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* FAQ item */
.it-faq-item {
    background: var(--sg-surface) !important;
    border: 1px solid var(--sg-border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 1px 3px rgba(26, 24, 20, 0.03) !important;
}
.it-faq-item:hover {
    border-color: var(--sg-red-line) !important;
    box-shadow: 0 4px 16px rgba(26, 24, 20, 0.06) !important;
}
.it-faq-item.it-faq-open {
    border-color: var(--sg-red) !important;
    box-shadow: 0 6px 24px rgba(183, 28, 28, 0.08) !important;
    background: #fff !important;
}

/* FAQ question button — layout: testo tronca, icona + sempre visibile a destra */
.it-faq-question {
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    text-align: left !important;
    color: var(--sg-ink) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    transition: color 0.2s ease !important;
}
/* Testo: si restringe e tronca con ellipsis — NON spinge l'icona fuori */
.it-faq-question > span:first-child {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}
.it-faq-question:hover {
    color: var(--sg-red) !important;
}
.it-faq-item.it-faq-open .it-faq-question {
    color: var(--sg-red) !important;
}

/* Icona pallino +/× : dimensione fissa, NON SI RESTRINGE MAI */
.it-faq-icon {
    flex: 0 0 36px !important;
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: var(--sg-meta-bg) !important;
    color: var(--sg-ink-mid) !important;
    transition: all 0.3s ease !important;
}
.it-faq-item:hover .it-faq-icon {
    background: var(--sg-red-soft) !important;
    color: var(--sg-red) !important;
}
.it-faq-item.it-faq-open .it-faq-icon {
    background: var(--sg-red) !important;
    color: #fff !important;
    transform: rotate(45deg) !important;
}

/* FAQ answer — hidden by default, slides open */
.it-faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease !important;
    opacity: 0 !important;
}
.it-faq-item.it-faq-open .it-faq-answer {
    max-height: 500px !important;
    opacity: 1 !important;
}
.it-faq-answer p {
    padding: 0 22px 20px !important;
    margin: 0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--sg-ink-mid) !important;
    line-height: 1.7 !important;
}

/* ─── HIDE MENU BUTTONS ON CARDS ─── */
button[class*="_btnMenu_"],
a[class*="_btnMenu_"],
div[class*="_btnMenu_"] {
    display: none !important;
}
