/* ValeMomi Tattoo - stile del sito
   Tavolozza: seta rosa/oro (header), sabbia scura (sfondo), blu notte (testo home), rame (logo) */

:root {
  --navy: #141d2e;
  --navy-text: #2a3550;
  --blush: #ffd9cf;
  --copper-1: #a8472a;
  --copper-2: #c8693f;
  --copper-3: #e0956a;
  --header-h: 92px;
  --max: 1180px;
  --gap: clamp(24px, 3.4vw, 48px);
  --font-body: "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
  --font-head: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --font-cond: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-logo: "Snell Roundhand", "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
  background: #8f6d5c;
  -webkit-font-smoothing: antialiased;
}

/* sfondo sabbia fisso dietro a tutto */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #8f6d5c url("../img/bg-sand.svg") center / cover no-repeat;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #f2bdb2 url("../img/silk.svg") center / cover no-repeat;
  box-shadow: 0 2px 18px rgba(70, 40, 30, .2);
}

.site-header__bar {
  max-width: 1600px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(18px, 2.2vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: block; line-height: 0; text-decoration: none; }
.logo__img { height: clamp(48px, 4.4vw, 64px); width: auto; max-width: 100%; }

.nav { display: flex; gap: clamp(18px, 2.6vw, 42px); }
.nav a {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 22px);
  color: var(--navy-text);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--copper-1);
  text-shadow: none;
  border-bottom-color: currentColor;
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  position: relative;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  content: ""; position: absolute; left: 14px; width: 20px; height: 2px; background: var(--navy-text);
}
.nav-toggle i { top: 23px; }
.nav-toggle i::before { left: 0; top: -7px; }
.nav-toggle i::after { left: 0; top: 7px; }

/* ------------------------------------------------------------------ sezioni */
.section { padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 48px); }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }

.section h2 {
  margin: 0 0 clamp(32px, 5vw, 64px);
  text-align: center;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(60, 35, 25, .35);
}

.page-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0 0 40px;
  text-shadow: 0 2px 14px rgba(60, 35, 25, .35);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(520px, 64vh, 700px);
  overflow: hidden;
}
/* foto a filo a destra, a tutta altezza; sul lato del testo sfuma nello sfondo */
.hero__img {
  grid-column: 2; grid-row: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to top, transparent 0, #000 16%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 38%), linear-gradient(to top, transparent 0, #000 16%);
  mask-composite: intersect;
}
.hero__text {
  grid-column: 1; grid-row: 1;
  align-self: center;
  max-width: 640px;
  justify-self: end;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 56px);
  color: #fff;
  text-shadow: 0 1px 10px rgba(60, 30, 20, .35);
  position: relative; z-index: 1;
}
.hero__text p { margin: 0 0 1.1em; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.hero__text .hero__lead {
  font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.25; color: var(--blush);
}
.hero__kicker {
  margin: 0 0 1.4em;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

/* ------------------------------------------------------------------ galleria */
.gallery {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  columns: 3 260px;
  column-gap: 20px;
}
.gallery li { break-inside: avoid; margin: 0 0 20px; }
.gallery button {
  display: block; width: 100%;
  padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: 6px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(50, 28, 20, .22);
}
.gallery img { width: 100%; height: auto; transition: transform .45s ease; }
.gallery button:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------------ card servizi */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--gap);
}
.card { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); min-width: 280px; }
.card__inner {
  display: block; height: 100%;
  color: inherit;
  padding: 12px;
  text-decoration: none;
  border-radius: 64px 64px 44px 44px;
  background: linear-gradient(180deg, rgba(255, 235, 225, .18), rgba(92, 60, 48, .46));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(60, 35, 25, .2);
  transition: transform .25s ease;
}
a.card__inner:hover { transform: translateY(-4px); }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 52px 52px 0 0; }
.card__body { padding: 22px 18px 26px; }
.card__n { font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; letter-spacing: .04em; color: var(--blush); }
.card h3 { margin: .15em 0 .5em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.card p { margin: 0 0 1em; font-weight: 400; font-size: 1.02rem; line-height: 1.5; }
.card__more { font-family: var(--font-head); font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.cards--small .card { flex-basis: calc((100% - 3 * var(--gap)) / 4); min-width: 230px; }
.cards--small .card__body { padding-bottom: 20px; }
.cards--small h3 { font-size: 1.35rem; }

/* ------------------------------------------------------------------ novita */
.dates { max-width: 720px; margin: 0 auto 64px; display: grid; gap: 18px; }
.date {
  padding: 26px 34px;
  border-radius: 40px;
  background: rgba(255, 235, 225, .13);
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.date time { font-family: var(--font-head); font-weight: 500; letter-spacing: .04em; color: var(--blush); }
.date h3 { margin: .2em 0 .3em; font-size: 1.7rem; }
.date p { margin: 0; font-weight: 400; }

.ig-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 28px;
  font-family: var(--font-cond);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: .01em;
}
.ig-handle { text-align: center; margin: -14px 0 26px; }
.ig-handle a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; padding: 8px; border-radius: 50%; transition: background .2s; }
.ig-handle a:hover { background: rgba(255, 255, 255, .16); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ig-handle .ig-icon { width: 40px; height: 40px; flex: none; }
.ig-strip {
  list-style: none; margin: 0 auto 32px; padding: 0;
  max-width: 900px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ig-strip img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; width: 100%; }

/* ------------------------------------------------------------------ bottoni */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; }
.btn-row--left { justify-content: flex-start; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.8em;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #26324d; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------------ pagina servizio / contatti */
.crumbs { max-width: 1100px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 48px) 0; font-size: .95rem; }
.crumbs a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }

