/* ============================================================
   ESPERIENZE — Landing page esperienze in agriturismo
   agriturismi.it — v1 — 2026-04
   Palette: emerald-700 #047857 / emerald-800 #065f46 / pastello #ecfdf5
   Hero emerald deep sfumato #022c22 → #065f46 → #047857
   Refresh 2026-05-10 — differenziata dal sage chiaro di ristoranti-v1.css
   ============================================================ */

/* ── Tab nav Alloggio / Ristorante / Esperienze ──────────────── */
.src-tab-nav {
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
}
/* Voci centrate: se vanno a capo restano bilanciate su entrambe le righe */
.src-tab-nav .container { text-align: center; }
/* Niente display:flex sul container: i tab flussano inline e vanno a capo
   se non entrano nel viewport (stesso pattern di fattorie-didattiche-v1.css). */
.src-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 24px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
    transition: color .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.src-tab .fa {
    font-size: 14px;
    flex-shrink: 0;
}
.src-tab:hover {
    color: #374151;
    background: #f9fafb;
    text-decoration: none;
}
.src-tab.active {
    color: #047857;
    border-bottom-color: #047857;
    background: #ecfdf5;
    font-weight: 700;
}
@media (max-width: 576px) {
    .src-tab { padding: 10px 16px 9px; font-size: 13px; gap: 5px; }
    .src-tab .fa { font-size: 13px; }
}
/* ── Mobile: tab su una sola riga scrollabile (stile Airbnb), niente wrap ──
   Frecce + sfumature ai bordi (classi has-left/has-right gestite dal JS
   inline di tab_explore.php) indicano che c'è altro da scorrere. */
.src-tab-arrow { display: none; }
@media (max-width: 991px) {
    .src-tab-nav { position: relative; }
    .src-tab-nav .container {
        display: flex;
        align-items: flex-end;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .src-tab-nav .container::-webkit-scrollbar { display: none; }
    .src-tab { flex: 0 0 auto; margin-bottom: 0; }
    .src-tab-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #4b5563;
        box-shadow: 0 1px 5px rgba(0,0,0,.12);
        font-size: 18px;
        line-height: 1;
        padding: 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .src-tab-arrow-l { left: 4px; }
    .src-tab-arrow-r { right: 4px; }
    .src-tab-nav.has-left .src-tab-arrow-l,
    .src-tab-nav.has-right .src-tab-arrow-r { display: inline-flex; }
    .src-tab-nav::before,
    .src-tab-nav::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity .15s;
    }
    .src-tab-nav::before { left: 0;  background: linear-gradient(90deg, #fff 25%, rgba(255,255,255,0)); }
    .src-tab-nav::after  { right: 0; background: linear-gradient(270deg, #fff 25%, rgba(255,255,255,0)); }
    .src-tab-nav.has-left::before,
    .src-tab-nav.has-right::after { opacity: 1; }
}

/* ── Hero warm emerald (verde medio caldo, luminoso) ─────────── */
.esp-hero {
    position: relative;
    /* Fondo chiaro crema: hero arioso, le foto restano l'unico blocco di colore */
    background:
        radial-gradient(120% 120% at 92% 8%, rgba(13,148,136,.07) 0%, rgba(13,148,136,0) 55%),
        linear-gradient(180deg, #f6faf8 0%, #eef6f2 100%);
    padding: 40px 0;
    overflow: hidden;
    text-align: left;
}
/* Layout split: testo a sinistra, gallery foto a destra */
.esp-hero-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 44px;
}
.esp-hero-text { color: #3d6b5e; }
/* Gallery bento: foto arrotondate con spazi */
.esp-hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.esp-hero-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(26,60,52,.12);
    display: block;
}
.esp-hero-h1-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}
.esp-hero-h1 {
    color: #1a3c34;
    font-size: 2.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.12;
    text-shadow: none;
    letter-spacing: -.015em;
}
.esp-beta-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(245, 158, 11, .95);
    color: #fff;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: .12em;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.esp-hero-subtitle {
    color: #3d6b5e;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    text-shadow: none;
}

/* Icone flottanti — bianche tenui su fondo scuro */
.esp-hero-icons {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.ehi {
    position: absolute;
    color: #fff8e7;
    font-size: 2rem;
    opacity: .14;
    animation: espFloat 18s ease-in-out infinite both;
    will-change: transform, opacity;
}
/* Desktop: 10 icone distribuite agli angoli e lungo i bordi, lontane dal centro testo */
.ehi-1  { top:14%; left:4%;   animation-delay:0s;   font-size:2.2rem; }
.ehi-2  { top:18%; right:5%;  animation-delay:1.5s; font-size:1.9rem; }
.ehi-3  { top:62%; left:5%;   animation-delay:3s;   font-size:2rem;   }
.ehi-4  { top:68%; right:6%;  animation-delay:4.5s; font-size:1.7rem; }
.ehi-5  { top:6%;  left:22%;  animation-delay:2s;   font-size:1.5rem; }
.ehi-6  { top:85%; left:18%;  animation-delay:5s;   font-size:1.6rem; }
.ehi-7  { top:8%;  right:28%; animation-delay:6s;   font-size:1.4rem; }
.ehi-8  { top:86%; right:22%; animation-delay:7s;   font-size:1.5rem; }
.ehi-9  { top:42%; left:2%;   animation-delay:8s;   font-size:1.5rem; }
.ehi-10 { top:44%; right:2%;  animation-delay:9s;   font-size:1.7rem; }
@keyframes espFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: .14; }
    50%      { transform: translateY(-12px) rotate(6deg); opacity: .24; }
}

@media (max-width: 768px) {
    .esp-hero { padding: 32px 0; }
    /* Split: colonna singola, testo sopra e gallery sotto */
    .esp-hero-split { grid-template-columns: 1fr; gap: 22px; }
    .esp-hero-gallery { gap: 10px; }
    .esp-hero-gallery img { border-radius: 14px; }
    .esp-hero-h1 { font-size: 1.6rem; line-height: 1.2; }
    .esp-hero-subtitle { font-size: .95rem; }
    /* BETA come piccolo tag SOPRA il titolo (column-reverse) */
    .esp-hero-h1-wrap { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
    .esp-beta-badge { font-size: .62rem; padding: 2px 8px; }
    /* Su mobile mantengo solo 4 icone agli angoli, ben staccate dal testo centrale */
    .ehi { font-size: 1.3rem !important; }
    .ehi-5, .ehi-6, .ehi-7, .ehi-8, .ehi-9, .ehi-10 { display: none; }
    .ehi-1 { top: 6%;  left: 5%;  }
    .ehi-2 { top: 6%;  right: 5%; }
    .ehi-3 { bottom: 8%; left: 6%; top: auto; }
    .ehi-4 { bottom: 8%; right: 6%; top: auto; }
}

/* ── Stats bar ────────────────────────────────────────────────── */
.esp-stats-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.esp-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
}
.esp-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 20px;
}
.esp-stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: #047857;
    line-height: 1;
}
.esp-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.esp-stat-sep {
    width: 1px;
    height: 38px;
    background: #e5e7eb;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    /* Su schermi stretti le 5 voci (con label lunghe es. tedesco "UNTERKÜNFTE")
       non entrano in una riga: vanno a capo invece di forzare lo scroll
       orizzontale dell'intera pagina. I separatori verticali sono inutili
       quando le stat si dispongono su più righe → nascosti, sostituiti da gap. */
    .esp-stats-inner {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 8px 4px;
    }
    .esp-stat {
        flex: 0 0 auto;     /* larghezza naturale del contenuto, niente min-width:auto bloccante */
        min-width: 0;
        padding: 4px 10px;
    }
    .esp-stat-num { font-size: 1.3rem; }
    .esp-stat-lbl { letter-spacing: .02em; }
    .esp-stat-sep { display: none; }
}

