/* =========================
   Irene & Alessio — Orizzonte (Studio)
   ========================= */

:root{
  --ink: #24313a;
  --ink-2: rgba(36,49,58,.72);
  --bg: #ffffff;
  --tint: #f6f1ea;
  --card: rgba(255,255,255,.78);
  --border: rgba(36,49,58,.10);
  --shadow: 0 14px 40px rgba(0,0,0,.08);

  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --max: 1080px;
  --pad: clamp(18px, 3vw, 34px);
  --radius: 22px;

  --compassOpacity: .18;   /* desktop */
  --heroOverlayTop: rgba(255,255,255,.22);
  --heroOverlayBottom: rgba(255,255,255,.88);
}

[data-theme="dark"]{
  --ink: rgba(255,255,255,.92);
  --ink-2: rgba(255,255,255,.70);
  --bg: #07111a;
  --tint: rgba(255,255,255,.06);
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --shadow: 0 18px 52px rgba(0,0,0,.35);

  --heroOverlayTop: rgba(7,17,26,.35);
  --heroOverlayBottom: rgba(7,17,26,.90);
  --compassOpacity: .14;
}


[data-theme="sunset"]{
  /* Sunset (afternoon): warmer overlay without switching to full dark mode */
  --heroOverlayTop: rgba(255, 188, 160, .22);
  --heroOverlayBottom: rgba(255, 246, 240, .90);
  --compassOpacity: .20;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x:hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: inherit; text-decoration:none; }
strong{ font-weight: 600; }
.container{
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.muted{ color: var(--ink-2); }
.mt{ margin-top: 28px; }

/* Topbar */
.topbar{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(255,255,255,.80), rgba(255,255,255,0));
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .topbar::before{
  background: linear-gradient(to bottom, rgba(7,17,26,.72), rgba(7,17,26,0));
}
.topbar__brand,
.topbar__menu{ pointer-events:auto; position: relative; z-index: 2; }
.topbar__brand{
  margin-right:auto;
  font-family: var(--serif);
  letter-spacing:.04em;
  font-weight: 500;
  padding: 14px var(--pad);
  opacity:.92;
}
.topbar__menu{
  margin-left:auto;
  padding: 12px var(--pad);
  background: transparent;
  border:0;
  cursor:pointer;
  font-size: 20px;
  opacity:.85;
}
.topbar__menu:active{ transform: translateY(1px); }

/* Drawer */
.backdrop{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 70;
}
.backdrop.open{ opacity:1; pointer-events:auto; }
.drawer{
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: rgba(255,255,255,.94);
  border-left: 1px solid rgba(0,0,0,.08);
  transform: translateX(110%);
  transition: transform .28s ease;
  z-index: 80;
  box-shadow: var(--shadow);
  padding: 18px 18px 24px 18px;
}
[data-theme="dark"] .drawer{
  background: rgba(7,17,26,.92);
  border-left: 1px solid rgba(255,255,255,.10);
}
.drawer.open{ transform: translateX(0); }
.drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 6px 14px 6px;
}
.drawer__title{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing:.02em;
  font-size: 20px;
}
.drawer__close{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.55);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  color: inherit;
}
[data-theme="dark"] .drawer__close{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.drawer__nav{
  display:grid;
  gap: 10px;
  padding: 6px;
}
.drawer__nav a{
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.65);
  font-weight: 500;
}
[data-theme="dark"] .drawer__nav a{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.drawer__nav a:hover{ background: rgba(246,241,234,.95); }
[data-theme="dark"] .drawer__nav a:hover{ background: rgba(255,255,255,.09); }

/* Hero */

/* Top-left corner: watercolor + improved compass (like the invitation cutout) */
.hero__corner{
  position:absolute;
  top: 0;
  left: 0;
  width: clamp(260px, 34vw, 520px);
  height: clamp(180px, 24vw, 360px);
  pointer-events:none;
  z-index: 2; /* above washes, below main content */
}

.hero__cornerWash{
  position:absolute;
  top: -42px;
  left: -26px;
  width: 100%;
  height: auto;
  opacity: .92;
  mix-blend-mode: multiply;
}

.hero__cornerCompass{
  position:absolute;
  top: 22px;
  left: 26px;
  width: clamp(86px, 10vw, 150px);
  height: auto;
  opacity: .65;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.14));
}

[data-theme="dark"] .hero__cornerCompass{
  opacity: .55;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.28));
}

