/* ============================================================
   HOME RESTYLE — rifiniture grafiche aggiuntive per Views/Home/Index.cshtml
   Non tocca home.css: qui solo override/estensioni mirate.
   Mood mantenuto: caldo/rustico elegante, Playfair Display + Georgia.
============================================================ */

/* ── HERO: profondità e leggerezza in più ───────────────────── */
.hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.45) 65%, rgba(10,10,10,.6) 100%);
}

/* ── HERO: parallax leggero (JS aggiorna --parallax-y) ───────── */
.hero {
    will-change: transform;
}

.hero-bg {
    transform: translateY(var(--parallax-y, 0px)) scale(var(--hero-s, 1));
    transition: transform .05s linear;
}

@media (max-width: 768px) {
    .hero-bg {
        transform: translateY(calc(var(--parallax-y, 0px) * .4)) scale(var(--hero-ms, var(--hero-s, 1)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        transform: none !important;
    }
}

.hero-title {
    text-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.hero-tagline,
.hero-subtitle {
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.55);
    border-radius: 14px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 40px;
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,.75);
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 3;
    animation: home-scroll-dot 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes home-scroll-dot {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ── SEZIONI: titoli con piccolo ornamento decorativo ────────── */
.intro-title,
.story-title,
.camere-home-title,
.colazione-title,
.territorio-title {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.intro-title::after,
.story-title::after,
.camere-home-title::after,
.colazione-title::after,
.territorio-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: #b48a4a;
    transform: translateX(-50%);
}

.camere-home-header,
.territorio-header {
    text-align: center;
    margin-bottom: 36px;
}

/* ── REVEAL ON SCROLL (progressive enhancement) ──────────────── */
.reveal {
    opacity: 1;
    transform: none;
}

.js-reveal-enabled .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

.js-reveal-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── CAMERE: card con hover più curato ────────────────────────── */
.chc {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(20,15,5,.12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.chc:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(20,15,5,.22);
}

.chc img {
    transition: transform .6s ease;
}

.chc:hover img {
    transform: scale(1.08);
}

.chc-label {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}

/* ── COLAZIONE: celle con leggero zoom ───────────────────────── */
.colazione-cell {
    overflow: hidden;
    border-radius: 8px;
}

.colazione-cell img {
    transition: transform .6s ease;
}

.colazione-cell:hover img {
    transform: scale(1.07);
}

/* ── SPAZI: bento con ombre più morbide ──────────────────────── */
.spazi-bento > div {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20,15,5,.1);
}

.spazi-bento img {
    transition: transform .6s ease;
}

.spazi-bento > div:hover img {
    transform: scale(1.06);
}

/* ── TERRITORIO: card con overlay label più elegante ─────────── */
.tg-card {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(20,15,5,.12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.tg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(20,15,5,.2);
}

.tg-card img {
    transition: transform .6s ease;
}

.tg-card:hover img {
    transform: scale(1.08);
}

.tg-label {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}

/* ── FULL IMAGE: leggero zoom in vista al passaggio ──────────── */
.full-image {
    overflow: hidden;
}

.full-image img {
    transition: transform 1s ease;
}

.full-image:hover img {
    transform: scale(1.04);
}

/* ── CTA FINALE: bottone più invitante ───────────────────────── */
.final-cta .btn-cta.big {
    box-shadow: 0 8px 24px rgba(180,138,74,.35);
}

.final-cta .btn-cta.big:hover {
    box-shadow: 0 12px 30px rgba(180,138,74,.5);
    transform: translateY(-2px);
}

/* ── Rispetto preferenze utente per motion ridotto ───────────── */
@media (prefers-reduced-motion: reduce) {
    .js-reveal-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before {
        animation: none;
    }
}

/* ============================================================
   TESTIMONIANZE — carosello recensioni clienti
============================================================ */

.testimonials-section {
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

.testimonials-header {
    margin-bottom: 40px;
}

.testimonials-title {
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    padding-bottom: 14px;
}

.testimonials-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: #b48a4a;
    transform: translateX(-50%);
}

.testimonials-sub {
    color: #6b6b6b;
    font-size: 1rem;
    margin-top: 4px;
}

.testimonials-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tst-track {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 22px;
    padding: 8px 4px 20px;
    scrollbar-width: none;
}

.tst-track::-webkit-scrollbar {
    display: none;
}

.tst-card {
    scroll-snap-align: start;
    flex: 0 0 100%;
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 34px 38px;
    box-shadow: 0 8px 26px rgba(20,15,5,.1);
    border: 1px solid rgba(180,138,74,.15);
}

@media (min-width: 700px) {
    .tst-card {
        flex: 0 0 calc(50% - 11px);
    }
}

.tst-stars {
    color: #b48a4a;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 14px;
}

.tst-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.tst-author {
    font-weight: 600;
    color: #1a2740;
    font-size: .95rem;
}

.tst-author span {
    font-weight: 400;
    color: #8a8a8a;
}

.tst-nav {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(180,138,74,.4);
    background: #fff;
    color: #b48a4a;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.tst-nav:hover {
    background: #b48a4a;
    color: #fff;
    transform: scale(1.06);
}

.tst-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.tst-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(180,138,74,.3);
    border: none;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.tst-dot.is-active {
    background: #b48a4a;
    transform: scale(1.3);
}

@media (max-width: 576px) {
    .testimonials-carousel {
        gap: 6px;
    }

    .tst-card {
        padding: 26px 22px;
    }

    .tst-nav {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }
}
