/* =============================================================
   Roma — style.css
   Editoriale, calmo, generoso negli spazi bianchi.
   ============================================================= */

:root {
  /* Palette — Direzione B (Hermès editoriale) */
  --travertino:    #FAF7F2;   /* sfondo pagina, crema */
  --crema:         #F2EDE4;   /* alternato, sabbia */
  --inchiostro:    #111111;   /* testo principale */
  --scuro:         #1B1B1B;   /* sezioni scure */
  --terra:         #6B5E4D;   /* accento caldo (taupe) */
  --orange:        #E25822;   /* arancio Hermès — solo microaccenti */
  --rosa-dusty:    #C9A89A;
  --grigio-pietra: #6B6660;
  --linea:         #D7D2C8;

  --container-max: 1280px;
  --section-y:     clamp(4rem, 10vw, 9rem);
  --nav-h:         84px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--travertino);
  color: var(--inchiostro);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, .display-serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--inchiostro);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

p { max-width: 62ch; }

::selection { background: var(--inchiostro); color: var(--travertino); }

a { color: var(--inchiostro); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--terra); }

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--inchiostro); color: var(--travertino);
  padding: .75rem 1rem; z-index: 1100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Container ---------- */
.container-editorial { max-width: var(--container-max); }

.section { padding: var(--section-y) 0; }
.section-cream      { background: var(--crema); }
.section-cta-dark   { background: var(--inchiostro); color: var(--travertino); }
.section-cta-dark h2,
.section-cta-dark .display-serif { color: var(--crema); }

.h-section {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.015em;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  margin: 0 0 1rem 0;
}
.eyebrow-light { color: rgba(247, 243, 236, 0.75); }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(239, 233, 225, 0.0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, padding .25s ease;
  z-index: 1050;
}
.navbar-scrolled {
  background: rgba(239, 233, 225, 0.92);
  border-bottom-color: var(--linea);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .navbar:not(.navbar-scrolled) .nav-link,
.page-home .navbar:not(.navbar-scrolled) .navbar-brand {
  color: var(--crema);
}
.page-home .navbar:not(.navbar-scrolled) .navbar-toggler-icon {
  filter: invert(1);
}

.navbar-brand {
  font-size: 1.65rem !important;
  letter-spacing: -0.01em;
  color: var(--inchiostro);
}
.nav-link {
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--inchiostro);
  position: relative;
  padding: .5rem 0 !important;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.lang-switch {
  font-size: .8rem !important;
  letter-spacing: 0.18em;
  border: 1px solid currentColor;
  padding: .35rem .85rem !important;
}
.lang-switch::after { display: none; }

.navbar-toggler:focus { box-shadow: none; }

/* spazio per navbar fixed (eccetto home con hero full) */
body:not(.page-home) main { padding-top: var(--nav-h); }

/* ---------- Buttons ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary {
  background: var(--inchiostro);
  color: var(--crema);
  border-color: var(--inchiostro);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--crema);
}
.btn-outline-ink {
  background: transparent;
  color: var(--inchiostro);
  border: 1px solid var(--inchiostro);
}
.btn-outline-ink:hover { background: var(--inchiostro); color: var(--crema); }

.btn-light-on-dark {
  background: var(--crema);
  color: var(--inchiostro);
  border-color: var(--crema);
}
.btn-light-on-dark:hover {
  background: var(--terra);
  color: var(--crema);
  border-color: var(--terra);
}

/* ---------- Hero (home) — diptych "due Rome", 90vh (10vh peek video) ----------
   Effetto: l'immagine sinistra (Aventino) copre tutto, poi un "taglio"
   da destra a sinistra rivela l'immagine destra (Roma) fino a fermarsi
   a metà — restano due Rome affiancate.
*/
.hero {
  position: relative;
  height: 90vh;
  height: 90dvh;
  color: var(--travertino);
  overflow: hidden;
  background: var(--scuro);
}
.hero-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-half img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
  will-change: transform;
}
/* Strato di sotto: Roma (destra) — sempre full-bleed, viene scoperta dal taglio */
.hero-half--right {
  z-index: 1;
}
.hero-half--right img {
  transform-origin: left center;
  animation: heroKenBurnsR 16s ease-out forwards;
}
/* Strato sopra: Aventino (sinistra) — parte coprendo tutto, poi si ritrae fino a metà */
.hero-half--left {
  z-index: 2;
  animation: heroSliceLeft 1.8s cubic-bezier(.76,0,.24,1) .35s both;
}
.hero-half--left img {
  transform-origin: right center;
  animation: heroKenBurnsL 16s ease-out forwards;
}
@keyframes heroSliceLeft {
  /* Da full-bleed (clip a 0) a solo metà sinistra (clip a 50% da destra) */
  from { clip-path: inset(0 0 0 0); }
  to   { clip-path: inset(0 50% 0 0); }
}
@keyframes heroKenBurnsL {
  from { transform: scale(1.0); }
  to   { transform: scale(1.05); }
}
@keyframes heroKenBurnsR {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}
/* Sottile linea verticale fra le due metà — taglio editoriale, appare dopo lo slide */
.hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(250,247,242,.18);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: heroLineIn .6s ease-out 1.9s forwards;
}
@keyframes heroLineIn {
  to { opacity: 1; }
}

/* Rispetta prefers-reduced-motion: niente slide, mostra subito lo split */
@media (prefers-reduced-motion: reduce) {
  .hero-half--left { animation: none; clip-path: inset(0 50% 0 0); }
  .hero-half--right img,
  .hero-half--left img { animation: none; }
  .hero::before { opacity: 1; animation: none; }
}