.hero{
  position: relative;
  height: 100vh;
  min-height: 680px;
  display:flex;
  align-items: center;
  justify-content:center;
  text-align:center;
  isolation: isolate;
}
.hero__media{
  position:absolute;
  inset:0;
  background: url("../assets/hero.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, var(--heroOverlayTop), var(--heroOverlayBottom));
}
/* subtle grain (studio feel) */
.hero__compass{
  position:absolute;
  top: 13.5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, 54vw);
  opacity: var(--compassOpacity);
  filter: grayscale(100%);
  z-index: 2;
  pointer-events:none;
  animation: slowspin 180s linear infinite;
}
@keyframes slowspin{
  from{ transform: translateX(-50%) rotate(0deg); }
  to{ transform: translateX(-50%) rotate(360deg); }
}

/* mobile: slightly reduced */
@media (max-width: 520px){
  :root{ --compassOpacity: .14; }
  [data-theme="dark"]{ --compassOpacity: .12; }
  .hero__compass{ width: min(220px, 64vw); top: 14%; }
}

.hero__content{
  position: relative;
  z-index: 3;
  padding: 0 var(--pad);
  transform: translateY(10vh);
  max-width: 720px;
}
.hero__title{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .01em;
  font-size: clamp(44px, 6.8vw, 78px);
  margin: 0;
  text-shadow: 0 12px 32px rgba(0,0,0,.06);
}
[data-theme="dark"] .hero__title{
  text-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.hero__subtitle{
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 22px);
  margin: 14px 0 0 0;

  /* VISIBILITÀ: niente riquadro, solo “halo” elegante */
  color: rgba(36,49,58,.88);
  text-shadow:
    0 1px 0 rgba(255,255,255,.55),
    0 0 18px rgba(255,255,255,.42),
    0 2px 16px rgba(0,0,0,.18);
}

[data-theme="dark"] .hero__subtitle{
  color: rgba(255,255,255,.92);
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 0 20px rgba(0,0,0,.55),
    0 2px 18px rgba(0,0,0,.45);
}

.hero__meta{
  margin-top: 18px;
  display:inline-block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .hero__meta{
  background: rgba(255,255,255,.06);
}

/* scroll hint */
.hero__scroll{
  position:absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  display:flex;
  align-items:center;
  justify-content:center;
}
[data-theme="dark"] .hero__scroll{
  background: rgba(255,255,255,.06);
}
.hero__scrollDot{
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(36,49,58,.55);
  box-shadow: 0 0 0 8px rgba(36,49,58,.08);
  animation: pulse 2.6s ease-in-out infinite;
}
[data-theme="dark"] .hero__scrollDot{
  background: rgba(255,255,255,.62);
  box-shadow: 0 0 0 8px rgba(255,255,255,.10);
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity:.8; }
  50%{ transform: scale(1.08); opacity:1; }
}

/* Sections */
.section{ padding: clamp(64px, 8vw, 110px) 0; }
.section--light{ background: var(--bg); }
.section--tint{ background: var(--tint); }

.kicker{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(36,49,58,.55);
  margin-bottom: 12px;
}
[data-theme="dark"] .kicker{ color: rgba(255,255,255,.55); }

.h2{
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 0 0 12px 0;
}
.lead{
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  margin: 0;
}

/* Grid + Cards */
.grid{
  margin-top: 34px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(16px, 3vw, 28px);
}
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
  .hero__content{ transform: translateY(7vh); }
}

.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card--soft{ background: rgba(255,255,255,.62); }
[data-theme="dark"] .card--soft{ background: rgba(255,255,255,.07); }

.card__kicker{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(36,49,58,.55);
  margin-bottom: 10px;
}
[data-theme="dark"] .card__kicker{ color: rgba(255,255,255,.55); }

.card__quote{
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}
.card__text{
  margin: 0;
  line-height: 1.85;
  color: var(--ink-2);
}

.divider{
  height: 1px;
  background: rgba(36,49,58,.10);
  margin: 18px 0;
}
[data-theme="dark"] .divider{ background: rgba(255,255,255,.12); }

.meta{ margin: 0; }
.meta__row{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36,49,58,.10);
}
[data-theme="dark"] .meta__row{ border-bottom: 1px solid rgba(255,255,255,.12); }
.meta__row:last-child{ border-bottom: 0; }
.meta dt{
  font-size: 12px;
  letter-spacing:.14em;
  text-transform: uppercase;
  color: rgba(36,49,58,.55);
}
[data-theme="dark"] .meta dt{ color: rgba(255,255,255,.55); }
.meta dd{
  margin: 0;
  font-weight: 500;
  color: rgba(36,49,58,.88);
  text-align:right;
}
[data-theme="dark"] .meta dd{ color: rgba(255,255,255,.86); }

