/* ================================================
   MADATRANSFER — COMPLETE DESIGN SYSTEM v3.0
   ================================================ */

/* --- ROOT VARIABLES --- */
:root {
    --primary: #0f766e;
    --primary-dark: #0d5c56;
    --secondary: #d97706;
    --secondary-light: #fef3c7;
    --brand-dark: #0f172a;
    --bg-color: #f8f5f0;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE --- */
body { background-color: var(--bg-color); font-family: 'Outfit', sans-serif; }
* { box-sizing: border-box; }
a { text-decoration: none; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes counterUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.animate-in { animation: fadeInUp 0.6s ease-out both; }

/* =============================================
   NAVIGATION
   ============================================= */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); padding: 0.5rem; }

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(15,118,110,0.08);
    border-radius: var(--radius-pill);
    padding: 3px;
    border: 1px solid rgba(15,118,110,0.15);
}
.lang-btn {
    background: none;
    border: none;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.lang-btn:hover { color: var(--primary); background: rgba(15,118,110,0.1); }
.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(15,118,110,0.35);
}
@media (max-width: 900px) {
    .lang-switcher { gap: 1px; padding: 2px; }
    .lang-btn { padding: 0.22rem 0.45rem; font-size: 0.72rem; }
}
@media (max-width: 600px) {
    .lang-switcher { order: -1; }
}

/* =============================================
   HERO
   ============================================= */
/* ============ HERO — Premium centered ============ */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, rgba(5,10,25,0.68) 0%, rgba(12,90,70,0.52) 100%),
                url('../images/panoramic-home.jpg') center 55% / cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* Subtle animated shimmer overlay */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(15,180,130,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

/* Bottom fade */
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(transparent, var(--bg-color, #f8fafc));
    pointer-events: none;
    z-index: 1;
}

/* Container must be full-width & centered inside the flex hero */
.hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Decorative badge above title */
.hero > .container::before {
    content: '🌍  Madagascar • Nosy Be • Sainte-Marie';
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.90);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
    animation: fadeInDown 0.7s ease both;
}
@keyframes fadeInDown {
    from { opacity:0; transform: translateY(-14px); }
    to   { opacity:1; transform: translateY(0); }
}

.hero h1 {
    color: #fff;
    text-shadow: 0 3px 16px rgba(0,0,0,0.45);
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 auto 1rem;
    max-width: 780px;
    animation: fadeInUp 0.75s 0.1s ease both;
}

.hero > .container > p {
    color: rgba(226, 245, 243, 0.92);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    animation: fadeInUp 0.75s 0.2s ease both;
}

@keyframes fadeInUp {
    from { opacity:0; transform: translateY(18px); }
    to   { opacity:1; transform: translateY(0); }
}

/* Search Box inside Hero */
.search-box {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    width: 100%; max-width: 960px;
    margin: 0 auto;
}
.search-form { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.input-group { flex: 1 1 180px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.input-group input, .input-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 0.95rem; font-family: 'Outfit', sans-serif; outline: none; transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--primary); }
.search-btn { flex: 0 0 auto; }
.search-btn button { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-sm); white-space: nowrap; }

/* Panoramic Banner below hero */
.panoramic-banner {
    width: 100%;
    min-height: 420px;
    height: auto;
    background: #0a0f1e;
    position: relative;
    overflow: clip;
}
/* Sfondo con texture di punti dorati */
.panoramic-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(251,191,36,0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(15,118,110,0.22) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(251,191,36,0.08) 0%, transparent 40%);
}
/* Linea decorativa diagonale */
.panoramic-banner::after {
    content: '';
    position: absolute;
    top: -10%; left: 35%; width: 1px; height: 120%;
    background: linear-gradient(to bottom, transparent, rgba(251,191,36,0.25), transparent);
    transform: rotate(12deg);
}

.panoramic-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem 3rem 2rem;
    gap: 0;
    z-index: 1;
}

