/* ============================================================
   BigItalia — Design System v2 "Bella Italia"
   Fotografia protagonista · Playfair Display + Inter self-hosted
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/PlayfairDisplay-800.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
    --bg: #faf8f4;
    --surface: #ffffff;
    --ink: #191713;
    --ink-soft: #6d675d;
    --line: #e9e3d8;
    --green: #0b7a4b;
    --green-deep: #0f2e21;
    --green-dark: #075534;
    --green-ghost: #e9f4ee;
    --terra: #c0492f;
    --gold: #c9a227;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(25, 23, 19, .05), 0 10px 30px rgba(25, 23, 19, .08);
    --shadow-lift: 0 4px 8px rgba(25, 23, 19, .08), 0 24px 56px rgba(25, 23, 19, .18);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1200px;
    --header-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.4rem; }

/* ============ HEADER (trasparente su hero → solido allo scroll) ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
    border-bottom: 1px solid transparent;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}
body:not(.has-hero) { padding-top: var(--header-h); }
body:not(.has-hero) .site-header,
.site-header.scrolled {
    background: rgba(250, 248, 244, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(25, 23, 19, .07); }

.logo { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .01em; display: inline-flex; align-items: baseline; }
.logo-big { color: var(--green); font-weight: 800; }
.logo-italia { color: var(--ink); font-weight: 600; transition: color .35s ease; }

.main-nav { display: flex; gap: 1.9rem; align-items: center; }
.nav-link { color: var(--ink); font-size: .93rem; font-weight: 500; transition: color .2s ease; }
.nav-link:hover { color: var(--green); }
.nav-disabled { color: var(--ink-soft); cursor: default; }

/* Variante bianca sopra la foto hero */
body.has-hero .site-header:not(.scrolled) .logo-italia,
body.has-hero .site-header:not(.scrolled) .nav-link { color: #fff; }
body.has-hero .site-header:not(.scrolled) .logo-big { color: #7fd4ab; }
body.has-hero .site-header:not(.scrolled) .nav-disabled { color: rgba(255, 255, 255, .65); }
body.has-hero .site-header:not(.scrolled) .lang-switch { color: #fff; border-color: rgba(255, 255, 255, .5); }
body.has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

.soon {
    font-style: normal;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--gold);
    border: 1px solid currentColor;
    border-radius: 99px;
    padding: .08rem .42rem;
    vertical-align: middle;
    margin-left: .3rem;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* ---- Language switcher ---- */
.lang-dd { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--ink);
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    padding: .42rem .9rem;
    cursor: pointer;
    transition: all .25s ease;
}
.lang-btn:hover, .lang-dd.open .lang-btn { border-color: var(--green); color: var(--green); background: rgba(255, 255, 255, .9); }
.lang-caret { transition: transform .2s ease; }
.lang-dd.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + .6rem);
    right: 0;
    min-width: 205px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    padding: .45rem;
    z-index: 150;
    animation: langIn .18s ease;
}
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .8rem;
    border-radius: 9px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    transition: background .15s ease;
}
.lang-item:hover { background: var(--green-ghost); color: var(--ink); }
.lang-item.active { color: var(--green-dark); }
.lang-flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex: 0 0 auto; }
.lang-check { margin-left: auto; color: var(--green); font-weight: 800; }
.lang-soon {
    margin-top: .3rem;
    padding: .55rem .8rem .35rem;
    border-top: 1px dashed var(--line);
    font-size: .68rem;
    color: var(--ink-soft);
}
body.has-hero .site-header:not(.scrolled) .lang-btn { color: #fff; border-color: rgba(255, 255, 255, .5); }
body.has-hero .site-header:not(.scrolled) .lang-dd.open .lang-btn { color: var(--green); border-color: var(--green); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: all .28s ease; }

/* ============ HERO CINEMATOGRAFICO ============ */
.hero {
    position: relative;
    min-height: min(92vh, 880px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-lg);
    background-size: cover;
    background-position: center;
    animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(12, 20, 16, .5) 0%, rgba(12, 20, 16, .18) 34%, rgba(12, 20, 16, .28) 62%, rgba(10, 18, 14, .82) 100%);
}
.hero-inner { padding: calc(var(--header-h) + 3rem) 1.4rem 7.5rem; max-width: 60rem; }
.hero-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.3rem;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: '—'; margin: 0 .8rem; opacity: .6; }
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.9rem, 7.5vw, 5.4rem);
    line-height: 1.04;
    letter-spacing: -.01em;
    text-shadow: 0 3px 30px rgba(0, 0, 0, .35);
    text-wrap: balance;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, .92);
    max-width: 42rem;
    margin: 1.5rem auto 2.4rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Stats flottanti sul bordo hero */
.hero-stats {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    z-index: 5;
}
.hero-stats .stat {
    padding: 1.35rem 2.8rem;
    text-align: center;
    position: relative;
}
.hero-stats .stat + .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: var(--line);
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--green);
    line-height: 1.1;
}
.stat span { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .88rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: .98rem;
    transition: all .25s ease;
    cursor: pointer;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(11, 122, 75, .42); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 122, 75, .5); }
.btn-ghost-light { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .28); color: #fff; transform: translateY(-2px); }