/* Map */
.map{
  width:100%;
  aspect-ratio: 16/10;
  border:0;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.06);
}

/* Timeline */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 12px;
}
.timeline li{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(36,49,58,.10);
}
[data-theme="dark"] .timeline li{ border-bottom: 1px solid rgba(255,255,255,.12); }
.timeline li:last-child{ border-bottom: 0; }
.timeline__time{
  font-family: var(--serif);
  font-weight: 600;
  min-width: 76px;
}
.timeline__desc{
  color: var(--ink-2);
  line-height: 1.65;
}

/* Bullets */
.bullets{
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* Gallery placeholders */
.gallery{
  margin-top: 34px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px){ .gallery{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .gallery{ grid-template-columns: 1fr;} }

.ph{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 220px at 30% 10%, rgba(255,255,255,.88), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(127,174,196,.16), rgba(246,241,234,.92));
  min-height: 220px;
}
[data-theme="dark"] .ph{
  background:
    radial-gradient(700px 220px at 30% 10%, rgba(255,255,255,.10), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(127,174,196,.06), rgba(255,255,255,.04));
}
.ph::after{
  content:"";
  position:absolute;
  inset: 16px;
  background: url("../assets/compass.png") center/contain no-repeat;
  opacity: .11;
  filter: grayscale(100%);
}
[data-theme="dark"] .ph::after{ opacity: .10; }
.ph span{
  position:absolute;
  left: 14px;
  bottom: 14px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255,255,255,.58);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
[data-theme="dark"] .ph span{ background: rgba(255,255,255,.06); }

/* Form */
.form{ margin-top: 14px; display:grid; gap: 12px; }
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){ .form__row{ grid-template-columns: 1fr; } }
input, select, textarea{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(36,49,58,.14);
  background: rgba(255,255,255,.90);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  color: rgba(36,49,58,.92);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}
textarea{ min-height: 120px; resize: vertical; }

.form__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.btn{
  border: 1px solid rgba(36,49,58,.18);
  background: rgba(36,49,58,.92);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 600;
  letter-spacing:.06em;
}
[data-theme="dark"] .btn{
  background: rgba(255,255,255,.92);
  color: rgba(7,17,26,.92);
  border: 1px solid rgba(255,255,255,.16);
}
.btn:active{ transform: translateY(1px); }
.btn--ghost{
  background: transparent;
  color: rgba(36,49,58,.90);
  border: 1px solid rgba(36,49,58,.20);
}
[data-theme="dark"] .btn--ghost{
  color: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.16);
}

/* Footer */
.footer{
  padding: 46px 0 54px 0;
  background: var(--bg);
  border-top: 1px solid rgba(36,49,58,.08);
}
[data-theme="dark"] .footer{ border-top: 1px solid rgba(255,255,255,.10); }
.footer__inner{ text-align:center; }
.footer__title{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.footer__sub{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing:.14em;
  text-transform: uppercase;
  color: rgba(36,49,58,.55);
}
[data-theme="dark"] .footer__sub{ color: rgba(255,255,255,.55); }

/* Anchor offset */
#storia, #giorno, #location, #programma, #info, #gallery, #rsvp{
  scroll-margin-top: 72px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero__scrollDot{ animation:none; }
  .hero__compass{ animation:none; }
}



/* =========================
   Invitation Cohesion Pack
   Palette + Watercolor + Script Title + Fine Dividers
   ========================= */
:root{
  --navy: #1b2a44;
  --blush: #f4b9c8;
  --blush-2: rgba(244,185,200,.40);
  --paper: #ffffff;
}

/* Make compass slightly navy-tinted like the invitation */
.hero__compass{
  filter: none !important;
  opacity: .26;
  mix-blend-mode: multiply;
}

/* Watercolor corners (like the invitation) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  /* background:
    url("../assets/watercolor-tl.png") no-repeat left -18px top -42px,
    url("../assets/watercolor-br.png") no-repeat right -64px bottom -74px;
  background-size: clamp(380px, 44vw, 620px) auto, clamp(420px, 50vw, 700px) auto;
  opacity: .85;
  */
}

/* Softer hero overlay to keep paper-like feel */
.hero::after{
  background: linear-gradient(to bottom, rgba(255,255,255,.18), rgba(255,255,255,.88));
}

