/* =============================================
   IL MONDO DI REGY — style.css
   ============================================= */

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box }

:root {
  --f:    #E8007A;
  --f2:   #FF3DAA;
  --f3:   #FF85CA;
  --c:    #00BFFF;
  --c2:   #5DE0FF;
  --ink:  #1a0535;
  --ink2: rgba(26,5,53,.70);
  --ink3: rgba(26,5,53,.50);
  --nav-h:    130px;   /* doppia riga: titolo + barra pulsanti */
  --bottom-h: 0px;     /* barra non è più in basso */
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
}

/* ── CURSORE ── */
#cur, #cur2 {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  top: -50px; left: -50px;
}
#cur {
  width: 10px; height: 10px;
  background: var(--f2);
  box-shadow: 0 0 8px var(--f);
  transition: width .2s, height .2s;
}
#cur2 {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(232,0,122,.55);
  transition: all .08s linear;
}

/* ── NAV TOP — due righe: titolo + barra pulsanti ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .7rem 4%;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,0,122,.12);
}
.nav-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-bot-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1;
}
.nav-title em {
  color: var(--f2);
  font-style: italic;
  font-weight: 400;
}

/* ── BARRA NAVIGAZIONE PANNELLI — ora dentro la nav ── */
#navbar {
  display: flex;
  gap: .3rem;
  padding: .28rem .32rem;
  background: rgba(255,255,255,.0);  /* trasparente — già dentro la nav */
  border-radius: 50px;
  border: none;
  box-shadow: none;
  white-space: nowrap;
}
.nb {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.2rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(26,5,53,.60);
  transition: all .25s ease;
}
.nb:hover { color: var(--f); background: rgba(232,0,122,.07); }
.nb.on {
  background: linear-gradient(135deg, var(--f), var(--f2));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 14px rgba(232,0,122,.4);
}

/* Tab bar mobile — nascosta su desktop, visibile via media query */
.mob-tabs { display: none; }

/* ── FRECCE ── */
.arr {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232,0,122,.2);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.arr:hover { border-color: var(--f); box-shadow: 0 0 18px rgba(232,0,122,.3); }
.arr.off { opacity: 0; pointer-events: none; }
.arr svg { width:15px; height:15px; stroke:var(--ink); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.arr:hover svg { stroke: var(--f); }
#aL { left: 1.4%; }
#aR { right: 1.4%; }

/* ── SLIDER ── */
#slider {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: var(--bottom-h);
  z-index: 1;
  display: flex;
  will-change: transform;
  transition: transform .82s cubic-bezier(.76,0,.24,1);
}
.pnl {
  width: 100vw;
  height: calc(100vh - var(--nav-h));
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   P0 — HERO / GLOBO
   ============================================= */
#p0 { background: #fff; }

/* Layout Hero: tre zone verticali — eyebrow / globo / titolo+ticker */
#p0 .h-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;        /* eyebrow sempre su una riga */
  overflow: hidden;
}

/* Il globo occupa lo spazio utile del pannello lasciando margine per le sfere */
.globe-wrap {
  position: relative;
  width:  min(522px, 47vh);
  height: min(522px, 47vh);
  margin-top: -1.5rem;
}

#globe-c {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.logo-fix {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;   /* sopra il canvas overlay sfere */
  /* Aumentato da 32% a 36% per miglior leggibilità */
  width: 36%; height: 36%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5.5px var(--f),
    0 0 0 8px rgba(0,191,255,.4),
    0 0 28px rgba(232,0,122,.7),
    0 0 55px rgba(232,0,122,.3);
  animation: logoPulse 3s ease-in-out infinite;
  pointer-events: none;
}
.logo-fix img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@keyframes logoPulse {
  0%,100% {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--f),  0 0 0 8px rgba(0,191,255,.4),  0 0 28px rgba(232,0,122,.7), 0 0 55px rgba(232,0,122,.3);
  }
  50% {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--c),  0 0 0 8px rgba(232,0,122,.35), 0 0 35px rgba(0,191,255,.85), 0 0 65px rgba(0,191,255,.35);
  }
}

.eyebrow {
  font-size: .95rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--f);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.el  { width: 44px; height: 1.5px; background: linear-gradient(to right, transparent, var(--f)); }
.el.r{ background: linear-gradient(to left,  transparent, var(--f)); }