/* ============ SECTIONS ============ */
.section { padding: 5.5rem 0 4.5rem; }
.section-tight { padding: 4rem 0; }
.section-head { margin-bottom: 2.6rem; }
.section-head.center { text-align: center; }
.section-eyebrow {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: var(--terra);
    margin-bottom: .6rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.section-head p { color: var(--ink-soft); margin-top: .7rem; max-width: 44rem; font-size: 1.02rem; }
.section-head.center p { margin-inline: auto; }

/* ============ REGION PHOTO CARDS ============ */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.region-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: flex;
    align-items: flex-end;
    color: #fff;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform .32s cubic-bezier(.2, .7, .3, 1), box-shadow .32s ease;
}
.region-card:nth-child(8n+1), .region-card:nth-child(8n+6) { grid-column: span 2; aspect-ratio: 21 / 10; }
.region-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: #fff; }
.card-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-color: #21362c;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.region-card:hover .card-bg { transform: scale(1.07); }
.card-bg.no-photo { background-image: linear-gradient(135deg, #0f3d28, #1d6a45 55%, #2c8f60); }
img.card-bg { width: 100%; height: 100%; object-fit: cover; }
img.rank-thumb { object-fit: cover; }
.poi-card-media { display: block; position: relative; height: 170px; margin: -1.8rem -1.8rem 1.1rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.poi-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.poi-card-media:hover img { transform: scale(1.04); }
.region-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 16, 13, 0) 38%, rgba(10, 16, 13, .38) 66%, rgba(8, 14, 11, .85) 100%);
    transition: opacity .3s ease;
}
.region-card-body { padding: 1.15rem 1.3rem; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.region-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.42rem;
    line-height: 1.15;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.region-meta { display: block; font-size: .77rem; font-weight: 500; color: rgba(255, 255, 255, .85); margin-top: .15rem; }
.region-arrow {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(4px);
    transition: all .28s ease;
    font-size: 1rem;
}
.region-card:hover .region-arrow { background: var(--green); border-color: var(--green); transform: translateX(3px); }

/* ============ CITIES STRIP (scorrimento orizzontale) ============ */
.cities-strip-wrap { position: relative; }
.cities-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .4rem .2rem 1.2rem;
    scrollbar-width: none;
}
.cities-strip::-webkit-scrollbar { display: none; }
.city-card {
    position: relative;
    flex: 0 0 228px;
    aspect-ratio: 3 / 4.1;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    color: #fff;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: #fff; }
.city-card .card-bg { background-color: #2a3a31; }
.city-card:hover .card-bg { transform: scale(1.08); }
.city-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 16, 13, 0) 45%, rgba(8, 14, 11, .88) 100%);
}
.city-card-body { padding: 1.05rem 1.1rem; }
.city-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.city-region { display: block; font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .8); margin-top: .1rem; }
.strip-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--ink);
    z-index: 5;
    transition: all .2s ease;
}
.strip-nav:hover { background: var(--green); color: #fff; border-color: var(--green); }
.strip-prev { left: -12px; }
.strip-next { right: -12px; }

/* ============ TEASER ITINERARI AI ============ */
.teaser {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--green-deep);
    color: #eaf3ee;
    box-shadow: var(--shadow-lift);
}
.teaser-content { padding: 3.4rem 3.2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.teaser-chip {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--green-deep);
    background: #d9c979;
    border-radius: 99px;
    padding: .32rem .85rem;
    margin-bottom: 1.3rem;
}
.teaser h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.14;
    color: #fff;
    text-wrap: balance;
}
.teaser p { margin: 1rem 0 1.9rem; color: rgba(234, 243, 238, .82); max-width: 34rem; }
.teaser-media { position: relative; min-height: 320px; }
.teaser-media .card-bg { transition: transform 8s ease; }
.teaser:hover .teaser-media .card-bg { transform: scale(1.05); }
.teaser-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--green-deep) 0%, rgba(15, 46, 33, 0) 42%);
}

/* ============ PAGE BANNER (pagine geo) ============ */
.page-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    isolation: isolate;
    padding-top: var(--header-h);
}
.page-banner .card-bg { z-index: -2; }
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(12, 20, 16, .42) 0%, rgba(12, 20, 16, .06) 40%, rgba(10, 18, 14, .78) 100%);
}
.page-banner.no-photo { background: linear-gradient(135deg, #0f3d28, #17573a 60%, #21754e); min-height: 300px; }
.page-banner-inner { width: 100%; padding-bottom: 2.4rem; }
.page-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.3rem, 6vw, 3.9rem);
    line-height: 1.05;
    letter-spacing: -.01em;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .4);
}
.title-sigla {
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: .3rem .65rem;
    vertical-align: middle;
    margin-left: .6rem;
}
.page-meta { color: rgba(255, 255, 255, .88); margin-top: .7rem; font-size: .95rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.page-meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.page-meta a:hover { text-decoration-color: #fff; }
.page-meta strong { color: #fff; }

.breadcrumbs { margin-bottom: .9rem; font-size: .8rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before { content: '›'; margin: 0 .5rem; opacity: .65; }
.page-banner .breadcrumbs a { color: rgba(255, 255, 255, .85); }
.page-banner .breadcrumbs a:hover { color: #fff; }
.page-banner .breadcrumbs span { color: rgba(255, 255, 255, .65); }

/* ============ PROVINCE CARDS ============ */
.provinces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.province-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.05rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 2.6rem 1.2rem 1.25rem;
    color: var(--ink);
    transition: all .25s ease;
}
.province-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.province-sigla {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green-ghost), #d8ecdf);
    color: var(--green-dark);
    font-weight: 800;
    border-radius: 14px;
    font-size: .98rem;
}
.province-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.province-meta { font-size: .8rem; color: var(--ink-soft); }
.province-card .region-arrow { position: absolute; right: 1rem; background: var(--green-ghost); border-color: transparent; color: var(--green); width: 34px; height: 34px; opacity: 0; }
.province-card:hover .region-arrow { opacity: 1; background: var(--green); color: #fff; }

/* ============ MUNICIPALITIES ============ */
.munis-list { columns: 3; column-gap: 1rem; }
.muni-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .68rem 1.05rem;
    margin-bottom: .6rem;
    color: var(--ink);
    break-inside: avoid;
    transition: all .18s ease;
}
.muni-item:hover { border-color: var(--green); background: var(--green-ghost); color: var(--ink); transform: translateX(3px); }
.muni-name { font-weight: 500; font-size: .92rem; }
.muni-pop { font-size: .74rem; color: var(--ink-soft); white-space: nowrap; }
.badge-cap {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--terra);
    border: 1px solid currentColor;
    border-radius: 99px;
    padding: .07rem .45rem;
    margin-left: .4rem;
    vertical-align: middle;
}
.badge-cap-lg { font-size: .7rem; color: #fff; border-color: rgba(255,255,255,.6); background: rgba(192,73,47,.75); }

/* ============ SECTION CARDS (comune) ============ */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.05rem; }
.section-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem 1.5rem;
    overflow: hidden;
    transition: all .25s ease;
}
.section-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0;
    transition: opacity .25s ease;
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.section-card:hover::before { opacity: 1; }
.section-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-ghost), #ddeee3);
    margin-bottom: .9rem;
}
.section-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin-bottom: .3rem; }
.section-card p { font-size: .88rem; color: var(--ink-soft); }