/* Script title like the printed invitation */
.hero__title--script{
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  color: rgba(27,42,68,.88);
}
.hero__and{
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-style: italic;
  font-size: .44em;
  letter-spacing: .22em;
  text-transform: none;
  opacity: .75;
  transform: translateY(-.25em);
}

/* Subtitle/meta like invitation: thin + airy */
.hero__meta{
  border-color: rgba(27,42,68,.18);
  color: rgba(27,42,68,.72);
}

/* Invitation-like date band */
.dateband{
  margin: 22px auto 0;
  width: min(760px, 92vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(27,42,68,.80);
}
.dateband__side{
  display:flex;
  align-items:center;
  gap: 14px;
  justify-content:center;
}
.dateband__line{
  height: 1px;
  background: rgba(27,42,68,.22);
  flex: 1;
  max-width: 160px;
}
.dateband__label{
  font-size: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .9;
}
.dateband__mid{
  text-align:center;
  min-width: 150px;
}
.dateband__month{
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}
.dateband__day{
  font-family: "Great Vibes", cursive;
  font-size: 64px;
  line-height: 1.0;
  margin: 6px 0 2px 0;
  color: rgba(27,42,68,.86);
}
.dateband__year{
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}

@media (max-width: 520px){
  .hero__title--script{ gap: 12px; }
  .dateband{ grid-template-columns: 1fr; gap: 10px; }
  .dateband__line{ display:none; }
  .dateband__side{ justify-content:center; }
}

/* Section joins: remove “hard seam” using subtle paper/blush gradient */
.section--tint{
  background:
    linear-gradient(to bottom, rgba(255,255,255,0), rgba(244,185,200,.08) 28%, rgba(244,185,200,.10) 100%),
    var(--tint);
}
.section--light{
  background:
    linear-gradient(to bottom, rgba(244,185,200,.06), rgba(255,255,255,0) 42%),
    #fff;
}

/* Fine dividers for headings (printed look) */
.h2{
  position: relative;
}
.h2::after{
  content:"";
  display:block;
  width: 84px;
  height: 1px;
  margin: 16px auto 0;
  background: rgba(27,42,68,.22);
}

/* Buttons: “paper pill” with navy text (like invitation) */
.btn{
  background: rgba(255,255,255,.92);
  color: rgba(27,42,68,.92);
  border: 1px solid rgba(27,42,68,.22);
}
.btn--ghost{
  background: transparent;
  color: rgba(27,42,68,.86);
  border: 1px solid rgba(27,42,68,.22);
}
.btn:hover{
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transform: translateY(-1px);
}



/* ===== Centering fixes (Hero / Home) ===== */
.hero{
  text-align: center;
}
.hero__content{
  margin-left: auto;
  margin-right: auto;
  width: min(760px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title--script{
  justify-content: center;
  text-align: center;
}
.hero__meta, .dateband{
  margin-left: auto;
  margin-right: auto;
}
/* Prevent any accidental horizontal shift */
body{ overflow-x: hidden; }



/* =========================
   Layout fix — Hero centering & dateband integrity
   ========================= */
.hero__content{ text-align:center; }
.dateband{
  justify-items: center;
}
.dateband__mid{ display:flex; flex-direction:column; align-items:center; }
.dateband__side{ width: 100%; }
@media (min-width: 521px){
  .dateband__side{ width: auto; }
}



/* ===== Static Map block ===== */
.mapStatic{
  width: min(980px, 92vw);
  margin: 18px auto 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(27,42,68,.12);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 54px rgba(0,0,0,.12);
}
.mapStatic img{
  display:block;
  width:100%;
  height:auto;
}
.mapStatic__meta{
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(27,42,68,.78);
}
.mapStatic__link{
  color: rgba(27,42,68,.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(27,42,68,.22);
}
.mapStatic__link:hover{
  border-bottom-color: rgba(27,42,68,.55);
}
@media (max-width: 520px){
  .mapStatic__meta{ flex-direction: column; align-items:flex-start; }
}



/* =========================
   Central axis alignment — Hero
   Ensures: title (& 'e'), subtitle, location pill, dateband share same center axis
   ========================= */
.hero{ text-align:center; }
.hero__content{
  margin: 0 auto;
  width: min(860px, 92vw);
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Title: use block centering instead of inline-flex to avoid baseline drift */
.hero__title--script{
  display:block;
  width: 100%;
  text-align:center;
}
.hero__title--script > span{
  display:inline-block;
}
/* Center the small 'e' and align optically */
.hero__and{
  display:inline-block;
  margin: 0 14px;
  transform: translateY(-.20em); /* subtle lift like invitation */
  text-align:center;
}

/* Subtitle + meta pill centered */
.hero__subtitle,
.hero__meta{
  width: fit-content;
  max-width: 100%;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}
.hero__meta{
  display:inline-block; /* keep pill compact but centered */
}

/* Dateband centered */
.dateband{
  margin-left:auto !important;
  margin-right:auto !important;
  justify-items:center;
  text-align:center;
}
.dateband__side, .dateband__mid{
  justify-content:center;
  text-align:center;
}

/* Safety: hide any legacy floating hour label */
.hero__time, .hero__hour, .hero__badge--time, .hero__meta--time{ display:none !important; }



/* ===== Central axis v3: keep everything compact & centered on the same axis as hero scroll dot ===== */
.hero__subtitle{ max-width: 40ch; }

/* Location pill should be compact, not full-width */
.hero__meta{
  width: auto !important;
  max-width: 92vw;
  display: inline-flex !important;
  justify-content: center;
}

/* Dateband: compact row (prevents 'Ore 19.45' drifting to the far right) */
.dateband{
  width: fit-content !important;
  max-width: 92vw;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.dateband__side{
  width: auto !important;
  display: flex;
  align-items: center;
  gap: 14px;
}
.dateband__line{
  width: 96px;
  max-width: 18vw;
  flex: 0 0 auto;
}
.dateband__mid{
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile: stack nicely */
@media (max-width: 520px){
  .dateband{ flex-direction: column; gap: 12px; }
  .dateband__line{ display:none; }
}

/* Ensure hero scroll dot is exactly on the same axis (center of hero content) */
.hero__scroll{
  left: 50% !important;
  transform: translateX(-50%) !important;
}



/* ===== Dateband v4: remove right side time, keep time centered under year ===== */
.dateband{
  width: fit-content !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap: 34px;
  text-align:center;
}
.dateband__mid{ align-items:center; }
.dateband__time{
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  opacity: .85;
}

/* Force all hero blocks to share the scroll-dot center axis */
.hero__content{ align-items:center !important; }
.hero__subtitle, .hero__meta, .dateband{ text-align:center !important; }



/* ===== FINAL horizontal dateband centered on hero scroll axis ===== */
.hero__content{
  margin:0 auto;
  width:min(860px,92vw);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.hero__scroll{
  left:50%!important;
  transform:translateX(-50%)!important;
}
.hero__meta{
  width:auto!important;
  display:inline-flex!important;
  justify-content:center;
}

.dateband{
  margin:22px auto 0;
  width:min(860px,92vw);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
}
.dateband__side{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.dateband__line{
  height:1px;
  background:rgba(27,42,68,.22);
  flex:1 1 auto;
  max-width:180px;
}
.dateband__mid{
  flex:0 0 auto;
  min-width:160px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
@media(max-width:520px){
  .dateband{flex-direction:column;gap:12px;}
  .dateband__line{display:none;}
}



/* ===== CLEAN OVERRIDE (bugfix): single dateband, centered, no repeats ===== */
.dateband{ 
  margin: 22px auto 0 !important;
  width: min(860px, 92vw) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
}



/* =========================
   BUGFIX: true central axis alignment in hero (desktop)
   Cause: the two side blocks of the dateband were not equal → center drift.
   Fix: force equal side widths + compact centered blocks.
   ========================= */
.hero__content{
  margin: 0 auto !important;
  width: min(900px, 92vw) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.hero__title--script,
.hero__subtitle,
.hero__meta,
.dateband{
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.hero__meta{
  width: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  max-width: 92vw !important;
}
/* keep the scroll dot as the absolute center axis */
.hero__scroll{
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Dateband: equal side widths so mid is on the true center axis */
.dateband{
  margin-top: 22px !important;
  width: min(900px, 92vw) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
}
.dateband__side{
  flex: 0 0 clamp(190px, 22vw, 260px) !important; /* SAME on both sides */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
}
.dateband__line{
  flex: 1 1 auto !important;
  height: 1px !important;
  background: rgba(27,42,68,.22) !important;
  max-width: 170px !important;
}
.dateband__mid{
  flex: 0 0 auto !important;
  min-width: 170px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Mobile: stack for safety */
@media (max-width: 560px){
  .dateband{
    flex-direction: column !important;
    gap: 12px !important;
  }
  .dateband__side{
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .dateband__line{ display: none !important; }
}



/* =========================
   CENTERING V3 (deterministic): grid dateband with equal side columns
   Lines are pseudo-elements so layout can't drift.
   ========================= */
.hero__content{
  margin: 0 auto !important;
  width: min(980px, 92vw) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
.hero__scroll{
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.hero__meta{
  width: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  max-width: 92vw !important;
}

/* Dateband: true axis lock */
.dateband{
  margin: 22px auto 0 !important;
  width: min(980px, 92vw) !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important; /* equal side columns */
  align-items: center !important;
  column-gap: 34px !important;
  text-align: center !important;
}
.dateband__mid{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 170px !important;
}
.dateband__side{
  display: flex !important;
  justify-content: center !important;
}
.dateband__label{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: .10em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .9;
}
.dateband__label::before,
.dateband__label::after{
  content:"";
  display:block;
  height:1px;
  width: clamp(70px, 9vw, 170px);
  background: rgba(27,42,68,.22);
}

/* Mobile: stack */
@media (max-width: 560px){
  .dateband{
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
    justify-items: center !important;
  }
  .dateband__label::before,
  .dateband__label::after{
    display:none;
  }
}



/* ===== V4 ensure right side label shows (symmetry) ===== */
.dateband__side--right{ justify-content: center !important; }
.dateband__side--left{ justify-content: center !important; }
/* If any earlier rule hides the right side, force display */
.dateband__side--right, .dateband__side--left{ display:flex !important; visibility: visible !important; opacity: 1 !important; }



/* =========================
   V6: Axis-lock for title ("e" is the true center)
   Ensures the 'e' sits exactly on the page center axis,
   independent of different name widths.
   ========================= */
.hero__title--script{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: baseline !important;
  column-gap: clamp(14px, 2.2vw, 26px) !important;
  width: min(980px, 92vw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero__name--left{ justify-self: end !important; }
.hero__name--right{ justify-self: start !important; }
.hero__and{
  justify-self: center !important;
  text-align: center !important;
}

/* keep subtitle/meta aligned to same axis */
.hero__subtitle,
.hero__meta,
.hero__pill,
.dateband{
  margin-left: auto !important;
  margin-right: auto !important;
}

/* small optical tweak: keep dateband mid perfectly centered */
.dateband__mid{ text-align: center !important; }
.dateband__month, .dateband__year{ width: 100%; text-align: center !important; }



/* =========================
   V7 BUGFIX (root cause):
   Some children (title/dateband) were wider than .hero__content (max-width:720px),
   so auto margins collapsed to 0 → elements aligned left and the axis drifted.
   Fix: make .hero__content wide enough and constrain children to 100%.
   ========================= */
.hero__content{
  width: min(980px, 92vw) !important;
  max-width: min(980px, 92vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero__title--script,
.dateband{
  width: 100% !important;        /* never exceed hero__content */
  max-width: 100% !important;
}



/* =========================
   V10: Bussola "partecipazione" + micro-ottica sulla 'E'
   (solo HERO: non tocca le altre sezioni)
   ========================= */

/* micro-ottica: 'E' più centrata otticamente */
.hero__title--script{ column-gap: clamp(14px, 2.0vw, 22px); }
.hero__and{
  letter-spacing: .18em;
  opacity: .82;
  transform: translateY(-.28em) translateX(-.06em);
  font-size: .44em;
}

/* Bussola: più visibile e in posizione "invito" (alto-sinistra) */
.hero__compass{
  top: 72px;
  left: 64px;
  transform: rotate(-10deg);
  width: min(380px, 42vw);
  opacity: .28;
  filter: none;
  mix-blend-mode: multiply;
  z-index: 1;
  animation: none;
}
@media (max-width: 900px){
  .hero__compass{
    top: 64px;
    left: 28px;
    width: min(320px, 56vw);
    opacity: .24;
  }
}
@media (max-width: 560px){
  .hero__compass{
    top: 52px;
    left: 14px;
    width: min(280px, 72vw);
    opacity: .22;
  }
}

/* Safety: ensure subtitle never gets a pill background */
.hero__subtitle{ background: transparent !important; padding: 0 !important; border-radius: 0 !important; backdrop-filter: none !important; }


/* Italic lowercase 'e' between names */
.ia-and{
  font-style: italic;
  text-transform: none;
}
.gallery .ph{
  background-size: cover;       /* riempie la casella */
  background-position: center;  /* centra invece di top-left */
  background-repeat: no-repeat;
}
.gallery .ph.has-img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