/* Left badges — ora su una riga sopra */
.pano-badges {
    display: flex; flex-direction: row; gap: 0.5rem;
    flex-wrap: wrap; justify-content: center;
    margin-bottom: 1rem;
}
.pano-badge {
    background: rgba(251,191,36,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    animation: fadeIn 0.8s ease both;
}
.pano-badge:nth-child(1) { animation-delay: 0.1s; }
.pano-badge:nth-child(2) { animation-delay: 0.2s; }
.pano-badge:nth-child(3) { animation-delay: 0.3s; }
.pano-badge:nth-child(4) { animation-delay: 0.4s; }

/* Center */
.pano-center { text-align: center; margin-bottom: 1rem; }
.pano-eyebrow {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 3px;
    color: #fbbf24; margin-bottom: 0.6rem; text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: var(--radius-pill);
}
.panoramic-overlay h3 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 0.65rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
/* Sottolineatura dorata */
.panoramic-overlay h3 span {
    position: relative; display: inline-block;
}
.panoramic-overlay h3 span::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    border-radius: 2px;
}
.panoramic-overlay p {
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    max-width: 460px;
    margin-left: auto; margin-right: auto;
}
.pano-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    border: none; border-radius: var(--radius-pill);
    padding: 0.75rem 2rem;
    font-size: 0.9rem; font-weight: 800; cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(251,191,36,0.4);
    letter-spacing: 0.3px;
}
.pano-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(251,191,36,0.5); }

.pano-facts {
    display: flex; flex-direction: row; gap: 2rem;
    align-items: center; justify-content: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
}
.pano-fact {
    text-align: center;
}
.pano-fact-val {
    display: block; font-size: 1.3rem; font-weight: 800;
    color: #fbbf24; line-height: 1;
}
.pano-fact-lbl {
    display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem;
}

/* Mobile panoramic */
@media (max-width: 768px) {
    .panoramic-overlay { padding: 1.5rem 1rem; }
    .pano-badges { gap: 0.4rem; }
    .pano-facts { gap: 1rem; flex-wrap: wrap; }
    .panoramic-banner { min-height: 380px; }
}

/* =============================================
   SECTIONS
   ============================================= */
.info-section { padding: 6rem 0; }
.info-section.bg-alt { background-color: #fff7ed; }
.info-section.bg-dark { background-color: var(--brand-dark); }
.section-title { text-align: center; margin-bottom: 0.5rem; color: var(--primary); font-size: 2.4rem; font-weight: 700; }
.section-subtitle { text-align: center; margin-bottom: 3rem; color: var(--text-muted); font-size: 1.1rem; }

/* =============================================
   HOW IT WORKS — Light Animated
   ============================================= */
.how-section {
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
/* Puntini decorativi di sfondo */
.how-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, #0f766e18 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.6;
}

.how-header { text-align: center; margin-bottom: 4rem; position: relative; z-index:1; }
.how-eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
    color: var(--primary); text-transform: uppercase; margin-bottom: 0.75rem;
}
.how-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--text-main); margin-bottom: 0.75rem; }
.how-header p { color: var(--text-muted); font-size: 1.05rem; }

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Linea tratteggiata orizzontale tra gli step */
.how-steps::before {
    content: '';
    position: absolute;
    top: 32px; left: 10%; right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0px, var(--primary) 8px, transparent 8px, transparent 18px);
    opacity: 0.25;
    z-index: 0;
}

.how-step {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    /* Animazione entrata */
    opacity: 0;
    transform: translateY(30px);
    animation: howStepIn 0.6s ease forwards;
}
.how-step:nth-child(1)  { animation-delay: 0.1s; }
.how-step:nth-child(3)  { animation-delay: 0.2s; }
.how-step:nth-child(5)  { animation-delay: 0.3s; }
.how-step:nth-child(7)  { animation-delay: 0.4s; }
.how-step:nth-child(9)  { animation-delay: 0.5s; }

@keyframes howStepIn {
    to { opacity: 1; transform: translateY(0); }
}

