/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* ── Palette Floreis ── */
  --white:      #ffffff;          /* 55% — sfondo generale           */
  --night:      #0E1B3D;          /* 25% — header, footer, titoli, CTA */
  --lilla:      #E9E3FF;          /* 10% — sezioni emozionali, hover  */
  --lilla-mid:  #C8BDEE;          /* lilla medio — separatori, hover attivo */
  --lilla-dk:   #7B6BAD;          /* lilla scuro — accenti testo, frecce */

  /* Neutri di supporto (testo, bordi, ombre) */
  --text:       #0E1B3D;          /* titoli/corpo = blu notte         */
  --text-body:  #3a3650;          /* corpo testo leggibile            */
  --muted:      #8884a0;          /* label, didascalie                */
  --stone:      #dddae8;          /* bordi leggeri su bianco          */
  --night-muted: rgba(14,27,61,0.55);

  --nav-h: 72px;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden; /* fallback per browser molto vecchi */
  overflow-x: clip;   /* fix bug iOS Safari: overflow:hidden su body rompe
                          il position:fixed dei figli (es. popup cookie
                          Iubenda, che risultava invisibile/non apribile
                          da mobile). overflow:clip non crea un container
                          di scroll e non soffre di questo bug. */
}


img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ════════════════════════════════
   NAV HOMEPAGE — 3 stili: hamburger / classic / centered
   Configurabile da: Aspetto → Personalizza → 🧭 Menu homepage
════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.4s, box-shadow 0.4s;
}

/* Sull'hero: trasparente */
#main-nav:not(.scrolled) {
  background: transparent;
}

/* Dopo lo scroll: blu notte pieno, come il footer */
#main-nav.scrolled {
  background: #0E1B3D !important;
  background-color: #0E1B3D !important;
  border-bottom: 1px solid rgba(233,227,255,0.15) !important;
  box-shadow: 0 2px 32px rgba(14,27,61,0.22) !important;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  color: var(--white);   /* sempre bianco — sia su hero che su blu notte */
  flex-shrink: 0;
  text-decoration: none;
  /* Nascosto sull'hero: compare solo dopo lo scroll, come nelle pagine interne */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, color 0.4s;
}
#main-nav.scrolled .nav-logo {
  opacity: 1;
  pointer-events: auto;
  color: var(--white);
}
/* Tagline sotto al logo — stesso stile di .fl-header__tagline nelle pagine interne */
.nav-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lilla-mid);
  line-height: 1;
}

/* ── Nav links (stile classic) ── */
.nav-links {
  display: none;
  list-style: none;
  gap: clamp(18px, 2.8vw, 40px);
  align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s;
  text-decoration: none;
}
#main-nav.scrolled .nav-links a { color: rgba(255,255,255,0.72); }
.nav-links a:hover { color: var(--lilla) !important; }

/* ── CTA Prenota ── */
.nav-cta {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--lilla);
  border: 1px solid var(--lilla);
  padding: 0.5rem 1.1rem;
  transition: all 0.25s;
  flex-shrink: 0;
  text-decoration: none;
  display: none;
}
.nav-cta:hover { background: var(--white) !important; border-color: var(--white) !important; }

/* ── Hamburger — sempre bianco ── */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: #ffffff !important;     /* bianco sempre, su hero e su blu notte */
  transition: transform 0.35s, opacity 0.3s;
  transform-origin: center;
}
/* scrolled: ancora bianco su sfondo blu */
#main-nav.scrolled .nav-burger span { background: #ffffff !important; }

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

/* ════ STILE: HAMBURGER (default) ════ */
.nav-style--hamburger {
  justify-content: space-between;
}

/* ════ STILE: CLASSIC ════ */
.nav-style--classic {
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}
.nav-style--classic .nav-links { display: flex; }
.nav-style--classic .nav-cta   { display: inline-block; }
/* Su mobile → nascondi links, mostra hamburger */
@media (max-width: 820px) {
  .nav-style--classic .nav-links,
  .nav-style--classic .nav-cta { display: none; }
  .nav-style--classic .nav-burger { display: flex; }
}

/* ════ STILE: CENTERED ════ */
.nav-style--centered {
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: var(--nav-h, 72px);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-centered-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.nav-centered-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
}
.nav-style--centered .nav-links  { display: flex; }
.nav-style--centered .nav-cta    { display: inline-block; }
.nav-style--centered .nav-burger { display: none; }
@media (max-width: 640px) {
  .nav-style--centered .nav-centered-links,
  .nav-style--centered .nav-cta { display: none; }
  .nav-style--centered .nav-burger { display: flex; }
  .nav-style--centered { flex-direction: row; justify-content: space-between; }
}

/* ════ LOGO CENTRATO ════ */
.nav-logo--center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


