/* ============================================================
   Atelier Loredana Lombardo — style.css
   Design system Royaletiger · palette avorio/rosa cipria/inchiostro
   ============================================================ */

/* Font self-hosted (GDPR: nessuna richiesta a terzi) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost.woff2') format('woff2');
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/great-vibes.woff2') format('woff2');
}

:root {
  /* palette brand */
  --brand: #9e4b66;
  --brand-dark: #7d3950;
  --brand-soft: #f5dce4;
  --accent: #9e4b66;
  --accent-dark: #7d3950;
  --ink: #211d1a;
  --text: #3e3833;
  --muted: #6e655c;
  --bg: #faf7f2;
  --bg-alt: #f4ede4;
  --line: #e7ddd2;
  --white: #fffdfa;
  /* tipografia */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Century Gothic', sans-serif;
  /* sistema */
  --shadow-sm: 0 2px 10px rgba(33, 29, 26, .06);
  --shadow-md: 0 10px 30px rgba(33, 29, 26, .10);
  --shadow-lg: 0 24px 60px rgba(33, 29, 26, .16);
  --radius: 4px;
  --radius-lg: 6px;
  --container: 1240px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
main { display: block; }

/* dettagli brand: selezione, focus, scrollbar */
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #cfc2b4; border-radius: 8px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.005em; }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--font-body); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink); }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
h1, h2, h3 { text-wrap: balance; }
p, .lead, li { text-wrap: pretty; }
.article p { hyphens: auto; }
.lead { font-size: 1.15rem; font-weight: 300; color: var(--muted); max-width: 58ch; }
.eyebrow {
  font-size: .78rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .32em; color: var(--brand);
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 42px; height: 1px; background: var(--brand); flex: none; }
.eyebrow.is-center { justify-content: center; }
.eyebrow.is-center::after { content: ''; width: 42px; height: 1px; background: var(--brand); flex: none; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-blush { background: var(--brand-soft); }
.section-dark { background: var(--ink); position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 380px;
  background: radial-gradient(ellipse, rgba(158, 75, 102, .28) 0%, transparent 65%);
  pointer-events: none;
}
.section-dark .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.section-head.is-center .lead { margin-inline: auto; }

/* ---------- bottoni ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: .84rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .24em;
  padding: 18px 40px; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .4s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(158, 75, 102, .25); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.35) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(125, 57, 80, .35); }
.btn-primary:hover::before { transform: translateX(130%); }
.btn-outline {
  border-color: var(--ink); color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat; background-size: 0% 100%; background-position: left center;
  transition: background-size .45s var(--ease), color .3s var(--ease), transform .4s var(--ease);
}
.btn-outline:hover { background-size: 100% 100%; color: var(--bg); transform: translateY(-2px); }
.btn-light {
  border-color: rgba(255,255,255,.7); color: #fff;
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat; background-size: 0% 100%; background-position: left center;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.btn-light:hover { background-size: 100% 100%; color: var(--ink); }
.btn-note { display: block; margin-top: 14px; font-size: .85rem; color: var(--muted); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 20px;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader img { width: 110px; height: auto; animation: pre-pop 1.1s var(--ease) both; }
.preloader-name {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  color: var(--muted); letter-spacing: .08em;
  animation: pre-fade 1s var(--ease) .3s both;
}
@keyframes pre-pop {
  from { opacity: 0; transform: scale(.7) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pre-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- parallax (var --py impostata da main.js) ---------- */
.split-media img, .service-media img { transform: translateY(var(--py, 0)) scale(1.04); }
.split-media:hover img { transform: translateY(var(--py, 0)) scale(1.04) translate(6px, -6px); }
.cta-banner-bg img { transform: translateY(var(--py, 0)) scale(1.18); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: box-shadow .35s var(--ease);
}
/* sfondo+blur su pseudo-elemento: backdrop-filter sull'header creerebbe un
   containing block che intrappola il menu mobile position:fixed */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 247, 242, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .35s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header.scrolled::before { background: rgba(250, 247, 242, .97); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand-mark { width: 66px; height: 66px; flex: none; object-fit: contain; transition: transform .4s var(--ease); }
.nav-brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-top { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .46em; color: var(--brand); }
.brand-text .brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a:not(.btn) {
  font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink); position: relative; padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--brand); }