.how-step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #0d9488);
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(15,118,110,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; z-index: 1;
}
.how-step:hover .how-step-icon {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 16px 36px rgba(15,118,110,0.4);
}
.how-step--accent .how-step-icon {
    background: linear-gradient(135deg, var(--secondary), #f59e0b);
    box-shadow: 0 8px 24px rgba(217,119,6,0.4);
}
.how-step--accent:hover .how-step-icon {
    box-shadow: 0 16px 36px rgba(217,119,6,0.5);
}

.how-step-num {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.how-step--accent .how-step-num { color: var(--secondary); }
.how-step h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.how-step p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; max-width: 160px; margin: 0 auto; }

.how-step-badge {
    position: absolute; top: -8px; right: calc(50% - 56px);
    background: var(--secondary); color: white;
    font-size: 0.65rem; font-weight: 800;
    padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
    letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(217,119,6,0.4);
}

/* I connettori tra gli step */
.how-connector {
    display: flex; align-items: flex-start; justify-content: center;
    flex-shrink: 0; width: 28px;
    padding-top: 30px;
}
.how-connector-line { display: none; }
.how-connector-arrow {
    font-size: 1.2rem;
    color: rgba(15,118,110,0.3);
    line-height: 1;
    font-weight: 300;
}

.how-cta { text-align: center; margin-top: 3rem; position: relative; z-index:1; }

@media (max-width: 900px) {
    .how-steps { flex-direction: column; gap: 0.5rem; align-items: stretch; }
    .how-steps::before { display: none; }
    .how-step { flex-direction: row; text-align: left; padding: 1rem; gap: 1rem;
        background: white; border-radius: var(--radius-md); border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm); }
    .how-step-icon { margin-bottom: 0; flex-shrink: 0; width: 48px; height: 48px; }
    .how-step > div, .how-step > h3, .how-step > p { text-align: left; }
    .how-step p { max-width: unset; }
    .how-connector { display: none; }
    .how-step-badge { top: -8px; right: 12px; }
}

/* =============================================
   PERCHÉ MADATRANSFER — Why Section
   ============================================= */
.why-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fff, var(--bg-color));
}
.why-header { text-align: center; margin-bottom: 3.5rem; }
.why-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--text-main); margin-bottom: 0.75rem; }
.why-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.65; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.why-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    border: 1.5px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--primary); opacity: 0;
    transition: opacity 0.3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(15,118,110,0.3); }
.why-card:hover::before { opacity: 1; }

.why-card--highlight {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    color: #1c1917;
}
.why-card--highlight::before { background: #f59e0b; opacity: 1; }
.why-card--highlight h3 { color: #1c1917; }
.why-card--highlight p { color: #1a1207; }
.why-card--highlight .why-icon { background: rgba(251,191,36,0.25); }

.why-icon {
    width: 48px; height: 48px;
    background: rgba(15,118,110,0.08);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.why-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.6rem; }
.why-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

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

/* =============================================
   COME FUNZIONA — Redesigned with Large Icons
   ============================================= */
.steps-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.step-item {
    background: white; padding: 3rem 2rem 2.5rem; border-radius: var(--radius-lg); width: calc(20% - 1.5rem); min-width: 200px;
    text-align: center; box-shadow: var(--shadow-md); position: relative;
    transition: var(--transition); cursor: default;
    border-bottom: 4px solid transparent;
}
.step-item:hover { transform: translateY(-12px); box-shadow: var(--shadow-xl); border-bottom-color: var(--secondary); }
.step-number {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary), #f59e0b);
    color: white; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(217,119,6,0.4);
}
.step-icon-wrap {
    width: 90px; height: 90px; background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 3rem;
    transition: transform 0.3s;
}
.step-item:hover .step-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.step-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-main); }
.step-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* =============================================
   DESTINATION CARDS
   ============================================= */
.destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.destination-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 320px; display: flex; align-items: flex-end;
    box-shadow: var(--shadow-md); transition: var(--transition); cursor: pointer;
}
.destination-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px) scale(1.01); }
.destination-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.6s ease; }
.destination-card:hover img { transform: scale(1.08); }
.destination-content {
    position: relative; z-index: 2; padding: 1.5rem; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); color: white;
}
.destination-content h3 { color: white; margin-bottom: 0.25rem; font-size: 1.3rem; font-weight: 700; }
.destination-content p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* =============================================
   STATS BANNER
   ============================================= */