/* ════════════════════════════════
   HERO — video + poster fallback
════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* fallback poster — background impostato via style inline in PHP */
#hero-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*
  VIDEO HERO
  ──────────────────────────────────────────────────
  Carica il video in lazy (load() chiamato via JS).
  Quando pronto → fade-in sopra al poster.

  PER USARLO IN PRODUZIONE:
    1. Converti il tuo video con ffmpeg:
       ffmpeg -i input.mp4 -vf scale=1920:-1 -crf 24 \
         -preset slow -movflags +faststart hero.mp4
    2. Copia hero.mp4 in /video/ (stessa root del PHP)
    3. Cambia il src sotto con: src="/video/hero.mp4"
    4. Aggiungi versione mobile (opzionale):
       ffmpeg ... -vf scale=640:-1 -crf 28 hero-mobile.mp4
       e usa <source media="(max-width:640px)" src="/video/hero-mobile.mp4">
  ──────────────────────────────────────────────────
*/
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#hero-video.loaded { opacity: 1; }

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,27,61,0.30)  0%,
    rgba(14,27,61,0.10)  40%,
    rgba(14,27,61,0.50)  100%
  );
  z-index: 1;
}

#hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  opacity: 0;
  animation: heroFade 1.8s 0.5s ease forwards;
}

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

#hero-inner .eyebrow {
  font-size: clamp(0.48rem, 1.2vw, 0.62rem);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.8rem;
}
#hero-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4.2rem, 14vw, 11rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
}
#hero-inner .location {
  margin-top: 1.1rem;
  font-size: clamp(0.48rem, 1.3vw, 0.65rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* mute button */
#mute-btn {
  position: absolute;
  bottom: 1.8rem;
  right: clamp(20px, 4vw, 52px);
  z-index: 3;
  background: rgba(14,27,61,0.35);
  border: 1px solid rgba(233,227,255,0.3);
  color: rgba(255,255,255,0.75);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  opacity: 0;
  animation: heroFade 1s 2.2s ease forwards;
}
#mute-btn:hover { background: rgba(14,27,61,0.6); color: #fff; }
@media (max-width: 640px) { #mute-btn { display: none; } }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroFade 1s 2s ease forwards, bob 2.6s 3s ease-in-out infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
.scroll-cue span {
  font-size: 0.48rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.5);
}

/* ════════════════════════════════
   SPACER
════════════════════════════════ */
.r-space { height: clamp(60px, 11vw, 130px); background: var(--white); }

/* ════════════════════════════════
   INTRO
════════════════════════════════ */
#intro {
  background: var(--white);
  padding: 0 clamp(24px, 8vw, 140px) clamp(60px, 11vw, 130px);
  display: flex;
  justify-content: center;
}
#intro p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.95rem);
  line-height: 1.75;
  max-width: 720px;
  text-align: center;
  color: var(--night);
}

/* ════════════════════════════════
   FULL WIDTH IMAGE
════════════════════════════════ */
.fw-img-wrap { width: 100%; overflow: hidden; line-height: 0; }
.fw-img-wrap img {
  width: 100%;
  height: clamp(220px, 50vw, 660px);
  object-fit: cover;
}

/* ════════════════════════════════
   ESPERIENZE
════════════════════════════════ */
#esperienze {
  background: var(--white);
  padding: clamp(68px, 11vw, 148px) clamp(24px, 8vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#esperienze .section-label {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}
#esperienze ul {
  list-style: none;
  width: 100%;
  max-width: 640px;
}
#esperienze ul li { border-top: 1px solid var(--stone); }
#esperienze ul li:last-child { border-bottom: 1px solid var(--stone); }
#esperienze ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.3rem) 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  color: var(--night);
  transition: color 0.28s, padding-left 0.28s, background 0.28s;
  border-radius: 2px;
}
#esperienze ul li a .arrow {
  font-size: 0.7rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.28s, transform 0.28s;
  color: var(--lilla-dk);
}
#esperienze ul li a:hover {
  color: var(--lilla-dk);
  padding-left: 0.7rem;
  background: var(--lilla);
  margin: 0 -0.4rem;
  padding-right: 0.4rem;
}
#esperienze ul li a:hover .arrow { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════
   SPLIT 2 COL
════════════════════════════════ */
#split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#split .split-img {
  overflow: hidden;
  min-height: clamp(260px, 40vw, 560px);
}
#split .split-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s ease;
}
#split:hover .split-img img { transform: scale(1.03); }

#split .split-text {
  background: var(--lilla);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 7vw, 96px) clamp(28px, 6vw, 80px);
}
#split .split-text .pre {
  font-size: 0.54rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lilla-dk);
  margin-bottom: 1.8rem;
}
#split .split-text blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  line-height: 1.45;
  max-width: 360px;
  color: var(--night);
}

@media (max-width: 640px) {
  #split { grid-template-columns: 1fr; }
  #split .split-img { min-height: 240px; }
}

