/* ===================================
   🎨 PERSONALIZZAZIONE FACILE
   Modifica questi valori per cambiare l'aspetto del sito
=================================== */

:root {
    /* 🎨 COLORI BRAND SILLICO - Palette calda e italiana */
    --primary: #682716;
    /* Rosso-marrone principale del brand */
    --primary-dark: #4a1c0f;
    /* Versione più scura del primario */
    --secondary: #ac9b81;
    /* Beige-marrone secondario del brand */
    --accent: #d4b896;
    /* Beige chiaro per accenti */
    --tertiary: #8b4513;
    /* Marrone caldo per varietà */

    /* 🌈 GRADIENTS ITALIANI CALDI */
    --gradient-primary: linear-gradient(135deg, #682716 0%, #8b4513 100%);
    --gradient-secondary: linear-gradient(135deg, #ac9b81 0%, #d4b896 100%);
    --gradient-accent: linear-gradient(135deg, #d4b896 0%, #f5e6d3 100%);
    --gradient-hero: linear-gradient(135deg, rgba(104, 39, 22, 0.4) 0%, rgba(139, 69, 19, 0.3) 100%);


    /* 🎯 COLORI FUNZIONALI */
    --bg-primary: #ffffff;
    /* Sfondo principale */
    --bg-secondary: #fdf9f5;
    /* Sfondo sezioni alternate - crema caldo */
    --bg-dark: #2d1810;
    /* Sfondo scuro */
    --text-primary: #2d1810;
    /* Testo principale - marrone molto scuro */
    --text-secondary: #5d453a;
    /* Testo secondario - marrone medio */
    --text-light: #8b7a6b;
    /* Testo chiaro - marrone chiaro */
    --border: #e8ddd4;
    /* Bordi - beige tenue */

    /* ✨ FONTS MODERNI CLASSICI - Eleganti ma contemporanei */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Crimson Text', Georgia, serif;

    /* 📐 DIMENSIONI E SPAZIATURE */
    --container-max: 1200px;
    /* Larghezza massima contenuto */
    --section-padding: 5rem 1.5rem;
    /* Padding sezioni desktop */
    --section-padding-mobile: 3rem 1rem;
    /* Padding sezioni mobile */
    --border-radius: 1rem;
    /* Raggio bordi */
    --border-radius-lg: 1.5rem;
    /* Raggio bordi grandi */

    /* 🎭 EFFETTI E OMBRE */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* 🎬 ANIMAZIONI */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   🔧 STILE ICONE (FONT AWESOME)
=================================== */
i.fa-solid,
i.fa-regular,
i.fa-brands,
svg.svg-inline--fa {
    color: inherit !important;
    fill: currentColor !important;
}

/* Fix specifico per icone nei titoli con gradiente */
.section-title i,
.section-title svg {
    -webkit-text-fill-color: var(--primary);
    /* Fallback marrone per icone nei titoli */
    color: var(--primary) !important;
}

/* ===================================
   🏗️ RESET E BASE
=================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   🛠️ CLASSI UTILITY
=================================== */

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

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* 🔘 BOTTONI MODERNI */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-booking {
    background: #682716;
    color: white !important;
    box-shadow: var(--shadow-lg);
    padding: 1rem 2.5rem;
    border: none;
}

.btn-booking:hover {
    background: #4a1c0f;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.1);
}

/* ===================================
   📱 HEADER E NAVIGAZIONE
=================================== */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-link i {
    font-size: 0.9em;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===================================
   🦸 HERO SECTION
=================================== */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%), url('../images/sillico-hero.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(104, 39, 22, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-secondary);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ===================================
   📸 SISTEMA IMMAGINI SEMPLIFICATO
   
   Come usare:
   1. Aggiungi class="img-placeholder" a qualsiasi div
   2. Aggiungi data-alt="Descrizione immagine" 
   3. Quando hai l'immagine, rimuovi la classe e aggiungi:
      background-image: url('path/to/image.jpg')
=================================== */

/* ===================================
   📸 SISTEMA IMMAGINI
=================================== */

.img-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.img-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   📄 SECTIONS
=================================== */

section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--bg-secondary);
}

/* ===================================
   🏛️ CHI SIAMO
=================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-text p:first-child {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.about-image {
    height: 400px;
}

/* ===================================
   🥾 SENTIERI
=================================== */

.trails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.trail-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.trail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.trail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.trail-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.trail-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.trail-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   🚴 BIKE RENT
=================================== */

.bike-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bike-features {
    list-style: none;
    margin: 2rem 0;
}

.bike-features li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bike-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.bike-intro {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.bike-image {
    height: 350px;
}

/* ===================================
   🎉 EVENTI
=================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.event-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Lightbox per immagini eventi */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: opacity var(--transition);
    z-index: 2001;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* GPX Modal */
.gpx-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.gpx-modal.active {
    display: flex;
}

.gpx-modal-content {
    position: relative;
    width: 90%;
    height: 85%;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gpx-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gpx-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    z-index: 3001;
    transition: color 0.2s;
    line-height: 1;
}

.gpx-modal-close:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .gpx-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* ===================================
   🏛️ COSA VEDERE
=================================== */

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attraction-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.attraction-image {
    height: 220px;
}

.attraction-content {
    padding: 2rem;
}

.attraction-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.attraction-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   🏨 OSPITALITÀ E FILTRI
=================================== */

.hospitality-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hospitality-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
}

.stay-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    border: 1px solid var(--border);
}

.stay-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stay-item h4 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stay-item p {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.stay-contact {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stay-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color var(--transition);
}

.stay-contact a:hover {
    color: var(--primary);
}

.stay-contact i {
    width: 20px;
    text-align: center;
}

.stay-item.filtered-out {
    display: none;
}

/* ===================================
   📞 CONTATTI E MAPPA
=================================== */


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    color: var(--primary);
}

.contact-details h4 {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.contact-map {
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    grid-column: span 1;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(10%) contrast(1.1);
    transition: filter var(--transition);
}

.contact-map:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

/* ===================================
   🦶 FOOTER E MAPPA
=================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) brightness(1.1) contrast(0.9);
}

.footer p {
    opacity: 0.6;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer p:last-child {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===================================
   🎬 ANIMAZIONI
=================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   📱 RESPONSIVE DESIGN
=================================== */

@media (max-width: 768px) {

    /* Fix padding mobile per logo e hamburger menu */
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem 1.5rem;
        /* Più padding sui lati */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: left 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        margin: 0;
        border: none;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.25rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 0.5rem;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-right: 0.5rem;
        z-index: 1100;
        /* Stays above the menu */
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Responsive grids */
    .about-grid,
    .bike-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .trails-grid,
    .attractions-grid,
    .hospitality-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust padding */
    section {
        padding: var(--section-padding-mobile);
    }

    /* Cards padding */
    .trail-card,
    .hospitality-card,
    .contact-info {
        padding: 2rem;
    }

    .attraction-content,
    .event-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav {
        padding: 1rem;
        /* Padding ridotto per schermi piccoli */
    }

    .logo {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        margin-right: 0.25rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .trail-card,
    .hospitality-card,
    .contact-info {
        padding: 1.5rem;
    }

    /* Force visibility of fade-in sections on mobile to prevent blank spaces */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===================================
   🔧 UTILITY CLASSES
=================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* ===================================
   🥾 BADGE E FILTRI SENTIERI
=================================== */

.trail-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn,
.filter-btn-duration,
.hospitality-filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover,
.filter-btn-duration:hover,
.hospitality-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active,
.filter-btn-duration.active,
.hospitality-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(104, 39, 22, 0.3);
}

.hospitality-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.trail-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.trail-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-T {
    background: #e6f7e9;
    color: #2e7d32;
}

.badge-E {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-EE {
    background: #ffebee;
    color: #c62828;
}

.trail-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.btn-trail {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.75rem;
}

/* ===================================
   🎪 MARKDOWN EVENTS
=================================== */

.events-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.events-error {
    text-align: center;
    color: #ef4444;
    padding: 2rem;
    background: #fef2f2;
    border-radius: var(--border-radius);
    border: 1px solid #fee2e2;
}

/* Nascondi eventi filtrati (non usare display:none per animazioni se possibile, ma per filtri semplici ok) */
.trail-card.filtered-out {
    display: none;
}

/* ===================================
   🏘️ STILI STRUTTURE
=================================== */
.stay-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.stay-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stay-item h4 {
    color: var(--primary);
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.stay-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.stay-contact a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.social-icon:hover {
    color: white;
}