/* ==========================================================================
   INSULÆ Papers — Home
   Stili specifici della homepage (index.php)
   ========================================================================== */

:root {
  --ink:    #1C1A16;
  --text:   #3A3630;
  --muted:  #8C8479;
  --border: #CFC9BC;
  --accent: #C4622D;
  --bg:     #EDE7DB;
  --bg-lt:  #F5F1EA;
  --bg-dk:  #E0D9CE;
  --cream:  #FAF8F4;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Barlow Semi Condensed', system-ui, sans-serif;
}

/* ─ RESET BASE ─ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::selection { background: #C4622D; color: #FAF8F4; }

/* Variabile larghezza scrollbar per fullbleed senza overflow orizzontale su iOS */
:root { --scrollbar-w: 0px; }
@supports (scrollbar-gutter: stable) {
  :root { --scrollbar-w: var(--sb-gutter, 0px); }
}

/* ─ BASE ─ */
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  cursor: url("../images/puntatore.svg") 13 11, auto;
  line-height: 1;
  background-color: #ede7db; /* !! NON RIMUOVERE — colore sfondo identità INSULÆ */
}

a, button {
  cursor: url("../images/manina.svg") 12 0, pointer;
}

/* ─ NAVBAR ─ */
.nav {
  position: static;
  background: var(--bg);
  padding: 0 clamp(24px, 4vw, 48px);
  height: 270px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-right: 131px;
  border-right: 1px solid var(--border);
  margin-left: 50px;
}
.nav-brand img {
  height: 140px;
  width: auto;
}
.nav-brand__papers {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 5px;
  padding-left: 2px;
}

.nav-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 36px 0;
}
.nav-right__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.nav-datetime {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-datetime img {
  height: 11px;
  width: auto;
}
.nav-eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.datetime-date {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links li { position: relative; }
.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); }

/* Sottolineatura animata (solo nav in alto) */
.nav-link__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-links a:hover .nav-link__underline { transform: scaleX(1); }

/* Stato pagina attiva: linea carica + colore arancione */
.nav-links li.is-active > a { color: var(--accent); }
.nav-links li.is-active > a .nav-link__underline { transform: scaleX(1); }
.nav-links li.is-active > a:hover .nav-link__underline { transform: scaleX(1); }

/* Breadcrumbs — visibili solo su mobile (sostituiscono nav-links) */
.nav-breadcrumbs {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.nav-breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s;
}
.nav-breadcrumbs a:hover { color: var(--ink); }
.nav-breadcrumbs__sep {
  color: var(--border);
  user-select: none;
}
.nav-breadcrumbs__current {
  color: var(--ink);
  font-weight: 500;
}

.nav-sections {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-sections a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity 0.2s;
}
.nav-sections a:hover { opacity: 0.65; }

/* ─ SCROLL FADE OVERLAY ─ */
.scroll-fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 126px;
  z-index: 400;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(237, 231, 219, 1)   0%,
    rgba(237, 231, 219, 0.6) 50%,
    rgba(237, 231, 219, 0)   100%
  );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.scroll-fade.is-visible {
  opacity: 1;
  visibility: visible;
}
.nav-float {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 500;

  background: rgba(237, 231, 219, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 201, 188, 0.7);
  border-radius: 100px;
  box-shadow: 0 2px 24px rgba(28, 26, 22, 0.08);

  width: fit-content;
  max-width: calc(100vw - 48px);
  height: 52px;
  padding: 0 8px 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.nav-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-float__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-float__brand-icon {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}
.nav-float__brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-float__sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 20px;
  flex-shrink: 0;
}

.nav-float__links {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}
.nav-float__link {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-float__link:hover { color: var(--ink); background: rgba(28,26,22,0.05); }
.nav-float__link.is-active { color: var(--ink); background: rgba(28,26,22,0.06); }

.nav-float__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border-radius: 100px;
  padding: 0 18px;
  height: 36px;
  margin-left: 12px;
  flex-shrink: 0;
  transition: background 0.2s;
  cursor: url("assets/images/manina.svg") 12 0, pointer;
}
.nav-float__cta:hover { background: var(--accent); }
.nav-float__cta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-float__cta:hover .nav-float__cta-dot { background: var(--cream); }