/* Mobile: una sola immagine (la sinistra), niente split */
@media (max-width: 767.98px) {
  .hero-half--left { animation: none; clip-path: none; }
  .hero-half--right { display: none; }
  .hero::before { display: none; }
  .hero { height: 70vh; }
  .hero-content {
    left: 13px;
    top: 200px;
  }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.18) 50%,
    rgba(0,0,0,0.62) 100%);
  z-index: 3;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(2.75rem, 6vw, 5.5rem);
  z-index: 5;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(250,247,242,.75);
  margin: 0 0 1.5rem 0;
}

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 6.25rem);
  font-weight: 300;
  color: var(--travertino);
  max-width: 14ch;
  margin: 0 0 1.5rem 0;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero-subtitle {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  max-width: 42ch;
  color: rgba(250,247,242,.92);
  margin: 0;
  line-height: 1.45;
}

/* Scroll cue: link testuale ancorato in basso, non bottone */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(250,247,242,.78);
  text-decoration: none;
  transition: color .25s ease;
}
.scroll-cue:hover { color: var(--travertino); }
.scroll-cue-line {
  display: block;
  width: 1px;
  height: 48px;
  background: currentColor;
  opacity: .6;
  transform-origin: top;
  animation: scrollCueLine 2.4s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrollCueLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (interne) ---------- */
.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}
.page-hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-style: italic;
  max-width: 18ch;
  margin: 0 0 1.5rem 0;
}
.page-hero-lead {
  font-size: 1.15rem;
  color: var(--grigio-pietra);
  max-width: 60ch;
}
.page-hero.text-center .page-hero-title,
.page-hero.text-center .page-hero-lead { margin-left: auto; margin-right: auto; }

/* ---------- Lead / typography blocks ---------- */
.lead-editorial {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--inchiostro);
  margin-bottom: 1.5rem;
}

.figure-editorial { margin: 0; }
.figure-editorial img {
  width: 100%;
  filter: saturate(.95) contrast(1.02);
}
.figure-wide img { aspect-ratio: 16/9; object-fit: cover; }
.figure-caption-editorial {
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--grigio-pietra);
  margin-top: .75rem;
  font-style: italic;
}

.pullquote {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--terra);
  border-left: 2px solid var(--terra);
  padding: .25rem 0 .25rem 1.5rem;
  margin: 2.5rem 0;
  max-width: none;
}

/* ---------- Cards (anteprima esperienze home) ---------- */
.card-editorial {
  display: block;
  color: var(--inchiostro);
  text-decoration: none;
}
.card-editorial-media {
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 3/4;
}
.card-editorial-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.card-editorial:hover .card-editorial-media img { transform: scale(1.04); }
.card-editorial-title {
  font-size: 1.65rem;
  margin: 0 0 .6rem;
}
.card-editorial-desc {
  color: var(--grigio-pietra);
  font-size: .98rem;
  margin-bottom: .85rem;
}
.card-editorial-link {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ---------- Quote (home) ---------- */
.section-quote {
  background: var(--crema);
  text-align: center;
  padding: clamp(5rem, 11vw, 9rem) 0;
}
.quote-editorial {
  font-style: italic;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
  color: var(--inchiostro);
}

/* ---------- Steps (home condensato) ---------- */
.steps-row .step-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--terra);
  margin: 0 0 1rem;
  line-height: 1;
  font-style: italic;
}
.step-title {
  font-size: 1.5rem;
  margin: 0 0 .75rem;
}
.step-desc {
  color: var(--grigio-pietra);
}

/* ---------- Steps (come funziona) ---------- */
.step-block {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--linea);
}
.step-block:last-child { border-bottom: none; }
.step-num-large {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--terra);
  margin: 0 0 1rem;
  line-height: 1;
}
.step-title-large {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
}
.step-desc-large {
  font-size: 1.1rem;
  color: var(--grigio-pietra);
  max-width: 56ch;
}

/* ---------- CTA dark (riusabile) ---------- */
.section-cta-dark .h-section { color: var(--crema); }
.cta-desc {
  color: rgba(247,243,236,.85);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto 2.25rem;
}

/* ---------- About: valori ---------- */
.value-icon {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--terra);
  padding: .85rem;
  border: 1px solid var(--linea);
}
.value-title {
  font-size: 1.4rem;
  margin: 0 0 .5rem;
}
.value-desc {
  color: var(--grigio-pietra);
  font-size: .98rem;
}

/* ---------- About: mood grid ---------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.5rem, 1.5vw, 1.25rem);
}
.mood-cell { margin: 0; grid-column: span 2; aspect-ratio: 4/3; overflow: hidden; }
.mood-cell img { width: 100%; height: 100%; object-fit: cover; }
.mood-tall { grid-column: span 2; grid-row: span 2; aspect-ratio: 3/4; }
.mood-wide { grid-column: span 4; aspect-ratio: 16/9; }

@media (max-width: 768px) {
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .mood-cell, .mood-tall, .mood-wide { grid-column: span 1; grid-row: auto; aspect-ratio: 4/5; }
  .mood-wide { grid-column: span 2; aspect-ratio: 16/9; }
}

/* ---------- Esperienze ---------- */
.experience-row { padding: clamp(3rem, 8vw, 7rem) 0; }
.experience-num {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-style: italic;
  color: var(--terra);
  margin: 0 0 .75rem;
  line-height: 1;
}
.experience-title {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  margin: 0 0 .75rem;
}
.experience-sub {
  font-size: 1.15rem;
  color: var(--grigio-pietra);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.experience-desc {
  margin-bottom: 1.75rem;
}
.experience-meta {
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.experience-meta dt { margin-bottom: .25rem; }
.experience-meta dd { margin: 0; font-size: 1rem; }

/* ---------- Accordion FAQ ---------- */
.accordion-editorial .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--linea);
  border-radius: 0 !important;
}
.accordion-editorial .accordion-button {
  background: transparent;
  border-radius: 0 !important;
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--inchiostro);
  padding: 1.4rem 0;
  box-shadow: none !important;
}
.accordion-editorial .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--terra);
}
.accordion-editorial .accordion-button::after {
  background-size: 1rem;
  filter: grayscale(1);
}
.accordion-editorial .accordion-body {
  padding: 0 0 1.5rem;
  color: var(--grigio-pietra);
  max-width: 70ch;
}

