/* =========================================================
   BLOOM CONFERENCE - FOGLIO DI STILE
   Per cambiare colori e font basta modificare le variabili qui sotto.
   ========================================================= */

/* ---------- FONT (file nella cartella "fonts") ---------- */
@font-face {
  font-family: "Trip Sans";
  src: url("fonts/TripSans-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Trip Sans Mono";
  src: url("fonts/TripSansMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Harmond";
  src: url("fonts/Harmond-SemiBoldCondensed.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Harmond";
  src: url("fonts/Harmond-SemiBoldItalicCondensed.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ----- PALETTE ----- */
  --bordeaux:          #800020;  /* colore principale */
  --bordeaux-scuro:    #4d0013;
  --bordeaux-profondo: #2a000a;
  --bordeaux-vivo:     #a31d3c;  /* per sfumature e passaggi */
  --rosa:              #d9a0aa;  /* accento delicato */
  --blush:             #f6e6e8;  /* sfondo morbido */
  --crema:             #fbf7f5;
  --nero:              #0e0a0b;
  --bianco:            #ffffff;
  --testo:             #1b1416;
  --testo-chiaro:      #6a5c60;

  /* ----- FONT ----- */
  --font-titoli: "Harmond", Georgia, serif;   /* solo per i dettagli */
  --font-testo:  "Trip Sans", "Helvetica Neue", Arial, sans-serif;  /* font principale */
  --font-mono:   "Trip Sans Mono", ui-monospace, monospace;

  --raggio: 20px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-testo);
  font-weight: 400;
  color: var(--testo);
  background: var(--bianco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Titoli principali: frase intera in Harmond Condensed,
   parole da evidenziare in Harmond Italic Condensed (tag <em>) */
h1, h2 {
  font-family: var(--font-titoli);
  font-weight: 600;
  font-style: normal;
  line-height: 1.02;
  letter-spacing: 0;
}
h3 {
  font-family: var(--font-testo);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--bordeaux);
}

/* ---------- BARRA ANNUNCIO ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  background: var(--bordeaux);
  color: var(--bianco);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  transition: background 0.2s;
}
.topbar:hover { background: var(--bordeaux-vivo); }
.topbar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  animation: pulsa 1.8s ease-in-out infinite;
}
@keyframes pulsa { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.6); } }

/* ---------- MENU ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 10, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 8px;
}

.logo img { height: 36px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--rosa); }

/* ---------- PULSANTI ---------- */
.btn {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--bianco) !important;
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--bordeaux);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--bordeaux-scuro);
  border-color: var(--bordeaux-scuro);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(128, 0, 32, 0.25);
}
.btn-small { padding: 10px 22px; font-size: 0.72rem; }
.btn-big { padding: 20px 46px; font-size: 0.85rem; }
.nav .btn-small { font-size: 0.72rem; font-weight: 700; padding: 10px 22px; color: var(--bianco); }
.nav .btn-small:hover { color: var(--bianco); }

.btn-light { background: var(--bianco); border-color: var(--bianco); color: var(--bordeaux) !important; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--bianco) !important; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--bianco); box-shadow: none; }

/* ---------- SFUMATURE SFOCATE (blob) ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
  animation: fluttua 14s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: var(--bordeaux-vivo); top: -140px; left: -120px; mix-blend-mode: screen; }
.blob-2 { width: 460px; height: 460px; background: var(--rosa); bottom: -180px; right: -80px; opacity: 0.45; animation-duration: 18s; animation-delay: -4s; mix-blend-mode: screen; }
.blob-3 { width: 320px; height: 320px; background: var(--bordeaux); top: 30%; right: 25%; animation-duration: 16s; animation-delay: -8s; }
.blob-4 { width: 480px; height: 480px; background: var(--bordeaux-vivo); top: -200px; right: -100px; opacity: 0.55; }
.blob-5 { width: 420px; height: 420px; background: var(--rosa); top: -120px; right: -120px; opacity: 0.45; }

@keyframes fluttua {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, 30px) scale(1.12); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--nero);
  color: var(--bianco);
  padding: 90px 0 100px;
}
/* foto di sfondo (molto soffusa) */
.hero-photo {
  position: absolute;
  inset: -20px;
  background: url("images/lode-fumo.jpg") center 40% / cover no-repeat;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.06);
}
/* velo bordeaux sopra la foto, per leggere bene i testi */
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(163, 29, 60, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, rgba(128, 0, 32, 0.72) 0%, rgba(14, 10, 11, 0.93) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 20px;
}
.eyebrow-dark { color: var(--bordeaux); }

