/* =========================================================
   IL TURCHESE — Laboratorio Orafo
   Design system: oro caldo + nero profondo
   ========================================================= */

:root {
  /* Neutrals — warm */
  --noir:        #0d0c0a;
  --noir-2:      #131210;
  --ink:         #17140f;
  --ink-2:       #201b14;

  /* Light */
  --paper:       #f7f1e7;
  --paper-2:     #efe6d6;
  --cream:       #fbf7f0;

  /* Gold */
  --gold:        #c8a44d;
  --gold-2:      #d8bd7e;
  --gold-3:      #e7d39b;
  --gold-deep:   #a9842f;   /* graphics/strokes on light */
  --gold-text:   #7a5d1d;   /* AA-safe gold for small text on light */

  /* Text */
  --text:        #221d16;   /* on light */
  --text-soft:   #5d5446;
  --on-dark:     #f1e9da;
  --on-dark-soft:#b6ab93;

  /* Lines */
  --hair:        rgba(200,164,77,.28);
  --hair-soft:   rgba(120,100,60,.16);

  --gold-grad:   linear-gradient(120deg, #e7d39b 0%, #c8a44d 45%, #9c7a2c 100%);
  --gold-grad-on-light: linear-gradient(120deg, #a9842f 0%, #8a6c24 55%, #7a5f1f 100%);

  /* Layout */
  --container:   clamp(1200px, 82vw, 1480px);
  --gutter:      clamp(1.2rem, 4vw, 2.5rem);
  --radius:      14px;
  --radius-lg:   22px;

  --shadow-sm:   0 4px 18px rgba(20,15,8,.10);
  --shadow:      0 18px 50px rgba(20,15,8,.16);
  --shadow-dark: 0 24px 60px rgba(0,0,0,.45);

  --ease:        cubic-bezier(.22,.61,.36,1);

  /* Z-scale */
  --z-header: 50;
  --z-menu:   60;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  font-size: 1.0625rem;            /* 17px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1,h2,h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.1; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--gold-2);
  padding: .6rem 1rem; border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Shared section / type primitives
   ========================================================= */
.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-text); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -.01em; color: var(--text);
}
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem,5vw,4rem); text-align: center; }
.section-head .eyebrow { color: var(--gold-text); }
.section-intro { color: var(--text-soft); margin-top: 1.1rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --pad-y: .9rem; --pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold-grad); color: #2a2009;
  box-shadow: 0 10px 26px rgba(168,132,47,.34);
}
.btn--gold:hover { box-shadow: 0 14px 34px rgba(168,132,47,.46); filter: brightness(1.04); }

.btn--outline { background: transparent; color: var(--on-dark); border-color: rgba(231,211,155,.5); }
.btn--outline:hover { border-color: var(--gold-2); background: rgba(231,211,155,.10); }

.btn--ghost { background: transparent; color: var(--on-dark); border-color: transparent; padding: .55rem .9rem; text-transform: none; letter-spacing: .02em; }
.btn--ghost .ic { width: 18px; height: 18px; fill: var(--gold-2); }
.btn--ghost:hover { color: var(--gold-2); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.site-header.is-scrolled {
  background: rgba(13,12,10,.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--hair);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 38px; height: 38px; fill: none; stroke: var(--gold-2); stroke-width: 2.2; stroke-linejoin: round; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--on-dark); letter-spacing: .01em; }
.brand__sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.brand__logo { height: 46px; width: auto; display: block; flex: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav__list a {
  color: var(--on-dark); font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  position: relative; padding: .3rem 0; transition: color .25s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold-grad); transition: width .3s var(--ease);
}
.nav__list a:hover { color: var(--gold-2); }
.nav__list a:hover::after { width: 100%; }

.header__cta { flex: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: linear-gradient(160deg, #14110c, #0b0a08);
  display: flex; align-items: center; justify-content: center; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__logo { width: 116px; height: auto; margin: 0 auto 2.2rem; display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.5rem; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--on-dark); }
.mobile-menu a:active { color: var(--gold-2); }
.mobile-menu__cta { font-family: 'Inter', sans-serif; font-size: .9rem !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #0d0c0a url("../assets/hero-poster.jpg") center/cover no-repeat; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,7,5,.62) 0%, rgba(8,7,5,.30) 35%, rgba(8,7,5,.55) 72%, rgba(8,7,5,.92) 100%),
    radial-gradient(120% 90% at 18% 30%, rgba(8,7,5,.15), rgba(8,7,5,.7) 100%);
}
.hero__grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero__content { position: relative; max-width: 760px; padding-top: 76px; }
.hero__kicker {
  font-size: .82rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 1.4rem; font-weight: 600;
}
.hero__title { margin-bottom: 1.6rem; }
.hero__title-line {
  display: block; font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 600; line-height: .96;
  letter-spacing: -.015em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-sub {
  display: block; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 3.4vw, 1.9rem); color: var(--on-dark); letter-spacing: .04em; margin-top: .5rem;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(241,233,218,.92);
  max-width: 33em; margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid rgba(231,211,155,.5); border-radius: 100px;
  display: flex; justify-content: center; padding-top: 8px; z-index: 1;
}
.hero__scroll-line { width: 2px; height: 8px; border-radius: 2px; background: var(--gold-2); animation: scrollPulse 1.8s var(--ease) infinite; }
@keyframes scrollPulse { 0%{ transform: translateY(0); opacity: 1; } 70%{ transform: translateY(14px); opacity: 0; } 100%{ opacity: 0; } }

/* =========================================================
   Manifesto band
   ========================================================= */
.manifesto { background: var(--noir); color: var(--on-dark); padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.manifesto__text {
  font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.4; max-width: 24em; margin-inline: auto; color: var(--cream);
}
.manifesto__text em { font-style: italic; color: var(--gold-2); }

/* =========================================================
   Story / Atelier
   ========================================================= */
.story { background: var(--cream); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.story__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__media-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(13,12,10,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--gold-2); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 100px; border: 1px solid var(--hair);
}
.story__body p { color: var(--text-soft); margin-top: 1.2rem; max-width: 52ch; }
.story__body strong { color: var(--text); font-weight: 600; }
.section-title + p { margin-top: 1.5rem; }

.story__facts { display: flex; gap: clamp(1.2rem,3vw,2.4rem); margin-top: 2.2rem; flex-wrap: wrap; }
.story__facts li { font-size: .9rem; color: var(--text-soft); display: flex; flex-direction: column; }
.story__facts span {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600;
  background: var(--gold-grad-on-light); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1;
}

/* =========================================================
   Services
   ========================================================= */
.services { background: linear-gradient(180deg, var(--paper), var(--cream)); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 1.6rem); }
.card {
  background: #fff; border: 1px solid var(--hair-soft); border-radius: var(--radius);
  padding: clamp(1.6rem, 2.4vw, 2.2rem); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--hair); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #faf3e2, #f0e3c8); margin-bottom: 1.3rem; border: 1px solid var(--hair);
}
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: 1.32rem; margin-bottom: .6rem; color: var(--text); }
.card p { color: var(--text-soft); font-size: .98rem; }