/* ---------- Contatti ---------- */
.contact-info {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.contact-email {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  margin: 0 0 .25rem;
}
.contact-email a { border-bottom: 1px solid var(--linea); padding-bottom: .15rem; }
.contact-city {
  color: var(--grigio-pietra);
  font-size: .95rem;
}

.contact-form .form-label {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  margin-bottom: .5rem;
  font-weight: 500;
}
.contact-form .form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  padding: .65rem 0;
  font-size: 1.0625rem;
  color: var(--inchiostro);
  transition: border-color .25s ease;
}
.contact-form .form-control:focus {
  background: transparent;
  border-color: var(--inchiostro);
  box-shadow: none;
  outline: none;
}
.contact-form textarea.form-control { min-height: 140px; }

.form-check-input {
  border-radius: 0 !important;
  border-color: var(--grigio-pietra);
}
.form-check-input:checked {
  background-color: var(--inchiostro);
  border-color: var(--inchiostro);
}
.form-check-label {
  font-size: .9rem;
  color: var(--grigio-pietra);
}
.form-prefill {
  background: var(--crema);
  border-left: 2px solid var(--terra);
  padding: .85rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.alert {
  border-radius: 0;
  border: 1px solid var(--linea);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--inchiostro);
  color: var(--crema);
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
}
.site-footer a { color: var(--crema); }
.site-footer a:hover { color: var(--rosa-dusty); }

.footer-brand {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--crema);
}
.footer-tagline {
  font-style: italic;
  color: var(--rosa-dusty);
  margin-bottom: 1.5rem;
}
.footer-about {
  color: rgba(247,243,236,.7);
  font-size: .95rem;
  max-width: 42ch;
}
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,243,236,.55);
  margin-bottom: 1.25rem;
}
.footer-links li { padding: .35rem 0; font-size: .95rem; }
.footer-links li.text-muted-warm { color: rgba(247,243,236,.55); }
.footer-bottom {
  border-top: 1px solid rgba(247,243,236,.1);
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-size: .825rem;
  color: rgba(247,243,236,.55);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer-legal a { margin: 0 .35rem; }
.footer-legal .sep { color: rgba(247,243,236,.3); }

/* footer language switcher contrast fix */
.site-footer .lang-switch { color: var(--crema); }

/* ---------- Reveal (con stagger via --d) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibile (accessibilità) ---------- */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

/* ---------- Responsive tweaks ---------- */
/* Drawer mobile: vedi sezione "Mobile drawer" più in basso */

/* Mobile: tipografia hero ricalibrata */
@media (max-width: 575.98px) {
  .hero-title    { font-size: clamp(2.4rem, 11vw, 3.4rem); max-width: 13ch; }
  .hero-subtitle { font-size: 1.05rem; max-width: 32ch; }
  .hero-eyebrow  { font-size: .68rem; letter-spacing: .22em; }
  .scroll-cue    { bottom: 1.25rem; }
  .scroll-cue-line { height: 32px; }
  .experience-meta { flex-direction: column; gap: 1rem; }
}

/* =============================================================
   Updates — micro-animazioni, contact card, label flottanti
   ============================================================= */

/* ---------- Bottoni con freccia ---------- */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}
.btn-arrow svg {
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.btn-arrow:hover svg,
.btn-arrow:focus-visible svg { transform: translateX(6px); }

/* ---------- Card editorial: hover lift ---------- */
.card-editorial {
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.card-editorial:hover { transform: translateY(-6px); }
.card-editorial-link {
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size .4s ease;
}
.card-editorial:hover .card-editorial-link { background-size: 100% 1px; }

/* ---------- Figure with rounded bottom (es. immagine contatti) ---------- */
.figure-rounded {
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}
.figure-editorial img {
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
}
.figure-editorial:hover img { transform: scale(1.025); }

/* ---------- Contact card (wow + bottom radius) ---------- */
.contact-card {
  position: relative;
  background: var(--crema);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  border-radius: 0 0 20px 20px;
  border-top: 1px solid var(--linea);
  box-shadow:
    0 40px 80px -45px rgba(28,26,23,.30),
    0 8px 20px -10px rgba(28,26,23,.08);
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: clamp(2rem, 4.5vw, 3.75rem);
  width: 56px; height: 2px;
  background: var(--terra);
}
.contact-card-eyebrow {
  margin-top: .25rem;
  margin-bottom: .75rem;
  color: var(--terra);
}
.contact-card-title {
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-style: italic;
  margin: 0 0 2.25rem;
  max-width: none;
}

/* ---------- Floating-label fields ---------- */
.field {
  position: relative;
  padding-top: 1.25rem;
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--linea);
  padding: .55rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--inchiostro);
  outline: none;
  transition: border-color .25s ease;
  border-radius: 0;
}
.field-input:focus { border-bottom-color: var(--inchiostro); }
.field-input::placeholder { color: transparent; }
textarea.field-input { resize: vertical; min-height: 110px; }

.field-label {
  position: absolute;
  left: 0;
  top: calc(1.25rem + .55rem);
  pointer-events: none;
  color: var(--grigio-pietra);
  font-size: 1rem;
  font-weight: 400;
  transform-origin: left top;
  transition: transform .3s cubic-bezier(.2,.6,.2,1), color .3s ease;
}
.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label {
  transform: translateY(-1.35rem) scale(.78);
  color: var(--terra);
}
.field-textarea .field-label {
  top: calc(1.25rem + .55rem);
}