/* ════════════════════════════════
   3 BIG LINKS
════════════════════════════════ */
#big-links {
  background: var(--white);
  padding: clamp(68px, 11vw, 148px) clamp(24px, 8vw, 140px);
  display: none;
  flex-direction: column;
  align-items: center;
}
#big-links .section-label {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
}
.big-link-item {
  width: 100%;
  max-width: 820px;
  border-top: 1px solid var(--stone);
}
.big-link-item:last-of-type { border-bottom: 1px solid var(--stone); }
.big-link-item a {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.8rem, 2vw, 1.5rem) 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 6.5vw, 5rem);
  color: var(--night);
  transition: color 0.3s, letter-spacing 0.4s;
}
.big-link-item a .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--lilla-dk);
  opacity: 0;
  transition: opacity 0.3s;
}
.big-link-item a:hover         { color: var(--lilla-dk); letter-spacing: 0.025em; }
.big-link-item a:hover .num    { opacity: 1; }

/* ════════════════════════════════
   INSTAGRAM
════════════════════════════════ */
#instagram {
  background: var(--lilla);
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#instagram .section-label {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lilla-dk);
  margin-bottom: 0.5rem;
}
#instagram .ig-handle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  letter-spacing: 0.04em;
  margin-bottom: 2.4rem;
  color: var(--night);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 1080px;
  margin-bottom: 2rem;
}
@media (max-width: 800px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

.ig-grid a { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.ig-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; }
.ig-grid a::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(14,27,61,0);
  transition: background 0.3s;
}
.ig-grid a:hover img    { transform: scale(1.07); }
.ig-grid a:hover::after { background: rgba(14,27,61,0.22); }

.ig-follow {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--night);
  border-bottom: 1px solid var(--lilla-mid);
  padding-bottom: 2px;
  transition: color 0.22s, border-color 0.22s;
}
.ig-follow:hover { color: var(--lilla-dk); border-color: var(--lilla-dk); }

/* ════════════════════════════════
   RECENSIONI GOOGLE
════════════════════════════════ */
#google-reviews {
  background: var(--white);
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gr-head {
  text-align: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
#google-reviews .section-label {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.gr-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  color: var(--night);
  margin-bottom: 1.1rem;
}
.gr-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gr-google-icon { width: 22px; height: 22px; flex-shrink: 0; }
.gr-rating-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--night);
}
.gr-stars { display: inline-flex; gap: 2px; color: #E8B923; }
.gr-stars .star { display: inline-flex; opacity: 0.28; }
.gr-stars .star.is-filled { opacity: 1; }
.gr-count {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Striscia orizzontale scorrevole (scroll-snap nativo) — stessa logica
   su desktop e mobile, così con 5 recensioni non si crea mai un'ultima
   riga sbilanciata. Su schermi larghi se ne vedono ~3 alla volta, con
   le frecce a lato; su mobile una alla volta, solo swipe. */
/* Striscia orizzontale scorrevole (scroll-snap nativo) — le card sono
   elastiche: si allargano/restringono tra un minimo e un massimo per
   riempire lo spazio disponibile. Su uno schermo abbastanza largo entrano
   tutte in una riga (le frecce si disattivano da sole, non c'è nulla da
   scorrere); sotto una certa larghezza vanno in overflow orizzontale,
   sfogliabile con le frecce o con lo swipe su mobile. */
.gr-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1400px;
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
}

.gr-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 24px);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.gr-grid::-webkit-scrollbar { display: none; }

.gr-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: var(--white);
  color: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.gr-nav svg { width: 18px; height: 18px; }
.gr-nav:hover { background: var(--lilla); border-color: var(--lilla-mid); }
.gr-nav.is-disabled { opacity: 0.3; pointer-events: none; }
@media (max-width: 640px) { .gr-nav { display: none; } }

.gr-card {
  scroll-snap-align: start;
  flex: 1 1 0;
  min-width: 240px;
  max-width: 380px;
}
@media (max-width: 640px) {
  .gr-card { flex: 0 0 82%; min-width: 0; scroll-snap-align: center; }
}

.gr-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
}
.gr-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.gr-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gr-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lilla);
  color: var(--lilla-dk);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.gr-card-id { flex: 1; min-width: 0; }
.gr-name {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--night);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-date {
  font-size: 0.68rem;
  color: var(--muted);
}
.gr-quote-icon {
  width: 22px;
  height: 22px;
  color: var(--lilla-mid);
  flex-shrink: 0;
}
.gr-card-stars { display: inline-flex; gap: 2px; color: #E8B923; margin-bottom: 0.7rem; }
.gr-card-stars .star { display: inline-flex; opacity: 0.28; }
.gr-card-stars .star.is-filled { opacity: 1; }
.gr-text {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-body);
}