/* ─ NAV FLOATING: HAMBURGER (mobile) ─ */
.nav-float__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  margin-right: 4px;
}
.nav-float__burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-default), opacity 0.2s;
  transform-origin: center;
}
.nav-float__burger.is-open .nav-float__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-float__burger.is-open .nav-float__burger-bar:nth-child(2) {
  opacity: 0;
}
.nav-float__burger.is-open .nav-float__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Pannello dropdown menu mobile */
.nav-float-panel {
  position: fixed;
  top: 88px;
  left: 16px;
  right: 16px;
  z-index: 499;
  background: rgba(237, 231, 219, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(207, 201, 188, 0.7);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(28, 26, 22, 0.12);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-default), transform 0.3s var(--ease-default);
  pointer-events: none;
}
.nav-float-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-float-panel__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 201, 188, 0.5);
  transition: background 0.2s, color 0.2s;
}
.nav-float-panel__link:last-child { border-bottom: none; }
.nav-float-panel__link:hover, .nav-float-panel__link:active {
  background: rgba(196, 98, 45, 0.08);
  color: var(--accent);
}

/* ─ HERO SPLIT ─ */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  min-height: calc(100vh - 266px);
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 119px 0px 0px clamp(24px, 8%, 15%);
  display: block;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  background-color: #ede7db;
}
.hero-series {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 5%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-series img {
  height: 14px;
  width: auto;
  display: block;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; font-weight: 400;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 80px);
  font-weight: 300;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 35px;
  max-width: 100%;
  margin-top: 30px;
}
.hero-title em { font-style: italic; color: var(--muted); font-weight: 300; }
.hero-desc {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw + 0.6rem, 35px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 44ch;
}
.hero-bottom {
  display: flex; align-items: center; gap: 32px;
}
.btn-read {
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  transition: gap 0.25s, color 0.2s;
}
.btn-read:hover { gap: 18px; color: var(--accent); border-bottom-color: var(--accent); }
.hero-papers-count {
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.hero-papers-count span {
  font-family: var(--serif); font-size: 22px;
  font-weight: 300; color: var(--ink);
  display: block; margin-bottom: 2px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background-color: #ede7db;
}

.hero-deco {
  font-family: var(--serif);
  font-size: clamp(180px, 22vw, 320px);
  font-weight: 300; line-height: 0.85;
  color: var(--border); letter-spacing: -0.05em;
  user-select: none; text-align: center;
  opacity: 0.7;
}
.hero-deco-sub {
  position: absolute; bottom: 40px; left: 40px; right: 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.hero-deco-label {
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
}
.hero-deco-num {
  font-family: var(--serif); font-size: 13px;
  font-weight: 300; color: var(--muted); font-style: italic;
}

/* ─ PAPERS A ─ */
.papers-a {
  padding: 200px 48px 100px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #ede7db;
}
.papers-a__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}
.papers-a__kicker {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.papers-a__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.papers-a__title em {
  font-style: italic;
  color: var(--muted);
}
.papers-a__desc {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw + 0.6rem, 30px);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  text-align: right;
}

.papers-a__list {
  border-top: 1px solid var(--border);
}
.pa-item {
  display: grid;
  grid-template-columns: 56px 1fr 180px 56px;
  gap: 32px;
  align-items: center;
  padding: 26px 0;
  position: relative;
  cursor: url("../images/manina.svg") 12 0, pointer;
  transition: background 0.2s, padding 0.2s;
}
.pa-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left center;
}
.pa-item:hover {
  background: var(--bg-lt);
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 -20px;
}
.pa-item:hover .pa-num { color: var(--accent); }
.pa-item:hover .pa-title { color: var(--accent); }