.nav-links .btn { padding: 13px 26px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; z-index: 70; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: all .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero home ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: stretch; position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; width: 100%;
  max-width: none;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 6vw 80px calc(max((100vw - var(--container)) / 2, 28px));
  position: relative;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-trust li { font-size: .86rem; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-trust li strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--brand); letter-spacing: 0; }
.hero-media { position: relative; min-height: 100vh; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  animation: hero-zoom 2s var(--ease) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); filter: saturate(.7); }
  to   { transform: scale(1); filter: saturate(1); }
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--bg) 0%, transparent 22%);
}
.hero-watermark {
  position: absolute; left: -70px; bottom: -80px; z-index: 0;
  width: 400px; height: auto; opacity: .1; pointer-events: none;
  animation: watermark-float 12s ease-in-out infinite alternate;
}
@keyframes watermark-float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-22px) rotate(4deg); }
}
.hero-copy > * { position: relative; z-index: 1; }
.hero-copy .eyebrow { animation: fade-up .9s var(--ease) .1s both; }
.hero-copy h1 { animation: fade-up .9s var(--ease) .25s both; }
.hero-copy .lead { animation: fade-up .9s var(--ease) .4s both; }
.hero-copy .hero-cta { animation: fade-up .9s var(--ease) .55s both; }
.hero-copy .hero-trust { animation: fade-up .9s var(--ease) .7s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* striscia parole — nastro gigante da maison, marquee infinito */
.word-strip { border-block: 1px solid var(--line); padding: 30px 0 22px; overflow: hidden; background: var(--white); }
.word-strip ul {
  display: flex; align-items: baseline; width: max-content;
  animation: marquee 46s linear infinite;
}
.word-strip:hover ul { animation-play-state: paused; }
.word-strip li {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.1;
  display: flex; align-items: baseline; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--brand);
}
.word-strip li:nth-child(even) { color: var(--brand-soft); -webkit-text-stroke: 0; }
.word-strip li::after {
  content: '✦'; margin: 0 40px; font-style: normal; font-size: .3em;
  color: var(--brand-soft); -webkit-text-stroke: 0; align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- card feature ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 36px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 26px; color: var(--brand-dark);
}
.feature-card { position: relative; }
.feature-card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: width .5s var(--ease);
}
.feature-card:hover::after { width: 100%; }
.feature-icon { transition: transform .4s var(--ease), background .4s var(--ease); }
.feature-card:hover .feature-icon { transform: translateY(-4px) rotate(-6deg); background: var(--brand); color: #fff; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: .98rem; }
.feature-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; }
.feature-link span { transition: transform .35s var(--ease); }
.feature-link:hover span { transform: translateX(6px); }

/* ---------- percorso (step) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--line); }
.step { padding: 10px 32px 0; border-right: 1px solid var(--line); position: relative; transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-6px); }
.step-num {
  font-family: var(--font-display); font-style: italic; font-size: 3.6rem; font-weight: 500;
  color: var(--brand); opacity: .5; line-height: 1; display: block; margin-bottom: 18px;
  transition: opacity .4s var(--ease);
}
.step:hover .step-num { opacity: 1; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { font-size: .95rem; color: var(--muted); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.is-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); position: relative; z-index: 1; transition: transform .6s var(--ease); }
.split-media:hover img { transform: translate(6px, -6px); }
.split-media::before {
  content: ''; position: absolute; inset: -24px auto auto -24px; width: 72%; height: 72%;
  border: 1px solid var(--brand); border-radius: var(--radius-lg); z-index: 0;
}
.split-media::after {
  content: ''; position: absolute; right: -34px; bottom: -34px; width: 190px; height: 150px;
  background: radial-gradient(ellipse at center, rgba(238, 180, 205, .4) 0%, transparent 70%);
  transform: rotate(-14deg); z-index: 0; pointer-events: none;
}
.split-media.frame-right::before { inset: auto -24px -24px auto; }
.split-media.frame-right::after { right: auto; bottom: auto; left: -34px; top: -34px; }
.split-copy h2 { margin-bottom: 20px; }
.split-copy p + p { margin-top: 16px; }
.split-copy .btn { margin-top: 34px; }
.split-list { margin-top: 26px; display: grid; gap: 14px; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.split-list li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  margin-top: .58em; flex: none;
}

/* ---------- quote ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.quote::before {
  content: '\201C'; display: block; font-family: var(--font-display);
  font-size: 6rem; line-height: .6; color: var(--brand); opacity: .45; margin-bottom: 14px;
}
.quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.4; color: var(--ink);
}
.quote figcaption { margin-top: 26px; font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; color: var(--brand); }

/* ---------- gallery ---------- */
/* gallery in stile fine-art: passe-partout bianco + didascalia da mostra */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 10px; box-shadow: 0 14px 34px rgba(33, 29, 26, .08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(33, 29, 26, .14); }
.gallery-frame { overflow: hidden; aspect-ratio: 3 / 4; }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item:hover .gallery-frame img { transform: scale(1.06); }
.gallery-item figcaption {
  padding: 12px 4px 6px; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted);
}

