/* ============================================================
   Sicitaly Group — Landing page (static demo)
   Tema: header nero · body grigio scuro · testo bianco · oro
   ============================================================ */

:root {
    --black: #000000;         /* header */
    --bg: #2c2f33;            /* body grigio scuro */
    --surface: #35393e;       /* card / superfici */
    --surface-alt: #24272b;   /* sezioni alternate */
    --text: #ffffff;          /* testo */
    --muted: #aab2b8;         /* testo secondario */
    --gold: #e9a227;          /* oro / accento + logo */
    --gold-soft: #f2b955;
    --terracotta: #d1603d;
    --line: rgba(255, 255, 255, 0.10);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--text); line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 0.8rem; font-size: 1.05rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1.6rem;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--gold); color: #1a1a1a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(233, 162, 39, 0.4); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ===================== Logo ===================== */
.brand { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.logo {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold);
    line-height: 1;
}
.logo .logo-sub {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--gold-soft);
    margin-left: 4px;
}

/* ===================== Header ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--black);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 76px;
}
.header-cta { display: flex; align-items: center; gap: 1rem; }
.lang { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.lang b { color: var(--gold); }

/* Hamburger (tre punti) — sempre visibile */
.nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.nav-toggle:hover { background: var(--gold); color: #1a1a1a; }

/* Menu a tendina */
.main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--black);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
}
.main-nav.open { display: flex; }
.main-nav a {
    font-weight: 500;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }

/* ===================== Hero ===================== */
.hero {
    position: relative;
    color: #fff;
    padding: 3.5rem 0 4rem;
    background:
        radial-gradient(circle at 50% 22%, #2b2f33 0%, #16181b 70%);
    overflow: hidden;
}
.hero-content { max-width: 940px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; font-weight: 700; position: relative; }
.hero h1 .t-main { transition: opacity 0.8s ease; }
.hero h1 .t-alt {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.8s ease;
}
.hero h1.alt .t-main { opacity: 0; }
.hero h1.alt .t-alt { opacity: 1; }
.hero h1 em { color: var(--gold); font-style: normal; }

/* Mappa animata dell'Italia in oro */
.italy-map-wrap { max-width: 420px; margin: 2rem auto 0; position: relative; }
.map-credit { text-align: center; margin-top: 0.9rem; font-size: 0.72rem; color: var(--muted); }
.map-credit a { color: var(--gold); }
.italy-map-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.italy-shape {
    fill: rgba(233, 162, 39, 0.05);
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(233, 162, 39, 0.35));
}
/* Aereo in volo */
.plane-icon { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(233, 162, 39, 0.65)); }