.hero h1 {
  font-size: clamp(3.3rem, 7.6vw, 6.6rem);
  margin-bottom: 24px;
}
.hero h1 em { color: var(--rosa); }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
}

.hero-text { max-width: 520px; margin-bottom: 38px; font-size: 1.12rem; color: rgba(255,255,255,0.88); }

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

/* collage di foto di gruppo: arco grande + foto piccola + badge date */
.hero-visual { position: relative; max-width: 430px; justify-self: end; width: 100%; }
.hero-arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 28px 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 45%; transition: transform 1.2s ease; }
.hero-arch:hover img { transform: scale(1.06); }
.hero-arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(77,0,19,0.45));
  pointer-events: none;
}

.date-badge {
  position: absolute;
  right: -30px;
  top: 64px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 22px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}
.date-badge-days { font-family: var(--font-titoli); font-weight: 600; font-size: 2rem; line-height: 1.05; }
.date-badge-month { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rosa); }

/* ---------- SEZIONI ---------- */
.section { position: relative; overflow: hidden; padding: 100px 0; }
.section > .container { position: relative; z-index: 2; }
.section-soft { background: var(--blush); }

.section h2 { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 22px; }

.lead { max-width: 620px; font-size: 1.1rem; color: var(--testo-chiaro); }

/* Chi siamo: testo + foto */
.about-us {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.about-us .lead { max-width: none; margin-bottom: 18px; }
.about-us .lead:first-of-type { font-size: 1.2rem; color: var(--testo); }
.about-photo {
  position: relative;
  border-radius: var(--raggio);
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: 0 24px 60px rgba(128, 0, 32, 0.18);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.about-photo:hover img { transform: scale(1.06); }
.about-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(77, 0, 19, 0.45));
  pointer-events: none;
}

/* Card Info */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 56px; }

.card {
  background: var(--crema);
  border: 1px solid rgba(128, 0, 32, 0.1);
  border-radius: var(--raggio);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover .card-bg { transform: scale(1.1); }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(128, 0, 32, 0.14); }

.card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s ease;
}
/* sfumatura bordeaux sulle foto delle card */
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(128,0,32,0) 40%, rgba(77,0,19,0.55) 100%);
}

.card-body { padding: 26px 28px 32px; }
.card-number { font-family: var(--font-mono); font-size: 0.85rem; color: var(--bordeaux); }
.card h3 { font-size: 1.6rem; margin: 6px 0 10px; letter-spacing: -0.02em; }
.card p { color: var(--testo-chiaro); font-size: 0.98rem; }

/* Gruppo WhatsApp */
.wa-panel {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--blush);
  border: 1px solid rgba(128, 0, 32, 0.12);
  border-radius: 28px;
  padding: 44px 48px;
}
.wa-text h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.wa-text p:not(.eyebrow) { color: var(--testo-chiaro); max-width: 560px; }
.wa-text strong { color: var(--testo); }
.wa-text .eyebrow { margin-bottom: 10px; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 34px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-wa svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(37, 211, 102, 0.45); }