/* ============ ERROR PAGES ============ */
.error-page { padding: 8rem 0 6rem; text-align: center; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: 6.5rem; color: var(--green); line-height: 1; }
.error-page h1 { font-family: var(--font-display); font-size: 2rem; margin: .75rem 0; }
.error-text { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 2rem; }

/* ============ FOOTER ============ */
.site-footer { position: relative; background: var(--green-deep); color: #c3d4ca; margin-top: 5.5rem; }
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #009246 0 33.3%, #f4f5f0 33.3% 66.6%, #ce2b37 66.6% 100%);
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding: 4rem 1.4rem 3rem; }
.site-footer .logo-italia { color: #fff; }
.site-footer .logo-big { color: #7fd4ab; }
.footer-tagline { margin-top: .8rem; font-size: .92rem; color: #93aa9d; max-width: 26rem; }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #7d9587; margin-bottom: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; font-size: .92rem; }
.footer-col a { color: #c3d4ca; }
.footer-col a:hover { color: #fff; }
.muted { color: #6f8578; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 1.3rem 0; font-size: .78rem; color: #7d9587; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: #9db3a6; }

/* ============ MAPPA INTERATTIVA SVG ============ */
.map-section { background: var(--surface); border-block: 1px solid var(--line); }
.map-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3.5rem;
    align-items: center;
}
.map-side { min-width: 0; }
.geo-map-wrap { position: relative; }
.geo-map { width: 100%; height: auto; max-height: 620px; display: block; }
.geo-shape path,
.geo-shape-mute {
    fill: #e3efe8;
    stroke: #fff;
    stroke-width: 1.2;
    stroke-linejoin: round;
    transition: fill .18s ease, filter .18s ease, stroke-width .18s ease;
}
/* Zone colorate (palette assegnata inline via --f) */
.geo-map.colored .geo-shape path { fill: var(--f, #e3efe8); }
.geo-shape { cursor: pointer; outline: none; }
.geo-shape:hover path,
.geo-shape:focus-visible path,
.geo-shape.hl path {
    filter: brightness(.86) saturate(1.6) drop-shadow(0 4px 12px rgba(25, 23, 19, .3));
    stroke-width: 2;
}
.geo-map:not(.colored) .geo-shape:hover path,
.geo-map:not(.colored) .geo-shape.hl path { fill: var(--green); }
.geo-shape.active path { fill: var(--gold); }
.geo-shape-mute { fill: #eee9df; }
.map-label {
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 800;
    fill: #3c4a42;
    pointer-events: none;
    text-anchor: middle;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .75);
    stroke-width: 5px;
}

/* ============ MAP EXPLORER (mappa + elenco collegati) ============ */
.map-explorer {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.2rem;
    align-items: start;
}
.map-explorer .map-side { position: sticky; top: calc(var(--header-h) + 1rem); }
.map-panel {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-section .map-panel { background: var(--surface); }
.map-panel-head {
    padding: .9rem 1.2rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}
.map-panel-head strong { color: var(--green); font-size: .95rem; }
.map-filter {
    width: calc(100% - 2rem);
    margin: .8rem 1rem .2rem;
    padding: .6rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: .88rem;
    font-family: var(--font-body);
}
.map-filter:focus { outline: none; border-color: var(--green); }
.map-list { max-height: 480px; overflow-y: auto; padding: .5rem; scrollbar-width: thin; scrollbar-color: #cfc7b8 transparent; }
.map-list-tall { max-height: 560px; }
.map-list::-webkit-scrollbar { width: 8px; }
.map-list::-webkit-scrollbar-thumb { background: #d8d0c2; border-radius: 99px; }
.map-list::-webkit-scrollbar-thumb:hover { background: var(--green); }
.map-list-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem .8rem;
    border-radius: 10px;
    color: var(--ink);
    transition: background .15s ease, transform .15s ease;
}
.map-list-item:hover, .map-list-item.hl { background: var(--green-ghost); transform: translateX(4px); color: var(--ink); }
.map-list-item.hl .mli-arrow, .map-list-item:hover .mli-arrow { opacity: 1; }
.mli-chip {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green-ghost), #d8ecdf);
    color: var(--green-dark);
    font-weight: 800;
    font-size: .78rem;
    border-radius: 10px;
}
.mli-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f3d28, #2c8f60);
    background-size: cover;
    background-position: center;
}
.mli-body { min-width: 0; flex: 1; }
.mli-name { display: block; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mli-meta { font-size: .74rem; color: var(--ink-soft); white-space: nowrap; }
.mli-arrow { color: var(--green); opacity: 0; transition: opacity .15s ease; }

/* Anteprima fotografica con slider (frecce + swipe) */
.map-preview { display: block; border-bottom: 1px solid var(--line); color: var(--ink); }
.map-preview:hover { color: var(--ink); }
.map-preview-imgwrap { display: block; position: relative; overflow: hidden; }
.map-preview-img {
    display: block;
    aspect-ratio: 16 / 8.5;
    background: linear-gradient(135deg, #0f3d28, #2c8f60);
    background-size: cover;
    background-position: center;
    transition: background-image .2s ease;
}
.pv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(20, 30, 25, .45);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    transition: background .18s ease, transform .18s ease;
    padding-bottom: 3px;
}
.pv-nav:hover { background: var(--green); transform: translateY(-50%) scale(1.08); }
.pv-prev { left: .6rem; }
.pv-next { right: .6rem; }
.pv-count {
    position: absolute;
    right: .65rem;
    bottom: .6rem;
    z-index: 5;
    background: rgba(12, 20, 16, .6);
    backdrop-filter: blur(3px);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    border-radius: 99px;
    padding: .18rem .6rem;
}
.map-preview-body { display: block; padding: .9rem 1.2rem 1rem; }
.map-preview-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.map-preview-meta { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: .1rem; }
.map-preview-cta { display: inline-block; margin-top: .45rem; font-size: .8rem; font-weight: 700; color: var(--green); }
.map-explorer-home .map-list { max-height: 300px; }
.map-tooltip {
    position: fixed;
    z-index: 300;
    pointer-events: none;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 8px;
    padding: .32rem .7rem;
    box-shadow: var(--shadow-lift);
    transform: translate(-50%, calc(-100% - 12px));
    white-space: nowrap;
}
.map-copy .map-hint { margin-top: 1.1rem; font-size: .9rem; color: var(--green-dark); font-weight: 600; min-height: 1.4em; }

/* ============ MAPPA COMUNE (Leaflet) ============ */
.muni-map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
    border: 1px solid var(--line);
}
.muni-map { height: 420px; width: 100%; background: #e8efe9; }
.leaflet-container { font-family: var(--font-body); }

/* ============ SEZIONI COMUNE / POI ============ */
.page-banner-sm { min-height: 260px; }
.container-narrow { max-width: 780px; }
.count-pill {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .4rem;
    border-radius: 99px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 700;
    vertical-align: middle;
    margin-left: .3rem;
}
.card-arrow { position: absolute; right: 1.3rem; bottom: 1.2rem; color: var(--green); opacity: 0; transition: all .22s ease; }
.section-card:hover .card-arrow { opacity: 1; transform: translateX(3px); }
a.section-card { color: var(--ink); display: block; }

.poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.1rem; margin-bottom: 2.5rem; }
.poi-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow .22s ease, transform .22s ease;
}
.poi-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.poi-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.poi-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.poi-price { color: var(--gold); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.poi-excerpt { font-weight: 600; font-size: .92rem; margin: .4rem 0; }
.poi-desc { font-size: .9rem; color: var(--ink-soft); }
.poi-practical { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.poi-practical div { display: flex; gap: .4rem; font-size: .82rem; }
.poi-practical dt { flex: 0 0 auto; }
.poi-practical dd { color: var(--ink-soft); }
.poi-link { display: inline-block; margin-top: .8rem; font-size: .82rem; font-weight: 600; }

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--green-deep);
    color: #eaf3ee;
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin-top: 1.4rem;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.cta-band p { color: rgba(234, 243, 238, .8); font-size: .92rem; margin-top: .2rem; }
.cta-band-light { background: var(--green-ghost); color: var(--ink); }
.cta-band-light h2 { color: var(--ink); }
.affiliate-note { margin-top: 1.2rem; font-size: .75rem; color: var(--ink-soft); }
.empty-note { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; margin-bottom: 2rem; }
.empty-note p { color: var(--ink-soft); margin-bottom: 1.2rem; }

.sleep-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; margin-bottom: 2rem; box-shadow: var(--shadow); }
.sleep-hero h2 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .6rem; }
.sleep-hero p { color: var(--ink-soft); max-width: 42rem; margin: 0 auto 1.6rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }
.tip-box { background: #fdf6e3; border: 1px solid #eadfbc; border-radius: var(--radius); padding: 1.5rem 1.8rem; margin-top: 2rem; }
.tip-box h3 { font-size: 1rem; margin-bottom: .4rem; }
.tip-box p { font-size: .9rem; color: #6b5f3f; }

.events-list { display: grid; gap: 1rem; max-width: 860px; }
.event-card { display: flex; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.event-date {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.event-day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-month { font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.event-card h3 { font-family: var(--font-display); font-size: 1.25rem; }
.event-recurrence { font-size: .8rem; color: var(--terra); font-weight: 600; margin-top: .15rem; }
.event-excerpt { font-weight: 600; font-size: .9rem; margin-top: .35rem; }
.event-desc { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }

.getting-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.1rem; }
.getting-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.getting-card h2 { font-family: var(--font-display); font-size: 1.3rem; margin: .4rem 0 .4rem; }
.getting-card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.airports-list { list-style: none; display: grid; gap: .55rem; }
.airports-list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.airport-code { font-size: .68rem; font-weight: 800; background: var(--green-ghost); color: var(--green-dark); border-radius: 6px; padding: .1rem .4rem; }
.airport-km { margin-left: auto; color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }
.getting-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-ghost-dark { background: none; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--green); color: var(--green); }

/* ============ BLOG / PROSE ============ */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; }
.article-featured {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.4rem;
    background: linear-gradient(160deg, var(--green-dark), #0c2018);
    color: #fff;
    isolation: isolate;
    transition: all .25s ease;
}
.article-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: #fff; }
.article-featured:hover .card-bg { transform: scale(1.05); }
.article-featured::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,11,.02) 30%, rgba(8,14,11,.9) 100%); }
.article-featured-body { padding: 1.8rem 2rem; max-width: 46rem; }
.article-featured h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.18; margin: .6rem 0 .5rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.article-featured p { font-size: .95rem; color: rgba(255,255,255,.88); }
.article-chip {
    display: inline-block;
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    background: var(--terra);
    color: #fff;
    border-radius: 99px;
    padding: .28rem .75rem;
}
.article-meta { display: inline-block; margin-top: .8rem; font-size: .78rem; font-weight: 600; opacity: .85; }
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    transition: all .22s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.article-card-img { display: block; height: 175px; background-size: cover; background-position: center; transition: transform .3s ease; object-fit: cover; width: 100%; }
.article-card:hover .article-card-img { transform: scale(1.04); }
.article-card-body { display: block; padding: 1.4rem 1.5rem 1.6rem; }
.article-card h2 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; margin: .55rem 0 .5rem; }
.article-card p { font-size: .89rem; color: var(--ink-soft); }
.article-card .article-meta { color: var(--green-dark); }
.article-read { display: inline-block; margin-top: 1rem; font-size: .84rem; font-weight: 700; color: var(--green); }
.page-title-article { font-size: clamp(1.7rem, 4.5vw, 2.7rem); max-width: 60rem; }
.page-banner-article { min-height: min(46vh, 420px); display: flex; align-items: flex-end; }
.article-back { margin-top: 2.2rem; font-weight: 700; }
.prose-article a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.prose { font-size: 1.04rem; line-height: 1.75; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose code { background: var(--green-ghost); border-radius: 6px; padding: .1rem .4rem; font-size: .88em; }

/* ============ ITINERARI ============ */
.generator-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2.4rem; box-shadow: var(--shadow); }
.generator-head h2 { font-family: var(--font-display); font-size: 1.6rem; margin: .6rem 0 .3rem; }
.generator-head p { color: var(--ink-soft); max-width: 44rem; }
.generator-form { margin-top: 1.6rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.generator-form label, .contact-form label { display: block; font-size: .84rem; font-weight: 600; }
.generator-form input, .generator-form select, .contact-form input, .contact-form textarea {
    width: 100%;
    margin-top: .35rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: .95rem;
    font-family: var(--font-body);
    background: #fff;
    transition: border-color .15s ease;
}
.generator-form input:focus, .generator-form select:focus, .contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.generating-note { margin-top: 1rem; font-weight: 600; color: var(--green-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.itineraries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; }
.itinerary-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; color: var(--ink); transition: all .22s ease; }
.itinerary-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.itinerary-days { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; background: var(--green); border-radius: 99px; padding: .25rem .7rem; }
.itinerary-card h3 { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; margin: .8rem 0 .5rem; }
.itinerary-card p { font-size: .88rem; color: var(--ink-soft); }

.itinerary-timeline { margin-top: 2rem; }
.itinerary-day { position: relative; padding: 0 0 2.4rem 2.2rem; border-left: 3px solid var(--green-ghost); }
.itinerary-day:last-child { border-left-color: transparent; }
.day-marker {
    position: relative;
    left: -2.2rem;
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 99px;
    padding: .35rem 1rem;
    margin-bottom: .7rem;
}
.itinerary-day h2 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: .3rem; }
.day-intro { color: var(--ink-soft); margin-bottom: 1.1rem; }
.stop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: .7rem; }
.stop h3 { font-size: 1.05rem; font-weight: 700; }
.stop-muni { display: inline-block; font-size: .8rem; font-weight: 600; margin-top: .2rem; }
.stop-note { font-size: .88rem; color: var(--ink-soft); margin-top: .35rem; }
.day-book { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-book {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--green);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 99px;
    padding: .55rem 1.2rem;
    transition: background .2s ease;
}
.btn-book:hover { background: var(--green-dark); color: #fff; }
.btn-book-alt { background: var(--green-ghost); color: var(--green-dark); }
.btn-book-alt:hover { background: #d8ecdf; color: var(--green-dark); }

/* ============ ESPERIENZE ============ */
.hubs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.hub-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; display: flex; align-items: flex-end; color: #fff; isolation: isolate; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: #fff; }
.hub-card:hover .card-bg { transform: scale(1.06); }
.hub-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,13,.05) 30%, rgba(8,14,11,.88) 100%); }
.hub-body { padding: 1.3rem 1.4rem; }
.hub-icon { font-size: 1.5rem; display: block; }
.hub-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; margin-top: .25rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hub-tagline { display: block; font-size: .82rem; color: rgba(255,255,255,.85); margin-top: .15rem; }
.hub-count { display: inline-block; margin-top: .6rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: .2rem .6rem; }

.hub-munis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.hub-muni-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; color: var(--ink); background: var(--surface); border: 1px solid var(--line); isolation: isolate; transition: all .25s ease; }
.hub-muni-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.hub-muni-card:hover .card-bg { transform: scale(1.06); }
.hub-muni-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,16,13,0) 30%, rgba(8,14,11,.85) 100%); opacity: 0; }
.hub-muni-card:has(.card-bg)::after { opacity: 1; }
.hub-muni-body { padding: 1.1rem 1.2rem; }
.hub-muni-body.has-photo { color: #fff; }
.hub-muni-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.hub-muni-region { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .75; margin-top: .1rem; }
.hub-muni-blurb { display: block; font-size: .8rem; opacity: .9; margin-top: .3rem; }

/* ============ MINI POI (contenuti ereditati) ============ */
.mini-poi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.mini-poi {
    display: block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    color: var(--ink);
    transition: all .22s ease;
}
.mini-poi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.mini-poi-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.mini-poi-muni { display: block; font-size: .76rem; font-weight: 600; color: var(--green-dark); margin-top: .15rem; }
.mini-poi-excerpt { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }

/* ============ TOP PLACES (classifica per punteggio) ============ */
.top-cat-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.cat-chip {
    font-size: .76rem;
    font-weight: 700;
    padding: .4rem .85rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: all .18s ease;
}
.cat-chip:hover { border-color: var(--green); color: var(--green-dark); }
.cat-chip.is-active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.top-cat-tag {
    display: inline-block;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 99px;
    padding: .2rem .6rem;
    margin-bottom: .45rem;
    backdrop-filter: blur(2px);
}
.section-sub-link { font-weight: 700; color: var(--green-dark); margin-left: .4rem; white-space: nowrap; }
.top-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.top-podium-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 290px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--green-dark), #0c2018);
    color: #fff;
    isolation: isolate;
    transition: all .25s ease;
}
.top-podium-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: #fff; }
.top-podium-card:hover .card-bg { transform: scale(1.06); }
.top-podium-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,14,11,.05) 25%, rgba(8,14,11,.88) 100%); }
.top-rank {
    position: absolute;
    top: .9rem;
    left: .9rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: #1d1607;
    background: linear-gradient(160deg, #f6d878, #c99b2e);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.top-rank-2 { background: linear-gradient(160deg, #e8e9ee, #a9adba); }
.top-rank-3 { background: linear-gradient(160deg, #e5b489, #a96b3c); }
.top-podium-body { padding: 1.2rem 1.3rem; }
.top-podium-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.top-podium-muni { display: block; font-size: .78rem; font-weight: 700; margin-top: .3rem; color: rgba(255,255,255,.92); }
.top-podium-excerpt { display: block; font-size: .84rem; margin-top: .35rem; color: rgba(255,255,255,.85); }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .6rem; counter-reset: none; }
.top-list-item a {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .7rem .9rem;
    color: var(--ink);
    transition: all .2s ease;
}
.top-list-item a:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.top-list-rank {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .85rem;
    color: var(--green-dark);
    background: var(--green-ghost);
    border: 1px solid #bfe3d0;
}
.top-list-body { min-width: 0; }
.top-list-name { display: block; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.top-list-muni { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: .05rem; }

/* ============ RICERCA GLOBALE ============ */
.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s ease;
}
.search-btn:hover { border-color: var(--green); color: var(--green-dark); transform: scale(1.06); }
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 14, 11, .55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(12vh, 7rem) 1rem 1rem;
}
.search-overlay[hidden] { display: none; }
.search-panel {
    width: min(640px, 100%);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    overflow: hidden;
}
.search-input-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}
.search-input-row input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05rem;
    color: var(--ink);
    min-width: 0;
}
.search-close {
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--ink-soft);
    cursor: pointer;
    padding: .3rem .5rem;
    border-radius: 8px;
}
.search-close:hover { background: var(--bg); color: var(--ink); }
.search-results { max-height: min(52vh, 430px); overflow-y: auto; padding: .5rem; }
.search-hint { padding: 1rem .7rem; font-size: .85rem; color: var(--ink-soft); }
.search-group {
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    padding: .7rem .7rem .3rem;
}
.search-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    color: var(--ink);
}
.search-item:hover { background: var(--green-ghost); color: var(--green-dark); }
.search-item-label { font-weight: 600; font-size: .95rem; }
.search-item-sub { font-size: .76rem; color: var(--ink-soft); flex-shrink: 0; }