.gr-cta {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--lilla);
  border: 1px solid var(--lilla);
  padding: 0.75rem 1.6rem;
  transition: all 0.25s;
  text-decoration: none;
}
.gr-cta:hover { background: var(--white); border-color: var(--lilla-dk); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--night);
  color: rgba(255,255,255,0.45);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 8vw, 96px) clamp(24px, 4vw, 44px);
}
/* Footer grid: 3 colonne con prenota, 2 senza */
.footer-grid {
  display: grid;
  gap: clamp(24px, 5vw, 60px);
  margin-bottom: clamp(32px, 6vw, 68px);
}
.footer-grid--3col { grid-template-columns: 2fr 1fr 1fr; }
.footer-grid--2col { grid-template-columns: 2fr 1fr; }
@media (max-width: 720px) {
  .footer-grid--3col,
  .footer-grid--2col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid--3col,
  .footer-grid--2col { grid-template-columns: 1fr; }
}

.footer-brand .logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.footer-brand .sub {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.3;
  margin-bottom: 1.3rem;
}
.footer-brand > p { font-size: 0.78rem; line-height: 1.8; max-width: 260px; }

footer h4 {
  font-size: 0.54rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lilla-mid);
  margin-bottom: 1.1rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.48rem; }
footer ul li a, footer address {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  font-style: normal;
  line-height: 1.8;
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--white); }

.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.footer-socials a {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(233,227,255,0.4);
  border: 1px solid rgba(233,227,255,0.15);
  padding: 0.42rem 0.8rem;
  transition: all 0.22s;
}
.footer-socials a:hover { color: var(--lilla); border-color: rgba(233,227,255,0.5); }

.footer-book-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lilla);
  border: 1px solid rgba(233,227,255,0.3);
  padding: 0.75rem 1.4rem;
  transition: all 0.26s;
}
.footer-book-btn:hover { background: var(--lilla); color: var(--night); border-color: var(--lilla); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233,227,255,0.2);
}
.footer-bottom a:hover { color: rgba(233,227,255,0.55); }
.footer-bottom-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-bottom-menu { display: flex; gap: 1.3rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-bottom-menu li { list-style: none; margin: 0; padding: 0; }
.footer-iubenda-link { display: inline-flex; align-items: center; }
.footer-iubenda-link a { text-decoration: none; }

/* ════════════════════════════════
   SCROLL REVEAL (aggiunto da JS)
════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════
   PAGINE INTERNE (page.php)
════════════════════════════════ */

/* Spazio minimo per il contenuto */
#fl-main {
  min-height: 60vh;
}

/* Immagine in evidenza (se presente) */
.fl-hero-img {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.fl-hero-img img {
  width: 100%;
  height: clamp(200px, 38vw, 480px);
  object-fit: cover;
  display: block;
}

/* Wrapper testo */
.fl-content-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 48px);
}
@media (max-width: 480px) {
  .fl-content-inner {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* Titolo pagina */
.fl-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--night);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Contenuto editor (Gutenberg / classico) */
.fl-entry {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-body);
}
.fl-entry h2,
.fl-entry h3,
.fl-entry h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--night);
  margin: 2em 0 0.6em;
}
.fl-entry h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.fl-entry h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.fl-entry p  { margin-bottom: 1.4em; }
.fl-entry a  { color: var(--lilla-dk); border-bottom: 1px solid var(--lilla-mid); transition: color 0.2s; }
.fl-entry a:hover { color: var(--night); }
.fl-entry ul,
.fl-entry ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.fl-entry li { margin-bottom: 0.4em; }
.fl-entry img { max-width: 100%; height: auto; margin: 1.5em 0; }
.fl-entry blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  border-left: 2px solid var(--lilla-mid);
  padding-left: 1.4em;
  margin: 2em 0;
  color: var(--night);
}
.fl-entry hr {
  border: none;
  border-top: 1px solid var(--stone);
  margin: 2.5em 0;
}

/* ════════════════════════════════
   AREE WIDGET
   Gestite da: Aspetto → Widget
════════════════════════════════ */

/* Contenitore area — visibile solo se ha widget dentro */
.fl-widget-area {
  width: 100%;
  background: var(--white);
}

/* Singolo widget */
.fl-widget {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
}

/* Titolo widget */
.fl-widget__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--night);
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}

/* Widget testo / HTML personalizzato */
.fl-widget p {
  font-size: clamp(0.88rem, 1.7vw, 1rem);
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 1.2em;
}
.fl-widget a {
  color: var(--lilla-dk);
  border-bottom: 1px solid var(--lilla-mid);
  transition: color 0.2s;
}
.fl-widget a:hover { color: var(--night); }

/* Widget immagine */
.fl-widget img {
  max-width: 100%;
  height: auto;
}

/* Widget video (iframe embed) */
.fl-widget iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* Variante sfondo lilla — aggiungi la classe CSS
   "fl-bg-lilla" nel campo "Classe CSS" del widget */
.fl-widget-area:has(.fl-bg-lilla),
.fl-widget.fl-bg-lilla {
  background: var(--lilla);
}

/* Variante sfondo blu notte */
.fl-widget-area:has(.fl-bg-night),
.fl-widget.fl-bg-night {
  background: var(--night);
  color: rgba(255,255,255,0.75);
}
.fl-bg-night .fl-widget__title { color: var(--white); }
.fl-bg-night p { color: rgba(255,255,255,0.65); }
.fl-bg-night a { color: var(--lilla); border-color: var(--lilla-mid); }