/* Organizzatrice */
.about { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.about p:not(.eyebrow) { color: var(--testo-chiaro); font-size: 1.05rem; max-width: 560px; margin-bottom: 14px; }

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--raggio) var(--raggio);
  background:
    radial-gradient(circle at 30% 25%, var(--rosa) 0%, transparent 55%),
    radial-gradient(circle at 75% 80%, var(--bordeaux-vivo) 0%, transparent 60%),
    var(--bordeaux);
}

/* Galleria Eventi Passati (mosaico) */
.mosaic {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 20px;
}
.mosaic figure {
  border-radius: var(--raggio);
  overflow: hidden;
  position: relative;
  background: var(--bordeaux-scuro);
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
/* tipi di foto: "wide" = grande (2 colonne x 2 righe), "tall" = alta (1 x 2 righe) */
.mosaic { grid-auto-flow: dense; }
.mosaic .wide { grid-column: span 2; grid-row: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic-two { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 360px; }

/* ---------- SELETTORE EDIZIONI ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 0;
}
.tab {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(128, 0, 32, 0.25);
  background: transparent;
  color: var(--testo);
  font-family: var(--font-testo);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.tab-year { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.12em; color: var(--bordeaux); transition: color 0.25s; }
.tab:hover { border-color: var(--bordeaux); transform: translateY(-2px); }
.tab.active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: #fff;
  box-shadow: 0 12px 26px rgba(128, 0, 32, 0.28);
}
.tab.active .tab-year { color: var(--rosa); }
.tab:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }

/* pannelli: se JavaScript non c'è, si vedono tutti uno sotto l'altro */
.panel { margin-top: 36px; }
.js .panel { display: none; }
.js .panel.active { display: block; animation: appari 0.6s ease both; }
@keyframes appari { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* edizione senza foto (ancora) */
.soon {
  text-align: center;
  padding: 72px 28px;
  border-radius: 28px;
  border: 1.5px dashed rgba(128, 0, 32, 0.3);
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 160, 170, 0.35), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(163, 29, 60, 0.18), transparent 55%),
    var(--crema);
}
.soon .eyebrow { margin-bottom: 14px; }
.soon-title {
  font-family: var(--font-titoli);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  max-width: 680px;
  margin: 0 auto 14px;
}
.soon-title em { font-style: italic; color: var(--bordeaux); }
.soon p:last-child { color: var(--testo-chiaro); }
.mosaic figure:hover img { transform: scale(1.05); }
/* leggero velo bordeaux che sparisce al passaggio del mouse */
.mosaic figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(77, 0, 19, 0.45) 100%);
  transition: opacity 0.4s;
  pointer-events: none;
}
.mosaic figure:hover::after { opacity: 0; }

/* Iscriviti */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--bordeaux-profondo);
  color: var(--bianco);
  text-align: center;
  padding: 120px 0;
}
.cta-photo {
  position: absolute;
  inset: -20px;
  background: url("images/lode-sfumature.jpg") center 30% / cover no-repeat;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.05);
}
.cta-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(128, 0, 32, 0.72) 0%, rgba(42, 0, 10, 0.88) 100%);
}
.cta-content { position: relative; z-index: 2; }
.cta-date { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; }
.cta-days { font-family: var(--font-titoli); font-weight: 600; font-size: clamp(3.4rem, 10vw, 7rem); line-height: 1; letter-spacing: 0.02em; }
.cta-month { font-family: var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--rosa); margin-top: 10px; font-size: 0.95rem; }
.cta h2 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); margin-bottom: 12px; }
.cta-place { font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px !important; color: #fff !important; }
.cta-note { margin: 18px 0 0 !important; font-size: 0.85rem !important; opacity: 0.7; }
.cta h2 em { color: var(--rosa); }
.cta p { margin-bottom: 28px; color: rgba(255,255,255,0.88); font-size: 1.1rem; }

/* ---------- FOOTER ---------- */
.footer { background: var(--nero); color: rgba(255,255,255,0.65); text-align: center; padding: 48px 0; font-size: 0.9rem; }
.footer-logo { height: 44px; width: auto; margin: 0 auto 18px; }
.footer-nav { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--rosa); }