/* ============ TEMI & CLASSIFICHE ============ */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.theme-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    color: var(--ink);
    transition: all .22s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.theme-icon { display: block; font-size: 1.9rem; }
.theme-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-top: .5rem; }
.theme-blurb { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: .35rem; }
.theme-count {
    display: inline-block;
    margin-top: .7rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--green-dark);
    background: var(--green-ghost);
    border: 1px solid #bfe3d0;
    border-radius: 99px;
    padding: .22rem .65rem;
}
.theme-filter { display: flex; align-items: center; gap: .7rem; margin: 1.4rem 0; font-size: .9rem; }
.theme-filter select {
    padding: .5rem .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-size: .9rem;
    color: var(--ink);
}
.rank-full-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rank-row a {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    color: var(--ink);
    transition: all .2s ease;
}
.rank-row a:hover { transform: translateX(5px); box-shadow: var(--shadow-lift); border-color: transparent; color: var(--ink); }
.rank-pos {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--green-dark);
    background: var(--green-ghost);
    border: 1px solid #bfe3d0;
}
.rank-pos-top { color: #1d1607; background: linear-gradient(160deg, #f6d878, #c99b2e); border-color: transparent; }
.rank-thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 56px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}
.rank-body { min-width: 0; flex: 1; }
.rank-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.rank-muni { display: block; font-size: .74rem; font-weight: 600; color: var(--green-dark); margin-top: .1rem; }
.rank-excerpt { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }
.rank-score {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .35rem .6rem;
}
@media (max-width: 560px) {
    .rank-thumb { display: none; }
    .rank-excerpt { display: none; }
}