/* Separatore visivo tra widget area e sezione successiva */
.fl-widget-area + section,
.fl-widget-area + div {
  margin-top: 0;
}

/* ════════════════════════════════
   HEADER PAGINE INTERNE
   Barra blu notte: logo sx, welcome + menu dx
════════════════════════════════ */

/* Contenitore principale: logo sx, hamburger dx */
.fl-header {
  width: 100%;
  background: #0E1B3D !important;
  background-color: #0E1B3D !important;
  border-bottom: 2px solid var(--lilla-mid);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 clamp(24px, 5vw, 64px);
  min-height: 110px;
  box-sizing: border-box;
}

/* ── Colonna sinistra: logo ── */
.fl-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
  /* nessuna linea verticale */
}

.fl-header__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}

.fl-header__tagline {
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lilla-mid);
  line-height: 1;
}

/* Logo immagine (se impostato da Identità sito) */
.fl-header__brand img {
  max-height: 52px;
  width: auto;
  display: block;
}

/* ── Colonna destra: welcome + menu ── */
.fl-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Welcome message */
.fl-header__welcome {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  line-height: 1;
}

/* Menu orizzontale */
.fl-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Normalizza l'output di wp_nav_menu() —
   WordPress genera: <ul class="menu"> oppure <ul class="menu-NomeMenu"> */
.fl-header__nav ul,
.fl-header__nav-list,
.fl-header__nav > div > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Normalizza anche il div wrapper che wp_nav_menu aggiunge a volte */
.fl-header__nav > div {
  display: flex;
  align-items: center;
}

.fl-header__nav ul li a,
.fl-header__nav > a {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.22s;
  white-space: nowrap;
}

.fl-header__nav ul li a:hover,
.fl-header__nav > a:hover { color: var(--lilla); }

/* Voce attiva (pagina corrente) */
.fl-header__nav ul li.current-menu-item > a,
.fl-header__nav ul li.current_page_item > a {
  color: var(--lilla-mid);
}

/* Bottone CTA nel menu header */
.fl-header__cta {
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night) !important;
  background: var(--lilla);
  padding: 0.48rem 1.1rem;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}
.fl-header__cta:hover {
  background: var(--white) !important;
  color: var(--night) !important;
}

/* ── Hamburger mobile ── */
.fl-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.fl-header__burger span {
  display: block;
  height: 1px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.fl-header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fl-header__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fl-header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ════════════════════════════════
   MOBILE MENU DRAWER
   Usato da homepage (#nav-burger) e pagine interne (#fl-burger)
   Identico su desktop e mobile
════════════════════════════════ */
#mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9000 !important;
  background: var(--drawer-bg, rgba(14,27,61,0.95)) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease !important;
}
#mobile-menu.is-open {
  opacity: 1 !important;
  pointer-events: all !important;
}
#mobile-menu ul {
  list-style: none !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#mobile-menu ul li {
  border-bottom: 1px solid rgba(233,227,255,0.1) !important;
}
#mobile-menu ul li:first-child {
  border-top: 1px solid rgba(233,227,255,0.1) !important;
}
#mobile-menu ul li a {
  display: block !important;
  padding: 1.3rem 2rem !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 300 !important;
  font-size: clamp(1.5rem, 5vw, 2rem) !important;
  letter-spacing: 0.06em !important;
  color: rgba(255,255,255,0.82) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  background: transparent !important;
}
#mobile-menu ul li a:hover { color: #E9E3FF !important; }


/* ════════════════════════════════
   DRAWER: bottone X, logo, opacità
════════════════════════════════ */

/* Bottone X — posizionato dove stava l'hamburger */
.menu-close {
  position: absolute !important;
  top: clamp(16px, 3vw, 28px) !important;
  right: clamp(20px, 5vw, 64px) !important;
  width: 40px !important;
  height: 40px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  z-index: 10 !important;
}
.menu-close span {
  display: block !important;
  width: 24px !important;
  height: 1.5px !important;
  background: rgba(255,255,255,0.85) !important;
  border-radius: 2px !important;
  position: absolute !important;
  transition: background 0.2s !important;
}
.menu-close span:nth-child(1) { transform: rotate(45deg) !important; }
.menu-close span:nth-child(2) { transform: rotate(-45deg) !important; }
.menu-close:hover span { background: #E9E3FF !important; }

/* Logo + testo nel drawer */
.menu-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.8rem !important;
  margin-bottom: 2.4rem !important;
  text-align: center !important;
}
.menu-logo-img {
  max-height: 64px !important;
  width: auto !important;
  display: block !important;
  opacity: 0.92 !important;
}
.menu-text {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  color: rgba(255,255,255,0.5) !important;
  text-transform: uppercase !important;
  line-height: 1.6 !important;
}
.menu-text em, .menu-text i {
  font-style: italic !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  color: rgba(255,255,255,0.7) !important;
}
.menu-text a {
  color: #E9E3FF !important;
  text-decoration: none !important;
}
.mobile-cta {
  display: inline-block !important;
  margin-top: 2.4rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
  color: #E9E3FF !important;
  border: 1px solid rgba(233,227,255,0.35) !important;
  padding: 0.82rem 2rem !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
}
.mobile-cta:hover { background: #E9E3FF !important; color: #0E1B3D !important; }

/* Nessun padding-top sul main: l'header non è fixed */
.fl-page #fl-main {
  padding-top: 0;
}

