/* Layer di tema sopra Bootstrap. Qui vivono solo colori, font e i pezzi
   custom (hero, mosaico gallery) che Bootstrap non copre. */

:root {
  --bg: #0f1712;
  --bg-2: #16211a;
  --panel: #1b2820;
  --green: #2f6d4f;
  --green-lt: #6fae86;
  --sand: #d9c9a8;
  --text: #e8ede8;
  --muted: #a6b3aa;
  --line: rgba(255,255,255,0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.text-muted-soft { color: var(--muted); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green-lt); margin-bottom: 0.9rem;
}

.section { padding: 6.5rem 0; }
.section--alt { background: var(--bg-2); }
.section-title { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head { max-width: 620px; margin-bottom: 3.5rem; }

/* Bottoni brandizzati (override look Bootstrap) */
.btn-brand {
  --bs-btn-color: #fff;
  background: var(--green); color: #fff; border: 0;
  padding: 0.85rem 1.9rem; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 2px; transition: background 0.25s, transform 0.25s;
}
.btn-brand:hover { background: var(--green-lt); color: #fff; transform: translateY(-2px); }
.btn-brand.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.72rem; }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35);
  padding: 0.85rem 1.9rem; font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 2px; transition: background 0.25s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Navbar */
#mainNav { transition: background 0.35s, box-shadow 0.35s; }
#mainNav.nav-solid { background: rgba(15,23,18,0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.navbar-brand { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.brand-logo { height: 48px; width: auto; display: block; border-radius: 3px; }
.brand-logo--footer { height: 40px; }
.brand-mark { color: var(--green-lt); font-size: 0.7em; }
#mainNav .nav-link {
  color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.2s;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--text); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e8ede8' stroke-width='2' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
  #mainNav .navbar-collapse { background: var(--bg-2); margin-top: 0.6rem; padding: 1rem 1.2rem; border-radius: 4px; border: 1px solid var(--line); }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; padding: 6rem 0 3rem;
  background: url("../media/fullscreen-bg.jpg") center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,18,0.55) 0%, rgba(15,23,18,0.4) 40%, rgba(15,23,18,0.92) 100%);
}
.hero__content { position: relative; max-width: 760px; }
.hero__eyebrow { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.4rem; }
.hero__title { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; }
.hero__sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  color: var(--text); text-decoration: none; font-size: 1.4rem; opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,10px); } }

/* About media impilata */
.about__media { position: relative; height: 480px; }
.about__img { position: absolute; border-radius: 4px; background-size: cover; background-position: center; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.about__img--1 { width: 70%; height: 75%; top: 0; left: 0; background-image: url("../media/gallery/photo-9.jpg"); }
.about__img--2 { width: 55%; height: 55%; bottom: 0; right: 0; border: 6px solid var(--bg); background-image: url("../media/gallery/photo-10.jpg"); }
.about__stats { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.about__stats span { display: block; font-family: var(--serif); font-size: 2rem; color: var(--text); letter-spacing: 0; }

/* Card camere (override Bootstrap card) */
.room { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.room:hover { transform: translateY(-6px); border-color: var(--green); }
.room__img { width: 100%; height: 240px; object-fit: cover; display: block; }
.room .card-body { color: var(--text); }
.room__tag {
  align-self: flex-start; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-lt); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.25rem 0.6rem; margin-bottom: 0.7rem;
}
.room__foot { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.5rem; }
.room__foot .price { color: var(--sand); font-size: 0.95rem; }
.room__foot a { color: var(--green-lt); text-decoration: none; font-size: 0.85rem; }
.room__foot a:hover { color: var(--text); }
/* Card resa cliccabile (diventa un link) */
.room-link { text-decoration: none; color: inherit; cursor: pointer; }
.room-link:focus-visible { outline: 2px solid var(--green-lt); outline-offset: 3px; }
.room__cta { color: var(--green-lt); font-size: 0.85rem; transition: color 0.2s; }
.room-link:hover .room__cta { color: var(--text); }

/* Servizi */
.service { padding: 2.2rem 1.8rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); transition: background 0.3s; }
.section--alt .service { background: var(--panel); }
.service:hover { background: var(--panel); }
.service__ico { font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 1rem; color: var(--green-lt); }

/* Gallery mosaico (CSS Grid, Bootstrap non fa questo) */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery__item { border-radius: 4px; background-size: cover; background-position: center; transition: transform 0.4s; }
.gallery__item:hover { transform: scale(1.02); }
.g1 { grid-column: span 2; grid-row: span 2; background-image: url("../media/gallery/photo-9.jpg"); }
.g2 { background-image: url("../media/gallery/photo-8.jpg"); }
.g3 { background-image: url("../media/gallery/photo-10.jpg"); }
.g4 { grid-column: span 2; background-image: url("../media/gallery/photo-1.jpg"); }
.g5 { background-image: url("../media/gallery/photo-2.jpg"); }
@media (max-width: 991px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } .g1, .g4 { grid-column: span 2; } }
@media (max-width: 575px) { .gallery__grid { grid-template-columns: 1fr; } .g1, .g4 { grid-column: span 1; } .g1 { grid-row: span 1; } }