.pa-num {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 300;
  color: #808080;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.pa-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.pa-tag {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.pa-tag.t-a { color: var(--accent); }
.pa-tag.t-v { color: #5C7A5C; }
.pa-year {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: #807f7c;
  text-align: right;
}

/* ─ PAPERS HOVER PREVIEW ─ */
.pa-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  pointer-events: none;
  opacity: 0;
  z-index: 9000;
  border: 1px solid var(--border);
  overflow: hidden;
  filter: drop-shadow(0 12px 48px rgba(28,26,22,0.18));
}
.pa-preview img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(30%) brightness(0.97);
}

/* Su mobile/tablet touch la preview non deve mai apparire */
@media (hover: none), (max-width: 768px) {
  .pa-preview, .arch-preview { display: none !important; }
}

.papers-a__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 40px;
  margin-top: 0;
}
.btn-all-a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.25s, color 0.2s, border-color 0.2s;
  cursor: url("../images/manina.svg") 12 0, pointer;
}
.btn-all-a:hover {
  gap: 18px;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.btn-all-a span { display: none; }

/* ─ EMOTIONAL A ─ */
.emo-a {
  padding: 140px 48px 0;
  background-color: #ede7db;
  padding-bottom: 200px;
}
.emo-a__inner {
  max-width: 1400px;
  margin: 0 auto;
}
.emo-a__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 80px;
}
.emo-a__kicker {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: none;
}
.emo-a__title {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 300;
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: none;
}
.emo-a__title em {
  font-style: italic;
  color: var(--muted);
}
.emo-a__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}
.emo-a__text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw + 0.7rem, 27px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 100%;
}
.emo-a__link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s, color .2s, border-color .2s;
  align-self: flex-start;
  cursor: url("../images/manina.svg") 12 0, pointer;
}
.emo-a__link:hover { gap: 18px; color: var(--accent); border-color: var(--accent); }
.emo-a__image {
  width: 100%;
  height: 65vh;
  overflow: hidden;
  background: var(--bg-dk);
}
.emo-a__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: sepia(60%) brightness(0.95) contrast(0.95);
}

/* ─ FOOTER B — MONUMENTALE ─ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  overflow: hidden;
}

/* Hero: logo + tagline con watermark */
.footer__hero {
  padding: 99px clamp(24px, 8vw, 164px) 0;
  position: relative;
}
.footer__hero-wm {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(96px, 6vw, 149px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.05;
  position: absolute;
  bottom: -0.1em;
  left: 47px;
  pointer-events: none;
  user-select: none;
  display: none;
}
.footer__hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative; z-index: 1;
}
.footer__logo-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__icon {
  height: 18px;
  width: auto;
  opacity: 0.6;
  display: none;
}
.footer__wordmark {
  height: 90px;
  width: auto;
}
.footer__logo-sub {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--muted);
  line-height: 32px;
  max-width: 36ch;
  text-align: right;
}

