/* ============================================================
   RIUSALO — Foglio di stile principale
   Autore: grafico incaricato
   Versione: 1.0
   ============================================================ */

/* ==========================================================
   RESET & BOX MODEL
========================================================== */

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


/* ── VARIABILI CSS ──────────────────────────────────────── */

:root {
    --green-dark:   #1a5c2e;
    --green-mid:    #2d7a45;
    --green-light:  #4caf50;
    --green-pale:   #e8f5e9;
    --green-bg:     #f0f7f1;
    --orange:       #e8600a;
    --orange-light: #f28c3a;
    --gray-text:    #555;
    --gray-light:   #f5f5f5;
    --white:        #ffffff;
    --card-radius:  12px;
    --shadow:       0 4px 18px rgba(0,0,0,0.10);
}


/* ── BASE BODY ──────────────────────────────────────────── */

body.riusalo-v2 {
    font-family: 'Nunito', sans-serif;
    background: var(--white);
    color: #222;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================================
   SCROLL ANIMATIONS
========================================================== */
/* ──  FADE UP ─────────────────────────────────── */

.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}


/* ── FADE LEFT ───────────────────────── */

.fade-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-left.show {
    opacity: 1;
    transform: translateX(0);
}


/* ── FADE RIGHT ──────────────────────── */

.fade-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}



.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-up.show {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}


/* ── NAVBAR ─────────────────────────────────────────────── */

.riusalo-v2 nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: var(--white);
    border-bottom: 2px solid var(--green-pale);
    position: sticky;
    top: 0;
    z-index: 100;
}

.riusalo-v2 .mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--green-dark);
    cursor: pointer;
}

.riusalo-v2 .logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--green-dark);
    letter-spacing: -1px;
    text-decoration: none;
}

.riusalo-v2 .logo span { color: var(--orange); }

/* Logo image — stile estratto da attributo inline */
.riusalo-v2 .logo img {
    height: 80px;
    width: auto;
}

.riusalo-v2 .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}



/* ── MOBILE NAV OPEN ───────────────────── */

.riusalo-v2 .nav-links.mobile-open {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    background: white;

    padding: 20px;

    gap: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    z-index: 999;
}



.riusalo-v2 .nav-links a {
    text-decoration: none;
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.riusalo-v2 .nav-links a:hover { color: var(--orange); }

.riusalo-v2 .btn-app {
    background: var(--green-dark);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s;
}

.riusalo-v2 .btn-app:hover { background: var(--green-mid); }


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

.riusalo-v2 .hero {
    position: relative;
    height: calc(100vh - 226px);
    min-height: 333px;
    background: linear-gradient(105deg, var(--green-dark) 45%, transparent 45%),
                url('../img/hero.png') center top / cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.riusalo-v2 .hero-content {
    max-width: 800px;
    margin-left: 60px;
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: var(--shadow);
}

.riusalo-v2 .hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #f28c3a;
    line-height: 1.2;
    margin-bottom: 14px;
}

.riusalo-v2 .hero-content p {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: #555;
    max-width: 700px;
}

/* Testo evidenziato nell'hero — stile estratto da attributo inline */
.riusalo-v2 .hero-highlight {
    color: var(--green-dark);
}

.riusalo-v2 .hero-supertitle {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
    margin-bottom: 16px;
    margin-top: 0;
    max-width: 620px;
}

body.page-index .hero-content {
    text-align: center;
}

body.page-index .hero-supertitle,
body.page-index .hero-content p,
body.page-index .hero-content h1 {
    margin-left: auto;
    margin-right: auto;
}

body.page-index .hero-content h1 {
    font-size: 2.05rem;
    line-height: 1.15;
    margin-top: 14px;
    margin-bottom: 26px;
}

body.page-index .hero-content p:not(.hero-supertitle) {
    line-height: 1.45;
}

body.page-index .hero-buttons {
    justify-content: center;
}

/* Span con sottolineatura decorativa — stile estratto da attributo inline */
.riusalo-v2 .hero-highlight-underline {
    color: var(--green-dark);
    position: relative;
    display: inline-block;
}

.riusalo-v2 .hero-highlight-underline img {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}


/* ==========================================================
   HERO CALL TO ACTION
========================================================== */
.riusalo-v2  .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    background: var(--green-dark);
    color: var(--white);
    font-weight: 900;
    font-size: 1.05rem;
    padding: 18px 42px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.riusalo-v2 .btn-cta:hover {
    background: var(--green-mid);
    transform: translateY(-3px);
}



/* ── HERO BUTTONS GROUP ───────────────────────── */

.riusalo-v2 .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.riusalo-v2 .hero-buttons .btn-cta {
    margin-top: 0;
}

.riusalo-v2 .btn-cta-orange {
    background: var(--orange-light);
}

.riusalo-v2 .btn-cta-orange:hover {
    background: var(--orange);
}










/* ── SLOGAN BAND ────────────────────────────────────────── */

.riusalo-v2 .slogan-band {
    background: var(--white);
    padding: 48px 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.riusalo-v2 .slogan-band h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #f28c3a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.riusalo-v2 .badge-salvati {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-pale);
    border: 2px solid var(--green-light);
    border-radius: 12px;
    padding: 16px 24px;
    min-width: 200px;
    flex-shrink: 0;
}

.riusalo-v2 .badge-salvati .medal { font-size: 2.2rem; }
.riusalo-v2 .badge-salvati .count { font-size: 2rem; font-weight: 900; color: var(--green-dark); font-family: 'Montserrat', sans-serif; }
.riusalo-v2 .badge-salvati .label { font-size: 0.82rem; color: var(--gray-text); font-weight: 600; }


/* ── INFO SECTION ───────────────────────────────────────── */

.riusalo-v2 .info-section {
    background: var(--green-bg);
    padding: 48px 40px;
}

.riusalo-v2 .info-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 32px;
    align-items: start;
}