.stats-banner {
    background: linear-gradient(135deg, rgba(15,118,110,0.95), rgba(15,23,42,0.95)),
                url('https://images.unsplash.com/photo-1620062402128-b80c102a7b67?auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: white; padding: 5rem 0; text-align: center;
}
.stats-banner h2 { font-size: 2.2rem; margin-bottom: 3rem; color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.stat-item { padding: 2rem; }
.stat-item h3 { font-size: 2.8rem; font-weight: 800; color: #fde68a; margin-bottom: 0.5rem; }
.stat-item p { opacity: 0.9; font-size: 1rem; font-weight: 500; }

/* Map Banner below stats */
.map-banner {
    width: 100%; background: #1a3a2e url('https://images.unsplash.com/photo-1508193638397-1c4234db14d8?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 300px; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 4rem 0;
}
.map-banner::before { content: ''; position: absolute; inset: 0; background: rgba(10,50,35,0.65); }
.map-banner-content { position: relative; z-index: 2; text-align: center; color: white; }
.map-banner-content h3 { font-size: 2rem; color: white; margin-bottom: 0.75rem; }
.map-banner-content p { opacity: 0.85; font-size: 1.1rem; }

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: white; padding: 2rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    transition: var(--transition); border-left: 4px solid transparent;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--secondary); transform: translateX(4px); }
.feature-icon { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.feature-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* =============================================
   PARTNER BANNER
   ============================================= */
.partner-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white; padding: 4rem; border-radius: var(--radius-lg); margin: 4rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative; overflow: hidden;
}
.partner-banner::before {
    content: '🚗'; position: absolute; right: 250px; top: -20px; font-size: 8rem; opacity: 0.06;
}
.partner-banner h2 { color: white; margin-bottom: 1rem; font-size: 2rem; }
.partner-banner p { font-size: 1.05rem; max-width: 600px; opacity: 0.85; line-height: 1.6; margin: 0; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: white; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    position: relative; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card::before { content: '"'; position: absolute; top: 5px; right: 20px; font-size: 7rem; color: #f1f5f9; font-family: Georgia, serif; line-height: 1; }
.testimonial-text { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; position: relative; z-index: 2; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #f0fdf4; }
.testimonial-author h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.star-rating { color: #f59e0b; font-size: 0.9rem; letter-spacing: 0.05em; }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: white; margin-bottom: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question {
    padding: 1.4rem 1.5rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: #f8fafc; }
.faq-toggle { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(180deg); color: var(--secondary); }
.faq-item.active .faq-question { color: var(--primary); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; color: var(--text-muted); line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 1.5rem 1.5rem; }

/* =============================================
   CTA FINALE — Fixed Image (Pista Rossa Madagascar)
   ============================================= */
.cta-finale {
    background: url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative; padding: 9rem 0; text-align: center; color: white;
}
.cta-finale::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,118,110,0.85), rgba(15,23,42,0.75)); }
.cta-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 1rem; }
.cta-content h2 { color: white; font-size: 3.2rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; }
.cta-content p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; line-height: 1.6; }

/* =============================================
   AUTOCOMPLETE
   ============================================= */
.autocomplete-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    border: 1.5px solid var(--primary); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 999; max-height: 220px; overflow-y: auto; display: none;
}
.autocomplete-item { padding: 0.75rem 1rem; cursor: pointer; color: var(--text-main); font-size: 0.9rem; border-bottom: 1px solid var(--border-color); transition: background 0.15s; }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background-color: #f0fdf9; color: var(--primary); }
.autocomplete-item strong { color: var(--primary); }

