/* ============================================================
   Ama_Ti Accademy — Valentina Spagnoli · Brescia  ·  v2
   Design editoriale: tipografia oversize, bento, tab, marquee
   Made by Royaletiger
   ============================================================ */

/* ---------- Font self-hosted (GDPR: nessuna richiesta a terzi) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-500.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-600.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cormorant-garamond-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff2) format('woff2'); }

/* ---------- Design system ---------- */
:root {
  --brand: #E9BCB7;
  --brand-soft: #F6E4E0;
  --brand-dark: #C98A90;
  --accent: #A44A57;
  --accent-dark: #863944;
  --ink: #191412;
  --text: #4E4643;
  --muted: #8C8078;
  --bg: #FBF6F2;
  --bg-alt: #F5EAE5;
  --bg-dark: #1B1513;
  --line: #E9DAD4;
  --line-dark: rgba(251, 246, 242, .12);
  --white: #FFFEFD;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 12px rgba(60, 34, 36, .06);
  --shadow-md: 0 14px 40px rgba(60, 34, 36, .11);
  --shadow-lg: 0 30px 80px rgba(60, 34, 36, .18);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1280px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; font-weight: 600; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.012em; }
h3 { font-size: 1.5rem; line-height: 1.2; }
h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

em, .serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: 0; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(84px, 10vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-dark h2, .section-dark h3 { color: var(--bg); }
.section-dark p { color: rgba(251, 246, 242, .74); }

/* eyebrow editoriale: ( 01 ) — Etichetta */
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow .idx { font-family: var(--font-display); font-style: italic; font-weight: 500; letter-spacing: .04em; font-size: .95rem; opacity: .85; white-space: nowrap; }
.section-dark .eyebrow { color: var(--brand); }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.section-head.centered p { margin-inline: auto; }

.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); line-height: 1.7; }