/* underline animata su focus */
.field::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--inchiostro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.2,.6,.2,1);
}
.field:focus-within::after { transform: scaleX(1); }

/* validation */
.was-validated .field-input:invalid { border-bottom-color: #b54a3a; }
.was-validated .field-input:invalid + .field-label { color: #b54a3a; }

/* ---------- Privacy checkbox più curato ---------- */
.form-check-editorial {
  padding-left: 2rem;
  min-height: auto;
}
.form-check-editorial .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  margin-left: -2rem;
  border: 1px solid var(--grigio-pietra);
  border-radius: 0 !important;
  background-color: transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.form-check-editorial .form-check-input:checked {
  background-color: var(--inchiostro);
  border-color: var(--inchiostro);
}
.form-check-editorial .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(139,90,60,.18);
}

/* ---------- Bottone full-width nella card ---------- */
.btn-block-card {
  width: 100%;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  margin-top: .5rem;
}

/* ---------- Alert con fade-in ---------- */
.alert.alert-success,
.alert.alert-danger {
  animation: alertFadeIn .55s cubic-bezier(.2,.6,.2,1) both;
}
.alert-success {
  background: #eef3ec;
  color: #2f5b3a;
  border-color: #cfe0d3;
}
.alert-danger {
  background: #f6e8e5;
  color: #7a2f25;
  border-color: #e8cfca;
}
@keyframes alertFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Hero text fade-up più morbido ---------- */
.page-home .hero .reveal {
  transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.6,.2,1);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-static .hero-img { animation: none; }
  .scroll-cue-line { animation: none; opacity: .5; }
  .alert.alert-success, .alert.alert-danger { animation: none; }
  .field-input:focus + .field-label,
  .field-input:not(:placeholder-shown) + .field-label { transition: none; }
}

/* ---------- Mobile tweaks contact card ---------- */
@media (max-width: 575.98px) {
  .contact-card { padding: 1.75rem 1.5rem; }
  .contact-card::before { left: 1.5rem; }
  .btn-block-card { padding: 1rem 1.25rem; font-size: .75rem; }
}

/* =============================================================
   Manifesto: cut editoriale pulito (no fade scuro dall'hero)
   ============================================================= */
.section-manifesto {
  position: relative;
  background: var(--travertino);
}
.section-manifesto > .container { position: relative; }

/* =============================================================
   Hamburger → X
   ============================================================= */
.navbar-burger {
  position: relative;
  width: 36px; height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 1095;
  cursor: pointer;
}
.navbar-burger:focus { outline: none; box-shadow: none; }
.navbar-burger:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }

.navbar-burger-bar {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: var(--inchiostro);
  transform-origin: center;
  transition: transform .45s cubic-bezier(.7,0,.3,1),
              opacity .25s ease,
              background-color .25s ease,
              top .35s ease;
}
.navbar-burger-bar:nth-child(1) { top: 6px; }
.navbar-burger-bar:nth-child(2) { top: 13px; }
.navbar-burger-bar:nth-child(3) { top: 20px; }

.navbar-burger[aria-expanded="true"] .navbar-burger-bar {
  background: var(--crema);
}
.navbar-burger[aria-expanded="true"] .navbar-burger-bar:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}
.navbar-burger[aria-expanded="true"] .navbar-burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(.4);
}
.navbar-burger[aria-expanded="true"] .navbar-burger-bar:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

/* hamburger crema su hero scuro home */
.page-home .navbar:not(.navbar-scrolled) .navbar-burger-bar { background: var(--crema); }

/* =============================================================
   Mobile drawer (≤ lg) — slide-in con effetto taglio
   ============================================================= */
@media (max-width: 991.98px) {

  /* Override Bootstrap collapse: usiamo clip-path per il "taglio" */
  .navbar-collapse {
    display: block !important;
    visibility: hidden;
    position: fixed;
    top: calc(var(--nav-h) - 1px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h) + 1px);
    height: calc(100dvh - var(--nav-h) + 1px);
    margin: 0;
    padding: 2.5rem 2rem 2rem;
    background: var(--inchiostro);
    color: var(--crema);
    border: none;
    overflow-y: auto;
    z-index: 1040;

    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transition:
      clip-path .65s cubic-bezier(.77,0,.18,1),
      -webkit-clip-path .65s cubic-bezier(.77,0,.18,1),
      visibility 0s linear .65s;
  }
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    visibility: visible;
    height: calc(100vh - var(--nav-h) + 1px) !important;
    height: calc(100dvh - var(--nav-h) + 1px) !important;
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    transition:
      clip-path .65s cubic-bezier(.77,0,.18,1),
      -webkit-clip-path .65s cubic-bezier(.77,0,.18,1);
    margin-top: -18px;
  }

  /* Lista verticale, tipografia editoriale */
  .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .navbar-collapse .nav-item { width: 100%; }
  .navbar-collapse .nav-link {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    color: var(--crema);
    padding: .7rem 0;
    width: 100%;
    letter-spacing: 0;
    transition: color .25s ease, transform .35s cubic-bezier(.2,.6,.2,1);
  }
  .navbar-collapse .nav-link::after { display: none; }
  .navbar-collapse .nav-link:hover {
    color: var(--rosa-dusty);
    transform: translateX(6px);
  }
  .navbar-collapse .nav-link.active {
    color: var(--terra);
  }

  .navbar-collapse .lang-switch {
    margin-top: 1.5rem;
    border: 1px solid rgba(247,243,236,.3);
    color: var(--crema);
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-size: .8rem !important;
    padding: .55rem 1rem !important;
    width: auto;
    display: inline-block;
  }
  .navbar-collapse .lang-switch:hover {
    background: var(--crema);
    color: var(--inchiostro);
    border-color: var(--crema);
    transform: none;
  }

  /* Stagger fade-in degli item dopo che il taglio si è "aperto" */
  .navbar-collapse .nav-item,
  .navbar-collapse .navbar-mobile-social {
    opacity: 0;
    transform: translateX(-14px);
  }
  .navbar-collapse.show .nav-item,
  .navbar-collapse.show .navbar-mobile-social {
    animation: navItemIn .55s cubic-bezier(.2,.6,.2,1) forwards;
  }
  .navbar-collapse.show .nav-item:nth-child(1) { animation-delay: .30s; }
  .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: .37s; }
  .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: .44s; }
  .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: .51s; }
  .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: .58s; }
  .navbar-collapse.show .navbar-mobile-social  { animation-delay: .68s; }
  @keyframes navItemIn { to { opacity: 1; transform: none; } }

  /* Social block */
  .navbar-mobile-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(247,243,236,.12);
  }
  .navbar-mobile-social a {
    color: rgba(247,243,236,.7);
    display: inline-flex;
    transition: color .25s ease, transform .25s ease;
  }
  .navbar-mobile-social a:hover {
    color: var(--rosa-dusty);
    transform: translateY(-2px);
  }

  /* Quando drawer aperto: navbar opaca scura per coerenza */
  body.nav-open { overflow: hidden; }
  body.nav-open .navbar {
    background: var(--inchiostro) !important;
    border-bottom-color: rgba(247,243,236,.08) !important;
  }
  body.nav-open .navbar .brand-logo-img {
    filter: brightness(0) invert(1);
  }
  body.nav-open .navbar-brand .brand-logo-text {
    color: var(--crema);
  }

  /* Drawer full-width: backdrop laterale non più necessario */
}