.riusalo-v2 .percorsi-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px;
}







.riusalo-v2 .percorso-item {
    display: grid;
    grid-template-columns: clamp(230px, 25vw, 300px) minmax(0, 1fr);
    width: 100%;
    align-items: stretch;
    margin-bottom: 24px;
}

.riusalo-v2 .percorso-card {
    width: 100%;
    min-width: 0;
    background: #efefef;
    display: flex;
    flex-direction: column;
}

.riusalo-v2 .percorso-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    min-width: 0;
}

.riusalo-v2 .percorso-title {
    background: #5b5b5b;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    line-height: 1;
    padding: 24px;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.riusalo-v2 .percorso-body {
    padding: 15px 20px;
    font-size: 1.05rem;
    line-height: 1.18;
    font-weight: 800;
    color: #4a4a4a;
}

.riusalo-v2 .riuso-card .percorso-title {
    background: var(--green-dark);
}


.riusalo-v2 .percorso-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Visibilità desktop/mobile */
.riusalo-v2 .desktop-only { display: block; }
.riusalo-v2 .mobile-only  { display: none; }


/* ── MOBILE PERCORSI CARD ───────────────────────────────── */

.riusalo-v2 .mobile-percorso-card {
    overflow: hidden;
    background: var(--white);
}

.riusalo-v2 .mobile-percorso-title {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    padding: 16px 20px;
}

.riusalo-v2 .mobile-percorso-body {
    padding: 22px 20px;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #444;
}

.riusalo-v2 .recupero-mobile .mobile-percorso-title { background: #5a5a5a; }
.riusalo-v2 .riuso-mobile .mobile-percorso-title    { background: var(--green-dark); }


/* ── VIDEO PREVIEW ──────────────────────────────────────── */

.riusalo-v2 .video-preview {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    height: auto;
}

.riusalo-v2 .video-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.riusalo-v2 .video-preview-thumb {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.riusalo-v2 .video-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    flex-shrink: 0;
}

.riusalo-v2 .video-preview-text {
    background: #fff;
    padding: 18px 20px 22px;
}

.riusalo-v2 .video-preview-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.riusalo-v2 .video-preview-text p {
    font-size: 0.82rem;
    color: var(--gray-text);
    line-height: 1.4;
}


/* ── VIDEO MODAL ────────────────────────────────────────── */

.riusalo-v2 .video-modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    z-index: 9999;
    inset: 0;

    background: rgba(0,0,0,0);

    display: flex;
    align-items: center;
    justify-content: center;

   transition:
    opacity 0.7s ease,
    background 0.7s ease,
    visibility 0.7s ease;
}

.riusalo-v2 .video-modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0,0,0,0.82);
}

.riusalo-v2 .video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;

    transform: scale(0.72);
    opacity: 0;

   transition:
    transform 0.8s cubic-bezier(.2,.8,.2,1),
    opacity 0.7s ease;
}

.riusalo-v2 .video-modal.active .video-modal-content {
    transform: scale(1);
    opacity: 1;
}

.riusalo-v2 .video-modal iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.riusalo-v2 .video-modal video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: black;
}

.riusalo-v2 .video-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ── STATS SECTION ──────────────────────────────────────── */

.riusalo-v2 .stats-section {
    background: var(--green-dark);
    padding: 28px 24px;
    text-align: center;
}

.riusalo-v2 .stats-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 26px;
    letter-spacing: -0.3px;
}

.riusalo-v2 .stats-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.riusalo-v2 .stat-card {
    width: 180px;
    padding: 12px 8px;
    text-align: center;
}

