/* Sartoria Tenuta — stile del sito */

@font-face { font-family: 'Tenor Sans'; src: url(/fonts/tenor-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(/fonts/lora-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pinyon Script'; src: url(/fonts/pinyon-script-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url(/fonts/marcellus-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(/fonts/jost-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --lino: #F4EDE2;
  --carta: #FAF6EF;
  --sabbia: #E6D7C4;
  --paglia: #EAD8AB;
  --oliva: #364025;
  --inchiostro: #2B321F;
  --testo-2: #4A5338;
  --ruggine: #7B2C10;
  --linea: rgba(54, 64, 37, 0.18);
  --head: 'Tenor Sans', 'Instrument Sans', sans-serif;
  --display: 'Lora', Georgia, serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--lino); color: var(--inchiostro); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--oliva); }
a:hover { color: var(--ruggine); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ruggine); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--oliva); color: var(--lino); padding: 10px 16px; }
.skip:focus { top: 12px; color: var(--lino); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500; }
.eyebrow--rust { color: var(--ruggine); }
.muted { color: var(--testo-2); }
.accent { color: var(--ruggine); }
.display { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
.h1 { font-family: var(--head); font-weight: 400; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.05; margin: 0; }
.lead { font-size: 15px; line-height: 1.7; color: var(--testo-2); margin: 0; }

.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; color: inherit; }
.link:hover { color: var(--ruggine); }
.u { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.caps { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--oliva); background: transparent; color: var(--inchiostro); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--ruggine); border-color: var(--ruggine); }
.btn--solid { background: var(--oliva); color: var(--lino); border-color: var(--oliva); }
.btn--solid:hover { background: var(--inchiostro); color: var(--lino); border-color: var(--inchiostro); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--lino); border-bottom: 1px solid var(--linea); }
.site-header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--inchiostro); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ruggine); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav--right { justify-content: flex-end; }
.nav .btn { min-height: 40px; padding: 0 18px; }
.brand { display: block; line-height: 0; }
.brand img { height: 46px; width: auto; display: block; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .site-header__in { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .brand img { height: 38px; }
  .site-header__in .brand { grid-column: 1; }
  .menu-btn { display: inline-flex; grid-column: 3; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
  .menu-btn__bars { width: 22px; height: 10px; position: relative; display: inline-block; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .25s; }
  .menu-btn__bars::before { top: 0; } .menu-btn__bars::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-4.5px) rotate(-45deg); }
  .mobile-menu { position: fixed; inset: 63px 0 0 0; background: var(--lino); z-index: 39; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-family: var(--head); font-size: 30px; text-decoration: none; color: var(--inchiostro); padding: 10px 0; border-bottom: 1px solid var(--linea); }
  .mobile-menu a.btn--solid { color: var(--lino); }
  .mobile-menu .btn { margin-top: 24px; align-self: flex-start; font-family: var(--body); font-size: 11px; padding: 0 28px; border-bottom: 1px solid var(--oliva); }
}

/* Home */
.hero { height: min(720px, 82vh); overflow: hidden; background: #1E2414; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.intro { max-width: 982px; margin: 0 auto; padding: 80px 24px 0; text-align: center; font-family: var(--display); font-size: clamp(26px, 3.4vw, 48px); line-height: 1.4; }
.intro-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 28px 24px 0; }
.intro-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--inchiostro); }

.section { padding-top: 120px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.section-head a { min-height: 44px; display: inline-flex; align-items: center; color: var(--inchiostro); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.card__img { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sabbia); }
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.03); }
.card__name { font-family: var(--head); font-size: 24px; }
.card__spec { font-size: 13px; line-height: 1.5; color: var(--testo-2); }