/* =============================================
   RESULTS PAGE
   ============================================= */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.result-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); display: flex; flex-direction: column;
    transition: var(--transition);
}
.result-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.result-card-img { height: 200px; background-size: cover; background-position: center; position: relative; }
.result-card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.result-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.price-ariary { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.price-euro { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-top: -2px; }
.badge { display: inline-block; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.shared { background: #dcfce7; color: #16a34a; }
.badge.private { background: #dbeafe; color: #2563eb; }

/* =============================================
   BOOKING MODAL
   ============================================= */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 9999; display: none; align-items: flex-start; justify-content: center; padding: 1rem;
    overflow-y: auto; box-sizing: border-box;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.25s ease; }
.modal-box {
    background: white; border-radius: var(--radius-lg); width: 100%; max-width: 600px;
    box-shadow: var(--shadow-xl); overflow: hidden; animation: fadeInUp 0.3s ease;
    margin: auto; flex-shrink: 0;
}
.modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; color: white; }
.modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.8; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 2rem; }
.modal-summary { background: #f0fdf9; border-radius: var(--radius-md); padding: 1.2rem; margin-bottom: 1.5rem; }
.modal-footer { padding: 1rem 2rem 1.5rem; display: flex; gap: 1rem; }
.modal-step { display: none; }
.modal-step.active { display: block; }

/* Voucher (Step 3) */
.voucher-box { border: 2px dashed var(--primary); border-radius: var(--radius-md); padding: 2rem; text-align: center; }
.voucher-id { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: 0.1em; }

/* =============================================
   AUTH / LOGIN
   ============================================= */
.auth-tabs { display: flex; margin-bottom: 2rem; border-bottom: 2px solid var(--border-color); }
.auth-tab { flex: 1; text-align: center; padding: 1rem; cursor: pointer; font-weight: 700; color: var(--text-muted); transition: color 0.2s; }
.auth-tab.active { color: var(--primary); border-bottom: 3px solid var(--primary); margin-bottom: -2px; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.social-login { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn-google { background: white; color: #3c4043; border: 1.5px solid #dadce0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-weight: 600; }
.btn-facebook { background: #1877f2; color: white; border: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-layout { display: flex; min-height: 80vh; gap: 1.5rem; align-items: flex-start; }
.admin-sidebar {
    width: 240px; background: white; padding: 1.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); position: sticky; top: 90px; flex-shrink: 0;
}
.admin-sidebar-logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); padding: 0.5rem 0 1.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; }
.admin-sidebar ul { list-style: none; padding: 0; margin: 0; }
.admin-sidebar li { margin-bottom: 0.25rem; }
.admin-nav-link {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border-radius: var(--radius-sm); color: var(--text-main); font-weight: 500; font-size: 0.9rem;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.admin-nav-link:hover { background: #f0fdf9; color: var(--primary); }
.admin-nav-link.active { background: #f0fdf9; color: var(--primary); font-weight: 700; }
.admin-nav-link .nav-icon { font-size: 1.1rem; width: 1.2rem; }
.admin-content { flex: 1; min-width: 0; }

/* Admin Panels */
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeInUp 0.3s ease; }

/* Admin KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.kpi-card {
    background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
}
.kpi-card.green { border-top-color: #22c55e; }
.kpi-card.orange { border-top-color: var(--secondary); }
.kpi-card.blue { border-top-color: #3b82f6; }
.kpi-card.red { border-top-color: #ef4444; }
.kpi-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.5rem; }
.kpi-value { font-size: 2.2rem; font-weight: 800; color: var(--text-main); }
.kpi-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Admin Tables */
.admin-card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 1.5rem; }
.admin-card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.admin-card-header h3 { margin: 0; font-size: 1.05rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table thead tr { background: #f8fafc; }
.admin-table th { padding: 0.9rem 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.admin-table td { padding: 1rem; border-top: 1px solid var(--border-color); vertical-align: middle; }
.admin-table tbody tr:hover { background: #f8fafc; }
.status-badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; }
.status-badge.active { background: #dcfce7; color: #16a34a; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.cancelled { background: #fee2e2; color: #dc2626; }
.status-badge.confirmed { background: #dbeafe; color: #1d4ed8; }

/* Action buttons in table */
.btn-icon { background: none; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.35rem 0.6rem; cursor: pointer; font-size: 0.85rem; transition: background 0.2s; }
.btn-icon:hover { background: #f1f5f9; }
.btn-icon.danger:hover { background: #fee2e2; border-color: #ef4444; }

/* Admin Search Bar */
.admin-search-bar { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.admin-search-bar input, .admin-search-bar select {
    padding: 0.6rem 1rem; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 0.9rem; outline: none; font-family: 'Outfit', sans-serif;
}
.admin-search-bar input:focus, .admin-search-bar select:focus { border-color: var(--primary); }
.admin-search-bar input { flex: 1; min-width: 200px; }

/* Destinations Admin Gallery */
.dest-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1.5rem; }
.dest-gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.dest-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.dest-gallery-actions { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; gap: 0.75rem; }
.dest-gallery-item:hover .dest-gallery-actions { display: flex; }

/* =============================================
   EXCURSION CARDS
   ============================================= */
.exc-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.exc-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}
.exc-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.exc-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.exc-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.exc-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.exc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.exc-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.exc-guide {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}
.exc-guide img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.exc-guide-info {
    font-size: 0.85rem;
}
.exc-guide-name {
    font-weight: 600;
    color: var(--text-main);
}
.exc-guide-lang {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.exc-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.exc-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.exc-price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.exc-price-child {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}


/* =============================================
   FORM STYLES (shared)
   ============================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-full { grid-column: 1 / -1; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-control {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-size: 0.95rem; font-family: 'Outfit', sans-serif; outline: none; transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--brand-dark); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { opacity: 0.6; font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #475569; }

/* =============================================
   DRIVER REGISTRATION PAGE
   ============================================= */
.page-hero-sm {
    background: linear-gradient(rgba(15,23,42,0.65), rgba(15,118,110,0.55)),
                url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white; padding: 8rem 0 4rem; text-align: center;
}
.page-hero-sm h1 { color: white; font-size: 3rem; margin-bottom: 1rem; }
.page-hero-sm p { color: rgba(255,255,255,0.85); font-size: 1.2rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    .step-item { width: calc(33.333% - 1.5rem); }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.4rem; }
    .hero > .container > p { font-size: 1.1rem; }
    .cta-content h2 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .step-item { width: 100%; max-width: 400px; }
    .partner-banner { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
    .partner-banner a { width: 100%; justify-content: center; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
        flex-direction: column; padding: 1rem 0; box-shadow: var(--shadow-md); text-align: center; z-index: 100;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 1rem; width: 100%; border-bottom: 1px solid var(--border-color); }
    .nav-links a.btn { width: 80%; margin: 1rem auto; }
    .search-btn { flex: 1 1 100%; }
    .search-btn button { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .panoramic-banner { height: 280px; }
}
@media (max-width: 480px) {
    .hero { min-height: 95vh; }
    .hero h1 { font-size: 2rem; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   HOME SEARCH TABS
   ============================================= */
.home-search-tabs-wrapper { display: flex; justify-content: center; margin-bottom: 0; position: relative; z-index: 10; top: 1px; }
.home-search-tabs { display: flex; background: rgba(240, 244, 248, 0.95); padding: 0.5rem 0.5rem 0 0.5rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; gap: 0.5rem; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); flex-wrap: wrap; justify-content: center; align-items: flex-end; overflow: hidden; backdrop-filter: blur(10px); }
.home-search-tab { padding: 0.85rem 1.75rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; cursor: pointer; font-weight: 600; color: var(--text-muted); transition: all 0.3s ease; border: none; background: transparent; font-size: 0.95rem; font-family: inherit; }
.home-search-tab:hover { color: var(--text-main); background: rgba(255,255,255,0.5); }
.home-search-tab.active { background: var(--surface); color: var(--primary); box-shadow: 0 -4px 6px rgba(0,0,0,0.02); }
@media (max-width: 600px) {
    .home-search-tabs { width: 100%; gap: 0.25rem; padding: 0.4rem 0.4rem 0 0.4rem; }
    .home-search-tab { padding: 0.6rem 0.5rem; font-size: 0.8rem; flex: 1; text-align: center; }
}


/* --- EXCURSIONS GRID --- */
.excursions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    width: 100%;
}
@media (max-width: 768px) {
    .excursions-grid {
        grid-template-columns: 1fr;
    }
}


/* --- ADMIN / GUIDE TABS MENU --- */
.admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}
.admin-tab.active, .admin-tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