/* ---------- TABLET ---------- */
@media (max-width: 980px) {
  .mosaic { grid-auto-rows: 180px; gap: 14px; }
  .mosaic-two { grid-auto-rows: 260px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { justify-self: center; max-width: 360px; }
  .date-badge { right: -14px; }
  .about-us { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { aspect-ratio: 16 / 11; }
  .wa-panel { grid-template-columns: 1fr; padding: 34px 28px; gap: 28px; }
  .btn-wa { justify-self: start; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .hero { padding: 64px 0 80px; }
  .topbar { font-size: 0.72rem; letter-spacing: 0; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 68px; padding: 12px 6px 10px; }
  .countdown strong { font-size: 2rem; }
  .date-badge { right: -4px; top: 48px; padding: 10px 16px; }
  .date-badge-days { font-size: 1.6rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .topbar-dot, .topbar span[aria-hidden] { display: none; }
  .btn-wa { white-space: normal; padding: 18px 26px; }
  .section { padding: 72px 0; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 280px; margin: 0 auto; }
  .mosaic, .mosaic-two { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mosaic .wide { grid-column: auto; grid-row: span 1; }
  .mosaic .tall { grid-row: span 2; }
  .tab { padding: 11px 18px; font-size: 0.88rem; }
}

/* Chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   ANIMAZIONI E INTERAZIONI (leggere, per dare vita senza appesantire)
   ========================================================= */

/* 1) Comparsa morbida allo scroll (attiva solo se JavaScript funziona) */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* 2) Menu che si rimpicciolisce quando scorri */
.header { transition: box-shadow 0.3s, background 0.3s; }
.header-inner { transition: min-height 0.3s; }
.logo img { transition: height 0.3s; }
.header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.header.scrolled .header-inner { min-height: 56px; }
.header.scrolled .logo img { height: 28px; }

/* 3) Voci del menu con sottolineatura che si disegna */
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--rosa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:not(.btn):hover::after,
.nav a.current::after { transform: scaleX(1); }
.nav a.current { color: #fff; }

/* 4) Bottone WhatsApp: onda che pulsa per attirare l'occhio */
.btn-wa { position: relative; }
.btn-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #25D366;
  animation: onda 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes onda {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(1.18, 1.45); opacity: 0; }
}
.btn-wa:hover::before { animation: none; opacity: 0; }

/* 5) Conto alla rovescia */
.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 34px;
}
.countdown div {
  min-width: 82px;
  padding: 14px 10px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.countdown strong {
  display: block;
  font-family: var(--font-titoli);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosa);
}

/* 6) Foto del mosaico: cliccabili, con lente d'ingrandimento e luce */
.mosaic figure { cursor: zoom-in; }
.mosaic figure::before {
  content: "+";
  position: absolute;
  z-index: 2;
  right: 16px; bottom: 16px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--bordeaux);
  font-size: 1.5rem; font-weight: 300; line-height: 1;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: opacity 0.35s, transform 0.35s;
}
.mosaic figure:hover::before,
.mosaic figure:focus-visible::before { opacity: 1; transform: none; }
.mosaic figure:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 3px; }

/* Finestra con la foto ingrandita */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 6, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 84vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open img { transform: none; }
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-btn:hover { background: var(--bordeaux); transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px; top: 50%; margin-top: -24px; }
.lb-next  { right: 20px; top: 50%; margin-top: -24px; }

/* Chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn-wa::before, .topbar-dot { animation: none; }
  .hero-arch img, .about-photo img, .card-bg, .mosaic img { transition: none; }
}

/* =========================================================
   PAGINE INTERNE E NUOVE SEZIONI
   ========================================================= */

/* ---------- Intestazione delle pagine interne ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--nero);
  color: var(--bianco);
  padding: 96px 0 90px;
}
.page-hero-photo {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center 40%;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.06);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 18px; }
.page-hero h1 em { color: var(--rosa); }
.page-hero .hero-text { margin-bottom: 0; }

/* ---------- Testi di supporto ---------- */
.lead-center { margin-left: auto; margin-right: auto; text-align: center; }
.block-title {
  font-family: var(--font-titoli);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: 0;
  margin: 72px 0 22px;
}
.note { margin-top: 22px; font-size: 0.92rem; color: var(--testo-chiaro); max-width: 640px !important; }
.section-dark { background: var(--nero); color: #fff; }
.section-dark h2 em { color: var(--rosa); }
.section-dark .eyebrow { color: var(--rosa); }

/* ---------- Trailer ---------- */
.trailer[hidden] { display: none; }
.video-frame {
  margin-top: 36px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }

/* ---------- Storia (4 tappe) ---------- */
.story { margin-top: 44px; max-width: 860px; }
.story-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(128, 0, 32, 0.2);
}
.story-item:last-child { border-bottom: 1px solid rgba(128, 0, 32, 0.2); }
.story-num { font-family: var(--font-titoli); font-weight: 600; font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--bordeaux); transition: transform 0.4s; }
.story-item:hover .story-num { transform: translateX(8px); }
.story-item h3 { font-size: 1.3rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.story-item p { color: var(--testo-chiaro); max-width: 640px; }
.story-close { margin-top: 56px; max-width: 760px; }
.story-close p { font-size: 1.15rem; color: var(--testo); }
.story-motto {
  font-family: var(--font-titoli);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem) !important;
  line-height: 1.05;
  margin-top: 18px;
  color: var(--testo) !important;
}
.story-motto em { color: var(--bordeaux); }

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0 0; }
.stat {
  text-align: center;
  padding: 30px 16px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(128, 0, 32, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(128, 0, 32, 0.14); }
.stat strong { display: block; font-family: var(--font-titoli); font-weight: 600; font-size: 4rem; line-height: 1; color: var(--bordeaux); }
.stat span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--testo-chiaro); }
.stats-light { margin: 40px 0 44px; }
.stats-light .stat { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stats-light .stat strong { color: #fff; }
.stats-light .stat span { color: var(--rosa); }
.immersive .stats { max-width: 760px; margin-left: auto; margin-right: auto; }
.immersive-text { max-width: 680px; margin: 0 auto !important; font-size: 1.12rem; }
.immersive h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }

/* ---------- Come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 34px 28px 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(128, 0, 32, 0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(128, 0, 32, 0.14); }
.step-day { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bordeaux); }
.step h4 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 8px; }
.step p { color: var(--testo-chiaro); font-size: 0.97rem; }

/* ---------- Cosa e' incluso ---------- */
.incl-list { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.incl-list li {
  position: relative;
  padding: 18px 22px 18px 64px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(128, 0, 32, 0.12);
  font-weight: 500;
}
.incl-list li::before {
  content: "✓";
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bordeaux);
  color: #fff;
  font-size: 0.85rem; font-weight: 700;
}
.tbc {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--bordeaux);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Foto del resort ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.res-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(217,160,170,0.55), transparent 55%),
    linear-gradient(155deg, var(--bordeaux) 0%, var(--bordeaux-profondo) 100%);
  transition: transform 0.4s, box-shadow 0.4s;
}
.res-tile:nth-child(even) {
  background:
    radial-gradient(circle at 80% 20%, rgba(163,29,60,0.7), transparent 55%),
    linear-gradient(155deg, var(--bordeaux-scuro) 0%, var(--nero) 100%);
}
.res-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(128, 0, 32, 0.3); }
.res-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.9s ease; }
.res-tile:hover .res-bg { transform: scale(1.08); }
.res-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,10,11,0.6)); pointer-events: none; }
.res-label { position: relative; z-index: 2; font-family: var(--font-titoli); font-weight: 600; font-size: 2.2rem; line-height: 1; transition: transform 0.4s; }
.res-tile:hover .res-label { transform: translateY(-4px); }