/* Desktop: nessun social mobile visibile */
@media (min-width: 992px) {
  .navbar-mobile-social { display: none !important; }
}

/* =============================================================
   Logo navbar
   ============================================================= */
.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: opacity .25s ease, filter .25s ease;
}
.brand-logo:hover .brand-logo-img { opacity: .82; }

/* Su hero home (navbar trasparente) → logo bianco */
.page-home .navbar:not(.navbar-scrolled) .brand-logo-img {
  filter: brightness(0) invert(1);
}
/* Drawer mobile aperto → logo bianco */
body.nav-open .navbar .brand-logo-img {
  filter: brightness(0) invert(1);
}

@media (max-width: 575.98px) {
  .brand-logo-img { height: 34px; }
}

/* =============================================================
   Roma Chat — widget
   ============================================================= */
.roma-chat {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 1080;
  font-family: 'Inter', sans-serif;
}

/* ---- Launcher (pulsante editoriale, stile .btn) ---- */
.roma-chat-launcher {
  position: relative;
  border: 1px solid var(--inchiostro);
  background: var(--inchiostro);
  color: var(--crema);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: 0 18px 40px -14px rgba(28,26,23,.45),
              0 6px 16px -10px rgba(28,26,23,.25);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.6,.2,1),
              background-color .25s ease,
              border-color .25s ease,
              color .25s ease;
}
.roma-chat-launcher:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-2px);
}
.roma-chat-launcher:active { transform: translateY(0); }

.roma-chat-launcher-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.roma-chat-pulse {
  position: absolute; inset: -1px;
  border: 1px solid var(--terra);
  opacity: 0;
  pointer-events: none;
}
.roma-chat--ready .roma-chat-pulse {
  animation: chatPulse 2.2s cubic-bezier(.2,.6,.2,1) 3;
}
@keyframes chatPulse {
  0%   { opacity: .55; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.08); }
}

.roma-chat-icon-wrap {
  position: relative;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.roma-chat-icon {
  position: absolute;
  transition: opacity .3s ease, transform .3s ease;
}
.roma-chat-icon-close { opacity: 0; transform: rotate(-30deg) scale(.7); }
.roma-chat--open .roma-chat-icon-open  { opacity: 0; transform: rotate(30deg) scale(.7); }
.roma-chat--open .roma-chat-icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Mobile: launcher icona soltanto (label nascosta per non occupare spazio) */
@media (max-width: 480px) {
  .roma-chat-launcher { padding: .75rem .9rem; gap: 0; }
  .roma-chat-launcher-label { display: none; }
}

/* ---- Tooltip ---- */
.roma-chat-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  background: var(--crema);
  color: var(--inchiostro);
  font-size: .82rem;
  padding: .65rem 1rem;
  border: 1px solid var(--linea);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 14px 30px -16px rgba(28,26,23,.30);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(.95);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.6,.2,1);
  cursor: pointer;
}
.roma-chat-tooltip::after {
  content: '';
  position: absolute;
  right: 18px; bottom: -7px;
  width: 12px; height: 12px;
  background: var(--crema);
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  transform: rotate(45deg);
}
.roma-chat--tooltip .roma-chat-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: chatTooltipBounce .55s cubic-bezier(.2,.7,.2,1.2);
}
@keyframes chatTooltipBounce {
  0%   { opacity: 0; transform: translateY(14px) scale(.92); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Panel ---- */
.roma-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(380px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 7rem));
  background: var(--travertino);
  border: 1px solid var(--linea);
  border-radius: 20px 20px 6px 20px;
  box-shadow:
    0 50px 100px -40px rgba(28,26,23,.45),
    0 16px 40px -20px rgba(28,26,23,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(24px) scale(.92);
  transition: opacity .35s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.roma-chat-panel[hidden] { display: none; }
.roma-chat--open .roma-chat-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---- Panel header ---- */
.roma-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--inchiostro);
  color: var(--crema);
  border-bottom: 1px solid rgba(247,243,236,.08);
}
.roma-chat-header-id { display: flex; align-items: center; gap: .75rem; }
.roma-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--crema);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
}
.roma-chat-meta { display: flex; flex-direction: column; line-height: 1.2; }
.roma-chat-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--crema);
}
.roma-chat-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,243,236,.6);
  margin-top: .15rem;
}
.roma-chat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6cb27a;
  box-shadow: 0 0 0 0 rgba(108,178,122,.6);
  animation: chatDotPulse 2s ease-in-out infinite;
}
@keyframes chatDotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(108,178,122,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(108,178,122,0); }
  100% { box-shadow: 0 0 0 0   rgba(108,178,122,0); }
}
.roma-chat-close {
  background: transparent;
  border: none;
  color: rgba(247,243,236,.7);
  padding: .5rem;
  display: inline-flex;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease;
}
.roma-chat-close:hover { color: var(--crema); background: rgba(247,243,236,.08); }

