/* ═══════════════════════════════════════════════
    
    Style

═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--body-bg);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; padding: 0; margin: 0; }


/* ─── Variables ─── */
:root {
    --header-bg:   #F8F2E8;
    --body-bg:     #1C1C1E;
    --section-alt: #222224;
    --section-cta: #F8F2E8;
    --footer-bg:   #F2EBE0;
    
    --gold:        #C9963A;
    --gold-hover:  #D4A84B;
    --cream:       #F5F0E8;
    --stone:       #C4B09A;
    --muted:       rgba(245, 240, 232, 0.5);
    
    --header-h:    72px;
    --radius:      5px;
    --transition:  0.35s cubic-bezier(0.22, 1, 0.36, 1);

    /* Header light mode */
    --header-text:  #2D1F0E;
    --header-sub:   #8B6242;
    --header-muted: #5C4033;
}


/* ─── Typography helpers ─── */
.section-eyebrow {
  font-size: clamp(0.58rem, 1.8vw, 0.66rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
}

.section-line {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 22px 0;
}

.section-body {
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 14px;
}

/* sections scroll-margin for fixed header */
section[id] {
  scroll-margin-top: var(--header-h);
}


/* ─── Buttons ─── */
.btn-ll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 2vw, 14px) clamp(24px, 4vw, 36px);
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  border-radius: var(--radius);  /* 5px come richiesto */
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ll-gold {
  background: var(--gold);
  color: #18080200;
  color: #180802;
}

.btn-ll-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 150, 58, 0.42);
  color: #180802;
}

.btn-ll-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 240, 232, 0.38);
}

.btn-ll-outline:hover {
  border-color: var(--stone);
  background: rgba(196, 176, 154, 0.08);
  transform: translateY(-2px);
  color: var(--cream);
}


/* ─── Gold dividers (1px oro come richiesto) ─── */
.gold-divider {
  width: 100%;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}


/* ══════════════════════════════════════════════
    HEADER
══════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 242, 232, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 150, 58, 0.22);
  transition: background 0.4s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 44px);
  gap: 20px;
}

/* Logo */


.ll-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  
  color: #2D1F0E;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.ll-logo img {
  height: 48px;
  width: auto;
}

.ll-logo-sub {
  font-size: clamp(0.48rem, 1.3vw, 0.58rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  
  color: #8B6242;
}

.ll-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ll-logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.ll-logo-icon {
  height: 46px;
  width: auto;
  order: 2;
}

.ll-logo-text-wrap {
  order: 1;
}



/* Desktop nav */
.ll-nav-desktop { display: flex; }

.ll-nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

.ll-nav-desktop a {
  font-size: clamp(0.62rem, 1.4vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* color: var(--cream); */
  color: #2D1F0E;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.ll-nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.ll-nav-desktop a:hover,
.ll-nav-desktop a.active-link { color: var(--gold); }

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

.nav-menu-link { color: var(--gold) !important; }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 3px;
  transition: color 0.25s ease, background 0.25s ease;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--gold);
  background: rgba(201, 150, 58, 0.14);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--header-text);
  transition: all 0.32s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

/* Mobile nav */
.ll-nav-mobile {
  background: var(--header-bg);
  border-top: 1px solid rgba(201, 150, 58, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ll-nav-mobile.open { max-height: 400px; }

.ll-nav-mobile ul {
  display: flex;
  flex-direction: column;
  padding: 10px 0 18px;
}

.ll-nav-mobile li a {
  display: block;
  padding: 12px clamp(16px, 4vw, 44px);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* color: var(--cream); */
  color: #2D1F0E;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.ll-nav-mobile li a:hover {
  color: var(--gold);
  padding-left: calc(clamp(16px, 4vw, 44px) + 10px);
}


/* ══════════════════════════════════════════════
    HERO — Bootstrap carousel + parallax + Ken Burns
══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* Nessun margin-top: header è trasparente sopra l'hero */
}

/* Override Bootstrap: permettiamo all'hero-slide di uscire dal carousel-inner */
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  height: 100%;
}

#hero .carousel-inner {
  overflow: visible; /* clipping gestito da #hero */
}

/* Immagine di sfondo (parallax + Ken Burns) */
.hero-slide {
  position: absolute;
  inset: 0;
  top: -15%;           /* spazio extra per parallax */
  height: 130%;        /* compensazione */
  background-size: cover;
  background-position: center;
  will-change: top, transform;
}

/* Ken Burns sull'immagine attiva */
.carousel-item.active .hero-slide {
  animation: kenBurns 6.5s ease-out both;
}

@keyframes kenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}

/* Overlay scuro su ogni slide */
.carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.50) 0%,
    rgba(0, 0, 0, 0.30) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* Indicatori carousel */
.carousel-indicators {
  z-index: 20;
  margin-bottom: 28px;
}

.carousel-indicators button {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  border-radius: 2px;
  transition: background 0.3s ease, width 0.3s ease;
}

.carousel-indicators button.active {
  background: var(--gold);
  width: 46px;
}

/* Contenuto hero (centrato, sopra l'overlay) */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(20px, 6vw, 60px);
  animation: heroFadeIn 1.1s 0.2s ease both;
}

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

.hero-eyebrow {
  font-size: clamp(0.58rem, 2vw, 0.68rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0;
}

.hero-line {
  width: 58px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  animation: lineDraw 0.9s 0.9s ease both;
}

@keyframes lineDraw {
  from { width: 0; }
  to   { width: 58px; }
}

.hero-tagline {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: var(--stone);
  font-weight: 300;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(0.55); }
}