/* ---------- Ospiti ---------- */
.guests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.guest { text-align: center; }
.guest-photo {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px;
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
  background-image:
    radial-gradient(circle at 30% 20%, var(--rosa) 0%, transparent 55%),
    radial-gradient(circle at 75% 85%, var(--bordeaux-vivo) 0%, transparent 60%),
    linear-gradient(160deg, var(--bordeaux), var(--bordeaux-scuro));
  transition: transform 0.5s, box-shadow 0.5s;
}
.guest:hover .guest-photo { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(128, 0, 32, 0.28); }
.guest-edition { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bordeaux); }
.guest h3 { font-size: 1.5rem; margin: 6px 0 8px; letter-spacing: -0.01em; }
.guest p { color: var(--testo-chiaro); max-width: 320px; margin: 0 auto; font-size: 0.97rem; }

/* ---------- Fascia contatti ---------- */
.contact-band { background: var(--blush); padding: 90px 0; text-align: center; }
.contact-band h2 { font-size: clamp(2.5rem, 5.4vw, 4rem); margin-bottom: 18px; }
.contact-band .eyebrow { margin-bottom: 14px; }
.contact-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bordeaux);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 30px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(128, 0, 32, 0.28);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-ig svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-ig:hover { background: var(--bordeaux-scuro); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(128, 0, 32, 0.4); }
.btn-wa-sm { padding: 18px 30px; font-size: 0.8rem; box-shadow: 0 14px 30px rgba(37, 211, 102, 0.3); }
.btn-wa-sm::before { display: none; }
.btn-wa-sm svg { width: 24px; height: 24px; }