/* ============ PAGINA LUOGO ============ */
.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(min(100%, 280px), 340px); gap: 2rem; align-items: start; }
@media (max-width: 860px) { .place-layout { grid-template-columns: 1fr; } }
.place-score { font-weight: 800; color: var(--terra); }
.place-info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    position: sticky;
    top: 90px;
}
.place-info-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .8rem; }
.place-ctas { display: grid; gap: .55rem; margin-top: 1.1rem; }
.place-ctas .btn { text-align: center; }
.place-coming { margin-top: 1rem; font-size: .86rem; font-style: italic; color: var(--ink-soft); }

/* ============ ACCOUNT: cuori, accesso, area personale ============ */
.account-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: inherit;
    padding: .35rem .6rem;
    border-radius: 999px;
    transition: background .15s ease;
}
.account-link:hover { background: rgba(255, 255, 255, .12); }
.fav-btn {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(10, 25, 18, .35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.fav-btn:hover { transform: scale(1.1); background: rgba(10, 25, 18, .55); }
.fav-btn.is-fav { color: #ff5d73; border-color: rgba(255, 93, 115, .7); }
.page-banner-inner { position: relative; }

.auth-wrap { display: flex; justify-content: center; padding: 2.5rem 0 3.5rem; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 2.4rem;
    max-width: 460px;
    width: 100%;
}
.auth-title { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: .5rem; }
.auth-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem; }
.auth-form { display: grid; gap: .7rem; }
.auth-form label { font-size: .82rem; font-weight: 700; }
.auth-form input[type="email"], .auth-form input[type="text"]:not(.hp-field) {
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--bg);
}
.auth-code-input { letter-spacing: .6em; font-size: 1.3rem; text-align: center; font-variant-numeric: tabular-nums; }
.auth-msg { padding: .7rem 1rem; border-radius: 10px; background: #e8f4ec; font-size: .9rem; margin-bottom: 1rem; }
.auth-msg.is-err { background: #fbe9e7; }
.auth-sent { font-size: .92rem; margin-bottom: 1rem; }
.auth-dev { font-size: .85rem; background: #fff3cd; padding: .6rem .9rem; border-radius: 8px; margin-bottom: 1rem; }
.auth-again { margin-top: 1rem; font-size: .85rem; }
.auth-note { margin-top: 1.4rem; font-size: .76rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.account-map { height: 340px; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; z-index: 0; background: linear-gradient(135deg, #e8efe6, #dbe7f0); }
.account-sec-title { font-family: var(--font-display); font-size: 1.25rem; margin: 1.6rem 0 .9rem; }
.account-count { font-size: .78rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; vertical-align: middle; }
.account-grid { margin-bottom: .5rem; }
.account-fav { position: relative; padding-top: 0; overflow: hidden; }
.account-fav-img { display: block; height: 120px; margin: -1rem -1rem .7rem; background-size: cover; background-position: center; }
.account-fav-del {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 25, 18, .55);
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
}
.account-fav-del:hover { background: #c0392b; }
.account-empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 1.2rem; justify-items: center; color: var(--ink-soft); }
.account-danger { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; max-width: 560px; }
.account-danger h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.account-danger p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .9rem; }
.account-del-btn:hover { border-color: #c0392b; color: #c0392b; }
@media (max-width: 720px) {
    .account-link span { display: none; }
    .fav-btn { top: .8rem; right: .8rem; }
}

/* Banner "Domenica al Museo" su musei e siti archeologici */
.free-sunday {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #fdf6e3, #f4ecd4);
    border: 1px solid #e3d5a8;
    border-left: 4px solid #c9a227;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
}
.free-sunday-icon { font-size: 1.5rem; line-height: 1; margin-top: .1rem; }
.free-sunday strong { display: block; font-family: var(--font-display); font-size: .95rem; margin-bottom: .25rem; }
.free-sunday p { font-size: .86rem; color: #5c5433; margin: 0; }

/* Mappa della scheda luogo (Leaflet lazy) */
.place-map-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-top: 1.1rem;
}
.place-map-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .8rem; }
.place-map {
    height: 300px;
    border-radius: calc(var(--radius) - 4px);
    overflow: hidden;
    background: linear-gradient(135deg, #e8efe6, #dbe7f0);
    z-index: 0;
}
.place-map .leaflet-popup-content { font-size: .88rem; }
.place-map .leaflet-popup-content a { font-weight: 700; color: var(--green-dark); }

/* Badge distanza e pillole "esplora il comune" */
.mini-poi-dist { display: block; font-size: .76rem; font-weight: 700; color: var(--green-dark); margin-top: .35rem; }
.place-explore { display: flex; flex-wrap: wrap; gap: .55rem; }
.explore-pill {
    display: inline-block;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.explore-pill:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26, 86, 50, .12); }
a.article-chip-link:hover { filter: brightness(1.08); }
.poi-card-img { display: block; height: 170px; margin: -1.8rem -1.8rem 1.1rem; background-size: cover; background-position: center; border-radius: var(--radius) var(--radius) 0 0; transition: opacity .2s ease; }
a.poi-card-img:hover { opacity: .92; }
.poi-title-link { color: inherit; }
.poi-title-link:hover { color: var(--green-dark); }
.poi-more { display: inline-block; margin-top: .9rem; font-size: .85rem; font-weight: 700; color: var(--green); }

/* ============ NEWSLETTER / GLOSSARIO / CALENDARIO / B2G ============ */
.newsletter-band {
    display: grid;
    grid-template-columns: 1fr minmax(min(100%, 300px), 420px);
    gap: 2rem;
    align-items: center;
    padding-top: 2.4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: .5rem;
}
.newsletter-copy h3 { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.newsletter-copy p { font-size: .88rem; color: rgba(255,255,255,.75); margin-top: .3rem; }
.newsletter-form { position: relative; display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 16px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-msg { flex-basis: 100%; font-size: .84rem; font-weight: 600; }
.newsletter-msg.is-ok { color: #8fe0b5; }
.newsletter-msg.is-err { color: #f2a9a0; }
.newsletter-privacy { flex-basis: 100%; font-size: .72rem; color: rgba(255,255,255,.55); }
.newsletter-privacy a { color: rgba(255,255,255,.75); text-decoration: underline; }
@media (max-width: 720px) { .newsletter-band { grid-template-columns: 1fr; gap: 1rem; } }

.glossary-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.glossary-nav a {
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .8rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
}
.glossary-nav a:hover, .glossary-nav a.is-now { background: var(--green-ghost); border-color: #bfe3d0; color: var(--green-dark); }
.glossary-list { display: grid; gap: 1rem; max-width: 860px; }
.glossary-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    scroll-margin-top: 90px;
}
.glossary-item h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--green-dark); }
.glossary-item p { font-size: .93rem; color: var(--ink-soft); margin-top: .45rem; line-height: 1.65; }

.calendar-month { margin-bottom: 2.2rem; scroll-margin-top: 90px; }
.calendar-month h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .9rem; }
.badge-now {
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--green);
    color: #fff;
    border-radius: 99px;
    padding: .25rem .7rem;
    vertical-align: middle;
    margin-left: .5rem;
}
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .9rem; }
.calendar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.calendar-card h3 { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.calendar-place { display: block; font-size: .74rem; font-weight: 700; color: var(--green-dark); margin-top: .25rem; }
.calendar-card p { font-size: .84rem; color: var(--ink-soft); margin-top: .4rem; }
.calendar-note { margin-top: 1rem; font-size: .8rem; color: var(--ink-soft); font-style: italic; }

.b2g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: 1.8rem 0; }
.b2g-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
}
.b2g-card h3 { font-size: 1.02rem; font-weight: 700; }
.b2g-card p { font-size: .86rem; color: var(--ink-soft); margin-top: .4rem; }

/* ============ CONTATTI / FORM ============ */
.contact-form label { margin-bottom: 1rem; }
.checkbox-label { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 500 !important; font-size: .85rem !important; margin: 1.1rem 0 1.4rem; }
.checkbox-label input { width: auto !important; margin-top: .2rem !important; }
.alert-front { border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: 1.4rem; font-size: .93rem; background: #fdf6e3; border: 1px solid #eadfbc; color: #6b5f3f; }
.alert-front-ok { background: var(--green-ghost); border-color: #bfe3d0; color: var(--green-dark); }
.alert-front-error { background: #fdecea; border-color: #f5c6c0; color: #9f2318; }

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
    position: fixed;
    right: 1.3rem;
    bottom: 1.3rem;
    z-index: 90;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    z-index: 200;
    width: min(680px, calc(100% - 2rem));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.cookie-banner p { font-size: .84rem; color: var(--ink-soft); flex: 1; }
.cookie-banner .btn { padding: .55rem 1.3rem; font-size: .85rem; flex: 0 0 auto; }

/* ============ ANIMAZIONI ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .regions-grid { grid-template-columns: repeat(3, 1fr); }
    .region-card:nth-child(8n+1), .region-card:nth-child(8n+6) { grid-column: span 1; aspect-ratio: 16 / 11; }
    .region-card:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 21 / 10; }
}

@media (max-width: 900px) {
    .munis-list { columns: 2; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .map-split { grid-template-columns: 1fr; gap: 2rem; }
    .map-copy { text-align: center; }
    .map-copy p { margin-inline: auto; }
    .geo-map { max-height: 480px; }
    .muni-map { height: 320px; }
    .map-explorer { grid-template-columns: 1fr; }
    .map-explorer .map-side { position: static; }
    .map-list, .map-list-tall { max-height: 340px; }
    .map-explorer-home .map-list { max-height: 260px; }
    .teaser { grid-template-columns: 1fr; }
    .teaser-media { order: -1; min-height: 240px; }
    .teaser-media::after { background: linear-gradient(0deg, var(--green-deep) 0%, rgba(15, 46, 33, 0) 55%); }
    .teaser-content { padding: 2.4rem 1.8rem 2.8rem; }
    .hero-stats .stat { padding: 1.1rem 1.7rem; }
    .stat strong { font-size: 1.7rem; }
}

@media (max-width: 1080px) {
    .hubs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .hubs-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .event-card { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.3rem 1.4rem;
        gap: 1.05rem;
        box-shadow: var(--shadow-lift);
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link { color: var(--ink) !important; }
    .main-nav .nav-disabled { color: var(--ink-soft) !important; }
    .nav-toggle { display: block; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { min-height: 82vh; }
    .hero-bg { background-image: var(--hero-sm, var(--hero-lg)); animation: none; }
    .hero-inner { padding-bottom: 9.5rem; }
    .hero-stats { flex-direction: row; width: calc(100% - 2.4rem); justify-content: space-around; }
    .hero-stats .stat { padding: .9rem .6rem; }
    .stat strong { font-size: 1.35rem; }
    .stat span { font-size: .6rem; letter-spacing: .1em; }

    /* Input a 16px: evita lo zoom automatico di iOS al focus */
    .generator-form input, .generator-form select, .contact-form input, .contact-form textarea, .map-filter { font-size: 16px; }

    .section { padding: 4.4rem 0 3.4rem; }
    .section-tight { padding: 3rem 0; }
    .page-banner { min-height: 300px; }
    .page-banner-sm { min-height: 225px; }
    .generator-card { padding: 1.6rem 1.3rem; }
    .sleep-hero { padding: 1.8rem 1.3rem; }
    .cta-band { padding: 1.5rem 1.3rem; }
    .itinerary-day { padding-left: 1.5rem; }
    .day-marker { left: -1.5rem; }
    .map-explorer { gap: 1.4rem; }
    .regions-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .region-card:nth-child(6n+1) { grid-column: span 1; aspect-ratio: 16 / 11; }
    .region-card:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 21 / 11; }
    .region-name { font-size: 1.2rem; }
    .city-card { flex: 0 0 190px; }
    .strip-nav { display: none; }
    .page-banner { min-height: 320px; }
    .munis-list { columns: 1; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.8rem 2rem; }
    .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ---- Schermi molto stretti (≤430px) ---- */
@media (max-width: 430px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats .stat { padding: .75rem .4rem; }
    .stat strong { font-size: 1.15rem; }
    .btn-lg { width: 100%; justify-content: center; }
    .generator-form .btn, .contact-form .btn { width: 100%; justify-content: center; }
    .city-card { flex: 0 0 165px; }
    .page-title { font-size: 1.9rem; }
    .title-sigla { font-size: .78rem; padding: .2rem .5rem; }
    .poi-card, .article-card, .itinerary-card { padding: 1.2rem; }
    .event-date { width: 58px; height: 58px; }
    .event-day { font-size: 1.3rem; }
    .teaser-content { padding: 1.8rem 1.3rem 2.2rem; }
    .map-panel-head { padding: .7rem 1rem; }
    .mli-chip { width: 32px; height: 32px; font-size: .7rem; }
    .whatsapp-fab { width: 48px; height: 48px; right: 1rem; bottom: 1rem; }
    .prose { font-size: .98rem; }
    .day-book { flex-direction: column; }
    .day-book .btn-book { justify-content: center; }
}