/* ── Pagina struttura ─────────────────────────────────────────── */
.esp-home {
    padding-top: 16px;
    padding-bottom: 48px;
}
.esp-breadcrumb .breadcrumb {
    font-size: 13px;
    background: none;
    padding: 0;
}

/* ── Sezioni categoria esperienze ─────────────────────────────── */
.esp-cat-section {
    margin-bottom: 40px;
    padding-bottom: 8px;
}
.esp-cat-section .col,
.esp-strutture-section .col,
.esp-regioni-section .col {
    margin-bottom: 16px !important;
}
.esp-cat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}
.esp-cat-title .fa {
    color: #047857;
    margin-right: 8px;
    font-size: 1rem;
}

/* ── Chip card esperienza ─────────────────────────────────────── */
.esp-chip-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 110px;
    justify-content: center;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.esp-chip-active {
    background: #ecfdf5;
    border-color: #6ee7b7;
    cursor: pointer;
}
.esp-chip-active:hover {
    border-color: #047857;
    box-shadow: 0 4px 14px rgba(4,120,87,.15);
    transform: translateY(-2px);
}
.esp-chip-selected {
    background: #047857 !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 14px rgba(4,120,87,.25);
    transform: translateY(-1px);
}
.esp-chip-selected .esp-chip-icon,
.esp-chip-selected .esp-chip-name {
    color: #fff !important;
}
.esp-chip-selected .esp-chip-count {
    background: rgba(255,255,255,.25) !important;
    color: #fff !important;
}
.esp-chip-icon {
    font-size: 1.6rem;
    color: #047857;
    margin-bottom: 8px;
}
.esp-chip-name {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.25;
}
.esp-chip-count {
    font-size: .7rem;
    color: #047857;
    font-weight: 700;
    margin-top: 4px;
    background: rgba(4,120,87,.08);
    padding: 2px 8px;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .esp-chip-card { padding: 14px 8px 12px; min-height: 85px; }
    .esp-chip-icon { font-size: 1.3rem; }
    .esp-chip-name { font-size: .76rem; }
}