/* ---------- numeri ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.stat strong {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600;
  color: var(--white); display: block; line-height: 1;
}
.stat > span { display: block; margin-top: 12px; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .26em; color: var(--brand-soft); }
.stat strong span { font: inherit; color: inherit; letter-spacing: 0; }
.stat strong { font-variant-numeric: lining-nums; }

/* ---------- blog card ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-grid.is-three { grid-template-columns: repeat(3, 1fr); }
.blog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .8s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: var(--brand); margin-bottom: 12px; }
.blog-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--brand); }
.blog-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.blog-card .feature-link { margin-top: 20px; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; padding: 150px 0; text-align: center; }
.cta-banner-bg { position: absolute; inset: 0; }
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta-banner-bg::after { content: ''; position: absolute; inset: 0; background: rgba(33, 29, 26, .62); }
.cta-banner::before {
  content: ''; position: absolute; inset: 26px; z-index: 1;
  border: 1px solid rgba(255, 255, 255, .3); pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 2; max-width: 780px; }
.cta-banner h2 { color: #fff; margin-bottom: 18px; }
.cta-banner p { color: rgba(255,255,255,.85); font-weight: 300; font-size: 1.12rem; margin-bottom: 38px; }
.cta-banner .eyebrow { color: var(--brand-soft); justify-content: center; }
.cta-banner .eyebrow::before, .cta-banner .eyebrow::after { background: var(--brand-soft); }
.cta-banner .btn-note { color: rgba(255,255,255,.75); }

/* ---------- pagine interne: hero ridotto ---------- */
.page-hero { padding: calc(var(--nav-h) + 90px) 0 70px; background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(238, 180, 205, .35) 0%, transparent 65%);
  transform: rotate(-20deg); pointer-events: none;
}
.page-hero h1 { position: relative; }
.page-hero h1::before {
  content: ''; position: absolute; left: -36px; top: -26px; width: 220px; height: 130px;
  background: radial-gradient(ellipse at center, rgba(238, 180, 205, .32) 0%, transparent 70%);
  transform: rotate(-9deg); z-index: -1; pointer-events: none;
}
.page-hero .breadcrumb { list-style: none; margin-left: 0; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero .breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--line); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 18px; }

/* ---------- servizi ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 90px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row.is-reverse .service-media { order: 2; }
.service-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.service-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.service-copy p + p { margin-top: 14px; }
.service-copy .btn { margin-top: 30px; }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: flex-start; }
.contact-cards { display: grid; gap: 20px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; display: flex; gap: 20px; align-items: flex-start;
}
.contact-card .feature-icon { width: 48px; height: 48px; margin: 0; flex: none; }
.contact-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .98rem; color: var(--muted); }
.contact-card a:hover { color: var(--brand); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours-table td:last-child { text-align: right; color: var(--text); }
.hours-table tr:last-child td { border-bottom: 0; }

/* form */
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 46px; box-shadow: var(--shadow-sm); }
.contact-form h2 { font-size: 1.9rem; margin-bottom: 8px; }
.contact-form > p { color: var(--muted); font-size: .96rem; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label { font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .25s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--brand); }
.form-privacy { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 22px 0 26px; }
.form-privacy input { margin-top: 5px; accent-color: var(--brand); }
.form-status { margin-top: 16px; font-size: .95rem; color: var(--brand-dark); min-height: 1.4em; }
.form-alt { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }

