/* ============================================================
   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;
}
/* 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; }
}

/* ── Hero warm emerald (verde medio caldo, luminoso) ─────────── */
.esp-hero {
    position: relative;
    background: linear-gradient(135deg, #059669 0%, #10b981 55%, #14b8a6 100%);
    padding: 64px 0 56px;
    overflow: hidden;
    text-align: center;
}
.esp-hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.18) 0%, rgba(16,185,129,0) 65%);
    pointer-events: none;
}
.esp-hero-container { position: relative; z-index: 2; }
.esp-hero-h1-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}
.esp-hero-h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.30);
    letter-spacing: -.01em;
}
.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: #f0fdf4;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.18);
}

/* 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: 36px 0 32px; }
    .esp-hero-h1 { font-size: 1.45rem; line-height: 1.25; }
    .esp-hero-subtitle { font-size: .92rem; }
    /* BETA come piccolo tag SOPRA il titolo (column-reverse) per non spezzare la riga del titolo */
    .esp-hero-h1-wrap { flex-direction: column-reverse; 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) {
    .esp-stats-inner { max-width: 100%; }
    .esp-stat { padding: 4px 12px; }
    .esp-stat-num { font-size: 1.3rem; }
    .esp-stat-sep { height: 30px; }
}

/* ── 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;
}
.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;
}
.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; }
}