/* ---------- Responsive nuove sezioni ---------- */
@media (max-width: 980px) {
  .steps, .guests { grid-template-columns: 1fr; }
  .guests { gap: 44px; }
  .guest-photo { max-width: 300px; margin-left: auto; margin-right: auto; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 12px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 64px 0 60px; }
  .story-item { grid-template-columns: 1fr; gap: 6px; }
  .story-num { font-size: 2.6rem; }
  .stat strong { font-size: 2.8rem; }
  .stat { padding: 22px 8px 18px; }
  .stat span { font-size: 0.62rem; letter-spacing: 0.1em; }
  .res-grid { grid-template-columns: 1fr; }
  .res-label { font-size: 1.9rem; }
  .incl-list li { padding: 16px 18px 16px 58px; }
  .block-title { margin-top: 56px; }
  .contact-band { padding: 70px 0; }
  .contact-actions a { width: 100%; justify-content: center; }
}

/* il pannello WhatsApp, se è il primo elemento, non ha bisogno di spazio sopra */
.wa-panel:first-child { margin-top: 0; }

/* ---------- v8: foto reali ---------- */
.portrait-photo { aspect-ratio: 2 / 3; border-radius: 28px; display: block; box-shadow: 0 24px 50px rgba(128,0,32,0.25); }
.guest-photo { width: 100%; display: block; aspect-ratio: 2 / 3; border-radius: 28px; object-fit: cover; }
.res-grid { grid-auto-rows: 260px; }
.res-tile { aspect-ratio: auto; }
.res-wide { grid-column: span 2; }
.step-list { list-style: none; margin: 12px 0 0; padding: 0; }
.step-list li { position: relative; padding-left: 20px; margin: 7px 0; color: var(--testo-chiaro); font-size: 0.97rem; }
.step-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--bordeaux); }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.step strong { color: var(--bordeaux); }
@media (max-width: 900px) { .steps-2 { grid-template-columns: 1fr; } .guest-photo, .portrait-photo { max-width: 300px; margin-left: auto; margin-right: auto; } }
@media (max-width: 520px) { .res-grid { grid-auto-rows: 210px; } .res-wide { grid-column: auto; } }