/* Chip-link: il chip è una <a> verso la pagina dettaglio esperienza */
a.esp-chip-card,
a.esp-chip-card:hover,
a.esp-chip-card:focus,
a.esp-chip-card:visited {
    text-decoration: none;
    color: inherit;
}

/* Mini-chip evidenziato (esperienza filtrata sulla pagina dettaglio) */
.esp-mini-chip-active {
    background: #047857 !important;
    color: #fff !important;
    border-color: #047857 !important;
}

/* Empty state (pagina dettaglio quando nessuna struttura) */
.esp-empty {
    text-align: center;
    padding: 48px 16px;
    background: #f9fafb;
    border-radius: 12px;
}
.esp-empty-icon { font-size: 3rem; color: #9ca3af; margin-bottom: 16px; }
.esp-empty-title { font-size: 1.2rem; font-weight: 600; color: #374151; margin-bottom: 8px; }
.esp-empty-text { color: #6b7280; max-width: 520px; margin: 0 auto 20px; }

/* ── Sezione regioni ──────────────────────────────────────────── */
.esp-regioni-section {
    margin-bottom: 36px;
}
.esp-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}
.esp-regione-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: default;
}
/* Card regione cliccabile: link verso /lang/{regione_url} */
a.esp-regione-card,
a.esp-regione-card:hover,
a.esp-regione-card:focus,
a.esp-regione-card:visited {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}
a.esp-regione-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.esp-regione-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.esp-regione-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}
.esp-regione-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}
.esp-regione-nome {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.esp-regione-count {
    color: rgba(255,255,255,.85);
    font-size: .72rem;
    font-weight: 600;
}

/* ── Card struttura ───────────────────────────────────────────── */
.esp-strutture-section {
    margin-bottom: 36px;
}
/* Barra filtro regione (attivata dalle card "Dove vivere queste esperienze") */
.esp-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: -4px 0 18px;
    padding: 10px 14px;
    background: #f0fdf9;
    border: 1px solid #99f6e4;
    border-radius: 10px;
}
.esp-filter-label {
    font-weight: 600;
    color: #0f766e;
}
.esp-filter-search {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    font-size: .92rem;
}
.esp-filter-search:hover { text-decoration: underline; }
.esp-filter-reset {
    margin-left: auto;
    border: 1px solid #99f6e4;
    background: #fff;
    color: #0f766e;
    font-weight: 600;
    font-size: .85rem;
    border-radius: 999px;
    padding: 4px 12px;
    cursor: pointer;
}
.esp-filter-reset:hover { background: #ccfbf1; }
.esp-struttura-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
    height: 100%;
}
.esp-struttura-card:hover {
    border-color: #047857;
    box-shadow: 0 6px 16px rgba(4,120,87,.12);
    text-decoration: none;
    color: inherit;
}
.esp-struttura-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.esp-struttura-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.esp-struttura-card:hover .esp-struttura-img {
    transform: scale(1.04);
}
.esp-struttura-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.esp-struttura-tipo {
    font-size: .7rem;
    font-weight: 600;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.esp-struttura-nome {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0; /* è un h3: azzera il margin-bottom di Bootstrap */
}
.esp-struttura-loc {
    font-size: .8rem;
    color: #6b7280;
}
.esp-struttura-loc .fa {
    color: #047857;
    margin-right: 4px;
}
.esp-struttura-rating {
    font-size: .8rem;
    color: #f59e0b;
    font-weight: 600;
}
.esp-struttura-rating .fa-star { margin-right: 3px; }
.esp-rev-count {
    color: #9ca3af;
    font-weight: 400;
    font-size: .75rem;
}
.esp-struttura-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.esp-mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
}
.esp-mini-chip .fa { font-size: .65rem; }
.esp-mini-more {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* ── SEO editorial ────────────────────────────────────────────── */
.esp-seo-section {
    margin: 32px 0 24px;
}
.esp-seo-h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}
.esp-seo-text {
    font-size: .92rem;
    color: #6b7280;
    line-height: 1.7;
}

/* ── CTA box ──────────────────────────────────────────────────── */
.esp-cta-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
}
.esp-cta-icon {
    font-size: 2.5rem;
    color: #047857;
    margin-bottom: 12px;
}
.esp-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.esp-cta-sub {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 16px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.esp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #047857;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.esp-cta-btn:hover {
    background: #065f46;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .esp-cta-box { padding: 20px 16px; }
    .esp-cta-icon { font-size: 2rem; }
    .esp-cta-title { font-size: 1rem; }
}