/* Riquadro di arrivo: nome citta' + meteo */
.arrival {
    position: absolute;
    transform: translate(-50%, -100%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 3;
    animation: wx-in 0.4s ease-out;
}
.arrival.show { display: flex; }
.arrival-city {
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.arrival-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(233, 162, 39, 0.25);
}

/* Badge meteo (stile WBD) */
.weather {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--wx, #fff);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.wx-circle {
    flex: 0 0 50px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    overflow: visible;
}
.wx-icon { width: 40px; height: 40px; overflow: visible; }
.wx-text { display: flex; flex-direction: column; line-height: 1.05; color: #fff; }
.wx-text strong { font-size: 1.2rem; font-weight: 700; }
.wx-text small { font-size: 0.72rem; opacity: 0.85; }

@keyframes wx-in { from { opacity: 0; transform: translate(-50%, -100%) translateY(-6px); } }
.wx-spin { animation: wx-spin 14s linear infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
.wx-glow { animation: wx-glow 4s ease-in-out infinite alternate; }
@keyframes wx-glow { to { opacity: 0.65; } }
.wx-drift { animation: wx-drift 5s ease-in-out infinite alternate; }
@keyframes wx-drift { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
.wx-drop { animation: wx-drop 1.1s linear infinite; }
@keyframes wx-drop { 0% { opacity: 0; transform: translateY(-6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
.wx-flake { animation: wx-flake 2.4s ease-in-out infinite; }
@keyframes wx-flake { 0% { opacity: 0; transform: translate(0, -6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(3px, 9px); } }
.wx-fog { animation: wx-fog 3s ease-in-out infinite alternate; }
@keyframes wx-fog { from { opacity: 0.4; transform: translateX(-4px); } to { opacity: 1; transform: translateX(4px); } }
.wx-bolt { animation: wx-bolt 3s steps(1) infinite; }
@keyframes wx-bolt { 0%, 100% { opacity: 0.2; } 8%, 14% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .arrival *, .plane-icon { animation: none !important; } }

/* Search bar */
.search-bar {
    margin-top: 2.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.9fr 0.9fr auto;
    gap: 0.9rem;
    align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; min-width: 0; }
.search-field label { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--muted); white-space: nowrap; }
.search-field select,
.search-field input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255,255,255,0.06);
}
.search-field input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.7; }
.search-field select option { color: #1a1a1a; }
.search-field select:focus,
.search-field input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,0.10); }
.search-bar .btn { justify-content: center; height: 48px; white-space: nowrap; }

/* ===================== Stats ===================== */
.stats {
    background: var(--black);
    color: #fff;
    padding: 2.4rem 0;
    border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { display: block; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat span { font-size: 0.92rem; opacity: 0.85; letter-spacing: 0.04em; }

/* ===================== Sezioni ===================== */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--surface-alt); }

.filter-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.6rem; }
.pill {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    border-radius: 100px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pill.active, .pill:hover { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-type {
    position: absolute; top: 12px; left: 12px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.35rem 0.75rem; border-radius: 100px;
}
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-loc { font-size: 0.85rem; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.card h3 { font-size: 1.25rem; color: var(--text); margin: 0.35rem 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.card-price b { color: var(--text); font-size: 1.25rem; }
.card-price span { color: var(--muted); font-size: 0.85rem; }
.card-rating { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.card-rating i { margin-right: 2px; }

/* ===================== Mappa ===================== */
.map {
    height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 0;
}
/* Tile OSM rese scure via filtro (solo le tile, non i marker/popup) */
.osm-dark { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.leaflet-popup-content { margin: 0.8rem 1rem; }
.map-pop b { color: var(--gold); display: block; font-size: 1rem; }
.map-pop span { color: var(--muted); font-size: 0.85rem; }

/* ===================== Esperienze ===================== */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.exp {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    color: #fff;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
}
.exp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s; }
.exp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.9)); z-index: 1; }
.exp:hover img { transform: scale(1.07); }
.exp-label { position: relative; z-index: 2; padding: 1.3rem; }
.exp-label b { font-size: 1.15rem; }
.exp-label span { display: block; font-size: 0.85rem; opacity: 0.85; }

/* ===================== Perché noi ===================== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.why-item { text-align: center; padding: 1rem; }
.why-icon {
    width: 64px; height: 64px; border-radius: 18px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    font-size: 1.5rem;
    background: rgba(233, 162, 39, 0.14);
    color: var(--gold);
}
.why-item h3 { color: var(--text); font-size: 1.15rem; margin-bottom: 0.4rem; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* ===================== CTA band ===================== */
.cta-band {
    background: linear-gradient(135deg, var(--gold), var(--terracotta));
    color: #1a1a1a;
    text-align: center;
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0.8rem auto 1.8rem; max-width: 520px; opacity: 0.85; }
.cta-band .btn-primary { background: #1a1a1a; color: var(--gold); }
.cta-band .btn-primary:hover { box-shadow: 0 10px 22px rgba(0,0,0,0.35); }

/* ===================== Footer ===================== */
.site-footer { background: var(--black); color: #c9d4da; padding: 4rem 0 1.8rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0.03em; }
.footer-grid a, .footer-grid p { color: #a9b7bf; font-size: 0.93rem; line-height: 2; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { margin-top: 1rem; max-width: 280px; }
.social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background 0.2s; }
.social a:hover { background: var(--gold); color: #1a1a1a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: #8798a1; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
    .search-bar { grid-template-columns: 1fr 1fr; }
    .search-bar .btn { grid-column: 1 / -1; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 720px) {
    .header-cta .lang { display: none; }
    .hero { padding: 4rem 0 5rem; }
    .cards { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
}
@media (max-width: 480px) {
    .search-bar { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-cta .btn { display: none; }
}