/* ---------- v9: video nell'arco ---------- */
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.hero-arch:hover .hero-video { transform: scale(1.04); }

/* ---------- v10: hero rettangolare + video in "Chi siamo" ---------- */
.hero-arch { border-radius: 32px; aspect-ratio: 4 / 4.6; box-shadow: 0 30px 80px rgba(42,0,10,0.5), 0 0 90px rgba(217,160,170,0.25); }
.hero-arch::after { background: linear-gradient(180deg, rgba(128,0,32,0.12) 0%, transparent 35%, rgba(77,0,19,0.5) 100%); }
.about-photo .hero-video { transform: none; }
.about-photo:hover .hero-video { transform: scale(1.05); }
.about-photo .hero-video { transition: transform 1.2s ease; }
.about-photo:has(.hero-video) { aspect-ratio: 3 / 4; }
@media (max-width: 900px) { .about-photo:has(.hero-video) { aspect-ratio: 3 / 4; max-width: 340px; margin: 0 auto; } }

/* ---------- v11: ospiti per edizione, Bloom Together ---------- */
.js .guest-set { display: none; }
.js .guest-set.active { display: block; animation: appari 0.6s ease both; }
.guest-empty { text-align: center; margin-top: 44px; padding: 40px 24px; border-radius: 24px; border: 1.5px dashed rgba(128,0,32,0.3); color: var(--testo-chiaro); background: var(--crema); }
.wa-panel + .wa-panel { margin-top: 24px; }
.story-close.reveal { text-align: center; }
.story-close .btn { margin-top: 22px; }
.story-close .story-motto { margin-bottom: 6px; }

/* ---------- v12 ---------- */
.mosaic .span2 { grid-column: 1 / -1; }
.guests-two { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 48px; }
@media (max-width: 760px) { .mosaic .span2 { grid-column: auto; } .guests-two { grid-template-columns: 1fr; } }

/* ---------- v13: menu a tendina (solo telefono), galleria a griglia, foto accanto ai testi ---------- */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .header-inner { justify-content: space-between; flex-wrap: nowrap; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s, opacity 0.2s; }
  .header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--rosa); }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap;
    padding: 8px 24px 26px; background: rgba(14, 10, 11, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 24px 40px rgba(0,0,0,0.4);
  }
  .header.menu-open .nav { display: flex; animation: appari 0.3s ease both; }
  .nav a:not(.btn) { display: block; font-size: 1.05rem; padding: 16px 2px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.current { color: var(--rosa); }
  .nav .btn-small { margin-top: 18px; text-align: center; padding: 16px 22px; font-size: 0.8rem; }
  .nav a[data-hide-mobile] { display: block; }
}

/* Galleria: miniature a griglia, cliccabili per ingrandire */
.mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 14px; margin-top: 44px; }
.mosaic figure, .mosaic .wide, .mosaic .tall, .mosaic .span2 { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; border-radius: 18px; }
@media (max-width: 980px) { .mosaic { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 760px) {
  .mosaic, .mosaic-two { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 8px; }
  .mosaic figure, .mosaic .wide, .mosaic .tall, .mosaic .span2 { grid-column: auto; grid-row: auto; border-radius: 12px; }
  .mosaic figure::before { display: none; }
}

/* Foto accanto ai testi nella pagina Info */
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; }
.story-layout .story { max-width: none; }
.side-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 110px; box-shadow: 0 24px 60px rgba(128,0,32,0.2); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.side-photo:hover img { transform: scale(1.05); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.split .lead { max-width: none; }
.side-photo-wide { aspect-ratio: 4 / 3; position: relative; top: 0; }
@media (max-width: 980px) {
  .story-layout, .split { grid-template-columns: 1fr; gap: 36px; }
  .side-photo { position: relative; top: 0; aspect-ratio: 16 / 11; order: -1; }
  .split .side-photo { order: 0; }
}