/* ---------- articolo blog ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .24em; color: var(--brand); margin-bottom: 30px; }
.article h2 { font-size: 1.9rem; margin: 48px 0 16px; }
.article h3 { font-size: 1.35rem; margin: 34px 0 12px; }
.article p + p { margin-top: 16px; }
.article ul, .article ol { margin: 16px 0 16px 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--brand); }
.article-cover { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 40px 0; }
.article-highlight {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 26px 30px; margin: 30px 0; font-size: 1.05rem;
}

/* faq */
.faq-list { margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 20px 26px; font-weight: 500; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); transition: transform .3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 22px; color: var(--muted); font-size: .98rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a8; position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; right: -160px; bottom: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(158, 75, 102, .22) 0%, transparent 65%);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding: 90px 0 60px; position: relative; }
.footer-logo { width: 76px; height: auto; margin-bottom: 16px; }
.footer-brand { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.footer-tag { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; color: var(--brand-soft); margin-bottom: 18px; }
.footer-col > p { font-size: .95rem; font-weight: 300; }
.footer-col h4 { color: var(--brand-soft); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #b9b1a8; font-size: .95rem; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; margin-top: 24px; }
.footer-social a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; color: #b9b1a8; transition: all .3s var(--ease);
}
.footer-social a:hover { border-color: var(--brand-soft); color: var(--brand-soft); transform: translateY(-3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  padding: 26px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; font-weight: 300;
}
.footer-bottom a { color: #b9b1a8; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- firma autografa ---------- */
.signature {
  font-family: 'Great Vibes', cursive; font-size: 2.7rem; line-height: 1.1;
  text-transform: none; letter-spacing: normal; font-weight: 400;
  color: var(--ink); display: inline-block; transform: rotate(-3deg);
  padding: 6px 10px 2px 4px;
}
.signature.reveal { clip-path: inset(0 100% 0 0); transform: rotate(-3deg) translateY(0); opacity: 1; transition: clip-path 1.3s var(--ease) .2s; }
.signature.reveal.is-visible { clip-path: inset(0 -8% 0 0); transform: rotate(-3deg); }
.signature-caption { display: block; margin-top: 2px; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; color: var(--brand); }

/* ---------- dettagli sartoriali ---------- */
.details-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.detail-item { text-align: center; }
.detail-frame {
  aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.detail-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.detail-item:hover .detail-frame img { transform: scale(1.09); }
.detail-item figcaption {
  margin-top: 14px; font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--muted);
}

/* ---------- timeline cucita (percorso) ---------- */
.sew-timeline { position: relative; max-width: 880px; margin: 0 auto; }
.sew-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px);
}
.sew-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--sew, 0%);
  background: var(--brand); transition: height .2s linear;
}
.sew-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 56px; }
.sew-step { width: calc(50% - 44px); position: relative; }
.sew-step:nth-child(odd) { align-self: flex-start; text-align: right; }
.sew-step:nth-child(even) { align-self: flex-end; }
.sew-step::before {
  content: ''; position: absolute; top: 14px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.sew-step:nth-child(odd)::before { right: -50px; }
.sew-step:nth-child(even)::before { left: -50px; }
.sew-step.is-sewn::before { background: var(--brand); border-color: var(--brand); transform: scale(1.25); }
.sew-step .step-num { font-family: var(--font-display); font-style: italic; font-size: 2.6rem; font-weight: 500; color: var(--brand); opacity: .4; line-height: 1; display: block; margin-bottom: 10px; transition: opacity .5s var(--ease); }
.sew-step.is-sewn .step-num { opacity: 1; }
.sew-step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sew-step p { font-size: .95rem; color: var(--muted); }

/* ---------- capolettera articoli ---------- */
.article .article-highlight + p::first-letter {
  font-family: var(--font-display); font-size: 4.3em; font-weight: 600;
  float: left; line-height: .78; padding: .06em .14em 0 0; color: var(--brand);
}

/* ---------- FAQ: apertura morbida (browser che supportano ::details-content) ---------- */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    opacity: 0; block-size: 0; overflow-y: clip;
    transition: content-visibility .4s allow-discrete, opacity .4s var(--ease), block-size .4s var(--ease);
  }
  .faq-item[open]::details-content { opacity: 1; block-size: auto; }
}