/* ════════════════════════════════
   ANTI-OVERRIDE — neutralizza reset
   di Bootstrap/Tailwind di Bookly
════════════════════════════════ */

/* Ripristina font e colori base dopo reset di Bookly */
body {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  background: var(--white) !important;
  color: var(--text) !important;
}

/* Ripristina l'header Floreis se Bookly lo sovrascrive */
.fl-header,
.fl-header * {
  box-sizing: border-box;
}

.fl-header {
  background: #0E1B3D !important;
  background-color: #0E1B3D !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  min-height: 110px !important;
  padding: 0 clamp(24px, 5vw, 64px) !important;
  border-bottom: 2px solid #C8BDEE !important;
  font-family: 'Montserrat', sans-serif !important;
}

.fl-header__logo {
  color: #ffffff !important;
  font-family: 'Cormorant Garamond', serif !important;
}

.fl-header__tagline {
  color: #C8BDEE !important;
}

.fl-header__nav-list,
.fl-header__nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: clamp(16px, 2.5vw, 36px) !important;
  background: transparent !important;
}

.fl-header__nav-list li a,
.fl-header__nav ul li a {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.fl-header__nav-list li a:hover,
.fl-header__nav ul li a:hover {
  color: #E9E3FF !important;
}

.fl-header__cta {
  background: #E9E3FF !important;
  color: #0E1B3D !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 0.48rem 1.1rem !important;
  text-decoration: none !important;
  border: none !important;
  white-space: nowrap !important;
}

.fl-header__welcome {
  color: rgba(255,255,255,0.38) !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  background: transparent !important;
}

/* ════════════════════════════════
   LAYOUT SISTEMA (1, 2, 3 colonne)
════════════════════════════════ */

/* .fl-layout base è definito nella sezione PADDING qui sotto */

/* 1 colonna — testo centrato */
.fl-layout--1col {
  grid-template-columns: 1fr;
}
.fl-layout--1col .fl-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* 2 colonne — contenuto + sidebar */
.fl-layout--2col.fl-layout--sidebar-right {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 64px);
}
.fl-layout--2col.fl-layout--sidebar-left {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 5vw, 64px);
}

/* 3 colonne — sidebar + contenuto + sidebar */
.fl-layout--3col {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: clamp(32px, 5vw, 64px);
}

/* Sidebar */
.fl-sidebar {
  min-width: 0; /* fix overflow in grid */
}

.fl-sidebar__empty {
  background: var(--lilla);
  border: 1px dashed var(--lilla-mid);
  padding: 1.5rem;
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}
.fl-sidebar__empty strong { color: var(--lilla-dk); }

/* Widget nella sidebar */
.fl-sidebar-widget {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--stone);
}
.fl-sidebar-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fl-sidebar-widget__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--night);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--lilla-mid);
}

/* Stili base widget sidebar */
.fl-sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fl-sidebar-widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--stone);
  font-size: 0.82rem;
}
.fl-sidebar-widget ul li:last-child { border-bottom: none; }
.fl-sidebar-widget ul li a {
  color: var(--text-body);
  transition: color 0.2s;
}
.fl-sidebar-widget ul li a:hover { color: var(--lilla-dk); }

.fl-sidebar-widget p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Responsive layout */
@media (max-width: 900px) {
  .fl-layout--2col.fl-layout--sidebar-right,
  .fl-layout--2col.fl-layout--sidebar-left,
  .fl-layout--3col {
    grid-template-columns: 1fr;
  }
  /* Sidebar va sotto il contenuto su mobile */
  .fl-layout--2col.fl-layout--sidebar-left .fl-sidebar--left,
  .fl-layout--3col .fl-sidebar--left {
    order: 2;
  }
}


/* ════════════════════════════════
   LIVE PREVIEW COLORI (Personalizzatore)
   JS postMessage aggiorna le CSS vars in tempo reale
════════════════════════════════ */

/* Le variabili vengono sovrascritte da floreis-custom-colors
   iniettato da wp_head in functions.php */

/* ════════════════════════════════
   PADDING ORIZZONTALE PAGINE
   Scelto dal pannello "Opzioni pagina Floreis"
   Si applica al wrapper .fl-layout
════════════════════════════════ */

/* Base layout — centrato con padding */
.fl-layout {
  width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 64px);
}