/* Griglia 4 celle */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.footer__nav-col {
  background: var(--bg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-label {
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.footer__nav-col a {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: block;
  transition: color 0.2s;
}
.footer__nav-col a:hover { color: var(--accent); }
.footer__coord {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

/* Barra copyright */
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px clamp(24px, 5vw, 70px);
  border-top: 1px solid var(--border);
  gap: 31px;
}
.footer__bar-left {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 21px;
}
.footer__bar-left a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer__bar-left a:hover { color: var(--accent); }
.footer__bar-right {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.footer__bar-right a {
  color: var(--accent);
  transition: color 0.2s;
}
.footer__bar-right a:hover { color: var(--ink); }

/* ─ RESPONSIVE ─ */

/* Tablet large — riduzione padding prima del collasso mobile */
@media (max-width: 1200px) {
  .papers-a { padding: 140px 32px 80px; }
  .emo-a { padding: 100px 32px 0; padding-bottom: 140px; }
  .footer__hero { padding: 80px 80px 0; }
}

/* Tablet — griglie ancora attive ma compattate */
@media (max-width: 1024px) {
  .hero-left { padding-top: 80px; }
  .papers-a__head { gap: 32px; }
  .pa-item { grid-template-columns: 48px 1fr 140px 48px; gap: 20px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

/* Pre-mobile — collasso hero e griglie editoriali */
@media (max-width: 900px) {
  .nav { padding: 0 24px; height: auto; padding-block: 24px; align-items: flex-start; }
  .nav-right { padding: 0; gap: 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 300px; }
  .hero-left { padding: 56px 24px; }
  .papers-a { padding: 56px 24px 80px; }
  .papers-a__head { flex-direction: column; gap: 24px; }
  .papers-a__desc { text-align: left; }
  .pa-item { grid-template-columns: 40px 1fr; }
  .pa-tag, .pa-year { display: none; }
  .pa-item:hover { margin: 0; padding-left: 0; padding-right: 0; }
  .footer__hero { padding: 40px 24px 0; }
  .footer__hero-top { flex-direction: column; gap: 28px; }
  .footer__tagline { text-align: left; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 8px; }
}

/* Mobile — navbar impilata, touch target, padding ridotti */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 24px;
    gap: 20px;
  }

  /* Nav-float mobile: logo a sinistra, hamburger + CTA a destra */
  .nav-float {
    left: 16px;
    right: 16px;
    transform: translateY(-16px);
    width: auto;
    max-width: none;
    padding: 0 10px 0 10px;
    justify-content: flex-start;
    border-radius: 16px;
    height: 56px;
  }
  /* Override del translateX(-50%) desktop — sul mobile la barra è full-width */
  .nav-float.is-visible {
    transform: translateY(0);
  }
  .nav-float__brand { order: -1; }
  .nav-float__brand-icon { height: 20px; }
  .nav-float__brand-name { font-size: 18px; }
  .nav-float__burger { display: flex; margin-left: auto; }
  .nav-float__sep { display: none; }
  .nav-float__links { display: none; }
  .nav-float__cta { margin-left: 8px; padding: 0 14px; height: 36px; font-size: 14px; }
  .nav-float-panel {
    display: flex;
    top: 88px;
    left: 16px;
    right: 16px;
    border-radius: 16px;
  }
  .nav-brand {
    margin-left: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    height: auto;
  }
  .nav-brand img { height: 96px; }
  .nav-right { padding: 0; align-items: flex-start; }
  .nav-right__bottom { align-items: flex-start; width: 100%; }
  .nav-links {
    display: none;
  }
  .nav-breadcrumbs {
    display: flex;
    align-items: flex-start;
    width: 100%;
  }
  .nav-datetime { flex-wrap: wrap; gap: 8px; }
  .nav-eyebrow { font-size: 12px; }

  /* Hero — padding ridotti, slideshow sufficientemente alto */
  .hero-left { padding: 40px 24px 32px; }
  .hero-series { margin-left: 0; }
  .hero-right { min-height: 60vh; }

  /* Papers — tipografia e spaziature mobile */
  .papers-a { padding: 64px 20px 64px; }
  .papers-a__head { margin-bottom: 32px; }
  .pa-item { padding: 20px 0; gap: 16px; }
  .pa-num { font-size: 17px; }
  .pa-title { font-size: 19px; }

  /* Emotional */
  .emo-a { padding: 80px 20px 100px; }
  .emo-a__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .emo-a__image { height: 50vh; }

  /* Footer */
  .footer__hero { padding: 48px 20px 0; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__nav-col { padding: 20px 20px; }
  .footer__wordmark { height: 64px; }
  .footer__tagline { font-size: 18px; line-height: 26px; }
}

/* Small mobile — rifiniture */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(34px, 8vw, 42px); }
  .nav-brand img { height: 72px; }
  .papers-a__title { font-size: clamp(28px, 7vw, 36px); }
  .emo-a__text { font-size: 17px; line-height: 1.7; }
  .footer__bar-right { font-size: 12px; }
}

/* ==========================================================================
   PAGINA UNIVERSALE (page.php)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 8vw 60px;
  background-color: var(--bg-dk);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero__overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,22,0.92) 0%, rgba(28,26,22,0.6) 55%, rgba(28,26,22,0.15) 100%);
  z-index: 1;
}

/* Sfondo immagine con effetto sepia (come emo-a__image della home) */
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(60%) brightness(0.95) contrast(0.95);
  z-index: 0;
}

/* Sezioni pagina (gallerie) */
.page-sections {
  margin-top: 40px;
}

/* Fancybox — didascalia lightbox */
.fancybox__caption {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  padding: 12px 20px 0;
  opacity: 0.9;
}

.page-hero__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  color: #FAF8F4;
  margin: 0 0 16px;
}

.page-hero__subtitle {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250,248,244,0.85);
  max-width: 600px;
}