/* Ticker / Marquee — separato dal contenuto, incollato al bottom del pannello */
.mq {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 6;
  overflow: hidden;
  border-top: 1px solid rgba(232,0,122,.12);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: .45rem 0;
  /* altezza totale ticker ~30px, non interferisce con navbar */
}
.mq-t { display:flex; white-space:nowrap; animation:mqA 32s linear infinite; }
.mq-i { display:flex; gap:3rem; padding-right:3rem; flex-shrink:0; }
.mi   {
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.md   { width:5px; height:5px; border-radius:50%; background:var(--f); flex-shrink:0; }
@keyframes mqA { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.slb {
  font-size: .62rem;          /* era .55rem */
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--f);
  font-weight: 300;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.slb::before, .slb::after { content:''; width:16px; height:1px; background:var(--f); }
.sh2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sh2 em { font-style:italic; color:var(--f2); }

/* =============================================
   P2 — LA MENTE
   ============================================= */
#p2 { background: radial-gradient(ellipse at 35% 50%, #efe5ff 0%, #fff 65%); }
#neb-c { position:absolute; inset:0; width:100%; height:100%; }

.p2-box {
  position: relative;
  z-index: 5;
  max-width: 600px;
  padding: 1.5rem 2rem;
  text-align: center;
  /* Sposta leggermente verso l'alto per bilanciamento ottico */
  margin-top: -1.5rem;
}
.plb {
  font-size: .62rem;          /* era .54rem */
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--f3);
  font-weight: 300;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}
.plb::before, .plb::after { content:''; width:18px; height:1px; background:var(--f3); }
.ph2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 1.4rem;
  color: var(--ink);
}
.ph2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--f2), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ptx {
  font-size: clamp(.78rem, 1.05vw, .9rem);  /* era .75rem min */
  color: rgba(26,5,53,.6);
  line-height: 1.9;
  font-weight: 300;
  letter-spacing: .03em;
  margin-bottom: .7rem;
}
.psig {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--f3);
  margin-top: 1.4rem;
  font-weight: 300;
}

/* =============================================
   P3 — MANIFESTO / MONOLITI
   ============================================= */
#p3 { background: #ffffff; }
#mono-c { position:absolute; inset:0; width:100%; height:100%; }

.p3-top {
  position: absolute;
  top: 5%; left: 0; right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.p3-top .slb { color:var(--c); }
.p3-top .slb::before, .p3-top .slb::after { background:var(--c); }

.mono-lbs {
  position: absolute;
  bottom: calc(var(--bottom-h) + 16px);  /* era bottom:5%, ora allineato sopra navbar */
  left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 5%;
  z-index: 5;
  pointer-events: none;
}
.mib { text-align:center; max-width:185px; }
.mir {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: rgba(232,0,122,.35);
  line-height: 1;
  margin-bottom: .35rem;
}
.mit {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;          /* era .9rem */
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
}
.mix {
  font-size: .65rem;          /* era .58rem */
  color: rgba(26,5,53,.5);
  line-height: 1.65;
  font-weight: 300;
}

/* =============================================
   P2 — NOVITÀ (Instagram feed)
   ============================================= */
#p2 { background: radial-gradient(ellipse at 60% 40%, #fce4f3 0%, #f0eaff 45%, #fff 80%); }

.nov-wrap {
  position: relative;
  z-index: 5;
  width: min(660px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
}

.nov-top { text-align: center; margin-bottom: .2rem; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  width: 100%;
}

.ig-post {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: #ede4f5;
}

.ig-post-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5eeff;
  display: block;
  transition: transform .35s ease;
}

.ig-post:hover .ig-post-img { transform: scale(1.06); }

.ig-post-over {
  position: absolute;
  inset: 0;
  background: rgba(26,5,53,.60);
  display: flex;
  align-items: flex-end;
  padding: .5rem;
  opacity: 0;
  transition: opacity .25s ease;
}

.ig-post:hover .ig-post-over { opacity: 1; }

.ig-post-cap {
  font-family: 'Cormorant Garamond', serif;
  font-size: .78rem;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ig-video-icon {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  transition: color .2s;
}
.ig-follow svg { width: 15px; height: 15px; flex-shrink: 0; }
.ig-follow:hover { color: var(--f); }

/* Sidebar e colonna griglia — mobile: verticale */
.nov-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}
.ig-grid-col { width: 100%; }

/* Desktop: layout orizzontale */
@media (min-width: 901px) {
  .nov-wrap {
    flex-direction: row;
    width: min(1050px, 92vw);
    align-items: center;
    gap: 3.5rem;
    padding: 0;
  }
  .nov-sidebar {
    width: 210px;
    flex-shrink: 0;
    align-items: center;
    text-align: center;
  }
  .ig-grid-col {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* La griglia non supera mai l'altezza disponibile */
  #ig-grid {
    width: min(100%, calc(100vh - var(--nav-h) - 5rem));
  }
}

/* Loading dots */
.ig-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
}