/* Stretto — 640px, testo lungo, articoli */
.fl-padding--narrow {
  max-width: 640px !important;
  padding-left: clamp(16px, 5vw, 48px) !important;
  padding-right: clamp(16px, 5vw, 48px) !important;
}

/* Normale — 900px, default */
.fl-padding--normal {
  max-width: 900px !important;
  padding-left: clamp(16px, 5vw, 64px) !important;
  padding-right: clamp(16px, 5vw, 64px) !important;
}

/* Largo — 1200px */
.fl-padding--wide {
  max-width: 1200px !important;
  padding-left: clamp(16px, 4vw, 80px) !important;
  padding-right: clamp(16px, 4vw, 80px) !important;
}

/* Su mobile stretto: riduci ulteriormente per evitare l'effetto "troppo pieno" */
@media (max-width: 480px) {
  .fl-layout,
  .fl-padding--narrow,
  .fl-padding--normal,
  .fl-padding--wide {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* Nessuno — 100%, nessun margine laterale */
.fl-padding--none {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Piena larghezza — rompe il container */
.fl-padding--full {
  max-width: 100vw !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ════════════════════════════════
   GUTENBERG — stili blocchi nativi
════════════════════════════════ */

/* Allineamento full/wide Gutenberg */
.fl-entry .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
.fl-entry .alignwide {
  margin-left: -clamp(24px, 8vw, 96px);
  margin-right: -clamp(24px, 8vw, 96px);
}
.fl-entry .alignleft  { float: left;  margin-right: 1.5em; margin-bottom: 1em; }
.fl-entry .alignright { float: right; margin-left: 1.5em;  margin-bottom: 1em; }
.fl-entry .aligncenter { margin-left: auto; margin-right: auto; display: block; }

/* Blocco separator Gutenberg — stile Floreis */
.fl-entry .wp-block-separator {
  border: none !important;
  margin: 3rem auto;
}
/* Stile default: linea sottile */
.fl-entry .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  border-top: 1px solid var(--stone) !important;
  width: 80px;
}
/* Stile wide: linea piena */
.fl-entry .wp-block-separator.is-style-wide {
  border-top: 1px solid var(--stone) !important;
  width: 100%;
}
/* Stile dots: tre punti */
.fl-entry .wp-block-separator.is-style-dots {
  text-align: center;
  line-height: 1;
  height: auto;
}
.fl-entry .wp-block-separator.is-style-dots::before {
  content: '· · ·';
  color: var(--lilla-mid);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}

/* Separatori custom Floreis (shortcode [fl_sep style="lavanda"]) */
.fl-sep {
  display: block;
  margin: 3rem auto;
  text-align: center;
}
.fl-sep--line {
  border: none;
  border-top: 1px solid var(--stone);
  width: 80px;
}
.fl-sep--lilla::before {
  content: '✦';
  display: block;
  color: var(--lilla-dk);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
}
.fl-sep--dots::before {
  content: '· · ·';
  display: block;
  color: var(--lilla-mid);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}
.fl-sep--full {
  border: none;
  border-top: 1px solid var(--stone);
  width: 100%;
  margin: 2rem 0;
}

/* Blocco immagine Gutenberg */
.fl-entry .wp-block-image { margin: 2em 0; }
.fl-entry .wp-block-image img { border-radius: 2px; }
.fl-entry .wp-block-image figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5em;
  font-style: italic;
}

/* Blocco citazione Gutenberg */
.fl-entry .wp-block-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  border-left: 2px solid var(--lilla-mid);
  padding-left: 1.4em;
  margin: 2em 0;
  color: var(--night);
}
.fl-entry .wp-block-quote cite {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.6em;
}

/* Blocco columns Gutenberg */
.fl-entry .wp-block-columns {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin: 2em 0;
}
.fl-entry .wp-block-column { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .fl-entry .wp-block-columns { flex-direction: column; }
}

/* Blocco cover Gutenberg */
.fl-entry .wp-block-cover {
  border-radius: 4px;
  overflow: hidden;
  margin: 2em 0;
}

/* Blocco buttons Gutenberg */
.fl-entry .wp-block-button__link {
  background: var(--night) !important;
  color: var(--white) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border-radius: 0 !important;
  border: 1px solid var(--night) !important;
  transition: all 0.25s;
  text-decoration: none !important;
}
.fl-entry .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--night) !important;
}
.fl-entry .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--night) !important;
}
.fl-entry .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--night) !important;
  color: var(--white) !important;
}

/* Blocco tabella */
.fl-entry .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.fl-entry .wp-block-table td,
.fl-entry .wp-block-table th {
  padding: 0.7rem 1rem;
  border: 1px solid var(--stone);
  text-align: left;
}
.fl-entry .wp-block-table th {
  background: var(--lilla);
  color: var(--night);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fl-entry .wp-block-table tr:nth-child(even) td { background: rgba(233,227,255,0.15); }


/* ════════════════════════════════
   HERO PAGINA INTERNA
   Immagine + titolo sovrapposto
════════════════════════════════ */
.fl-page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.fl-page-hero__img {
  width: 100%;
  height: clamp(220px, 40vw, 480px);
  object-fit: cover;
  display: block;
}
.fl-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--night);
}
.fl-page-hero__title {
  position: absolute;
  bottom: clamp(24px, 5vw, 56px);
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 32px rgba(14,27,61,0.4);
}