.riusalo-v2 .stat-icon {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 12px;
}

.riusalo-v2 .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #f28c3a;
    line-height: 1;
    margin-bottom: 8px;
}

.riusalo-v2 .stat-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    opacity: 0.95;
}


/* ── SEARCH SECTION ─────────────────────────────────────── */

.riusalo-v2 .search-section {
    padding: 48px 40px 32px;
    background: var(--white);
    scroll-margin-top: 110px;
}

.riusalo-v2 .search-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.riusalo-v2 .search-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.riusalo-v2 .search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 0 16px;
    flex: 1;
    min-width: 200px;
    height: 52px;
    gap: 10px;
}

.riusalo-v2 .search-input-wrap i { color: var(--green-mid); }

.riusalo-v2 .search-input-wrap input {
    border: none;
    outline: none;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    color: #333;
}

.riusalo-v2 .search-input-wrap input::placeholder { color: #aaa; }

.riusalo-v2 .btn-cerca {
    background: var(--green-mid);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0 36px;
    height: 52px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.riusalo-v2 .btn-cerca:hover { background: var(--green-light); }


/* ── GALLERY / CARDS ────────────────────────────────────── */

.riusalo-v2 .gallery-section {
    padding: 0 40px 60px;
    background: var(--white);
}

.riusalo-v2 .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.riusalo-v2 .card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

 .riusalo-v2 .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.riusalo-v2 .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.riusalo-v2 .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.riusalo-v2 .card:hover .card-img-wrap img { transform: scale(1.06); }

.riusalo-v2 .badge-scadenza {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.riusalo-v2 .card-body { padding: 14px 16px 16px; }

.riusalo-v2 .card-location {
    font-weight: 800;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 2px;
}

.riusalo-v2 .card-zone {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
}

.riusalo-v2 .card-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.riusalo-v2 .card-timer i       { color: var(--green-light); }
.riusalo-v2 .card-timer strong  { color: #222; }

.riusalo-v2 .btn-prendo {
    display: block;
    background: var(--green-mid);
    color: var(--white);
    text-align: center;
    padding: 10px;
    border-radius: 7px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.riusalo-v2 .btn-prendo:hover { background: var(--green-light); }


/* ── PAGINATION ─────────────────────────────────────────── */

.riusalo-v2 .pagination-row {
    padding: 0 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.riusalo-v2 .btn-nav {
    background: var(--green-dark);
    color: var(--white);
    border: none;
    border-radius: 7px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.riusalo-v2 .btn-nav:hover    { background: var(--green-mid); }
.riusalo-v2 .btn-nav:disabled { background: #ccc; cursor: default; }

.riusalo-v2 .page-links { display: flex; gap: 8px; }

.riusalo-v2 .page-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--green-dark);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.riusalo-v2 .page-link.active,
.riusalo-v2 .page-link:hover {
    background: var(--green-dark);
    color: var(--white);
    border-color: var(--green-dark);
}


/* ── FOOTER ─────────────────────────────────────────────── */

.riusalo-v2 footer {
    background: #1a2e1f;
    color: #aacfb0;
    padding: 48px 40px 28px;
}

.riusalo-v2 .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 36px;
}

.riusalo-v2 footer h3 {
    color: var(--green-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.riusalo-v2 footer p { font-size: 0.88rem; line-height: 1.7; }

.riusalo-v2 footer ul { list-style: none; }
.riusalo-v2 footer ul li { margin-bottom: 8px; }

.riusalo-v2 footer ul li a {
    color: #aacfb0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.riusalo-v2 footer ul li a:hover { color: var(--white); }

.riusalo-v2 .social-links {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.riusalo-v2 .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 1rem;
}

.riusalo-v2 .social-links a:hover { background: var(--green-mid); }

/* Testo legal nel footer — stile estratto da attributo inline */
.riusalo-v2 .footer-legal { font-size: 0.82rem; }
.riusalo-v2 .footer-legal a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.riusalo-v2 .footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}
.riusalo-v2 .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #778e7a;
    flex-wrap: wrap;
    gap: 10px;
}

.riusalo-v2 .footer-bottom a       { color: #778e7a; text-decoration: none; }
.riusalo-v2 .footer-bottom a:hover { color: var(--white); }


/* ── BANDA VERDE IN FONDO ───────────────────────────────── */

.riusalo-v2 .green-band {
    background: var(--green-light);
    height: 12px;
}


/* ── RESPONSIVE — max-width: 1100px ────────────────────── */

@media (max-width: 1100px) {
    .riusalo-v2 .gallery-grid { 
        grid-template-columns: repeat(3, 1fr); }
       
        .riusalo-v2 nav {
        padding: 12px 24px;
    }

      .riusalo-v2 .nav-links {
        gap: 12px;
    }

    .riusalo-v2 .nav-links a {
        font-size: 0.92rem;
    }
}


/* ── RESPONSIVE — max-width: 900px ─────────────────────── */

@media (max-width: 900px) {
    .riusalo-v2 nav             { padding: 12px 20px; }
    
    
    .riusalo-v2 .hero {
    min-height: auto;
    height: auto;
    padding: 48px 0; 
        background-position: right center; 
        background-attachment: scroll; 
    }
    
    
    .riusalo-v2 .hero-description{
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
}
    
    .riusalo-v2 .hero-content   { margin-left: 20px; max-width: 90%; }
    .riusalo-v2 .slogan-band    { flex-direction: column; padding: 28px 20px; }
    .riusalo-v2 .info-section   { padding: 28px 20px; }
    .riusalo-v2 .info-grid      { grid-template-columns: 1fr; }
    .riusalo-v2 .video-preview  { width: 100%; min-height: 230px; }
    .riusalo-v2 .stats-section  { padding: 50px 20px; }
    .riusalo-v2 .stats-section h2 { font-size: 1.7rem; }
    .riusalo-v2 .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 24px; }
     .riusalo-v2 .search-section,
    .riusalo-v2 .gallery-section { padding-left: 20px; padding-right: 20px; }
    .riusalo-v2 .pagination-row { padding: 0 20px 40px; }
    .riusalo-v2 .footer-grid    { grid-template-columns: 1fr; }

    .riusalo-v2 .nav-links      { display: none; }
    .riusalo-v2 .mobile-menu-btn { display: flex; }

    .riusalo-v2 .desktop-only   { display: none; }
    .riusalo-v2 .mobile-only    { display: block; }

     .riusalo-v2 .hero {
        background-image: url('../img/hero.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: 82% center;
        justify-content: flex-start;
    }

 .riusalo-v2 .percorso-item {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

.riusalo-v2 .percorso-card {
    order: 1;
}

.riusalo-v2 .percorso-img {
    order: 2;
}




}


/* ── RESPONSIVE — max-width: 768px ─────────────────────── */

@media (max-width: 768px) {
    .riusalo-v2 .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ── RESPONSIVE — max-width: 520px ─────────────────────── */

@media (max-width: 520px) {
    .riusalo-v2 .info-section       { padding: 24px 16px; gap: 24px; }
    .riusalo-v2 .video-preview-thumb { min-height: 170px; }
    .riusalo-v2 .stats-grid         { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .riusalo-v2 .stat-card          { padding: 10px 4px; }
    .riusalo-v2 .stat-icon          { width: 78px; height: 78px; margin-bottom: 12px; }
    .riusalo-v2 .stat-number        { font-size: 2.35rem; }
    .riusalo-v2 .stat-label         { font-size: 1.68rem; line-height: 1.2; }

    .riusalo-v2 .hero {
        background: url('../img/hero.png') center top / cover no-repeat;
        }

    .riusalo-v2 .hero-content {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin-left: 16px;
        margin-bottom: 26px;
        margin-right: 16px;
        padding: 22px 20px;
        background: rgba(255,255,255,0.90);
        backdrop-filter: blur(2px);
    }


.riusalo-v2 .hero-buttons {
    flex-direction: column;
}

.riusalo-v2 .hero-buttons .btn-cta {
    width: 100%;
}



}


/* ── RESPONSIVE — max-width: 480px ─────────────────────── */

@media (max-width: 480px) {
    .riusalo-v2 .gallery-grid { grid-template-columns: 1fr; }
}


/* ── UTILITY — classi estratte da stili inline nel body ── */

/* Immagine di copertina del video preview */
.riusalo-v2 .video-preview-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Variante più stretta del campo di ricerca (categorie) */
.riusalo-v2 .search-input-wrap--narrow { flex: 0.7; }

/* Icona chevron nel campo categorie */
.riusalo-v2 .search-chevron {
    color: #aaa;
    margin-left: auto;
}



/* ==========================================================
   APP INSTALL BANNER
   ========================================================== */

.ri-app-install-banner{
    display:none;
    align-items:center;
    justify-content:space-between;
    gap:14px;

    position:fixed;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:9999;

    background:#ffffff;
    color:#214800;

    padding:14px 16px;
    border-radius:16px;

    box-shadow:0 8px 24px rgba(0,0,0,.16);

    font-weight:800;
}

.ri-app-install-banner button{
    border:0;
    background:#0f4300;
    color:#fff;

    padding:10px 18px;
    border-radius:999px;

    font-weight:800;
    cursor:pointer;
}

@media(min-width:769px){
    .ri-app-install-banner{
        display:none !important;
    }
}