.ig-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--f3);
  animation: igpulse 1.2s ease-in-out infinite;
}

.ig-dot:nth-child(2) { animation-delay: .2s; }
.ig-dot:nth-child(3) { animation-delay: .4s; }

@keyframes igpulse {
  0%, 100% { transform: scale(.7); opacity: .4; }
  50%       { transform: scale(1);  opacity: 1;  }
}

.ig-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink2);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 2rem;
}

/* Mobile */
@media (max-width: 600px) {
  .ig-grid { gap: .3rem; }
}

/* =============================================
   P3 — CONTATTI
   ============================================= */
#por-c { display:none; }

.cnt-wrap {
  position: relative;
  z-index: 5;
  width: min(520px, 88vw);
  margin-bottom: 0;
}

/* Firma decorativa */
.cnt-sig {
  font-family: 'Tangerine', cursive;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 .1rem;
  text-align: center;
}
.cnt-sig-dot { color: var(--c); }

/* Eyebrow */
.cnt-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink2);
  text-align: center;
  margin: 0 0 1rem;
}

/* Lista link */
.cnt-list {
  border-top: 1px solid rgba(26,5,53,.1);
  margin-bottom: 1rem;
}

.cnt-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .68rem .2rem .68rem .4rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,5,53,.07);
  position: relative;
  transition: padding-left .2s ease, background .2s ease;
}
.cnt-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.cnt-row:hover { padding-left: .9rem; background: rgba(0,0,0,.016); }
.cnt-row:hover::before { transform: scaleY(1); }

.cnt-row-ig::before { background: #e1306c; }
.cnt-row-wa::before { background: #25d366; }
.cnt-row-vt::before { background: #09b1ba; }
.cnt-row-wp::before { background: #13c1ac; }

.cnt-row-ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.cnt-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.cnt-row-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cnt-row-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink2);
  line-height: 1.2;
}
.cnt-row-ig .cnt-row-name { color: #b5006a; }
.cnt-row-wa .cnt-row-name { color: #0a7060; }
.cnt-row-vt .cnt-row-name { color: #078a91; }
.cnt-row-wp .cnt-row-name { color: #07897c; }

.cnt-row-arr {
  flex-shrink: 0;
  color: var(--ink);
  opacity: .35;
  transition: opacity .2s, transform .2s;
}
.cnt-row:hover .cnt-row-arr { opacity: .85; transform: translate(3px, -3px); }

/* Frase di benvenuto sotto WhatsApp */
.cnt-welcome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.42;
  color: var(--ink);
  margin: .9rem auto 1rem;
  text-align: center;
  max-width: 46ch;
}

/* CTA principale — pulsante WhatsApp */
.cnt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto .8rem;
  padding: .7rem 1.7rem;
  background: linear-gradient(135deg, #25d366 0%, #18b955 100%);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37,211,102,.38);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cnt-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37,211,102,.5);
}
.cnt-cta-ico {
  width: 40px; height: 40px;
  color: #fff;
  flex-shrink: 0;
}
.cnt-cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.cnt-cta-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: .15rem;
}
.cnt-cta-num {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
}

/* Email evidenziata */
.cnt-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0 auto .6rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.cnt-email svg { width: 19px; height: 19px; color: var(--f); flex-shrink: 0; }
.cnt-email:hover { color: var(--f); }

/* Footer discreto — solo Privacy */
.cnt-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  padding: .5rem 0 0;
}
.cnt-bottom-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--ink2);
  text-decoration: none;
  transition: color .2s;
}
.cnt-bottom-link:hover { color: var(--c); }
.cnt-bottom-link svg { width: 15px; height: 15px; opacity: .85; flex-shrink: 0; }
.cnt-bottom-link.phone {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.cnt-bottom-link.phone svg { color: var(--c); opacity: 1; width: 16px; height: 16px; }
.cnt-bottom-link.phone:hover { color: var(--c); }
.cnt-bottom-sep { color: rgba(26,5,53,.3); font-size: .9rem; }

/* =============================================
   P3 — CONTATTI: layout con foto
   ============================================= */
.cnt-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  width: min(900px, 90vw);
}

.cnt-layout .cnt-wrap {
  margin-bottom: 0;
  flex-shrink: 0;
}

.cnt-photo {
  flex-shrink: 0;
}

.cnt-photo-img {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 8px 32px rgba(232,0,122,.15));
}