.page-content {
  padding: 80px 8vw 120px;
  background: var(--bg);
}

.page-article {
  max-width: 760px;
  margin: 0 auto;
}

.page-article__body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
  color: var(--text);
}

.page-article__body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  margin: 48px 0 20px;
  color: var(--ink);
}

.page-article__body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 40px 0 16px;
  color: var(--ink);
}

.page-article__body p {
  margin: 0 0 24px;
}

.page-article__body img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}

.page-article__body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
}

.page-article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-article__body ul,
.page-article__body ol {
  margin: 0 0 24px 24px;
}

.page-article__body li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .page-hero { min-height: 40vh; padding: 60px 6vw 40px; }
  .page-content { padding: 60px 6vw 80px; }
  .page-article__body { font-size: 18px; }
}

/* ==========================================================================
   TEMPLATE PCRT — Protocolli Creativi (agenzia)
   ========================================================================== */

/* ─ HERO ─ */
.pcrt-hero {
    min-height: 30vh;
    display: flex;
    align-items: center;
    padding: 40px 8vw 20px;
    background: var(--bg);
    /* border-bottom: 1px solid var(--border); */
}
.pcrt-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.pcrt-hero__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
}
.pcrt-hero__title {
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 40px;
}
.pcrt-hero__sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

/* ─ AREE ─ */
.pcrt-areas {
  padding: 120px 8vw;
  background: var(--bg);
}
.pcrt-areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.pcrt-area {
  border-top: 1px solid var(--ink);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pcrt-area__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.pcrt-area__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.pcrt-area__subtitle {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.pcrt-area__text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ─ CTA ─ */
.pcrt-cta {
  padding: 120px 0 140px;
  text-align: center;
  overflow: hidden;
}

/* Marquesina grande — loop infinito */
.pcrt-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 80px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pcrt-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  will-change: transform;
  animation: pcrt-marquee 28s linear infinite;
}
.pcrt-marquee__text {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pcrt-marquee__text::after {
  content: '✳';
  margin-left: 48px;
  font-style: normal;
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: middle;
}
@keyframes pcrt-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .pcrt-marquee__track { animation: none; }
}

.pcrt-cta__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 8vw;
}
.pcrt-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, gap 0.2s;
}
.pcrt-cta__btn:hover {
  background: transparent;
  color: var(--accent);
  gap: 18px;
}
.pcrt-cta__arrow {
  font-size: 18px;
  line-height: 1;
}

/* ─ RESPONSIVE ─ */
@media (max-width: 900px) {
  .pcrt-areas__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pcrt-hero { min-height: 70vh; padding: 100px 6vw 60px; }
  .pcrt-areas { padding: 80px 6vw; }
  .pcrt-cta { padding: 80px 0 100px; }
  .pcrt-marquee__text { font-size: clamp(40px, 12vw, 90px); }
  .pcrt-marquee__text::after { font-size: 0.5em; }
}
@media (max-width: 560px) {
  .pcrt-hero__title { font-size: 56px; }
  .pcrt-area__title { font-size: 40px; }
  .pcrt-cta__btn { width: 100%; justify-content: center; }
}