.service {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 48px) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px); align-items: start;
}
.service__media { display: grid; gap: 24px; }
.service__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 40px 40px; box-shadow: 0 14px 50px rgba(50, 28, 20, .3); }
.service__img--second { border-radius: 40px; }
.eyebrow { margin: 0 0 .8em; font-family: var(--font-head); font-size: .78rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--blush); }
.service h1 { margin: 0 0 .4em; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; text-shadow: 0 2px 14px rgba(60, 35, 25, .35); }
.lead { margin: 0 0 1em; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.55; font-weight: 400; }
.service__body p { font-weight: 400; }
.service__body h2 { margin: 1.6em 0 .4em; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.back { max-width: 1100px; margin: 56px auto 0; padding: 0 clamp(18px, 4vw, 48px); }

.contact-list { margin: 48px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; font-weight: 400; }
.contact-list dt { font-family: var(--font-head); color: var(--blush); }
.contact-list dd { margin: 0; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 40px;
  padding: 56px clamp(18px, 4vw, 48px) 32px;
  background: rgba(50, 32, 26, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 400;
}
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer__grid h2 { margin: 0 0 .6em; font-size: 1.05rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blush); }
.footer__grid p { margin: 0 0 1em; }
.footer__grid a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer__logo { margin: 0 0 12px; line-height: 0; }
.footer__logo-img { height: 84px; width: auto; }
.footer__copy { max-width: var(--max); margin: 32px auto 0; font-size: .9rem; opacity: .75; }

/* ------------------------------------------------------------------ ingrandimento foto */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(30, 18, 14, .86); }
#lightbox img { max-height: 88vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; }
.lb-close {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #000; font-size: 28px; line-height: 1; cursor: pointer;
}

/* ------------------------------------------------------------------ tablet e telefono */
@media (max-width: 960px) {
  .card { flex-basis: calc((100% - var(--gap)) / 2); }
  .cards--small .card { flex-basis: calc((100% - var(--gap)) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 78px; }
  .logo__img { height: 54px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #f2bdb2 url("../img/silk.svg") center / cover no-repeat;
    box-shadow: 0 14px 24px rgba(70, 40, 30, .22);
    padding: 8px clamp(18px, 4vw, 36px) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { color: var(--navy-text); text-shadow: none; font-size: 20px; padding: 14px 2px; border-bottom: 1px solid rgba(42, 53, 80, .15); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--copper-2); color: var(--copper-1); }

  .hero { display: block; min-height: 0; }
  .hero__img { height: auto; aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
  .hero__text { max-width: none; margin-top: -36px; padding: 0 clamp(18px, 4vw, 36px) 28px; }
  .service { grid-template-columns: 1fr; }
  .service__media { grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
  .service__img { border-radius: 120px 120px 28px 28px; }
  .service__img--second { border-radius: 28px; }
  .ig-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .card, .cards--small .card { flex-basis: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__inner, .gallery img, .btn { transition: none; }
}

.legal h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .7em; }

.tips-intro { text-align: center; margin: 0 0 1.4em; font-size: 1.1rem; }
.tips { list-style: none; counter-reset: tip; margin: 0 auto 2em; padding: 0; max-width: 820px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tips li { counter-increment: tip; position: relative; padding: 16px 20px 16px 62px; border-radius: 24px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); line-height: 1.4; font-size: 1rem; }
.tips li::before { content: counter(tip); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--blush); color: var(--copper-1);
  font-family: var(--font-head); font-weight: 500; display: grid; place-items: center; }
.tips strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 2px; }
@media (max-width: 640px) { .tips { grid-template-columns: 1fr; } }
.tips li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
@media (max-width: 640px) { .tips li:last-child:nth-child(odd) { width: auto; } }

/* ------------------------------------------------------------------ pagina sketchbook */
.steps { padding-left: 1.3em; margin: 0 0 1.4em; }
.steps li { margin-bottom: .6em; }
.designs { list-style: none; margin: 0 auto 40px; padding: 0 clamp(18px, 4vw, 48px); max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.designs li { display: flex; flex-direction: column; gap: 8px; }
.designs button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.designs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; display: block; }
.design__ph { aspect-ratio: 3 / 4; border-radius: 24px; display: grid; place-items: center; text-align: center;
  background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .45); font-size: .95rem; opacity: .85; }
.design__name { font-family: var(--font-head); font-size: .95rem; text-align: center; opacity: .9; }
@media (max-width: 860px) { .designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.catalog-intro, .catalog-intro .page-title, .catalog-intro h2 { text-align: left; }
.catalog-intro .page-title { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: .6em; }
.catalog-intro h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.4em 0 .6em; }
.section--tight { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(16px, 2vw, 28px); }