/* ---- Body / messaggi ---- */
.roma-chat-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.25rem 1.15rem;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.4), transparent 60%),
    var(--travertino);
  scroll-behavior: smooth;
}
.roma-chat-body::-webkit-scrollbar { width: 6px; }
.roma-chat-body::-webkit-scrollbar-thumb { background: var(--linea); border-radius: 4px; }

.roma-chat-msg {
  display: flex;
  margin-bottom: .85rem;
  animation: chatMsgIn .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.roma-chat-msg-bot  { justify-content: flex-start; }
.roma-chat-msg-user { justify-content: flex-end; }

.roma-chat-bubble {
  max-width: 80%;
  padding: .8rem 1rem;
  font-size: .94rem;
  line-height: 1.55;
  border-radius: 16px 16px 16px 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.roma-chat-msg-bot  .roma-chat-bubble {
  background: var(--crema);
  color: var(--inchiostro);
  border: 1px solid var(--linea);
}
.roma-chat-msg-user .roma-chat-bubble {
  background: var(--inchiostro);
  color: var(--crema);
  border-radius: 16px 16px 4px 16px;
}
.roma-chat-msg-error .roma-chat-bubble {
  background: #f6e8e5;
  color: #7a2f25;
  border-color: #e8cfca;
}

/* Typing indicator */
.roma-chat-typing { display: inline-flex; gap: 4px; padding: .25rem 0; }
.roma-chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grigio-pietra);
  animation: chatTyping 1.2s ease-in-out infinite;
}
.roma-chat-typing span:nth-child(2) { animation-delay: .15s; }
.roma-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Suggest chips */
.roma-chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .25rem 0 .5rem;
  animation: chatMsgIn .55s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .15s;
}
.roma-chat-chip {
  background: transparent;
  border: 1px solid var(--linea);
  color: var(--inchiostro);
  font-size: .82rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.roma-chat-chip:hover {
  background: var(--inchiostro);
  border-color: var(--inchiostro);
  color: var(--crema);
  transform: translateY(-1px);
}

/* ---- Input ---- */
.roma-chat-input {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--linea);
  background: var(--travertino);
}
.roma-chat-input input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  outline: none;
  font-size: .95rem;
  font-family: inherit;
  color: var(--inchiostro);
  padding: .65rem .25rem;
}
.roma-chat-input input::placeholder { color: var(--grigio-pietra); }

.roma-chat-submit {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--inchiostro);
  color: var(--crema);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.roma-chat-submit:hover { background: var(--terra); }
.roma-chat-submit:disabled { opacity: .35; cursor: not-allowed; }
.roma-chat-submit:not(:disabled):hover svg { transform: translateX(2px); }
.roma-chat-submit svg { transition: transform .25s ease; }

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
  .roma-chat-panel {
    right: 0;
    bottom: 76px;
    width: calc(100vw - 1rem);
    height: calc(100vh - 6rem);
    border-radius: 20px 20px 6px 20px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .roma-chat--ready .roma-chat-pulse { animation: none; }
  .roma-chat-msg { animation: none; }
  .roma-chat-suggest { animation: none; }
  .roma-chat-tooltip { animation: none !important; }
  .roma-chat-dot { animation: none; }
}

/* =============================================================
   ATTI EDITORIALI HOMEPAGE — video, pause, mosaic, lettera, territorio, cta-email
   ============================================================= */

/* ---- Atto: video full-bleed (subito sotto hero, peek 10vh) ---- */
.atto-video {
  position: relative;
  width: 100%;
  background: var(--scuro);
  overflow: hidden;
  margin: 0;
}
.atto-video-media {
  display: block;
  width: 100%;
  height: clamp(70vh, 90vh, 100vh);
  object-fit: cover;
  background: var(--scuro);
}
.atto-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,.72) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Contenuto centrato sopra il video */
.atto-video-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  pointer-events: none;
}
.atto-video-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(250,247,242,.75);
  margin: 0 0 2rem;
}
.atto-video-eyebrow::before,
.atto-video-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 1.1rem;
  opacity: .6;
}
.atto-video-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--travertino);
  max-width: 18ch;
  margin: 0 auto 1.75rem;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-shadow: 0 1px 40px rgba(0,0,0,.35);
}
.atto-video-title em {
  font-style: italic;
  font-weight: 300;
}
.atto-video-caption {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(250,247,242,.85);
  max-width: 38ch;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 28px rgba(0,0,0,.4);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}

@media (max-width: 575.98px) {
  .atto-video-media { height: 70vh; }
  .atto-video-eyebrow::before,
  .atto-video-eyebrow::after { width: 18px; margin: 0 .7rem; }
  .atto-video-eyebrow { letter-spacing: .26em; font-size: .68rem; }
  .atto-video-title { font-size: clamp(2rem, 9vw, 2.6rem); max-width: 14ch; }
  .atto-video-caption { font-size: 1rem; max-width: 28ch; }
}