/* Contatti */
.contact__list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list strong { display: block; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-lt); margin-bottom: 0.2rem; }
.contact__list a { color: var(--text); text-decoration: none; }
.contact__list a:hover { color: var(--green-lt); }
.contact__map { min-height: 420px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; }
.footer__brand strong { color: var(--green-lt); }

/* Pagine interne con navbar sempre solida */
.gallery-page #mainNav, .camera-page #mainNav { background: rgba(15,23,18,0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.gallery-main { padding: 8rem 0 6rem; }
.gallery-carousel { max-width: 1100px; margin: 0 auto; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: transparent; }
.gallery-carousel .carousel-item img { width: 100%; height: 72vh; object-fit: contain; background: transparent; }
.gallery-carousel .carousel-control-prev, .gallery-carousel .carousel-control-next { width: 12%; }
.gallery-carousel .carousel-control-prev-icon, .gallery-carousel .carousel-control-next-icon {
  background-color: rgba(15,23,18,0.55); border-radius: 50%; padding: 1.2rem; background-size: 45%;
}
.gallery-carousel .carousel-indicators { margin-bottom: 0.6rem; }
.gallery-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; }
@media (max-width: 767px) { .gallery-carousel .carousel-item img { height: 52vh; } .gallery-main { padding: 6.5rem 0 4rem; } }

/* Pagina Camera (dettaglio stanza) */
.camera-main { padding: 8rem 0 6rem; }
.camera-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.6rem; transition: color 0.2s; }
.camera-back:hover { color: var(--text); }
.slider-wrap { position: relative; }
.room-slider { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--green) transparent; }
.room-slider img { height: 60vh; width: auto; max-width: 92%; flex: 0 0 auto; object-fit: cover; border-radius: 6px; scroll-snap-align: center; background: #0a0f0c; }
.room-slider::-webkit-scrollbar { height: 8px; }
.room-slider::-webkit-scrollbar-track { background: transparent; }
.room-slider::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
.slider-arrow {
  position: absolute; top: calc(30vh - 22px); z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(15,23,18,0.7); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--green); }
.slider-arrow--prev { left: 0.6rem; }
.slider-arrow--next { right: 0.6rem; }
.room-detail { max-width: 760px; margin: 2.8rem auto 0; text-align: center; }
.room-detail .price { color: var(--sand); font-size: 1.05rem; display: block; margin-bottom: 1.4rem; }
.room-detail p { color: var(--muted); }
@media (max-width: 767px) {
  .camera-main { padding: 6.5rem 0 4rem; }
  .room-slider img { height: 44vh; max-width: 85%; }
  .slider-arrow { display: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 991px) { .about__media { height: 380px; } }
@media (max-width: 767px) { .section { padding: 4.5rem 0; } }