/* Su mobile: foto circolare piccola in cima, layout a colonna */
@media (max-width: 700px) {
  .cnt-layout {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
  }
  /* Foto sopra il blocco contatti */
  .cnt-photo {
    display: block;
    order: -1;
  }
  .cnt-photo-img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    /* Anello decorativo rosa */
    box-shadow: 0 0 0 2px #fff,
                0 0 0 3.5px var(--f),
                0 4px 18px rgba(232,0,122,.28);
  }
}

/* ── CONTATTI su tablet (701–900px) ───────────────────────────
   Layout a colonna come mobile: foto circolare in cima, tutto centrato
   ──────────────────────────────────────────────────────────── */
@media (min-width: 701px) and (max-width: 900px) {
  .cnt-layout {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    width: min(520px, 88vw);
  }
  .cnt-photo {
    display: block;
    order: -1;
  }
  .cnt-photo-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff,
                0 0 0 3.5px var(--f),
                0 4px 22px rgba(232,0,122,.28);
  }
  .cnt-wrap { width: 100%; }
}

/* =============================================
   SELETTORE LINGUE
   ============================================= */
.lang-sel {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .22rem .45rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--ink3);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.lang-btn:hover {
  color: var(--f);
  border-color: rgba(232,0,122,.25);
  background: rgba(232,0,122,.05);
}
.lang-btn.active {
  color: var(--f);
  border-color: rgba(232,0,122,.4);
  background: rgba(232,0,122,.08);
  font-weight: 600;
}

/* =============================================
   P1 — LA MIA STORIA
   ============================================= */
#p1 {
  background: #ffffff;
  overflow: hidden;
}
#neb-c { display: none; }

/* Passepartout — doppia cornice scoped al pannello */
#p1::before,
#p1::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 6;
}
#p1::before {
  inset: clamp(14px, 1.6vw, 24px);
  border: 1.5px solid #5BBDE5;
}
#p1::after {
  inset: clamp(22px, 2.2vw, 34px);
  border: 1px solid rgba(91,189,229,.35);
}

.story-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 3.5vh, 56px) clamp(40px, 5vw, 90px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Barra celeste sopra il titolo */
.story-mark {
  width: 44px;
  height: 2px;
  background: #5BBDE5;
  border-radius: 2px;
  margin-bottom: clamp(8px, 1.2vh, 18px);
  flex-shrink: 0;
}

/* Titolo "Regina." */
.story-title {
  font-family: 'Bodoni Moda', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6.5vh, 96px);
  line-height: .92;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 clamp(8px, 1.2vh, 18px);
  flex-shrink: 0;
}
.story-period { color: var(--f); }