/* ---- Atto: pausa orizzontale (full-bleed silent image) ---- */
.atto-pause {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--travertino);
}
.atto-pause-figure {
  position: relative;
  margin: 0;
  width: 100%;
  height: clamp(60vh, 80vh, 92vh);
  overflow: hidden;
}
.atto-pause-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transform: scale(1);
  transition: transform 2s cubic-bezier(.2,.6,.2,1);
}
.atto-pause-figure.is-visible img { transform: scale(1.04); }
.atto-pause-caption {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
  color: rgba(250,247,242,.85);
  letter-spacing: .01em;
  max-width: 32ch;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 24px rgba(0,0,0,.35);
}

/* ---- Atto: mosaic asimmetrico esperienze ---- */
.section-mosaic { padding: var(--section-y) 0; }

.mosaic-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.mosaic-head-title { max-width: 24ch; }
.mosaic-head-title .h-section { margin-bottom: 0; }
.mosaic-head-link {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--inchiostro);
  text-decoration: none;
  position: relative;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--inchiostro);
  transition: color .25s ease, border-color .25s ease, padding-right .35s ease;
}
.mosaic-head-link:hover { color: var(--orange); border-color: var(--orange); padding-right: .85rem; }

.mosaic-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(1.25rem, 2.5vw, 2.25rem) clamp(1.5rem, 3vw, 3rem);
}
.mosaic-cell {
  display: block;
  text-decoration: none;
  color: var(--inchiostro);
}
.mosaic-cell-media {
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--crema);
}
.mosaic-cell-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1), filter .35s ease;
  filter: brightness(1);
}
.mosaic-cell:hover .mosaic-cell-media img {
  transform: scale(1.03);
  filter: brightness(.92);
}
.mosaic-cell-caption {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--inchiostro);
  transition: color .25s ease;
  line-height: 1.3;
}
.mosaic-cell:hover .mosaic-cell-caption { color: var(--orange); }
.mosaic-cell-num {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  flex-shrink: 0;
  padding-top: .15rem;
}

/* Cella 1: portrait grande, span 2 righe */
.mosaic-cell-1 { grid-column: 1; grid-row: 1 / span 2; }
.mosaic-cell-1 .mosaic-cell-media { aspect-ratio: 4/5; }

/* Celle 2 e 3: square, colonna destra */
.mosaic-cell-2 { grid-column: 2; grid-row: 1; }
.mosaic-cell-3 { grid-column: 2; grid-row: 2; }
.mosaic-cell-2 .mosaic-cell-media,
.mosaic-cell-3 .mosaic-cell-media { aspect-ratio: 1/1; }

/* Cella 4: full-width sotto */
.mosaic-cell-4 {
  grid-column: 1 / -1;
  margin-top: clamp(1rem, 2vw, 2rem);
}
.mosaic-cell-4 .mosaic-cell-media { aspect-ratio: 21/9; }

@media (max-width: 767.98px) {
  .mosaic-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mosaic-cell-1, .mosaic-cell-2, .mosaic-cell-3, .mosaic-cell-4 {
    grid-column: 1; grid-row: auto;
  }
  .mosaic-cell-1 .mosaic-cell-media { aspect-ratio: 4/5; }
  .mosaic-cell-4 .mosaic-cell-media { aspect-ratio: 16/10; }
}

/* ---- Atto: Lettera d'autore ---- */
.section-lettera {
  background: var(--crema);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.lettera {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.lettera-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  margin: 0 0 2.5rem;
  text-align: center;
}
.lettera-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 5rem;
  line-height: .6;
  color: var(--orange);
  margin: 0 0 1.25rem;
  display: block;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.lettera-body {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--inchiostro);
  margin: 0 0 1.5rem;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}
.lettera-body em { font-style: italic; }
.lettera-sign {
  margin-top: 2.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--inchiostro);
  display: block;
}
.lettera-role {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  margin-top: .3rem;
}

/* ---- Atto: Territorio (sticky horizontal scroll) ---- */
.section-territorio {
  background: var(--travertino);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 0; /* il pin gestisce lo spazio in fondo */
  overflow: hidden;
}
.territorio-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.territorio-pin {
  position: relative;
  height: 320vh; /* scrub: 1 viewport per ogni 80vh circa */
}
.territorio-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.territorio-track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 70vh;
  will-change: transform;
}
.territorio-card {
  flex: 0 0 auto;
  width: clamp(280px, 38vw, 480px);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.territorio-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95);
}
.territorio-card-caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--travertino);
  font-size: .95rem;
  margin: 0;
  text-shadow: 0 1px 18px rgba(0,0,0,.45);
  max-width: 80%;
  line-height: 1.35;
}

/* Mobile fallback: scroll orizzontale nativo, niente pin */
@media (max-width: 991.98px) {
  .territorio-pin { height: auto; }
  .territorio-stage {
    position: static;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }
  .territorio-track {
    height: 56vh;
    transform: none !important;
  }
  .territorio-card {
    scroll-snap-align: start;
    width: 78vw;
  }
}

/* ---- Atto: CTA finale email-first ---- */
.section-cta-email {
  position: relative;
  background: var(--scuro);
  color: var(--travertino);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.section-cta-email::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--cta-bg-img);
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: 0;
}
.section-cta-email::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,27,27,.35), rgba(27,27,27,.85));
  z-index: 1;
}
.section-cta-email > .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-email-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(250,247,242,.7);
  margin: 0 0 1.75rem;
}
.cta-email-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--travertino);
  max-width: 22ch;
  margin: 0 auto 2.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.cta-email-address {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--travertino);
  text-decoration: none;
  border-bottom: 1px solid rgba(250,247,242,.4);
  padding-bottom: .25rem;
  transition: color .3s ease, border-color .3s ease;
}
.cta-email-address:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.cta-email-alt {
  margin-top: 2.25rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,247,242,.55);
}
.cta-email-alt a {
  color: rgba(250,247,242,.85);
  border-bottom: 1px solid rgba(250,247,242,.25);
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}
.cta-email-alt a:hover {
  color: var(--travertino);
  border-bottom-color: var(--travertino);
}