/* ══════════════════════════════════════════════
    SECTIONS — generali
══════════════════════════════════════════════ */
section {
  padding: clamp(64px, 11vw, 104px) 0;
  text-align: center;
}

.section-alt  { background-color: var(--section-alt); }
.section-cta  { background-color: var(--section-cta); }

#cta .section-title { color: #2D1F0E; }
#cta .section-body  { color: #5C4033; }
#cta .btn-ll-outline {
  color: #2D1F0E;
  border-color: rgba(45, 31, 14, 0.35);
}
#cta .btn-ll-outline:hover {
  background: rgba(45, 31, 14, 0.08);
  border-color: #2D1F0E;
  color: #2D1F0E;
}

.section-header-wrap {
  padding: 0 clamp(20px, 5vw, 48px);
  margin-bottom: 44px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right { transform: translateX(30px); }

.reveal-right.visible { transform: translateX(0); }


/* ══════════════════════════════════════════════
   GALLERY — scroll orizzontale
══════════════════════════════════════════════ */
#gallery { padding-bottom: clamp(48px, 8vw, 80px); }

.gallery-track-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 clamp(20px, 5vw, 48px) 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
  flex-shrink: 0;
  width: clamp(230px, 33vw, 320px);
  height: clamp(270px, 38vw, 380px);
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* Frecce navigazione gallery */
.gallery-arrow {
  position: absolute;
  z-index: 5;
  background: rgba(201, 150, 58, 0.88);
  color: #180802;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.gallery-arrow:hover {
  background: var(--gold-hover);
  transform: scale(1.1);
}

.gallery-arrow-left  { left: 4px; }
.gallery-arrow-right { right: 4px; }


/* ══════════════════════════════════════════════
   IL RISTORANTE
══════════════════════════════════════════════ */
#ristorante { text-align: left; }

.restaurant-img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

/* Angolo decorativo oro */
.restaurant-img-wrap::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 70px;
  height: 70px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  z-index: 2;
}

.restaurant-img {
  width: 100%;
  height: clamp(300px, 48vw, 600px);
  object-fit: cover;
  border-radius: 2px;
  display: block;
}


/* ══════════════════════════════════════════════
   CTA
══════════════════════════════════════════════ */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}


/* ══════════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  margin-top: 52px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  border: 1px solid rgba(201, 150, 58, 0.22);
  border-radius: 2px;
  transition: border-color var(--transition);
}

.contact-card:hover {
  border-color: rgba(201, 150, 58, 0.55);
}

.contact-icon { font-size: 1.5rem; }

.contact-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 0.9rem;
  color: var(--cream);
  text-align: center;
  line-height: 1.65;
}

a.contact-value:hover { color: var(--gold); }


/* ══════════════════════════════════════════════
   MAPPA
══════════════════════════════════════════════ */
.map-wrapper {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 58, 0.22);
  margin-top: 48px;
  margin-bottom: 40px;
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
#footer {
  background-color: var(--footer-bg);
  padding: clamp(52px, 9vw, 80px) 0 0;
  border-top: 1px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(201, 150, 58, 0.14);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 600;
  /* color: var(--gold); */
  color: #2D1F0E;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* color: var(--stone); */
  color: #8B6242;
}

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.82rem;
  /* color: var(--muted); */
  color: #5C4033;
  transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
}

.footer-bottom p,
.footer-credit {
  font-size: 0.68rem;
  color: rgba(196, 176, 154, 0.823);
}

.footer-credit a {
  color: rgba(201, 151, 58, 0.804);
  transition: color 0.25s ease;
}

.footer-credit a:hover { color: var(--gold); }


/* ══════════════════════════════════════════════
    RESPONSIVE
══════════════════════════════════════════════ */

/* ─── Mobile: nascondi nav desktop, mostra hamburger ─── */
@media (max-width: 991px) {
  .ll-nav-desktop { display: none !important; }
  .hamburger      { display: flex !important; }
}

@media (min-width: 992px) {
  .hamburger      { display: none !important; }
  .ll-nav-mobile  { display: none !important; }
  .ll-nav-desktop { display: flex !important; }
}


@media (max-width: 991px) {
  .ll-logo-icon { display: none; } /* nasconde l'icona dentro il logo */
  .header-inner { position: relative; }
  .ll-logo-icon-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 46px;
    width: auto;
  }
}

@media (min-width: 992px) {
  .ll-logo-icon-center { display: none; }
  .ll-logo-icon { display: block; }
}

/* ─── Ristorante: centra su mobile ─── */
@media (max-width: 991px) {
  #ristorante        { text-align: center; }
  #ristorante .section-line { margin: 22px auto; }
}

/* ─── Footer: stack su mobile ─── */
@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .footer-col ul { align-items: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Hero: font più piccoli su telefoni stretti ─── */
@media (max-width: 400px) {
  .hero-title { font-size: 2.6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ─── Gallery arrows: più piccole su mobile ─── */
@media (max-width: 576px) {
  .gallery-arrow { width: 34px; height: 34px; font-size: 0.85rem; }
}


/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .carousel-item.active .hero-slide,
  .hero-content,
  .hero-line,
  .scroll-line,
  .reveal,
  .btn-ll,
  .gallery-item img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 58px !important;
  }
}