/* parola fantasma dietro le sezioni */
.ghost {
  position: absolute; inset-inline: 0; top: 34px; z-index: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(5rem, 14vw, 11rem); line-height: 1; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(164, 74, 87, .10);
  pointer-events: none; user-select: none; white-space: nowrap; overflow: hidden;
}
.section-dark .ghost { -webkit-text-stroke-color: rgba(233, 188, 183, .10); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: .94rem; font-weight: 600; letter-spacing: .01em;
  cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .btn-ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: transform .45s var(--ease), background .3s;
}
.btn .btn-ico svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover .btn-ico { transform: rotate(-40deg); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary .btn-ico { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2A211E; color: var(--bg); }

.btn-outline { border-color: rgba(25, 20, 18, .22); color: var(--ink); background: transparent; }
.btn-outline .btn-ico { background: var(--brand-soft); color: var(--accent); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-light { background: var(--bg); color: var(--ink); }
.btn-light .btn-ico { background: var(--brand); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }

.btn-wa { background: #1FA155; color: #fff; }
.btn-wa .btn-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-wa:hover { background: #178547; color: #fff; }

/* link testuale con freccia */
.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
}
.arrow-link svg { width: 17px; height: 17px; transition: transform .35s var(--ease); color: var(--accent); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover svg { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251, 246, 242, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 40px rgba(60, 34, 36, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.brand { display: inline-flex; flex-direction: column; gap: 3px; }
.brand img { width: 138px; height: auto; }
.brand small {
  font-size: .58rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); padding-left: 3px;
}

.nav-list { display: flex; align-items: center; gap: 8px; }
.nav-list a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink);
  padding: 9px 16px; border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav-list a:hover { background: var(--brand-soft); color: var(--accent); }
.nav-list a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.nav-cta { display: inline-flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 6px 6px 6px 22px; font-size: .88rem; }
.nav-cta .btn .btn-ico { width: 36px; height: 36px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; padding: 13px; border: 0; border-radius: 14px;
  background: var(--ink); cursor: pointer;
}
.hamburger span { display: block; height: 2px; background: var(--bg); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero home ---------- */
.hero { position: relative; overflow: clip; padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 64% at 86% 12%, rgba(233, 188, 183, .42), transparent 68%),
    radial-gradient(40% 54% at 4% 92%, rgba(233, 188, 183, .25), transparent 70%);
}
.hero-mandala {
  position: absolute; right: -170px; top: -170px; width: 560px; opacity: .12;
  pointer-events: none; will-change: transform;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { margin: 0 0 26px; }
.hero h1 .h1-line { display: block; }
.hero h1 em { display: inline-block; }
.hero .lead { max-width: 540px; margin-bottom: 28px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500; color: var(--ink);
  background: rgba(255, 254, 253, .7); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  transition: border-color .3s, transform .3s var(--ease);
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip:hover { border-color: var(--brand-dark); transform: translateY(-2px); }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.hero-stats {
  display: flex; gap: clamp(26px, 4vw, 52px);
  border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 56px); padding-top: 30px;
}
.hero-stats > div { position: relative; }
.hero-stats > div + div { padding-left: clamp(26px, 4vw, 52px); border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.3rem, 3.4vw, 3.1rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat-num em { font-size: .7em; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 48% 52% 54% 46% / 46% 44% 56% 54%;
  overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1.06;
  animation: blob 18s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(233, 188, 183, .18), transparent 46%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blob {
  0%   { border-radius: 48% 52% 54% 46% / 46% 44% 56% 54%; }
  50%  { border-radius: 54% 46% 46% 54% / 52% 56% 44% 48%; }
  100% { border-radius: 46% 54% 52% 48% / 44% 48% 52% 56%; }
}
.hero-ring {
  position: absolute; inset: -26px; border: 1.5px dashed rgba(164, 74, 87, .28);
  border-radius: 50%; animation: spin 46s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-card {
  position: absolute; left: -34px; bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 254, 253, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 188, 183, .5); border-radius: 18px; padding: 15px 22px;
  box-shadow: var(--shadow-md); animation: floaty 6s ease-in-out infinite;
}
.hero-card-icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: var(--brand-soft); display: grid; place-items: center; color: var(--accent);
}
.hero-card-icon svg { width: 22px; height: 22px; }
.hero-card strong { display: block; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.hero-card small { font-size: .77rem; color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
.petal { position: absolute; pointer-events: none; opacity: .8; animation: petal-drift 9s ease-in-out infinite; }
@keyframes petal-drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(14deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 22px 0; background: var(--white);
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee .m-sep { color: var(--brand-dark); font-size: .8em; padding: 0 26px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Lista feature editoriale (numerata) ---------- */
.edit-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(44px, 6vw, 100px); align-items: start; }
.edit-sticky { position: sticky; top: 130px; }
.edit-sticky h2 { margin-bottom: 20px; }
.edit-sticky p { color: var(--muted); font-size: 1.05rem; max-width: 420px; margin-bottom: 30px; }

.feature-list { border-top: 1px solid var(--line); }
.feature-item {
  position: relative; display: grid; grid-template-columns: 74px 1fr 40px; gap: 22px; align-items: start;
  padding: 34px 18px 34px 8px; border-bottom: 1px solid var(--line); cursor: default;
  transition: background .35s, padding-left .35s var(--ease);
}
.feature-item:hover { background: var(--white); padding-left: 20px; }
.feature-num {
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 500;
  color: var(--brand-dark); line-height: 1.1; padding-top: 3px;
}
.feature-item h3 { margin-bottom: 8px; font-size: 1.4rem; }
.feature-item p { font-size: .96rem; color: var(--muted); max-width: 480px; }
.feature-arrow {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--accent); opacity: 0; transform: translateX(-8px);
  transition: opacity .35s, transform .35s var(--ease); margin-top: 4px;
}
.feature-arrow svg { width: 16px; height: 16px; }
.feature-item:hover .feature-arrow { opacity: 1; transform: none; }

/* ---------- Split immagini (chi siamo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(44px, 6vw, 100px); align-items: center; }
.split-body h2 { margin-bottom: 22px; }
.split-body p + p { margin-top: 15px; }

.img-stack { position: relative; padding: 0 46px 56px 0; }
.img-stack-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-stack-main img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; transition: transform 1.2s var(--ease); }
.img-stack:hover .img-stack-main img { transform: scale(1.05); }
.img-stack-small {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow-md);
}
.section-alt .img-stack-small { border-color: var(--bg-alt); }
.img-stack-small img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.img-stack-badge {
  position: absolute; left: -18px; top: -18px; z-index: 2;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; text-align: center; padding: 16px;
  font-family: var(--font-display); font-size: 1rem; line-height: 1.25;
  box-shadow: var(--shadow-md); animation: floaty 7s ease-in-out infinite;
}
.img-stack-badge em { color: var(--brand); }

.split-list { margin: 28px 0 34px; display: grid; gap: 15px; }
.split-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .98rem; }
.split-list svg { width: 21px; height: 21px; flex: none; color: var(--accent); margin-top: 3px; }
.split-list strong { color: var(--ink); }

.quote-band {
  border-left: 3px solid var(--brand-dark); padding: 6px 0 6px 24px; margin: 26px 0 30px;
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--ink);
}

/* ---------- Bento servizi ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.bento-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
  transform: translateZ(0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.bento-card:nth-child(1), .bento-card:nth-child(4) { grid-column: span 7; min-height: 380px; }
.bento-card:nth-child(2), .bento-card:nth-child(3) { grid-column: span 5; }
.bento-card:nth-child(2) { min-height: 380px; }
.bento-card:nth-child(3) { min-height: 340px; }
.bento-card:nth-child(4) { min-height: 340px; }
.bento-card:nth-child(5), .bento-card:nth-child(6) { grid-column: span 6; min-height: 320px; }
.bento-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.bento-card:hover img { transform: scale(1.07); }
.bento-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 13, 12, .82) 0%, rgba(20, 13, 12, .28) 46%, rgba(20, 13, 12, .05) 70%);
  transition: background .4s;
}
.bento-tag {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  background: rgba(251, 246, 242, .92); color: var(--accent);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; padding: 8px 15px;
}
.bento-body { position: relative; z-index: 2; padding: 26px 28px; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.bento-body h3 { color: #fff; font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 6px; }
.bento-body p { color: rgba(255, 255, 255, .78); font-size: .9rem; max-width: 400px; line-height: 1.55; }
.bento-arrow {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 246, 242, .16); color: #fff;
  border: 1px solid rgba(251, 246, 242, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .35s, transform .45s var(--ease);
}
.bento-arrow svg { width: 19px; height: 19px; }
.bento-card:hover .bento-arrow { background: var(--accent); border-color: var(--accent); transform: rotate(-40deg); }

/* ---------- Numeri (dark) ---------- */
.numbers-band { position: relative; overflow: clip; }
.numbers-band .cta-mandala { opacity: .1; }
.numbers { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.number-item { padding: 10px clamp(18px, 3vw, 44px); }
.number-item + .number-item { border-left: 1px solid var(--line-dark); }
.number-item .stat-num { font-size: clamp(3rem, 5.6vw, 4.6rem); color: var(--bg); }
.number-item .stat-num em { color: var(--brand); }
.number-item p { margin-top: 10px; font-size: .9rem; }

/* ---------- Testimonianze ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.quote-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.quote-card::before {
  content: ''; position: absolute; top: 0; left: 32px; right: 32px; height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  border-radius: 0 0 4px 4px; transform: scaleX(.35); transform-origin: left;
  transition: transform .5s var(--ease);
}
.quote-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.quote-card:hover::before { transform: scaleX(1); }
.quote-card:nth-child(2) { margin-top: 34px; }
.quote-card:nth-child(3) { margin-top: 68px; }
.quote-card blockquote {
  font-family: var(--font-display); font-size: 1.22rem; font-style: italic; font-weight: 500;
  line-height: 1.45; color: var(--ink); flex: 1;
}
.quote-who { display: flex; align-items: center; gap: 13px; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.quote-who strong { display: block; font-size: .92rem; color: var(--ink); }
.quote-who small { font-size: .78rem; color: var(--muted); }
.stars { margin-left: auto; color: #C99206; font-size: .8rem; letter-spacing: 2px; }

/* ---------- Blog card editoriale ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blog-card {
  display: grid; grid-template-columns: 42% 1fr; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.blog-media { overflow: hidden; position: relative; min-height: 240px; }
.blog-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.08); }
.blog-body { padding: 30px 28px; display: flex; flex-direction: column; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.blog-meta span {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.blog-meta .cat { background: var(--brand-soft); color: var(--accent); }
.blog-meta .time { border: 1px solid var(--line); color: var(--muted); }
.blog-body h3 { font-size: 1.35rem; }
.blog-body h3 a { color: var(--ink); }
.blog-body h3 a:hover { color: var(--accent); }
.blog-body p { margin-top: 10px; font-size: .93rem; color: var(--muted); flex: 1; }
.blog-body .arrow-link { margin-top: 18px; font-size: .88rem; }

/* articolo */
.article { max-width: 780px; margin-inline: auto; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 48px 0 18px; }
.article h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.article p + p { margin-top: 15px; }
.article ul { margin: 18px 0; display: grid; gap: 12px; }
.article ul li { display: flex; gap: 13px; align-items: flex-start; }
.article ul svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 4px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 36px 0; }
.article-note {
  background: var(--brand-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 26px 0; font-size: .97rem;
}

/* ---------- Tabs servizi ---------- */
.tabs-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: clamp(44px, 5vw, 64px);
}
.tab-btn {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.tab-btn:hover { border-color: var(--brand-dark); transform: translateY(-2px); }
.tab-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in .6s var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.service-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.service-detail-media { position: relative; }
.service-detail-media .img-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.service-detail-media img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; }
.service-detail-media .idx-big {
  position: absolute; right: -14px; top: -34px; z-index: 2;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(4.4rem, 7vw, 6.4rem); line-height: 1; color: var(--brand-dark);
}
.service-detail h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 8px 0 16px; }
.service-detail .eyebrow { margin-bottom: 4px; }
.service-detail p + p { margin-top: 13px; }
.service-points { margin-top: 22px; display: grid; gap: 12px; }
.service-points li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; }
.service-points svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.service-detail .btn { margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq-item.is-open { border-color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq-q .faq-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--accent);
  transition: transform .4s var(--ease), background .3s;
}
.faq-q svg { width: 16px; height: 16px; }
.faq-item.is-open .faq-ico { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; font-size: .96rem; color: var(--muted); }

/* ---------- CTA panel ---------- */
.cta-panel-wrap { padding: 0 0 clamp(84px, 10vw, 150px); }
.cta-panel {
  position: relative; overflow: clip; text-align: center;
  background: var(--bg-dark); border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(64px, 8vw, 110px) clamp(24px, 5vw, 80px);
}
.cta-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 50% 110%, rgba(201, 138, 144, .28), transparent 70%);
}
.cta-mandala {
  position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%);
  width: min(620px, 84vw); opacity: .13; pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: var(--bg); max-width: 720px; margin-inline: auto; margin-bottom: 18px; }
.cta-panel p { color: rgba(251, 246, 242, .72); max-width: 540px; margin: 0 auto 38px; }
.cta-panel .hero-ctas { justify-content: center; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; }
.contact-item {
  display: flex; gap: 18px; align-items: center;
  padding: 24px 6px; border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), background .3s;
}
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item:hover { padding-left: 16px; background: var(--white); }
.contact-ico {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  background: var(--brand-soft); color: var(--accent); display: grid; place-items: center;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-item a, .contact-item span.val { font-size: 1.02rem; color: var(--ink); font-weight: 500; }
.contact-item a:hover { color: var(--accent); }

.map-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: 24px 26px; margin-top: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.map-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--brand); }
.map-link strong { display: block; font-size: .98rem; }
.map-link small { font-size: .8rem; opacity: .65; }
.map-link svg { width: 22px; height: 22px; flex: none; }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px); box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.contact-form > p { font-size: .93rem; color: var(--muted); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 15px 18px; border: 1.5px solid var(--line); border-radius: 14px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: var(--bg);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--brand-dark); background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 188, 183, .28);
}
.form-check { display: flex; gap: 11px; align-items: flex-start; font-size: .83rem; color: var(--muted); margin: 4px 0 24px; }
.form-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }
.form-status { margin-top: 16px; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: #1d7a44; }
.form-status.err { color: #b3261e; }

/* ---------- Galleria mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  border: 0; padding: 0; background: var(--bg-alt);
}
.mosaic .gallery-item:nth-child(6n + 1) { grid-row: span 2; }
.mosaic .gallery-item:nth-child(8n + 4) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(25, 20, 18, .5), transparent 52%);
  opacity: 0; transition: opacity .4s;
}
.gallery-cap {
  position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2;
  color: #fff; font-size: .82rem; font-weight: 500; text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after, .gallery-item:hover .gallery-cap { opacity: 1; }
.gallery-item:hover .gallery-cap { transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(18, 13, 12, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 940px); max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(251, 246, 242, .2); cursor: pointer;
  background: rgba(251, 246, 242, .1); color: #fff; transition: background .3s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative; overflow: clip;
  padding: clamp(64px, 8vw, 104px) 0 clamp(52px, 6vw, 84px);
  background: var(--bg-alt);
}
.page-hero .hero-bg {
  background:
    radial-gradient(44% 70% at 90% 0%, rgba(233, 188, 183, .5), transparent 66%),
    radial-gradient(30% 50% at 4% 100%, rgba(233, 188, 183, .3), transparent 70%);
}
.page-hero .hero-mandala { right: -140px; top: auto; bottom: -220px; width: 460px; opacity: .1; }
.page-hero h1 { position: relative; margin-bottom: 14px; max-width: 900px; }
.page-hero .lead { position: relative; max-width: 640px; }
.breadcrumb { position: relative; display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; letter-spacing: .02em; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--accent); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(251, 246, 242, .7); position: relative; overflow: clip; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(52px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-cta h2 { color: var(--bg); font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 560px; }
.footer-cta h2 em { color: var(--brand); }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: clamp(32px, 4vw, 60px); padding: clamp(44px, 5vw, 64px) 0 52px; }
.footer-brand img { width: 156px; margin-bottom: 8px; }
.footer-brand .brand-sub {
  display: block; font-size: .6rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(251, 246, 242, .45); margin-bottom: 20px;
}
.footer-brand p { font-size: .92rem; max-width: 300px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 246, 242, .07); border: 1px solid var(--line-dark); color: var(--bg);
  transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer h4 { color: var(--bg); margin-bottom: 22px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { color: rgba(251, 246, 242, .68); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: ''; width: 0; height: 1.5px; background: var(--brand); transition: width .3s var(--ease); }
.footer-links a:hover { color: var(--brand); }
.footer-links a:hover::before { width: 14px; }
.footer-contact { display: grid; gap: 16px; font-size: .92rem; }
.footer-contact li { display: flex; gap: 13px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--brand); margin-top: 4px; }
.footer-contact a { color: rgba(251, 246, 242, .68); }
.footer-contact a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; }
.footer-bottom a { color: rgba(251, 246, 242, .55); }
.footer-bottom a:hover { color: var(--brand); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 90px 24px; position: relative; overflow: clip; }
.error-code {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(7rem, 18vw, 12rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--brand-dark);
}

/* ---------- Reveal ---------- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: none; filter: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote-card:nth-child(3) { margin-top: 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .number-item:nth-child(3) { border-left: 0; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .nav-list { gap: 2px; }
  .nav-list a { padding: 8px 12px; font-size: .88rem; }
}

@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid, .edit-split, .service-detail { grid-template-columns: 1fr; }
  .edit-sticky { position: static; }
  .hero-visual { max-width: 440px; margin-inline: auto; }
  .img-stack { max-width: 520px; }
  .bento-card { grid-column: span 12 !important; min-height: 300px !important; }
  .bento-card:nth-child(2), .bento-card:nth-child(5) { grid-column: span 12 !important; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-media { min-height: 220px; }

  .nav-list {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 890;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px 24px 28px; box-shadow: var(--shadow-lg);
    transform: translateY(-115%); transition: transform .5s var(--ease);
  }
  .nav-list.is-open { transform: translateY(0); }
  .nav-list a { display: block; padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 700px) {
  .quotes { grid-template-columns: 1fr; }
  .quote-card:nth-child(2) { margin-top: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-card { left: 0; }
  .feature-item { grid-template-columns: 52px 1fr; }
  .feature-arrow { display: none; }
  .service-detail-media .idx-big { right: 8px; }
}

@media (max-width: 500px) {
  .container { width: calc(100% - 36px); }
  .numbers { grid-template-columns: 1fr 1fr; }
  .number-item { padding: 10px 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stats > div + div { padding-left: 20px; }
  .brand img { width: 116px; }
  .tabs-bar { gap: 8px; }
  .tab-btn { padding: 10px 16px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}
