/* =========================================================
   FRAJOR Confezioni — stile del sito
   ========================================================= */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f7f4ef;        /* bianco caldo */
  --sand: #ebe4d8;         /* beige tessuto */
  --sand-deep: #d8ccb9;
  --ink: #1f1e1c;          /* nero morbido */
  --anthracite: #3b3a37;   /* grigio antracite */
  --muted: #5f5b54;
  --line: rgba(31, 30, 28, .14);
  --accent: #5d6b4f;       /* verde salvia discreto, richiamo al logo */
  --white: #fff;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Tipografia ---------- */
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: rgba(255, 255, 255, .75); }
.section-title { font: 400 clamp(38px, 5.4vw, 68px)/1.04 var(--serif); letter-spacing: -.01em; }
.prose { color: var(--anthracite); }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 23px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose a { color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px; border: 1px solid transparent; border-radius: 0; font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); }
.btn--dark[disabled] { opacity: .6; cursor: progress; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: var(--paper); background: transparent; }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(247, 244, 239, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay.is-scrolled { background: rgba(247, 244, 239, .94); border-color: var(--line); color: var(--ink); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header__inner { max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font: 500 27px/1 var(--serif); letter-spacing: .32em; margin-right: -.32em; }
.brand__sub { font: 500 9.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; margin-top: 6px; opacity: .7; }
.brand__logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; background: none; border: 0; font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; position: relative; }
.nav__list > .nav__item > .nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list > .nav__item > .nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1) !important; }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px 0; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); }
.nav__sub .nav__link { width: 100%; padding: 12px 20px; }
.nav__sub .nav__link:hover { background: var(--sand); }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__parent svg { transition: transform .2s; }
.has-sub.is-open .nav__parent svg { transform: rotate(180deg); }
.nav__legal { display: none; }
.nav__social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12px; opacity: .85; }
.nav__social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav__social:hover { opacity: 1; }
.nav-toggle { display: none; width: 46px; height: 46px; margin-right: -10px; background: none; border: 0; position: relative; z-index: 60; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 12px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before { content: ""; left: 0; top: -7px; }
.nav-toggle__bars::after { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; background: var(--ink); color: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--paper) !important; background: transparent !important; border-color: transparent !important; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .nav__list > .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav__list > .nav__item > .nav__link { width: 100%; justify-content: space-between; padding: 20px 0; font: 400 30px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
  .nav__list > .nav__item > .nav__link::after { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; color: inherit; border: 0; box-shadow: none; padding: 0 0 14px 16px; }
  .has-sub.is-open .nav__sub { display: block; }
  .nav__sub .nav__link { padding: 10px 0; font-size: 13px; }
  .nav__sub .nav__link:hover { background: none; }
  .nav__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 28px 0 18px; padding: 0; font-size: 13px; opacity: .7; }
  .nav__legal a { text-decoration: none; }
  .nav__social span { position: static; width: auto; height: auto; clip: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.is-active .hero__img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade { background: linear-gradient(180deg, rgba(20, 19, 18, .55) 0%, rgba(20, 19, 18, .12) 30%, rgba(20, 19, 18, .25) 55%, rgba(20, 19, 18, .82) 100%); }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(88px, 13vh, 150px); padding-top: calc(var(--header-h) + 40px); }
.hero__title { font: 400 clamp(46px, 8.4vw, 118px)/.96 var(--serif); letter-spacing: -.015em; max-width: 13ch; text-wrap: balance; }
.hero__lead { margin-top: 28px; font: 500 12.5px/2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.hero__lead p { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__dots { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(88px, 13vh, 150px); display: flex; flex-direction: column; gap: 4px; }
.hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); transition: background .3s; }
.hero__dot.is-active::before { background: var(--white); }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 1px; height: 52px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { to { top: 110%; } }
@media (max-width: 700px) { .hero__dots { flex-direction: row; right: auto; left: var(--gutter); bottom: 40px; } .hero__scroll { display: none; } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .prose { color: rgba(247, 244, 239, .75); }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; }
.section-intro { max-width: 520px; }

/* Chi siamo */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.story:last-child { padding-bottom: 0; }
.story__head { position: relative; }
.story__num { display: block; font: italic 400 20px/1 var(--serif); color: var(--muted); margin-bottom: 18px; }
.story__title { font: 400 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); position: sticky; top: calc(var(--header-h) + 32px); }
.story__body { font-size: 16.5px; max-width: 68ch; }
.story__body p { margin-bottom: 1.15em; }
.story--media { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.story__media { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.story__fig { display: block; overflow: hidden; background: var(--sand); }
.story__fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .8s var(--ease); }
.story__fig--main { grid-column: 1 / -1; }
.story__fig--main img { aspect-ratio: 16 / 9; }
.story__fig:hover img { transform: scale(1.03); }
@media (max-width: 820px) { .story, .story--media { grid-template-columns: 1fr; } .story__media { grid-column: auto; } .story__title { position: static; } }

/* Dove siamo */
.where { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.where__photo { margin: 0 0 32px; }
.where__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.where__address { font-style: normal; font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.where__address strong { font: 400 28px/1.2 var(--serif); display: inline-block; margin-bottom: 6px; }
.map { position: relative; min-height: 440px; background: var(--sand-deep); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; background: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 1px, transparent 1px 12px), var(--sand-deep); }
.map__consent p { max-width: 34ch; margin: 0; color: var(--anthracite); }
.map__remember { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--anthracite); cursor: pointer; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* Schede */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.cards.is-collapsed .is-extra { display: none; }
.card__link { display: block; text-decoration: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.cards--dark .card__media { background: #2c2b28; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.card__link:hover .card__img, .card__link:focus-visible .card__img { transform: scale(1.045); }
.card__placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 1px, transparent 1px 10px); }
.card__body { padding-top: 16px; }
.card__title { font: 400 23px/1.2 var(--serif); display: flex; justify-content: space-between; gap: 12px; }
.card__title::after { content: "→"; font: 400 15px/1.5 var(--sans); opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease); }
.card__link:hover .card__title::after { opacity: .7; transform: none; }
.card__text { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cards--dark .card__text { color: rgba(247, 244, 239, .6); }
.more { margin-top: clamp(40px, 5vw, 64px); text-align: center; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card__title { font-size: 19px; } .card__text { display: none; } }

/* Contatti */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); }
.contact__tagline { margin: 26px 0 40px; font: 500 12.5px/2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.contact__tagline p { margin: 0; }
.contact__photo { margin: 0 0 36px; }
.contact__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.contact__label { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact__list { margin: 0; }
.contact__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font-size: 14px; }
.contact__list dd { margin: 0; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__list a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* Modulo */
.contact-form { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--anthracite); }
.field input, .field textarea { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(31, 30, 28, .3); border-radius: 0; background: transparent; font: 400 16px/1.5 var(--sans); color: var(--ink); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #a33a2b; }
.field__error { margin: 0; font-size: 13px; color: #a33a2b; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.field--check label { flex: 1; font-weight: 400; line-height: 1.55; }
.field--check .field__error { flex-basis: 100%; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-status:not(:empty) { margin-top: 24px; }
.notice { padding: 18px 22px; border-left: 2px solid; background: var(--white); }
.notice--ok { border-color: var(--accent); }
.notice--error { border-color: #a33a2b; }
.cf-turnstile { margin-top: 24px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Scheda ---------- */
.item-page { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.item__info { position: sticky; top: calc(var(--header-h) + 32px); }
.item__title { font: 400 clamp(40px, 5vw, 64px)/1.04 var(--serif); margin-bottom: 26px; }
.item__text { font-size: 17px; margin-bottom: 36px; }
.item__phone { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.item__noimg { aspect-ratio: 4 / 3; background: var(--sand); }
@media (max-width: 900px) { .item { grid-template-columns: 1fr; } .item__info { position: static; } }

.carousel { position: relative; }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--sand); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; cursor: zoom-in; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel__btn { position: absolute; top: calc(50% - 50px); width: 48px; height: 48px; border: 0; background: rgba(247, 244, 239, .9); font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.carousel__btn:hover { background: var(--white); }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.carousel__thumb { flex: none; width: 88px; height: 66px; padding: 0; border: 1px solid transparent; background: var(--sand); opacity: .55; transition: opacity .2s, border-color .2s; }
.carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel__thumb.is-active, .carousel__thumb:hover { opacity: 1; border-color: var(--ink); }

.item-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); }
.item-nav__link { text-decoration: none; font: 400 22px/1.2 var(--serif); }
.item-nav__link small { display: block; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.item-nav__next { text-align: right; }
.item-nav__all { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid; padding-bottom: 5px; }
@media (max-width: 640px) { .item-nav { grid-template-columns: 1fr 1fr; } .item-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; } .item-nav__link { font-size: 18px; } }

/* ---------- Pagine testo ---------- */
.text-page { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); min-height: 60vh; }
.text-page--center { text-align: center; }
.text-page--center .eyebrow { justify-content: center; }
.text-page__title { font: 400 clamp(40px, 5vw, 60px)/1.05 var(--serif); margin-bottom: 40px; }
.prose--legal { font-size: 15.5px; }
.prose--legal h2 { font-size: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #171614; color: rgba(247, 244, 239, .7); padding: 64px 0 40px; font-size: 14px; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 28px 64px; align-items: start; }
.site-footer__brand { display: flex; flex-direction: column; color: var(--paper); }
.site-footer__info p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.site-footer__links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__credit { grid-column: 2; margin: 0; font-size: 12.5px; color: rgba(247, 244, 239, .62); }
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__links, .site-footer__credit { grid-column: 1; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--paper); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 14, 13, .96); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox__figure figcaption { color: rgba(255, 255, 255, .7); font-size: 14px; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: none; color: var(--white); width: 56px; height: 56px; font-size: 40px; line-height: 1; opacity: .75; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__prev { left: 8px; top: calc(50% - 28px); }
.lightbox__next { right: 8px; top: calc(50% - 28px); }
@media (max-width: 640px) { .lightbox { padding: 56px 8px; } .lightbox__nav { top: auto; bottom: 8px; } }

/* ---------- Comparsa leggera allo scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