/* =========================================================
   Feature / Creazioni
   ========================================================= */
.feature { background: var(--noir); color: var(--on-dark); padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; overflow: hidden; }
.feature::after {
  content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -140px;
  background: radial-gradient(circle, rgba(200,164,77,.16), transparent 70%); pointer-events: none;
}
.feature__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature__body .eyebrow { color: var(--gold-2); }
.feature__body .section-title { color: var(--cream); }
.feature__body p { color: var(--on-dark-soft); margin-top: 1.2rem; max-width: 50ch; }
.feature__body .btn { margin-top: 2rem; }

.feature__media { position: relative; display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.feature__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-dark); border: 1px solid rgba(231,211,155,.14); }
.feature__img img { width: 100%; object-fit: cover; }
.feature__img--lg img { aspect-ratio: 16/10; }
.feature__img--sm {
  position: absolute; bottom: -28px; left: -28px; width: 44%; border: 3px solid var(--noir);
  border-radius: 18px;
}
.feature__img--sm img { aspect-ratio: 1/1; }

/* =========================================================
   Gallery / Creazioni
   ========================================================= */
.gallery { background: linear-gradient(180deg, var(--cream), var(--paper)); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.gallery__item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--hair-soft); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery__media { overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { padding: 1.1rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .25rem; }
.gallery__title { font-family: 'Playfair Display', serif; font-size: 1.32rem; color: var(--text); }
.gallery__desc { font-size: .92rem; color: var(--text-soft); }

/* =========================================================
   Values
   ========================================================= */
.values { background: var(--cream); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.value { text-align: center; padding: 1rem; }
.value__ic { width: 46px; height: 46px; margin: 0 auto 1.1rem; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.value h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--text); }
.value p { color: var(--text-soft); font-size: .95rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: linear-gradient(180deg, var(--paper), var(--paper-2)); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.contact__info p { color: var(--text-soft); margin-top: 1.3rem; max-width: 44ch; }
.contact__list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--gold-deep); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; margin-top: 3px; }
.contact__label { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: .15rem; }
.contact__list a { color: var(--text); font-weight: 500; line-height: 1.5; }
.contact__value { color: var(--text-soft); font-weight: 400; line-height: 1.5; }
.contact__list a:hover { color: var(--gold-text); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.contact__actions .btn--outline { color: var(--text); border-color: var(--hair); }
.contact__actions .btn--outline:hover { border-color: var(--gold-deep); background: rgba(200,164,77,.1); }

.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; border: 1px solid var(--hair); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.25) contrast(1.02); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--noir); color: var(--on-dark-soft); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand .brand__mark { width: 40px; height: 40px; }
.footer__brand strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--on-dark); font-weight: 600; }
.footer__brand em { font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.footer__logo { width: 154px; height: auto; display: block; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a { font-size: .92rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--gold-2); }
.footer__meta { text-align: right; font-size: .88rem; line-height: 1.7; }
.footer__copy { margin-top: .8rem; font-size: .8rem; color: rgba(182,171,147,.85); }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__scroll-line { animation: none; }
  .hero__video { display: none; }   /* poster (su .hero__media) resta visibile */
  .hero__grain { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
/* La grana usa mix-blend-mode: costosa da comporre sul video in play.
   La togliamo su mobile (allineato alla soglia 768px del JS). */
@media (max-width: 768px) {
  .hero__grain { display: none; }
}

@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { gap: 1rem; }

  .story__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .story__media { max-width: 400px; }
  .story__media img { aspect-ratio: 4/5; }

  .feature__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .feature__media { max-width: 520px; }
  .feature__body .section-title { order: -1; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { min-height: 320px; order: 2; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .values__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .card p, .value p { font-size: 1rem; }            /* >=16px leggibilità mobile */
  .footer__nav a { display: block; padding: .7rem 1rem; line-height: 1.2; }  /* touch target */
  .cards { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .hero__content { padding-top: 90px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .story__facts { gap: 1.6rem; }
  .story__facts span { font-size: 1.7rem; }
  .feature__img--sm { width: 50%; left: -14px; bottom: -18px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .footer__brand { justify-content: center; }
  .footer__nav { align-items: center; }
  .footer__meta { text-align: center; }
}

@media (max-width: 380px) {
  .values__grid { grid-template-columns: 1fr; }
}