/* ---- Diptych editoriale (atto 3) ---- */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.diptych-figure { margin: 0; }
.diptych-figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
}
.diptych-text { max-width: 38ch; }
.diptych-text .eyebrow { margin-bottom: 1.25rem; }
.diptych-text .h-section {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  margin-bottom: 1.25rem;
}
.diptych-text p {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--inchiostro);
}
.diptych--reverse .diptych-figure { order: 2; }
.diptych--reverse .diptych-text { order: 1; padding-left: clamp(0rem, 4vw, 4rem); }

@media (max-width: 767.98px) {
  .diptych { grid-template-columns: 1fr; gap: 2rem; }
  .diptych--reverse .diptych-figure { order: 0; }
  .diptych--reverse .diptych-text { order: 0; padding-left: 0; }
}

/* ================================================================
   Mosaic — descrizione sotto al titolo (4 pilastri, brief Carlotta)
   ================================================================ */
.mosaic-head-lead {
  margin-top: .6rem;
  max-width: 56ch;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--grigio-pietra);
}
.mosaic-cell-caption {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: 1rem;
}
.mosaic-cell-num {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
}
.mosaic-cell-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--inchiostro);
}
.mosaic-cell-desc {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--grigio-pietra);
  max-width: 38ch;
}

/* ================================================================
   Current Curatela — 3 anchor cards (stagionali)
   ================================================================ */
.section-curatela {
  background: var(--crema);
  padding: clamp(4rem, 10vw, 9rem) 0;
}
.curatela-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.curatela-head-lead {
  margin-top: .8rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--grigio-pietra);
  max-width: 60ch;
}
.curatela-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.4rem);
}
.curatela-card {
  display: flex;
  flex-direction: column;
  background: var(--travertino);
  border: 1px solid var(--linea);
}
.curatela-card-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.curatela-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
}
.curatela-card:hover .curatela-card-media img {
  transform: scale(1.04);
}
.curatela-card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.curatela-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0;
}
.curatela-card-name {
  font-size: 1.45rem;
  line-height: 1.18;
  margin: 0;
  color: var(--inchiostro);
}
.curatela-card-desc {
  font-size: .94rem;
  line-height: 1.7;
  color: var(--grigio-pietra);
  margin: 0;
}
.curatela-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--inchiostro);
  margin-top: .4rem;
  padding-top: .9rem;
  border-top: 1px solid var(--linea);
}
.curatela-foot {
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--grigio-pietra);
}
.curatela-foot a {
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--inchiostro);
  border-bottom: 1px solid var(--inchiostro);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.curatela-foot a:hover {
  color: var(--terra);
  border-color: var(--terra);
}
@media (max-width: 991.98px) {
  .curatela-grid { grid-template-columns: repeat(2, 1fr); }
  .curatela-card:nth-child(3) { grid-column: 1 / -1; max-width: 50%; }
}
@media (max-width: 575.98px) {
  .curatela-grid { grid-template-columns: 1fr; }
  .curatela-card:nth-child(3) { max-width: 100%; }
}

/* ================================================================
   Quartieri Pilastro — mappa testuale 7 rioni
   ================================================================ */
.section-quartieri {
  background: var(--travertino);
  padding: clamp(4rem, 10vw, 9rem) 0;
}
.quartieri-head {
  max-width: 720px;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.quartieri-head-lead {
  margin-top: .8rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--grigio-pietra);
  max-width: 60ch;
}
.quartieri-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linea);
}
.quartieri-row {
  display: grid;
  grid-template-columns: 4rem 1fr 2fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: baseline;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--linea);
  position: relative;
  transition: background .35s, padding-left .35s;
}
.quartieri-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--crema);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 0;
}
.quartieri-row:hover::before { opacity: 1; }
.quartieri-row > * { position: relative; z-index: 1; }
.quartieri-row:hover { padding-left: 1rem; }

.quartieri-num {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--terra);
}
.quartieri-name {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  color: var(--inchiostro);
}
.quartieri-note {
  font-size: .96rem;
  line-height: 1.7;
  color: var(--grigio-pietra);
}
@media (max-width: 767.98px) {
  .quartieri-row {
    grid-template-columns: 3rem 1fr;
    grid-template-rows: auto auto;
    gap: .4rem 1rem;
  }
  .quartieri-num { grid-row: 1; grid-column: 1; }
  .quartieri-name { grid-row: 1; grid-column: 2; }
  .quartieri-note { grid-row: 2; grid-column: 2; }
  .quartieri-row:hover { padding-left: 0; }
}

/* ================================================================
   Roma Chat — image cards inline (rendering risposte ricche)
   ================================================================ */
.roma-chat-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}
.roma-chat-bubble-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.roma-chat-msg-user .roma-chat-bubble-text a { color: var(--crema); }

.roma-chat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: .8rem;
}
.roma-chat-cards--multi { grid-template-columns: repeat(2, 1fr); }
.roma-chat-cards--multi .roma-chat-card:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
}
.roma-chat-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--inchiostro);
  border: 1px solid var(--linea);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transition: transform .4s cubic-bezier(.2,.6,.2,1);
}
.roma-chat-card:hover { transform: translateY(-2px); }
.roma-chat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.roma-chat-card:hover img { transform: scale(1.05); }
.roma-chat-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .55rem .7rem;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  letter-spacing: .03em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  line-height: 1.35;
}
.roma-chat-msg-user .roma-chat-cards { display: none; } /* gli utenti non inviano immagini */