/* ---------- link nel testo ---------- */
.article a, .faq-body a, .split-copy p a, .service-copy p a, .form-privacy a, .form-alt a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.article a:hover, .faq-body a:hover, .split-copy p a:hover, .service-copy p a:hover, .form-privacy a:hover, .form-alt a:hover {
  text-decoration-thickness: 2px; text-decoration-color: currentColor;
}

/* ---------- fade-in immagini lazy (classe aggiunta da main.js) ---------- */
img.img-fade { opacity: 0; transition: opacity .5s var(--ease); }
img.img-fade.is-loaded { opacity: 1; }

/* ---------- titoli parola per parola (classi aggiunte da main.js) ---------- */
h2.reveal.split-ready { opacity: 1; transform: none; transition: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: bottom; }
.swi { display: inline-block; transform: translateY(115%); transition: transform .75s var(--ease); }
h2.is-visible .swi { transform: none; }

/* ---------- foto che si svelano a sipario (pannello sul contenitore:
   MAI clip-path sull'img, azzererebbe l'area visibile e bloccherebbe il lazy-load) ---------- */
.wipe { position: relative; }
.wipe::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: var(--bg-alt);
  transform: scaleX(1); transform-origin: right;
  transition: transform 1s var(--ease) var(--wd, 0s);
}
.wipe.is-open::after { transform: scaleX(0); }

/* ---------- tilt 3D con riflesso (desktop) ---------- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease); position: relative;
}
.tilt:hover { transition: transform .06s linear; }
.gallery-item.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
}
.tilt::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease); border-radius: inherit;
}
.tilt:hover::after { opacity: 1; }

/* ---------- grana pellicola ---------- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 260px 260px;
}

/* ---------- shimmer sul corsivo della hero ---------- */
.hero-copy h1 em {
  background: linear-gradient(105deg, var(--brand) 42%, #c9748f 50%, var(--brand) 58%);
  background-size: 230% 100%; background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
  animation: shimmer 7s var(--ease) 1.6s infinite;
}
@keyframes shimmer {
  0%   { background-position: 120% 0; }
  30%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- whatsapp float (colore brand, non verde standard) ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 55;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(125, 57, 80, .38);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-float::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--brand);
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.9); opacity: .8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); color: #fff; box-shadow: 0 14px 34px rgba(125, 57, 80, .5); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .details-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { object-position: 50% 14%; }
  .hero { min-height: 0; }
  .hero-media { min-height: 62vh; order: -1; }
  .hero-media::after { background: linear-gradient(var(--bg) 0%, transparent 16%); }
  .hero-copy { padding: 60px 28px 80px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .features-grid, .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .split, .service-row, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split.is-reverse .split-media, .service-row.is-reverse .service-media { order: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid.is-three { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg); z-index: 65;
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .blog-grid, .blog-grid.is-three { grid-template-columns: 1fr; }
  .contact-form { padding: 34px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 100px 0; }
  .word-strip li::after { margin: 0 14px; }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; border-left: 0; }
  .step { border-right: 0; border-left: 1px solid var(--line); margin-bottom: 34px; }
  .sew-line { left: 8px; }
  .sew-step, .sew-step:nth-child(odd), .sew-step:nth-child(even) { width: auto; align-self: stretch; text-align: left; margin-left: 40px; }
  .sew-step:nth-child(odd)::before, .sew-step:nth-child(even)::before { left: -37px; right: auto; }
  .details-strip {
    display: flex; overflow-x: auto; gap: 16px; padding-bottom: 12px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .detail-item { flex: 0 0 72%; scroll-snap-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 70px 0 50px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-trust { gap: 18px; }
}
@media (max-width: 640px) {
  .btn { padding: 16px 22px; letter-spacing: .16em; white-space: normal; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-text .brand-name { font-size: 1.15rem; }
  .brand-text .brand-top { font-size: .62rem; letter-spacing: .34em; }
  .hero-watermark { width: 260px; left: -50px; bottom: -50px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .split-media::before, .split-media::after { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