/* ════════════════════════════════
   SFONDO PAGINA — immagine
════════════════════════════════ */
.fl-page #fl-main.has-bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: local;
}
/* Overlay sopra l'immagine di sfondo */
.fl-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.fl-layout { position: relative; z-index: 1; }


/* ════════════════════════════════
   STICKY CTA — barra prenota fissa
════════════════════════════════ */
.fl-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 888;
  background: var(--night);
  border-top: 1px solid rgba(233,227,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(20px, 5vw, 64px);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 32px rgba(14,27,61,0.2);
}
.fl-sticky-cta.is-visible { transform: translateY(0); }
.fl-sticky-cta__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.fl-sticky-cta__btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--lilla);
  border: none;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.fl-sticky-cta__btn:hover { background: var(--white); }
.fl-sticky-cta__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0 0 1rem;
  transition: color 0.2s;
}
.fl-sticky-cta__close:hover { color: var(--white); }

/* Compensa lo spazio della barra sticky */
.fl-page.has-sticky-cta { padding-bottom: 60px; }


/* ════════════════════════════════
   WIDGET AREA — pre-footer pagina
════════════════════════════════ */
.fl-page-widgets {
  width: 100%;
  background: var(--lilla);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
}
.fl-page-widgets .fl-widget { margin-bottom: 0; }


/* ════════════════════════════════
   BUILDER A SEZIONI — blocchi riutilizzabili
════════════════════════════════ */

/* Hero */
.fl-sec-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--night) center/cover no-repeat;
  padding: clamp(40px, 8vw, 90px) clamp(20px, 6vw, 64px);
  overflow: hidden;
}
.fl-sec-hero__overlay {
  position: absolute; inset: 0;
  background: var(--night);
}
.fl-sec-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.fl-sec-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  letter-spacing: .02em;
  margin: 0 0 .6rem;
}
.fl-sec-hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  margin: 0 0 1.4rem;
}
.fl-sec-hero__btn {
  display: inline-block;
  background: var(--white);
  color: var(--night);
  padding: .8rem 1.8rem;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

/* Testo */
.fl-sec-text {
  padding: clamp(30px, 5vw, 60px) clamp(20px, 6vw, 64px);
}
.fl-sec-text__inner { max-width: 780px; margin: 0 auto; }
.fl-sec-text__inner h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}
.fl-sec-text__content { color: var(--text-body); line-height: 1.85; font-size: .98rem; }
.fl-sec-text__content p { margin: 0 0 1em; }

/* Testo + immagine */
.fl-sec-textimg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(30px, 5vw, 60px) clamp(20px, 6vw, 64px);
}
.fl-sec-textimg--right { flex-direction: row-reverse; }
.fl-sec-textimg__img { flex: 1 1 380px; min-width: 280px; }
.fl-sec-textimg__img img { width: 100%; height: auto; border-radius: 6px; display: block; }
.fl-sec-textimg__text { flex: 1 1 340px; min-width: 260px; }
.fl-sec-textimg__text h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 .8rem;
}

/* Galleria */
.fl-sec-gallery { padding: clamp(30px, 5vw, 60px) clamp(20px, 6vw, 64px); }
.fl-sec-gallery__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.fl-sec-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.fl-sec-gallery__item img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 5px; display: block;
}

/* CTA / banner */
.fl-sec-cta {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 6vw, 64px);
}
.fl-sec-cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 .6rem;
}
.fl-sec-cta p { margin: 0 0 1.4rem; font-size: .98rem; }
.fl-sec-cta__btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.fl-sec-cta--dark { background: var(--night); color: var(--white); }
.fl-sec-cta--dark h2, .fl-sec-cta--dark p { color: var(--white); }
.fl-sec-cta--dark .fl-sec-cta__btn { background: var(--white); color: var(--night); }
.fl-sec-cta--lilla { background: var(--lilla); color: var(--night); }
.fl-sec-cta--lilla .fl-sec-cta__btn { background: var(--night); color: var(--white); }
.fl-sec-cta--light { background: var(--white); color: var(--text); }
.fl-sec-cta--light .fl-sec-cta__btn { background: var(--night); color: var(--white); }

/* Spaziatore */
.fl-sec-spacer { width: 100%; }

@media (max-width: 780px) {
  .fl-sec-textimg, .fl-sec-textimg--right { flex-direction: column; }
}

/* Covers the different markup variants Iubenda has used */
#iubFwSe,
.iubenda-cs-preferences-link,
.iub_link_text_undefined,
a[class*="iubenda-cs-preferences-link"],
div[class*="iubenda-cs-preferences-link"] {
    display: none !important;
}