/* Riga orizzontale guidata dallo scroll */
.hs { position: relative; }
.hs__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 40px; width: 100%; }
.hs__title { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6vw, 90px); line-height: 1; letter-spacing: -0.01em; margin: 0; }
.hs__track { display: flex; gap: 72px; width: max-content; padding: 0 7vw; will-change: transform; }
.hs__item { flex: 0 0 auto; width: 230px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; color: inherit; }
.hs__item img { width: 230px; height: 300px; object-fit: contain; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hs__item:hover img { transform: scale(1.03); }
.hs__name { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; }
.hs__line { font-size: 12px; color: var(--testo-2); }
.hs.is-static .hs__sticky { position: static; height: auto; padding: 96px 0 48px; }
.hs.is-static .hs__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; gap: 32px; padding-left: var(--gutter); padding-right: var(--gutter); }
.hs.is-static .hs__track::-webkit-scrollbar { display: none; }
.hs.is-static .hs__item { scroll-snap-align: start; width: 180px; }
.hs.is-static .hs__item img { width: 180px; height: 240px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.panel { background: var(--carta); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; justify-content: space-between; }
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.teaser div { position: relative; aspect-ratio: 1 / 1; isolation: isolate; }
.teaser img, .teaser span { position: absolute; inset: 0; width: 100%; height: 100%; }
.teaser span { mix-blend-mode: multiply; -webkit-mask: url(/img/capi/basic-fronte.webp) center / 100% 100% no-repeat; mask: url(/img/capi/basic-fronte.webp) center / 100% 100% no-repeat; }
.split__photo { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }

.quote { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.quote__in { max-width: 1140px; margin: 0 auto; padding: 120px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.quote__in img { height: 88px; width: auto; }
.quote__text { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.6vw, 50px); line-height: 1.3; max-width: 1090px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--testo-2); }

/* Pagine interne */
.page { padding-top: 80px; padding-bottom: 120px; }
.page-intro { max-width: 720px; margin: 0 auto 64px; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.coll { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 56px 24px; }
.coll article { display: flex; flex-direction: column; gap: 14px; }
.coll h2 { margin: 4px 0 0; font-family: var(--head); font-weight: 400; font-size: 28px; }
.coll .actions { display: flex; gap: 24px; }
.coll .actions a { min-height: 44px; display: inline-flex; align-items: center; color: var(--inchiostro); }

.models-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 12px; border: 1px solid rgba(54,64,37,0.45); background: transparent; color: var(--inchiostro); }
.chip[aria-pressed="true"] { background: var(--oliva); color: var(--lino); border-color: var(--oliva); }
.line-row { border-top: 1px solid var(--linea); padding: 28px 0 48px; }
.line-row[hidden] { display: none; }
.line-row__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.line-row__head h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: 28px; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--oliva); background: transparent; cursor: pointer; }
.row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.mcard { flex: 0 0 clamp(200px, 22vw, 300px); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.mcard__img { display: block; background: var(--carta); aspect-ratio: 4 / 5; overflow: hidden; padding: 20px; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mcard__img--photo { padding: 0; }
.mcard__img--photo img { object-fit: cover; }
.mcard:hover img { transform: scale(1.03); }
.mcard__name { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.mcard__fab { font-size: 13px; color: var(--testo-2); }

/* Laboratorio */
.lab-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.lab-top img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lab-h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.four > div { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--oliva); padding-top: 18px; }
.four p { margin: 0; font-size: 15px; line-height: 1.65; }
.steps-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.steps-list li { display: flex; flex-direction: column; gap: 10px; }
.steps-list .n { font-family: var(--display); font-size: 40px; color: var(--ruggine); }
.archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 42vw), 1fr)); gap: 28px 16px; }
.archive figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.archive img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (min-width: 1200px) { .archive { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.archive figcaption { font-size: 12px; line-height: 1.45; color: var(--testo-2); }

/* Testi legali */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin: 0 0 12px; }
.legal h2 { font-family: var(--head); font-weight: 400; font-size: 24px; margin: 48px 0 12px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--testo-2); }
.legal ul { padding-left: 20px; }

/* Footer */
.site-footer { background: var(--inchiostro); color: var(--sabbia); padding: 80px var(--gutter) 36px; }
.site-footer a { color: var(--sabbia); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__in { max-width: 1328px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__top > img { height: 72px; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; flex: 1 1 min(560px, 100%); min-width: 0; max-width: 760px; font-size: 14px; line-height: 1.9; }
.footer-cols p.eyebrow { color: var(--paglia); margin-bottom: 8px; letter-spacing: 0.22em; }
.footer-cols a, .footer-cols span { display: block; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(230,215,196,0.25); padding-top: 24px; font-size: 12px; color: #C9BBA6; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.social { display: flex; gap: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(230,215,196,0.4); border-radius: 50%; color: var(--sabbia); }
.social a:hover { color: var(--lino); border-color: var(--lino); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