/* Underline gradiente sotto il titolo */
.story-underline {
  width: clamp(80px, 10vw, 160px);
  height: 1px;
  background: linear-gradient(to right, transparent, #5BBDE5 30%, var(--f) 70%, transparent);
  margin-bottom: clamp(12px, 1.8vh, 32px);
  flex-shrink: 0;
}

/* Contenitore paragrafi — occupa tutto lo spazio rimanente */
.story-body {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.story-p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.58;
  color: var(--ink);
  letter-spacing: .008em;
  margin: 0;
}

/* Drop cap sul primo paragrafo */
.story-p:first-of-type::first-letter {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 3.2em;
  line-height: .80;
  float: left;
  padding: .04em .10em 0 0;
  color: #1E9FCC;
}

/* Nomi città colorati */
.city-f { color: #C81470; font-weight: 700; }
.city-c { color: #1E9FCC; font-weight: 700; }

/* Firma */
.story-sign {
  margin-top: clamp(10px, 1.4vh, 24px);
  text-align: center;
  flex-shrink: 0;
}
.story-sig {
  font-family: 'Tangerine', 'Pinyon Script', cursive;
  font-weight: 700;
  font-size: clamp(48px, 5.5vh, 84px);
  line-height: 1;
  background: linear-gradient(110deg, var(--f) 0%, #5BBDE5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding: 0 .15em .05em;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  /* Storia mobile: font e spaziatura compressi per far stare tutto
     nella viewport senza scorrimento — layout invariato */
  .story-wrap      { padding: 14px 5% 16px; }
  .story-mark      { margin-bottom: 4px; }
  .story-title     { font-size: clamp(24px, 6.5vw, 34px); margin-bottom: 4px; }
  .story-underline { margin-bottom: 8px; }
  .story-p         { font-size: .72rem; line-height: 1.50; }
  .story-sign      { margin-top: 4px; }
  .story-sig       { font-size: clamp(32px, 8vw, 48px); }
}

/* ── STORIA su tablet (481–900px) ─────────────────────────────
   Font più grande del phone (.72rem) e space-between per
   distribuire uniformemente i paragrafi sull'altezza disponibile.
   Usa min-width per non toccare il layout phone (≤480px) approvato.
   ──────────────────────────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 900px) {
  .story-body {
    justify-content: space-between;
  }
  .story-p { font-size: 1.42rem; line-height: 1.68; }
}

/* =============================================
   RESPONSIVE — MOBILE NAV (≤900px)
   Top bar slim + bottom tab bar
   ============================================= */
@media (max-width: 900px) {
  :root {
    --nav-h:    58px;
    --bottom-h: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  /* Slim top bar: solo titolo + bandiere */
  nav {
    height: var(--nav-h);
    gap: 0;
    padding: 0 3%;
    justify-content: center;
  }
  .nav-bot-row { display: none; }

  /* Titolo + bandiere affiancati — no sovrapposizione */
  .nav-top-row {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .lang-sel {
    position: static;   /* non più absolute — scorre nel flex */
    transform: none;
    flex-shrink: 0;
  }
  .nav-title {
    font-size: clamp(1.05rem, 3.8vw, 1.7rem);
    letter-spacing: .03em;
    white-space: nowrap;
  }

  /* Frecce nascoste su touch */
  .arr { display: none; }

  /* Fix iOS Safari 100vh */
  .pnl {
    height: calc(100dvh - var(--nav-h) - var(--bottom-h));
  }

  /* ── BOTTOM TAB BAR ── */
  .mob-tabs {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-h);
    z-index: 900;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(232,0,122,.12);
    align-items: flex-start;
    justify-content: space-around;
    padding-top: .5rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mob-tabs .nb {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .15rem;
    padding: .2rem .1rem 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: .55rem;
    font-weight: 400;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(26,5,53,.45);
    transition: color .2s, background .2s;
  }

  .mob-tabs .nb .tab-icon {
    font-size: 1.4rem;
    line-height: 1;
    display: block;
  }

  .mob-tabs .nb .tab-lbl { display: block; }

  .mob-tabs .nb.on {
    background: transparent;
    box-shadow: none;
    color: var(--f);
    font-weight: 600;
  }

  .mob-tabs .nb:hover,
  .mob-tabs .nb:active {
    background: rgba(232,0,122,.06);
    color: var(--f);
  }
}

/* ── RESPONSIVE ≤700px ── */
@media (max-width: 700px) {
  /* Globo su mobile: un po' più piccolo per dare respiro alle sfere orbitanti */
  .globe-wrap {
    width:  min(210px, 48vw);
    height: min(210px, 48vw);
    margin-top: 0;
  }

  .mono-lbs { flex-wrap:wrap; gap:.5rem; }
  .mib { max-width:130px; }

  /* Contatti mobile */
  .cnt-sig    { font-size: 2.2rem; }          /* ridotto leggermente */
  .cnt-eyebrow { margin-bottom: .8rem; }      /* meno spazio sotto eyebrow */
  .cnt-row    { gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
  .cnt-row-ico { width: 32px; height: 32px; }
  .cnt-bottom { gap: .5rem; padding-top: .4rem; }
  .cnt-bottom-sep { display: none; }

  /* Messaggio + CTA su mobile — compatti ma leggibili */
  .cnt-welcome  { font-size: 1rem; line-height: 1.42; margin: .9rem auto 1rem; }
  .cnt-cta      { gap: .75rem; padding: .7rem 1.3rem; margin-bottom: .9rem; }
  .cnt-cta-ico  { width: 32px; height: 32px; }
  .cnt-cta-label{ font-size: .6rem; }
  .cnt-cta-num  { font-size: 1.18rem; }
  .cnt-email    { font-size: .9rem; margin-bottom: .7rem; }
  .cnt-email svg { width: 16px; height: 16px; }
}

/* ── RESPONSIVE ≤480px ── */
@media (max-width: 480px) {
  nav { padding: 0 2%; }

  /* Titolo più grande — le bandiere sono icone-only, c'è spazio */
  .nav-title { font-size: 1.4rem; letter-spacing: .02em; }

  /* Bandiere: solo icona flag, niente testo — risparmia spazio */
  .lang-btn {
    font-size: 0;
    padding: .12rem .14rem;
    line-height: 0;
  }
  .lang-btn img { width: 20px; height: auto; display: block; }
}
